ILIAS  release_8 Revision v8.24
ilObjSearchRpcClientCoordinator Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ 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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Author
Tim Schmitz schmi.nosp@m.tz@l.nosp@m.eifos.nosp@m..com

Definition at line 23 of file ilObjSearchRpcClientCoordinator.php.

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: