PHP Class Scalr_Scaling_Manager

ファイルを表示 Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$decisonInfo
$logger

Public Methods

Method Description
__construct ( DBFarmRole $DBFarmRole ) : void Constructor
getFarmRoleMetrics ( )
getFinalDecision ( string $scalingMetricDecision = null, integer $scalingMetricInstancesCount = null ) : string Makes decision on farm basic scaling settings
logDecisionInfo ( string $scalingMetricDecision, string $scalingMetricName, $details = null ) Logging information about decision
makeScalingDecision ( ) : Scalr_Scaling_Decision Makes a decision to scale farm
setFarmRoleMetrics ( $metrics )

Method Details

__construct() public method

Constructor
public __construct ( DBFarmRole $DBFarmRole ) : void
$DBFarmRole DBFarmRole
return void

getFarmRoleMetrics() public method

public getFarmRoleMetrics ( )

getFinalDecision() public method

Makes decision on farm basic scaling settings
public getFinalDecision ( string $scalingMetricDecision = null, integer $scalingMetricInstancesCount = null ) : string
$scalingMetricDecision string optional Decision taken on metrics
$scalingMetricInstancesCount integer optional Scaling amount
return string Returns resulting decision

logDecisionInfo() public method

Logging information about decision
public logDecisionInfo ( string $scalingMetricDecision, string $scalingMetricName, $details = null )
$scalingMetricDecision string Scaling decision
$scalingMetricName string Name of metric by which a decision was made

makeScalingDecision() public method

Makes a decision to scale farm
public makeScalingDecision ( ) : Scalr_Scaling_Decision
return Scalr_Scaling_Decision

setFarmRoleMetrics() public method

public setFarmRoleMetrics ( $metrics )

Property Details

$decisonInfo public_oe property

public $decisonInfo

$logger public_oe property

public $logger