Gets server history object
public getServerHistory ( ) : Scalr\Model\Entity\Server\History | ||
return | Scalr\Model\Entity\Server\History | Returns server history object |
public function __construct(DBServer $DBServer, $reasonId = 0, $reasonMsg = "") { parent::__construct(); $this->DBServer = $DBServer; try { $history = $this->DBServer->getServerHistory(); $this->launchReasonId = $history->launchReasonId; $this->launchReason = $history->launchReason; } catch (Exception $e) { } }
public function __construct(DBServer $DBServer) { parent::__construct(); $this->DBServer = $DBServer; try { $history = $this->DBServer->getServerHistory(); $this->terminationReasonId = $history->terminateReasonId; $this->terminationReason = $history->terminateReason; } catch (Exception $e) { } }
public function __construct(DBServer $DBServer, $suspend = false) { parent::__construct(); $this->DBServer = $DBServer; $this->suspend = $suspend; if (!$this->suspend) { try { $history = $this->DBServer->getServerHistory(); $this->terminationReasonId = $history->terminateReasonId; $this->terminationReason = $history->terminateReason; } catch (Exception $e) { } } }
public function __construct(DBServer $DBServer) { parent::__construct(); $this->DBServer = $DBServer; $r_server = \Scalr::getDb()->GetRow("SELECT server_id FROM servers WHERE replace_server_id=? LIMIT 1", array($DBServer->serverId)); if ($r_server) { $this->replacementDBServer = DBServer::LoadByID($r_server['server_id']); } try { $history = $this->DBServer->getServerHistory(); $this->terminationReasonId = $history->terminateReasonId; $this->terminationReason = $history->terminateReason; } catch (Exception $e) { } }