Method |
Description |
|
Create ( ServerCreateInfo $creInfo, boolean $isImport = false, $setPendingStatus = false ) : DBServer |
|
|
GetAllProperties ( ) |
|
|
GetClient ( ) : Client |
|
|
GetCloudLocation ( ) : string |
Return cloud location (region) |
|
GetCloudServerID ( boolean $skipCache = false ) : string |
Return real (Cloud) server ID |
|
GetCloudUserData ( ) |
|
|
GetEnvironmentObject ( ) : Scalr_Environment |
|
|
GetFarmObject ( ) : DBFarm |
Returns DBFarme object |
|
GetFarmRoleObject ( ) : DBFarmRole |
Returns DBFarmRole object |
|
GetFreeDeviceName ( $isHvm = false ) |
|
|
GetKey ( boolean $plain = false ) : string |
Returns Server authentification key (For messaging and Query-Env) |
|
GetOsType ( ) : string |
|
|
GetProperty ( string $propertyName, boolean $ignoreCache = false ) : mixed |
Get Server Property |
|
GetRealStatus ( $skipCache = false ) : Scalr\Modules\Platforms\StatusAdapterInterface |
Gets real status |
|
GetScalarizrVersion ( ) : array |
Return information about scalarizr version installed on instance |
|
GetScriptingVars ( ) : array |
|
|
GetSsh2Client ( ) : Scalr_Net_Ssh2_Client |
|
|
IsExists ( $serverId ) |
|
|
IsRebooting ( ) |
|
|
IsSupported ( $v ) |
|
|
LoadByFarmRoleIDAndIndex ( integer $farm_roleid, integer $index ) : DBServer |
|
|
LoadByID ( string $serverId ) : DBServer |
Loads server by specified identifier |
|
LoadByLocalIp ( $localIp, $farmId ) |
|
|
LoadByPropertyValue ( string $propName, string $propValue ) : DBServer |
Return DBServer by property value |
|
Remove ( ) : void |
Removes server from database |
|
Save ( ) |
|
|
SendMessage ( Scalr_Messaging_Msg $message, $isEventNotice = false, $delayed = false ) : Scalr_Messaging_Msg |
Send message to instance |
|
SetProperties ( array $props ) |
Set multiple server properties |
|
SetProperty ( string $propertyName, mixed $propertyValue ) : void |
Set server property |
|
__construct ( $serverId ) |
|
|
__destruct ( ) |
|
|
__get ( $name ) |
|
|
__sleep ( ) |
|
|
applyGlobalVarsToValue ( $value ) |
|
|
checkRequestRate ( string $resourseName = '' ) : integer |
Checks scalr inbound request rate (req/min) |
|
executeScript ( array $script, Scalr_Messaging_Msg_ExecScript $msg ) : void |
Executes script |
|
getAwsTags ( string $addNameTag = false ) : array |
Return list of tags that should be applied on EC2 resources |
|
getAzureTags ( ) : array |
Return list of tags that should be applied for Azure instances |
|
getFieldPropertyMap ( ) : array |
Gets array of DBServer public fields and db columns |
|
getLaunchReason ( $reasonId ) |
|
|
getNameByConvention ( ) |
|
|
getOpenstackTags ( ) : array |
Return list of tags that should be applied for Openstack instances |
|
getPort ( $portType ) |
|
|
getScalarizrRepository ( ) |
|
|
getServerHistory ( ) : Scalr\Model\Entity\Server\History |
Gets server history object |
|
getSzrHost ( ) |
|
|
getTerminateReason ( integer $reasonId ) : string |
Gets terminate reason |
|
getTerminatingServers ( ) : array |
Gets a list of servers which in the termination process |
|
getType ( ) : string |
Return server flavor (instance type) |
|
isCloudstack ( ) |
|
|
isOpenstack ( ) |
|
|
listByFilter ( array $filter = null ) : array |
Gets a list of servers by filter |
|
load ( $serverinfo ) |
|
|
setOsType ( string $osType ) : DBServer |
Sets OS type |
|
setScalarizrVersion ( $version ) |
|
|
setType ( string $type ) : DBServer |
Sets instance type type |
|
suspend ( string | array $reason, boolean $forcefully = null, Scalr_Account_User | integer $user = null ) |
Marks server as to be suspended. |
|
terminate ( integer | array $reason, boolean $forcefully = null, Scalr_Account_User | integer $user = null ) |
Marks server as to be terminated. |
|
update ( array | Iterator $props ) |
Updates specified properties to database |
|
updateStatus ( string $serverStatus ) : DBServer |
Updates Server status |
|
updateTimelog ( $pointName, $secondsSinceBoot = null, $secondsSinceStart = null ) |
|
|