PHP 클래스 Scalr_Role_Behavior

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

공개 프로퍼티들

프로퍼티 타입 설명
$db ADODB_mysqli

보호된 프로퍼티들

프로퍼티 타입 설명
$behavior
$crypto Scalr\Util\CryptoTool

공개 메소드들

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

보호된 메소드들

메소드 설명
getCrypto ( ) : Scalr\Util\CryptoTool

메소드 상세

__construct() 공개 메소드

public __construct ( $behavior = ROLE_BEHAVIORS::BASE )

extendMessage() 공개 메소드

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

getBaseConfiguration() 공개 메소드

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

getConfiguration() 공개 메소드

public getConfiguration ( DBServer $dbServer )
$dbServer DBServer

getCrypto() 보호된 메소드

protected getCrypto ( ) : Scalr\Util\CryptoTool
리턴 Scalr\Util\CryptoTool

getDnsRecords() 공개 메소드

public getDnsRecords ( DBServer $dbServer )
$dbServer DBServer

getListForFarmRole() 공개 정적인 메소드

..
public static getListForFarmRole ( DBFarmRole $farmRole ) : Scalr_Role_Behavior[]
$farmRole DBFarmRole
리턴 Scalr_Role_Behavior[]

getListForRole() 공개 정적인 메소드

..
public static getListForRole ( DBRole $role ) : Scalr_Role_Behavior[]
$role DBRole
리턴 Scalr_Role_Behavior[]

getSecurityRules() 공개 메소드

public getSecurityRules ( )

getSnapshotConfig() 공개 메소드

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

getVolumeConfig() 공개 메소드

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

handleMessage() 공개 메소드

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

loadByName() 공개 정적인 메소드

public static loadByName ( unknown_type $name ) : Scalr_Role_Behavior
$name unknown_type
리턴 Scalr_Role_Behavior

makeUpscaleDecision() 공개 메소드

public makeUpscaleDecision ( DBFarmRole $dbFarmRole )
$dbFarmRole DBFarmRole

onBeforeHostTerminate() 공개 메소드

public onBeforeHostTerminate ( DBServer $dbServer )
$dbServer DBServer

onBeforeInstanceLaunch() 공개 메소드

public onBeforeInstanceLaunch ( DBServer $dbServer )
$dbServer DBServer

onFarmSave() 공개 메소드

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

onFarmTerminated() 공개 메소드

public onFarmTerminated ( DBFarmRole $dbFarmRole )
$dbFarmRole DBFarmRole

onHostDown() 공개 메소드

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

setSnapshotConfig() 공개 메소드

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

setVolumeConfig() 공개 메소드

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

setupBehavior() 공개 정적인 메소드

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

프로퍼티 상세

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

protected $behavior

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

protected CryptoTool,Scalr\Util $crypto
리턴 Scalr\Util\CryptoTool

$db 공개적으로 프로퍼티

public ADODB_mysqli $db
리턴 ADODB_mysqli