Public Member Functions | Public Attributes | Protected Member Functions | Private Attributes

oxServersManager Class Reference

Collaboration diagram for oxServersManager:

List of all members.

Public Member Functions

 __construct ()
 getServer ($sServerId)
 saveServer ($oServer)
 getServers ()
 deleteServer ($sServerId)
 markInActiveServers ()
 deleteInActiveServers ()

Public Attributes

const NODE_AVAILABILITY_CHECK_PERIOD = 86400
const INACTIVE_NODE_STORAGE_PERIOD = 259200

Protected Member Functions

 _getServersData ()
 _getServerData ($sServerId)
 _getServerParameter ($aData, $sName)
 _save ($aServersData)

Private Attributes

 $_aServersData = array()

Detailed Description

Manages application servers information.

Definition at line 9 of file oxserversmanager.php.


Constructor & Destructor Documentation

oxServersManager.__construct (  ) 

Initiates servers array with content from configuration.

Definition at line 32 of file oxserversmanager.php.


Member Function Documentation

oxServersManager._getServerData ( sServerId  )  [protected]

Returns server information from configuration.

Parameters:
string $sServerId
Returns:
array

Definition at line 88 of file oxserversmanager.php.

oxServersManager._getServerParameter ( aData,
sName 
) [protected]

Gets server parameter.

Parameters:
array $aData Data
string $sName Name
Returns:
mixed

Definition at line 126 of file oxserversmanager.php.

oxServersManager._getServersData (  )  [protected]

Returns servers information array.

Returns:
array

Definition at line 76 of file oxserversmanager.php.

oxServersManager._save ( aServersData  )  [protected]

Saves servers data.

Parameters:
array $aServersData Servers data

Definition at line 202 of file oxserversmanager.php.

oxServersManager.deleteInActiveServers (  ) 

Removes information about old and not used servers

Definition at line 186 of file oxserversmanager.php.

oxServersManager.deleteServer ( sServerId  ) 

Removes server node information

Parameters:
string $sServerId Server id

Definition at line 160 of file oxserversmanager.php.

oxServersManager.getServer ( sServerId  ) 

Returns server based on server id.

Parameters:
string $sServerId
Returns:
oxApplicationServer

Definition at line 44 of file oxserversmanager.php.

oxServersManager.getServers (  ) 

Return active server nodes

Returns:
array

Definition at line 136 of file oxserversmanager.php.

oxServersManager.markInActiveServers (  ) 

Mark servers as inactive if they are not used anymore

Definition at line 170 of file oxserversmanager.php.

oxServersManager.saveServer ( oServer  ) 

Saves given server information to config.

Parameters:
oxApplicationServer $oServer

Definition at line 56 of file oxserversmanager.php.


Member Data Documentation

oxServersManager.$_aServersData = array() [private]

Definition at line 27 of file oxserversmanager.php.

Time in seconds, server node information life time.

Definition at line 20 of file oxserversmanager.php.

Time in seconds, server node information life time.

Definition at line 15 of file oxserversmanager.php.


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