Свойство | Type | Description | |
---|---|---|---|
$db | ADODB_mysqli |
Свойство | Type | Description | |
---|---|---|---|
$behavior | |||
$crypto | Scalr\Util\CryptoTool |
Méthode | Description | |
---|---|---|
__construct ( $behavior = ROLE_BEHAVIORS::BASE ) | ||
extendMessage ( Scalr_Messaging_Msg $message, DBServer $dbServer ) | ||
getBaseConfiguration ( DBServer $dbServer, $isHostInit = false, $onlyBase = false ) | ||
getConfiguration ( DBServer $dbServer ) | ||
getDnsRecords ( DBServer $dbServer ) | ||
getListForFarmRole ( DBFarmRole $farmRole ) : Scalr_Role_Behavior[] | Enter description here . | |
getListForRole ( DBRole $role ) : Scalr_Role_Behavior[] | Enter description here . | |
getSecurityRules ( ) | ||
getSnapshotConfig ( DBFarmRole $dbFarmRole, DBServer $dbServer ) | ||
getVolumeConfig ( DBFarmRole $dbFarmRole, DBServer $dbServer ) | ||
handleMessage ( Scalr_Messaging_Msg $message, DBServer $dbServer ) | Handle message from scalarizr | |
loadByName ( unknown_type $name ) : Scalr_Role_Behavior | ||
makeUpscaleDecision ( DBFarmRole $dbFarmRole ) | ||
onBeforeHostTerminate ( DBServer $dbServer ) | ||
onBeforeInstanceLaunch ( DBServer $dbServer ) | ||
onFarmSave ( DBFarm $dbFarm, DBFarmRole $dbFarmRole ) | ||
onFarmTerminated ( DBFarmRole $dbFarmRole ) | ||
onHostDown ( DBServer $dbServer, HostDownEvent $event ) | OnHostDown handler | |
setSnapshotConfig ( $snapshotConfig, DBFarmRole $dbFarmRole, DBServer $dbServer ) | ||
setVolumeConfig ( $volumeConfig, DBFarmRole $dbFarmRole, DBServer $dbServer ) | ||
setupBehavior ( |
Setups farm role settings related to this behavior |
Méthode | Description | |
---|---|---|
getCrypto ( ) : Scalr\Util\CryptoTool |
public extendMessage ( Scalr_Messaging_Msg $message, DBServer $dbServer ) | ||
$message | Scalr_Messaging_Msg | |
$dbServer | DBServer |
public getBaseConfiguration ( DBServer $dbServer, $isHostInit = false, $onlyBase = false ) | ||
$dbServer | DBServer |
protected getCrypto ( ) : Scalr\Util\CryptoTool | ||
Résultat | Scalr\Util\CryptoTool |
public static getListForFarmRole ( DBFarmRole $farmRole ) : Scalr_Role_Behavior[] | ||
$farmRole | DBFarmRole | |
Résultat | Scalr_Role_Behavior[] |
public static getListForRole ( DBRole $role ) : Scalr_Role_Behavior[] | ||
$role | DBRole | |
Résultat | Scalr_Role_Behavior[] |
public getSnapshotConfig ( DBFarmRole $dbFarmRole, DBServer $dbServer ) | ||
$dbFarmRole | DBFarmRole | |
$dbServer | DBServer |
public getVolumeConfig ( DBFarmRole $dbFarmRole, DBServer $dbServer ) | ||
$dbFarmRole | DBFarmRole | |
$dbServer | DBServer |
public handleMessage ( Scalr_Messaging_Msg $message, DBServer $dbServer ) | ||
$message | Scalr_Messaging_Msg | |
$dbServer | DBServer |
public static loadByName ( unknown_type $name ) : Scalr_Role_Behavior | ||
$name | unknown_type | |
Résultat | Scalr_Role_Behavior |
public makeUpscaleDecision ( DBFarmRole $dbFarmRole ) | ||
$dbFarmRole | DBFarmRole |
public onBeforeHostTerminate ( DBServer $dbServer ) | ||
$dbServer | DBServer |
public onBeforeInstanceLaunch ( DBServer $dbServer ) | ||
$dbServer | DBServer |
public onFarmSave ( DBFarm $dbFarm, DBFarmRole $dbFarmRole ) | ||
$dbFarm | DBFarm | |
$dbFarmRole | DBFarmRole |
public onFarmTerminated ( DBFarmRole $dbFarmRole ) | ||
$dbFarmRole | DBFarmRole |
public onHostDown ( DBServer $dbServer, HostDownEvent $event ) | ||
$dbServer | DBServer | DBServer instance |
$event | HostDownEvent | Event |
public setSnapshotConfig ( $snapshotConfig, DBFarmRole $dbFarmRole, DBServer $dbServer ) | ||
$dbFarmRole | DBFarmRole | |
$dbServer | DBServer |
public setVolumeConfig ( $volumeConfig, DBFarmRole $dbFarmRole, DBServer $dbServer ) | ||
$dbFarmRole | DBFarmRole | |
$dbServer | DBServer |
public static setupBehavior ( |
||
$farmRole | Farm-role to which setting behavior |
protected CryptoTool,Scalr\Util $crypto | ||
Résultat | Scalr\Util\CryptoTool |