PHP 클래스 DBFarmRole

파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
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 ( )

비공개 메소드들

메소드 설명
Unbind ( )

메소드 상세

ClearSettings() 공개 메소드

public ClearSettings ( $filter = "" )

GetAllSettings() 공개 메소드

Returns all role settings
public GetAllSettings ( ) : unknown_type
리턴 unknown_type

GetFarmObject() 공개 메소드

Returns DBFarm Object
public GetFarmObject ( ) : DBFarm
리턴 DBFarm

GetPendingInstancesCount() 공개 메소드

GetRoleID() 공개 메소드

Returns role prototype
public GetRoleID ( ) : string
리턴 string

GetRoleObject() 공개 메소드

public GetRoleObject ( ) : DBRole
리턴 DBRole

GetRunningInstancesCount() 공개 메소드

GetServersByFilter() 공개 메소드

public GetServersByFilter ( $filter_args = [], $ufilter_args = [] )

GetServiceConfiguration2() 공개 메소드

public GetServiceConfiguration2 ( $behavior )

GetSetting() 공개 메소드

Get Role setting by name
public GetSetting ( string $name ) : mixed
$name string
리턴 mixed

GetSettingsByFilter() 공개 메소드

public GetSettingsByFilter ( $filter = "" )

GetSuspendedInstancesCount() 공개 메소드

Load() 공개 정적인 메소드

Load DBInstance by database id
public static Load ( $farmid, $roleid, $cloudLocation ) : DBFarmRole
리턴 DBFarmRole

LoadByID() 공개 정적인 메소드

Returns DBFarmRole object by id
public static LoadByID ( $id ) : DBFarmRole
$id
리턴 DBFarmRole

Save() 공개 메소드

public Save ( )

SetScripts() 공개 메소드

public SetScripts ( array $scripts, array $params = [] )
$scripts array
$params array

SetServiceConfiguration() 공개 메소드

public SetServiceConfiguration ( $behavior, $config )

SetSetting() 공개 메소드

Set farm role setting
public SetSetting ( string $name, string | null $value, string $type = null ) : void
$name string The name of the setting
$value string | null The value of the setting
$type string optional
리턴 void

__construct() 공개 메소드

Constructor
public __construct ( $farm_roleid ) : void
리턴 void

__sleep() 공개 메소드

public __sleep ( )

__wakeup() 공개 메소드

public __wakeup ( )

applyDefinition() 공개 메소드

public applyDefinition ( $definition, $reset = false )

applyGlobalVarsToValue() 공개 메소드

Apply FarmRole global variables to a value
public applyGlobalVarsToValue ( $value ) : string
리턴 string

getChefSettings() 공개 메소드

public getChefSettings ( )

getDefinition() 공개 메소드

public getDefinition ( )

getFarmStatus() 공개 메소드

Gets the status of the farm which corresponds to the farm role
public getFarmStatus ( ) : integer | null
리턴 integer | null Returns the status of the farm which corresponds to the farm role. It returns NULL if farm does not exist.

getInstanceType() 공개 메소드

Returns instance type id
public getInstanceType ( ) : mixed
리턴 mixed

getReplacementRoles() 공개 메소드

public getReplacementRoles ( $includeSelf = false )

getStorage() 공개 메소드

public getStorage ( ) : Scalr\Farm\Role\FarmRoleStorage
리턴 Scalr\Farm\Role\FarmRoleStorage

isCloudstack() 공개 메소드

public isCloudstack ( )

isOpenstack() 공개 메소드

public isOpenstack ( )

프로퍼티 상세

$Alias 공개적으로 프로퍼티

NOTE: Settings constants moved to Entity\FarmRoleSetting
public $Alias

$CloudLocation 공개적으로 프로퍼티

NOTE: Settings constants moved to Entity\FarmRoleSetting
public $CloudLocation

$FarmID 공개적으로 프로퍼티

NOTE: Settings constants moved to Entity\FarmRoleSetting
public $FarmID

$ID 공개적으로 프로퍼티

NOTE: Settings constants moved to Entity\FarmRoleSetting
public $ID

$LaunchIndex 공개적으로 프로퍼티

NOTE: Settings constants moved to Entity\FarmRoleSetting
public $LaunchIndex

$Platform 공개적으로 프로퍼티

NOTE: Settings constants moved to Entity\FarmRoleSetting
public $Platform

$RoleID 공개적으로 프로퍼티

NOTE: Settings constants moved to Entity\FarmRoleSetting
public $RoleID