3declare(strict_types=1);
48 $this->log =
$DIC->logger()->wsrv();
54 if (self::$instance) {
75 if ($this->rpc_host !==
'') {
78 return $this->rpc_host = (string) $this->
settings->get(
'rpc_server_host');
83 $this->rpc_host = $a_host;
88 if ($this->rpc_port !==
'') {
91 return $this->rpc_port = (string) $this->
settings->get(
'rpc_server_port');
94 public function setPort(
string $a_port): void
96 $this->rpc_port = $a_port;
115 }
catch (Exception
$e) {
116 $this->log->warning(
'Calling RPC server failed with message: ' .
$e->getMessage());
Component logger with individual log levels by component id.
Class for storing all rpc communication settings.
isEnabled()
Returns true if server ip and port are set.
static ilRPCServerSettings $instance
static factory(string $a_package, int $a_timeout=0)
Creates an ilRpcClient instance to our ilServer.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...