OXID eShop CE  4.10.2
 All Classes Namespaces Files Functions Variables Pages
oxServersManager Class Reference
+ Collaboration diagram for oxServersManager:

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)
 _createServer ($sServerId, $aData=array())
 _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::_createServer (   $sServerId,
  $aData = array() 
)
protected

Creates oxApplicationServer from given server id and data.

Parameters
string$sServerId
array$aData
Returns
oxApplicationServer

Definition at line 103 of file oxserversmanager.php.

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$aDataData
string$sNameName
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$aServersDataServers 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$sServerIdServer 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.

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.


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