Property | Type | Description | |
---|---|---|---|
$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 |
Property | Type | Description | |
---|---|---|---|
$_farm | Farm entity | ||
$_farmRoleMetrics | The list of farm role scaling metrics | ||
$_image | Image entity | ||
$_role | Role entity | ||
$_settings | Farm role settings collection |
Method | Description | |
---|---|---|
__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 ( ) : |
Get Farm entity | |
getImage ( ) : |
Gets the Image Entity | |
getRole ( ) : |
Get Role entity | |
getServerImport ( |
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 |
public getCloudTags ( boolean $addNameTag = false ) : array | ||
$addNameTag | boolean | optional If true add tag Name (on EC2 cloud) |
return | array | Return list of tags [key => value] |
public getServerImport ( |
||
$user | ||
return |
public hasAccessPermissions ( $user, $environment = null, $modify = null ) |
public static listFarmRoleMetric ( integer $farmRoleId ) : array | ||
$farmRoleId | integer | farm-role identifier |
return | array |
public setupBehaviors ( ) |
protected FarmRoleScalingMetric[],Scalr\Model\Entity $_farmRoleMetrics | ||
return |
protected SettingsCollection,Scalr\Model\Collections $_settings | ||
return |