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

Public Member Functions

 getServer ($sServerId)
 saveServer ($oServer)
 getServers ()
 deleteServer ($sServerId)
 markInActiveServers ($aServersData=null)
 deleteInActiveServers ($aServersData)
 getServersData ()

Public Attributes

const NODE_AVAILABILITY_CHECK_PERIOD = 86400
const INACTIVE_NODE_STORAGE_PERIOD = 259200
const CONFIG_NAME_FOR_SERVER_INFO = 'aServersData_'

Protected Member Functions

 createServer ($sServerId, $aData=array())
 getServerParameter ($aData, $sName)
 getAllServersDataConfigsFromDb ()
 getServerDataFromDb ($sServerId)
 saveToDb ($sServerId, $aServerData)

Private Member Functions

 parseServerIdFromConfig ($sVarName)
 getConfigValueFromDB ($sVarName)

Detailed Description

Manages application servers information.

Definition at line 9 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 67 of file oxserversmanager.php.

oxServersManager::deleteInActiveServers (   $aServersData)

Removes information about old and not used servers.

Parameters
array$aServersDataInformation of all servers data
Returns
array $aServersData Information of all servers data

Definition at line 161 of file oxserversmanager.php.

oxServersManager::deleteServer (   $sServerId)

Removes server node information.

Parameters
string$sServerIdServer id

Definition at line 124 of file oxserversmanager.php.

oxServersManager::getAllServersDataConfigsFromDb ( )
protected

Returns all servers information array from database.

Returns
object ResultSetInterface

Definition at line 210 of file oxserversmanager.php.

oxServersManager::getConfigValueFromDB (   $sVarName)
private

Returns configuration value from database.

Parameters
string$sVarNameVariable name
Returns
string

Definition at line 246 of file oxserversmanager.php.

oxServersManager::getServer (   $sServerId)

Returns server based on server id.

Parameters
string$sServerId
Returns
oxApplicationServer

Definition at line 34 of file oxserversmanager.php.

oxServersManager::getServerDataFromDb (   $sServerId)
protected

Returns server information from configuration.

Parameters
string$sServerId
Returns
array

Definition at line 228 of file oxserversmanager.php.

oxServersManager::getServerParameter (   $aData,
  $sName 
)
protected

Gets server parameter.

Parameters
array$aDataData
string$sNameName
Returns
mixed

Definition at line 90 of file oxserversmanager.php.

oxServersManager::getServers ( )

Return active server nodes.

Returns
array

Definition at line 100 of file oxserversmanager.php.

oxServersManager::getServersData ( )

Returns all servers information array from configuration.

Returns
array

Definition at line 177 of file oxserversmanager.php.

oxServersManager::markInActiveServers (   $aServersData = null)

Mark servers as inactive if they are not used anymore.

Parameters
array$aServersDataInformation of all servers data
Returns
array $aServersData Information of all servers data

Definition at line 141 of file oxserversmanager.php.

oxServersManager::parseServerIdFromConfig (   $sVarName)
private

Parses config option name to get the server id.

Parameters
string$sVarNameThe name of the config option.
Returns
string The id of server.

Definition at line 198 of file oxserversmanager.php.

oxServersManager::saveServer (   $oServer)

Saves given server information to config.

Parameters
oxApplicationServer$oServer

Definition at line 46 of file oxserversmanager.php.

oxServersManager::saveToDb (   $sServerId,
  $aServerData 
)
protected

Saves servers data to database.

Parameters
string$sServerIdServer id
array$aServerDataServer data

Definition at line 265 of file oxserversmanager.php.

Member Data Documentation

const oxServersManager::CONFIG_NAME_FOR_SERVER_INFO = 'aServersData_'

The name of config option for saving servers data information.

Definition at line 25 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: