34 define(
"RPC_SERVER_PATH",
"/RPC2");
35 define(
"RPC_SERVER_ALIVE",
true);
52 global
$ilLog,$ilDB,$ilError,$ilias;
56 $this->err =& $ilError;
57 $this->ilias =& $ilias;
62 if(strlen($this->rpc_host))
66 return $this->rpc_host = $this->ilias->getSetting(
'rpc_server_host');
70 $this->rpc_host = $a_host;
74 if(strlen($this->rpc_port))
78 return $this->rpc_port = $this->ilias->getSetting(
'rpc_server_port');
82 $this->rpc_port = $a_port;
91 $this->ilias->setSetting(
'rpc_server_host',$this->
getHost());
92 $this->ilias->setSetting(
'rpc_server_port',$this->
getPort());
99 include_once
'Services/Search/classes/Lucene/class.ilLuceneRPCAdapter.php';
102 $rpc_adapter->setMode(
'ping');
103 $res = $rpc_adapter->send();