프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 = "" ) |
public createBackup ( DBFarmRole $dbFarmRole ) | ||
$dbFarmRole | DBFarmRole | DBFarmRole to create backup |
public createDataBundle ( DBFarmRole $dbFarmRole, array $params = [] ) | ||
$dbFarmRole | DBFarmRole | DBFarmRole object to create data bundle |
$params | array | optional Additional parameters |
public extendMessage ( Scalr_Messaging_Msg $message, DBServer $dbServer ) | ||
$message | Scalr_Messaging_Msg | |
$dbServer | DBServer |
public getServerForBackup ( DBFarmRole $dbFarmRole ) : DBServer | null | ||
$dbFarmRole | DBFarmRole | DBFarmRole object to search |
리턴 | DBServer | null | Returns server or null |
public getServerForDataBundle ( DBFarmRole $dbFarmRole, string $useSlave = false ) : DBServer | ||
$dbFarmRole | DBFarmRole | FarmRole object |
$useSlave | string | optional Should it use slave |
리턴 | DBServer | Returns dbserver |
public handleMessage ( Scalr_Messaging_Msg $message, DBServer $dbServer ) | ||
$message | Scalr_Messaging_Msg | |
$dbServer | DBServer |
public makeUpscaleDecision ( DBFarmRole $dbFarmRole ) | ||
$dbFarmRole | DBFarmRole |