ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilRpcIniFileWriter Class Reference

Creates a java server ini file for the current client More...

+ Collaboration diagram for ilRpcIniFileWriter:

Public Member Functions

 __construct ()
 write ()
 getIniString ()
 getHost ()
 Returns $host.
 setHost ($host)
 Sets $host.
 getIndexPath ()
 Returns $indexPath.
 setIndexPath ($indexPath)
 Sets $indexPath.
 getLogLevel ()
 Returns $logLevel.
 setLogLevel ($logLevel)
 Sets $logLevel.
 getLogPath ()
 Returns $logPath.
 setLogPath ($logPath)
 Sets $logPath.
 getNumThreads ()
 Returns $numThreads.
 setNumThreads ($numThreads)
 Sets $numThreads.
 getPort ()
 Returns $port.
 setPort ($port)
 Sets $port.

Protected Attributes

 $ini = ''
 $host
 $port
 $indexPath
 $logPath
 $logLevel
 $numThreads

Detailed Description

Creates a java server ini file for the current client

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 29 of file class.ilRpcIniFileWriter.php.

Constructor & Destructor Documentation

ilRpcIniFileWriter::__construct ( )

Definition at line 41 of file class.ilRpcIniFileWriter.php.

{
}

Member Function Documentation

ilRpcIniFileWriter::getHost ( )

Returns $host.

See Also
ilRpcIniFileWriter::$host

Definition at line 80 of file class.ilRpcIniFileWriter.php.

References $host.

{
return $this->host;
}
ilRpcIniFileWriter::getIndexPath ( )

Returns $indexPath.

See Also
ilRpcIniFileWriter::$indexPath

Definition at line 99 of file class.ilRpcIniFileWriter.php.

References $indexPath.

{
}
ilRpcIniFileWriter::getIniString ( )

Definition at line 70 of file class.ilRpcIniFileWriter.php.

References $ini.

{
return $this->ini;
}
ilRpcIniFileWriter::getLogLevel ( )

Returns $logLevel.

See Also
ilRpcIniFileWriter::$logLevel

Definition at line 118 of file class.ilRpcIniFileWriter.php.

References $logLevel.

{
}
ilRpcIniFileWriter::getLogPath ( )

Returns $logPath.

See Also
ilRpcIniFileWriter::$logPath

Definition at line 137 of file class.ilRpcIniFileWriter.php.

References $logPath.

{
}
ilRpcIniFileWriter::getNumThreads ( )

Returns $numThreads.

See Also
ilRpcIniFileWriter::$numThreads

Definition at line 156 of file class.ilRpcIniFileWriter.php.

References $numThreads.

{
}
ilRpcIniFileWriter::getPort ( )

Returns $port.

See Also
ilRpcIniFileWriter::$port

Definition at line 175 of file class.ilRpcIniFileWriter.php.

References $port.

{
return $this->port;
}
ilRpcIniFileWriter::setHost (   $host)

Sets $host.

Parameters
object$host
See Also
ilRpcIniFileWriter::$host

Definition at line 90 of file class.ilRpcIniFileWriter.php.

References $host.

{
$this->host=$host;
}
ilRpcIniFileWriter::setIndexPath (   $indexPath)

Sets $indexPath.

Parameters
object$indexPath
See Also
ilRpcIniFileWriter::$indexPath

Definition at line 109 of file class.ilRpcIniFileWriter.php.

References $indexPath.

{
$this->indexPath=$indexPath;
}
ilRpcIniFileWriter::setLogLevel (   $logLevel)

Sets $logLevel.

Parameters
object$logLevel
See Also
ilRpcIniFileWriter::$logLevel

Definition at line 128 of file class.ilRpcIniFileWriter.php.

References $logLevel.

{
$this->logLevel=$logLevel;
}
ilRpcIniFileWriter::setLogPath (   $logPath)

Sets $logPath.

Parameters
object$logPath
See Also
ilRpcIniFileWriter::$logPath

Definition at line 147 of file class.ilRpcIniFileWriter.php.

References $logPath.

{
$this->logPath=$logPath;
}
ilRpcIniFileWriter::setNumThreads (   $numThreads)

Sets $numThreads.

Parameters
object$numThreads
See Also
ilRpcIniFileWriter::$numThreads

Definition at line 166 of file class.ilRpcIniFileWriter.php.

References $numThreads.

{
$this->numThreads=$numThreads;
}
ilRpcIniFileWriter::setPort (   $port)

Sets $port.

Parameters
object$port
See Also
ilRpcIniFileWriter::$port

Definition at line 185 of file class.ilRpcIniFileWriter.php.

References $port.

{
$this->port=$port;
}
ilRpcIniFileWriter::write ( )

Definition at line 46 of file class.ilRpcIniFileWriter.php.

References $ilIliasIniFile, and $ilSetting.

{
// Main section
$this->ini = "[Server]\n";
$this->ini .= "IpAddress = ".$this->getHost()."\n";
$this->ini .= "Port = ".$this->getPort()."\n";
$this->ini .= "IndexPath = ".$this->getIndexPath()."\n";
$this->ini .= "LogFile = ".$this->getLogPath()."\n";
$this->ini .= "LogLevel = ".$this->getLogLevel()."\n";
$this->ini .= "NumThreads = ".$this->getNumThreads()."\n";
$this->ini .= "RamBufferSize = 256\n";
$this->ini .= "\n";
$this->ini .= "[Client1]\n";
$this->ini .= "ClientId = ".CLIENT_ID."\n";
$this->ini .= "NicId = ".$ilSetting->get('inst_id',0)."\n";
$this->ini .= "IliasIniPath = ".$ilIliasIniFile->readVariable('server','absolute_path').DIRECTORY_SEPARATOR."ilias.ini.php\n";
return true;
}

Field Documentation

ilRpcIniFileWriter::$host
protected

Definition at line 33 of file class.ilRpcIniFileWriter.php.

Referenced by getHost(), and setHost().

ilRpcIniFileWriter::$indexPath
protected

Definition at line 35 of file class.ilRpcIniFileWriter.php.

Referenced by getIndexPath(), and setIndexPath().

ilRpcIniFileWriter::$ini = ''
protected

Definition at line 31 of file class.ilRpcIniFileWriter.php.

Referenced by getIniString().

ilRpcIniFileWriter::$logLevel
protected

Definition at line 37 of file class.ilRpcIniFileWriter.php.

Referenced by getLogLevel(), and setLogLevel().

ilRpcIniFileWriter::$logPath
protected

Definition at line 36 of file class.ilRpcIniFileWriter.php.

Referenced by getLogPath(), and setLogPath().

ilRpcIniFileWriter::$numThreads
protected

Definition at line 38 of file class.ilRpcIniFileWriter.php.

Referenced by getNumThreads(), and setNumThreads().

ilRpcIniFileWriter::$port
protected

Definition at line 34 of file class.ilRpcIniFileWriter.php.

Referenced by getPort(), and setPort().


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