PHP 클래스 Scalr_Role_DbMsrBehavior

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

보호된 프로퍼티들

프로퍼티 타입 설명
$behavior

공개 메소드들

메소드 설명
__construct ( $behaviorName )
createBackup ( DBFarmRole $dbFarmRole ) Creates backup
createDataBundle ( DBFarmRole $dbFarmRole, array $params = [] ) Creates data bundle
extendMessage ( Scalr_Messaging_Msg $message, DBServer $dbServer )
getMasterServer ( DBFarmRole $dbFarmRole )
getServerForBackup ( DBFarmRole $dbFarmRole ) : DBServer | null Retrieves server for backup
getServerForDataBundle ( DBFarmRole $dbFarmRole, string $useSlave = false ) : DBServer Retrieves server to create data bundle
handleMessage ( Scalr_Messaging_Msg $message, DBServer $dbServer )
makeUpscaleDecision ( DBFarmRole $dbFarmRole )
onFarmTerminated ( DBFarmRole $dbFarmRole )

비공개 메소드들

메소드 설명
updateBackupHistory ( DBServer $dbServer, $operation, $status, $error = "" )

메소드 상세

__construct() 공개 메소드

public __construct ( $behaviorName )

createBackup() 공개 메소드

Creates backup
public createBackup ( DBFarmRole $dbFarmRole )
$dbFarmRole DBFarmRole DBFarmRole to create backup

createDataBundle() 공개 메소드

Creates data bundle
public createDataBundle ( DBFarmRole $dbFarmRole, array $params = [] )
$dbFarmRole DBFarmRole DBFarmRole object to create data bundle
$params array optional Additional parameters

extendMessage() 공개 메소드

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

getMasterServer() 공개 메소드

public getMasterServer ( DBFarmRole $dbFarmRole )
$dbFarmRole DBFarmRole

getServerForBackup() 공개 메소드

Retrieves server for backup
public getServerForBackup ( DBFarmRole $dbFarmRole ) : DBServer | null
$dbFarmRole DBFarmRole DBFarmRole object to search
리턴 DBServer | null Returns server or null

getServerForDataBundle() 공개 메소드

Retrieves server to create data bundle
public getServerForDataBundle ( DBFarmRole $dbFarmRole, string $useSlave = false ) : DBServer
$dbFarmRole DBFarmRole FarmRole object
$useSlave string optional Should it use slave
리턴 DBServer Returns dbserver

handleMessage() 공개 메소드

또한 보기: Scalr_Role_Behavior::handleMessage()
public handleMessage ( Scalr_Messaging_Msg $message, DBServer $dbServer )
$message Scalr_Messaging_Msg
$dbServer DBServer

makeUpscaleDecision() 공개 메소드

public makeUpscaleDecision ( DBFarmRole $dbFarmRole )
$dbFarmRole DBFarmRole

onFarmTerminated() 공개 메소드

public onFarmTerminated ( DBFarmRole $dbFarmRole )
$dbFarmRole DBFarmRole

프로퍼티 상세

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

protected $behavior