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() |
Manages application servers information.
Definition at line 9 of file oxserversmanager.php.
oxServersManager.__construct | ( | ) |
Initiates servers array with content from configuration.
Definition at line 32 of file oxserversmanager.php.
oxServersManager._getServerData | ( | $ | sServerId | ) | [protected] |
Returns server information from configuration.
string | $sServerId |
Definition at line 88 of file oxserversmanager.php.
oxServersManager._getServerParameter | ( | $ | aData, | |
$ | sName | |||
) | [protected] |
Gets server parameter.
array | $aData Data | |
string | $sName Name |
Definition at line 126 of file oxserversmanager.php.
oxServersManager._getServersData | ( | ) | [protected] |
Returns servers information array.
Definition at line 76 of file oxserversmanager.php.
oxServersManager._save | ( | $ | aServersData | ) | [protected] |
Saves servers data.
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
string | $sServerId Server id |
Definition at line 160 of file oxserversmanager.php.
oxServersManager.getServer | ( | $ | sServerId | ) |
Returns server based on server id.
string | $sServerId |
Definition at line 44 of file oxserversmanager.php.
oxServersManager.getServers | ( | ) |
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.
oxApplicationServer | $oServer |
Definition at line 56 of file oxserversmanager.php.
oxServersManager.$_aServersData = array() [private] |
Definition at line 27 of file oxserversmanager.php.
const oxServersManager.INACTIVE_NODE_STORAGE_PERIOD = 259200 |
Time in seconds, server node information life time.
Definition at line 20 of file oxserversmanager.php.
const oxServersManager.NODE_AVAILABILITY_CHECK_PERIOD = 86400 |
Time in seconds, server node information life time.
Definition at line 15 of file oxserversmanager.php.