ILIAS  Release_4_4_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.
 setMaxFileSize ($a_fs)
 Set max file size mb.
 getMaxFileSize ()
 Get max file size mb.

Protected Attributes

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

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 42 of file class.ilRpcIniFileWriter.php.

{
}

Member Function Documentation

ilRpcIniFileWriter::getHost ( )

Returns $host.

See Also
ilRpcIniFileWriter::$host

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

References $host.

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

Returns $indexPath.

See Also
ilRpcIniFileWriter::$indexPath

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

References $indexPath.

{
}
ilRpcIniFileWriter::getIniString ( )

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

References $ini.

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

Returns $logLevel.

See Also
ilRpcIniFileWriter::$logLevel

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

References $logLevel.

{
}
ilRpcIniFileWriter::getLogPath ( )

Returns $logPath.

See Also
ilRpcIniFileWriter::$logPath

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

References $logPath.

{
}
ilRpcIniFileWriter::getMaxFileSize ( )

Get max file size mb.

Returns
int

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

References $max_file_size.

{
}
ilRpcIniFileWriter::getNumThreads ( )

Returns $numThreads.

See Also
ilRpcIniFileWriter::$numThreads

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

References $numThreads.

{
}
ilRpcIniFileWriter::getPort ( )

Returns $port.

See Also
ilRpcIniFileWriter::$port

Definition at line 177 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 92 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 111 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 130 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 149 of file class.ilRpcIniFileWriter.php.

References $logPath.

{
$this->logPath=$logPath;
}
ilRpcIniFileWriter::setMaxFileSize (   $a_fs)

Set max file size mb.

Parameters
int$a_fs

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

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

Sets $numThreads.

Parameters
object$numThreads
See Also
ilRpcIniFileWriter::$numThreads

Definition at line 168 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 187 of file class.ilRpcIniFileWriter.php.

References $port.

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

Definition at line 47 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 .= "IndexMaxFileSizeMB = ".$this->getMaxFileSize()."\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::$max_file_size
protected

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

Referenced by getMaxFileSize().

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: