Property | Type | Description | |
---|---|---|---|
$behavior |
Method | Description | |
---|---|---|
__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 ) |
Method | Description | |
---|---|---|
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 getMasterServer ( DBFarmRole $dbFarmRole ) | ||
$dbFarmRole | DBFarmRole |
public getServerForBackup ( DBFarmRole $dbFarmRole ) : DBServer | null | ||
$dbFarmRole | DBFarmRole | DBFarmRole object to search |
return | 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 |
return | DBServer | Returns dbserver |
public handleMessage ( Scalr_Messaging_Msg $message, DBServer $dbServer ) | ||
$message | Scalr_Messaging_Msg | |
$dbServer | DBServer |
public makeUpscaleDecision ( DBFarmRole $dbFarmRole ) | ||
$dbFarmRole | DBFarmRole |
public onFarmTerminated ( DBFarmRole $dbFarmRole ) | ||
$dbFarmRole | DBFarmRole |