Property | Type | Description | |
---|---|---|---|
$Alias | NOTE: Settings constants moved to Entity\FarmRoleSetting | ||
$CloudLocation | NOTE: Settings constants moved to Entity\FarmRoleSetting | ||
$FarmID | NOTE: Settings constants moved to Entity\FarmRoleSetting | ||
$ID | NOTE: Settings constants moved to Entity\FarmRoleSetting | ||
$LaunchIndex | NOTE: Settings constants moved to Entity\FarmRoleSetting | ||
$Platform | NOTE: Settings constants moved to Entity\FarmRoleSetting | ||
$RoleID | NOTE: Settings constants moved to Entity\FarmRoleSetting |
Method | Description | |
---|---|---|
ClearSettings ( $filter = "" ) | ||
GetAllSettings ( ) : unknown_type | Returns all role settings | |
GetFarmObject ( ) : DBFarm | Returns DBFarm Object | |
GetPendingInstancesCount ( ) | ||
GetRoleID ( ) : string | Returns role prototype | |
GetRoleObject ( ) : DBRole | ||
GetRunningInstancesCount ( ) | ||
GetServersByFilter ( $filter_args = [], $ufilter_args = [] ) | ||
GetServiceConfiguration2 ( $behavior ) | ||
GetSetting ( string $name ) : mixed | Get Role setting by name | |
GetSettingsByFilter ( $filter = "" ) | ||
GetSuspendedInstancesCount ( ) | ||
Load ( $farmid, $roleid, $cloudLocation ) : DBFarmRole | Load DBInstance by database id | |
LoadByID ( $id ) : DBFarmRole | Returns DBFarmRole object by id | |
Save ( ) | ||
SetScripts ( array $scripts, array $params = [] ) | ||
SetServiceConfiguration ( $behavior, $config ) | ||
SetSetting ( string $name, string | null $value, string $type = null ) : void | Set farm role setting | |
__construct ( $farm_roleid ) : void | Constructor | |
__sleep ( ) | ||
__wakeup ( ) | ||
applyDefinition ( $definition, $reset = false ) | ||
applyGlobalVarsToValue ( $value ) : string | Apply FarmRole global variables to a value | |
getChefSettings ( ) | ||
getDefinition ( ) | ||
getFarmStatus ( ) : integer | null | Gets the status of the farm which corresponds to the farm role | |
getInstanceType ( ) : mixed | Returns instance type id | |
getReplacementRoles ( $includeSelf = false ) | ||
getStorage ( ) : Scalr\Farm\Role\FarmRoleStorage | ||
isCloudstack ( ) | ||
isOpenstack ( ) |
Method | Description | |
---|---|---|
Unbind ( ) |
public GetAllSettings ( ) : unknown_type | ||
return | unknown_type |
public GetServersByFilter ( $filter_args = [], $ufilter_args = [] ) |
public GetSetting ( string $name ) : mixed | ||
$name | string | |
return | mixed |
public static Load ( $farmid, $roleid, $cloudLocation ) : DBFarmRole | ||
return | DBFarmRole |
public static LoadByID ( $id ) : DBFarmRole | ||
$id | ||
return | DBFarmRole |
public SetScripts ( array $scripts, array $params = [] ) | ||
$scripts | array | |
$params | array |
public applyGlobalVarsToValue ( $value ) : string | ||
return | string |
public getFarmStatus ( ) : integer | null | ||
return | integer | null | Returns the status of the farm which corresponds to the farm role. It returns NULL if farm does not exist. |
public getInstanceType ( ) : mixed | ||
return | mixed |
public getStorage ( ) : Scalr\Farm\Role\FarmRoleStorage | ||
return | Scalr\Farm\Role\FarmRoleStorage |
public $CloudLocation |
public $LaunchIndex |