PHP Class Scalr_Role_Behavior

Afficher le fichier Open project: scalr/scalr Class Usage Examples

Méthodes publiques

Свойство Type Description
$db ADODB_mysqli

Protected Properties

Свойство Type Description
$behavior
$crypto Scalr\Util\CryptoTool

Méthodes publiques

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 ( FarmRole $farmRole ) Setups farm role settings related to this behavior

Méthodes protégées

Méthode Description
getCrypto ( ) : Scalr\Util\CryptoTool

Method Details

__construct() public méthode

public __construct ( $behavior = ROLE_BEHAVIORS::BASE )

extendMessage() public méthode

public extendMessage ( Scalr_Messaging_Msg $message, DBServer $dbServer )
$message Scalr_Messaging_Msg
$dbServer DBServer

getBaseConfiguration() public méthode

public getBaseConfiguration ( DBServer $dbServer, $isHostInit = false, $onlyBase = false )
$dbServer DBServer

getConfiguration() public méthode

public getConfiguration ( DBServer $dbServer )
$dbServer DBServer

getCrypto() protected méthode

protected getCrypto ( ) : Scalr\Util\CryptoTool
Résultat Scalr\Util\CryptoTool

getDnsRecords() public méthode

public getDnsRecords ( DBServer $dbServer )
$dbServer DBServer

getListForFarmRole() public static méthode

..
public static getListForFarmRole ( DBFarmRole $farmRole ) : Scalr_Role_Behavior[]
$farmRole DBFarmRole
Résultat Scalr_Role_Behavior[]

getListForRole() public static méthode

..
public static getListForRole ( DBRole $role ) : Scalr_Role_Behavior[]
$role DBRole
Résultat Scalr_Role_Behavior[]

getSecurityRules() public méthode

public getSecurityRules ( )

getSnapshotConfig() public méthode

public getSnapshotConfig ( DBFarmRole $dbFarmRole, DBServer $dbServer )
$dbFarmRole DBFarmRole
$dbServer DBServer

getVolumeConfig() public méthode

public getVolumeConfig ( DBFarmRole $dbFarmRole, DBServer $dbServer )
$dbFarmRole DBFarmRole
$dbServer DBServer

handleMessage() public méthode

Handle message from scalarizr
public handleMessage ( Scalr_Messaging_Msg $message, DBServer $dbServer )
$message Scalr_Messaging_Msg
$dbServer DBServer

loadByName() public static méthode

public static loadByName ( unknown_type $name ) : Scalr_Role_Behavior
$name unknown_type
Résultat Scalr_Role_Behavior

makeUpscaleDecision() public méthode

public makeUpscaleDecision ( DBFarmRole $dbFarmRole )
$dbFarmRole DBFarmRole

onBeforeHostTerminate() public méthode

public onBeforeHostTerminate ( DBServer $dbServer )
$dbServer DBServer

onBeforeInstanceLaunch() public méthode

public onBeforeInstanceLaunch ( DBServer $dbServer )
$dbServer DBServer

onFarmSave() public méthode

public onFarmSave ( DBFarm $dbFarm, DBFarmRole $dbFarmRole )
$dbFarm DBFarm
$dbFarmRole DBFarmRole

onFarmTerminated() public méthode

public onFarmTerminated ( DBFarmRole $dbFarmRole )
$dbFarmRole DBFarmRole

onHostDown() public méthode

OnHostDown handler
public onHostDown ( DBServer $dbServer, HostDownEvent $event )
$dbServer DBServer DBServer instance
$event HostDownEvent Event

setSnapshotConfig() public méthode

public setSnapshotConfig ( $snapshotConfig, DBFarmRole $dbFarmRole, DBServer $dbServer )
$dbFarmRole DBFarmRole
$dbServer DBServer

setVolumeConfig() public méthode

public setVolumeConfig ( $volumeConfig, DBFarmRole $dbFarmRole, DBServer $dbServer )
$dbFarmRole DBFarmRole
$dbServer DBServer

setupBehavior() public static méthode

Setups farm role settings related to this behavior
public static setupBehavior ( FarmRole $farmRole )
$farmRole Scalr\Model\Entity\FarmRole Farm-role to which setting behavior

Property Details

$behavior protected_oe property

protected $behavior

$crypto protected_oe property

protected CryptoTool,Scalr\Util $crypto
Résultat Scalr\Util\CryptoTool

$db public_oe property

public ADODB_mysqli $db
Résultat ADODB_mysqli