PHP 클래스 Scalr\Model\Entity\FarmRole

저자: N.V.
상속: extends Scalr\Model\AbstractEntity, implements Scalr\DataType\AccessPermissionsInterface
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$alias string Farm alias
$cloudLocation string Cloud location
$farmId integer Farm Id
$id integer Identifier
$lastSync DateTime Time of last synchronization
$launchIndex integer launch index
$launchTimeout integer Launch timeout
$platform string Role platform
$rebootTimeout integer Reboot timeout
$roleId integer Role Id
$statusTimeout integer Status refresh timeout

보호된 프로퍼티들

프로퍼티 타입 설명
$_farm Farm Farm entity
$_farmRoleMetrics FarmRoleScalingMetric[] The list of farm role scaling metrics
$_image Image Image entity
$_role Role Role entity
$_settings Scalr\Model\Collections\SettingsCollection Farm role settings collection

공개 메소드들

메소드 설명
__get ( string $name ) : mixed Magic getter.
delete ( )
deleteScheduled ( ) Deletes scheduled tasks
getCloudTags ( boolean $addNameTag = false ) : array This method was done for server import, but it has been already refactored in SCALRCORE-2867.
getFarm ( ) : Farm | null Get Farm entity
getImage ( ) : Image | null Gets the Image Entity
getRole ( ) : Role | null Get Role entity
getServerImport ( User $user ) : AbstractServerImport Return ServerImport class
hasAccessPermissions ( $user, $environment = null, $modify = null )
listFarmRoleMetric ( integer $farmRoleId ) : array Get a list of names farm-role scaling metrics.
save ( )
setupAlias ( ) Setups farm role alias
setupAnalytics ( ) Setups farm role analytics tags
setupBehaviors ( ) Setups farm role settings related to role behaviors
setupPolling ( ) Setups polling settings
setupRole ( )
setupScaling ( ) Setups farm role scaling settings
terminateServers ( ) Terminates servers used this farm role

메소드 상세

__get() 공개 메소드

Gets the values of the properties that require initialization.
public __get ( string $name ) : mixed
$name string Name of property that is accessed
리턴 mixed Returns property value

delete() 공개 메소드

또한 보기: AbstractEntity::delete()
public delete ( )

deleteScheduled() 공개 메소드

Deletes scheduled tasks
public deleteScheduled ( )

getCloudTags() 공개 메소드

Return list of tags that should be applied on cloud resources. GV interpolation IS NOT applied on it yet.
public getCloudTags ( boolean $addNameTag = false ) : array
$addNameTag boolean optional If true add tag Name (on EC2 cloud)
리턴 array Return list of tags [key => value]

getFarm() 공개 메소드

Get Farm entity
public getFarm ( ) : Farm | null
리턴 Farm | null

getImage() 공개 메소드

Gets the Image Entity
public getImage ( ) : Image | null
리턴 Image | null Returns the Image that corresponds to the Server

getRole() 공개 메소드

Get Role entity
public getRole ( ) : Role | null
리턴 Role | null

getServerImport() 공개 메소드

Return ServerImport class
public getServerImport ( User $user ) : AbstractServerImport
$user Scalr\Model\Entity\Account\User
리턴 Scalr\Server\Import\AbstractServerImport

hasAccessPermissions() 공개 메소드

또한 보기: AccessPermissionsInterface::hasAccessPermissions()
public hasAccessPermissions ( $user, $environment = null, $modify = null )

listFarmRoleMetric() 공개 정적인 메소드

Get a list of names farm-role scaling metrics.
public static listFarmRoleMetric ( integer $farmRoleId ) : array
$farmRoleId integer farm-role identifier
리턴 array

save() 공개 메소드

또한 보기: AbstractEntity::save()
public save ( )

setupAlias() 공개 메소드

Setups farm role alias
public setupAlias ( )

setupAnalytics() 공개 메소드

Setups farm role analytics tags
public setupAnalytics ( )

setupBehaviors() 공개 메소드

Setups farm role settings related to role behaviors
public setupBehaviors ( )

setupPolling() 공개 메소드

Setups polling settings
public setupPolling ( )

setupRole() 공개 메소드

public setupRole ( )

setupScaling() 공개 메소드

Setups farm role scaling settings
public setupScaling ( )

terminateServers() 공개 메소드

Terminates servers used this farm role
public terminateServers ( )

프로퍼티 상세

$_farm 보호되어 있는 프로퍼티

Farm entity
protected Farm,Scalr\Model\Entity $_farm
리턴 Farm

$_farmRoleMetrics 보호되어 있는 프로퍼티

The list of farm role scaling metrics
protected FarmRoleScalingMetric[],Scalr\Model\Entity $_farmRoleMetrics
리턴 FarmRoleScalingMetric[]

$_image 보호되어 있는 프로퍼티

Image entity
protected Image,Scalr\Model\Entity $_image
리턴 Image

$_role 보호되어 있는 프로퍼티

Role entity
protected Role,Scalr\Model\Entity $_role
리턴 Role

$_settings 보호되어 있는 프로퍼티

Farm role settings collection
protected SettingsCollection,Scalr\Model\Collections $_settings
리턴 Scalr\Model\Collections\SettingsCollection

$alias 공개적으로 프로퍼티

Farm alias
public string $alias
리턴 string

$cloudLocation 공개적으로 프로퍼티

Cloud location
public string $cloudLocation
리턴 string

$farmId 공개적으로 프로퍼티

Farm Id
public int $farmId
리턴 integer

$id 공개적으로 프로퍼티

Identifier
public int $id
리턴 integer

$lastSync 공개적으로 프로퍼티

Time of last synchronization
public DateTime $lastSync
리턴 DateTime

$launchIndex 공개적으로 프로퍼티

launch index
public int $launchIndex
리턴 integer

$launchTimeout 공개적으로 프로퍼티

Launch timeout
public int $launchTimeout
리턴 integer

$platform 공개적으로 프로퍼티

Role platform
public string $platform
리턴 string

$rebootTimeout 공개적으로 프로퍼티

Reboot timeout
public int $rebootTimeout
리턴 integer

$roleId 공개적으로 프로퍼티

Role Id
public int $roleId
리턴 integer

$statusTimeout 공개적으로 프로퍼티

Status refresh timeout
public int $statusTimeout
리턴 integer