19declare(strict_types=1);
41 $this->log =
$DIC->logger()->wsrv();
47 if (self::$instance) {
68 if ($this->rpc_host !==
'') {
71 return $this->rpc_host = (string) $this->
settings->get(
'rpc_server_host');
76 $this->rpc_host = $a_host;
81 if ($this->rpc_port !==
'') {
84 return $this->rpc_port = (string) $this->
settings->get(
'rpc_server_port');
87 public function setPort(
string $a_port): void
89 $this->rpc_port = $a_port;
108 }
catch (Exception
$e) {
109 $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.