Property | Type | Description | |
---|---|---|---|
$db | ADODB_mysqli | ||
$farmRole |
Method | Description | |
---|---|---|
__construct ( DBFarmRol\DBFarmRole $dbFarmRole ) | ||
getConfigs ( ) : |
||
getVolumes ( $serverIndex = null ) | ||
getVolumesConfigs ( DBServe\DBServer $dbServer, $isHostInit = true ) | ||
setConfigs ( array $configs, boolean $validate = true ) | Save storage configs | |
setVolumes ( DBServe\DBServer $server, $volumes ) | * | |
validateConfigs ( array $configs ) : array | Validate storage configs |
public __construct ( DBFarmRol\DBFarmRole $dbFarmRole ) | ||
$dbFarmRole | DBFarmRol\DBFarmRole |
public getConfigs ( ) : |
||
return |
public getVolumesConfigs ( DBServe\DBServer $dbServer, $isHostInit = true ) | ||
$dbServer | DBServe\DBServer |
public setConfigs ( array $configs, boolean $validate = true ) | ||
$configs | array | Array of storage config |
$validate | boolean | optional If true validate config before save |
public setVolumes ( DBServe\DBServer $server, $volumes ) | ||
$server | DBServe\DBServer |
public validateConfigs ( array $configs ) : array | ||
$configs | array | Array of storage configs, structure is defined in FarmRoleStorageConfig::apply |
return | array | Array of errors [index => error message] or empty array if configs are valid |