OXID eShop CE
6.1.5
|
Public Member Functions | |
setId ($id) | |
getId () | |
setIp ($ip) | |
getIp () | |
setTimestamp ($timestamp) | |
getTimestamp () | |
setLastAdminUsage ($lastAdminUsage) | |
getLastAdminUsage () | |
setLastFrontendUsage ($lastFrontendUsage) | |
getLastFrontendUsage () | |
isInUse ($currentTimestamp) | |
needToDelete ($currentTimestamp) | |
needToUpdate ($currentTimestamp) | |
Public Attributes | |
const | SERVER_INFORMATION_TIME_LIFE = 86400 |
const | INACTIVE_SERVER_STORAGE_PERIOD = 259200 |
const | SERVER_INFO_UPDATE_PERIOD = 86400 |
Private Member Functions | |
isServerTimeValid ($currentTimestamp) | |
hasLifetimeExpired ($currentTimestamp, $periodTimestamp) | |
Private Attributes | |
$id | |
$ip | |
$timestamp | |
$lastFrontendUsage | |
$lastAdminUsage | |
Class used as entity for server node information.
OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::getId | ( | ) |
Gets id
OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::getIp | ( | ) |
Gets ip.
OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::getLastAdminUsage | ( | ) |
Gets last admin usage.
OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::getLastFrontendUsage | ( | ) |
Gets last frontend usage.
OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::getTimestamp | ( | ) |
Gets timestamp.
|
private |
Compare if the application server lifetime has exceeded given period.
int | $currentTimestamp | The current timestamp. |
int | $periodTimestamp | The timestamp of period to check. |
OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::isInUse | ( | $currentTimestamp | ) |
Check if application server was in use during 24h period.
int | $currentTimestamp | The current timestamp. |
|
private |
Method checks if the hardware time was not rolled back.
int | $currentTimestamp | The current timestamp. |
OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::needToDelete | ( | $currentTimestamp | ) |
Check if application server availability check period is over.
int | $currentTimestamp | The current timestamp. |
OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::needToUpdate | ( | $currentTimestamp | ) |
Check if application server information must be updated.
int | $currentTimestamp | The current timestamp. |
OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::setId | ( | $id | ) |
Sets id.
string | $id |
OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::setIp | ( | $ip | ) |
Sets ip.
string | $ip |
OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::setLastAdminUsage | ( | $lastAdminUsage | ) |
Sets last admin usage.
int | null | $lastAdminUsage |
OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::setLastFrontendUsage | ( | $lastFrontendUsage | ) |
Sets last frontend usage.
int | null | $lastFrontendUsage | Admin server flag which stores timestamp. |
OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::setTimestamp | ( | $timestamp | ) |
Sets timestamp.
int | $timestamp |
|
private |
|
private |
|
private |
|
private |
|
private |
const OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::INACTIVE_SERVER_STORAGE_PERIOD = 259200 |
Time in seconds, how long inactive server information will be stored.
const OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::SERVER_INFO_UPDATE_PERIOD = 86400 |
Time in seconds, how often server information must be updated.
const OxidEsales\EshopCommunity\Core\DataObject\ApplicationServer::SERVER_INFORMATION_TIME_LIFE = 86400 |
Time in seconds, active server information life time.