ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjSearchRpcClientCoordinator Class Reference
+ Collaboration diagram for ilObjSearchRpcClientCoordinator:

Public Member Functions

 __construct (ilSetting $settings, ilLogger $src_logger)
 
 refreshLuceneSettings ()
 

Protected Member Functions

 getRpcClient ()
 
 getClientId ()
 

Protected Attributes

ilSetting $settings
 
ilLogger $src_logger
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjSearchRpcClientCoordinator::__construct ( ilSetting  $settings,
ilLogger  $src_logger 
)

Definition at line 28 of file ilObjSearchRpcClientCoordinator.php.

References $settings, $src_logger, and ILIAS\Repository\settings().

+ Here is the call graph for this function:

Member Function Documentation

◆ getClientId()

ilObjSearchRpcClientCoordinator::getClientId ( )
protected

Definition at line 59 of file ilObjSearchRpcClientCoordinator.php.

59 : string
60 {
61 return (string) CLIENT_ID;
62 }
const CLIENT_ID
Definition: constants.php:41

References CLIENT_ID.

Referenced by refreshLuceneSettings().

+ Here is the caller graph for this function:

◆ getRpcClient()

ilObjSearchRpcClientCoordinator::getRpcClient ( )
protected

Definition at line 54 of file ilObjSearchRpcClientCoordinator.php.

55 {
56 return ilRpcClientFactory::factory('RPCAdministration');
57 }
static factory(string $a_package, int $a_timeout=0)
Creates an ilRpcClient instance to our ilServer.
Class ilRpcClient.

References ilRpcClientFactory\factory().

Referenced by refreshLuceneSettings().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ refreshLuceneSettings()

ilObjSearchRpcClientCoordinator::refreshLuceneSettings ( )

Definition at line 36 of file ilObjSearchRpcClientCoordinator.php.

36 : bool
37 {
38 try {
39 $this->getRpcClient()->refreshSettings(
40 $this->getClientId() .
41 '_' .
42 $this->settings->get('inst_id', '0')
43 );
44 return true;
45 } catch (Exception $exception) {
46 $this->src_logger->error(
47 'Refresh of lucene server settings failed with message: ' .
48 $exception->getMessage()
49 );
50 throw $exception;
51 }
52 }

References getClientId(), getRpcClient(), and ILIAS\Repository\settings().

+ Here is the call graph for this function:

Field Documentation

◆ $settings

ilSetting ilObjSearchRpcClientCoordinator::$settings
protected

Definition at line 25 of file ilObjSearchRpcClientCoordinator.php.

Referenced by __construct().

◆ $src_logger

ilLogger ilObjSearchRpcClientCoordinator::$src_logger
protected

Definition at line 26 of file ilObjSearchRpcClientCoordinator.php.

Referenced by __construct().


The documentation for this class was generated from the following file: