PHP Class Scalr_Scaling_Manager

Afficher le fichier Open project: scalr/scalr Class Usage Examples

Méthodes publiques

Свойство Type Description
$decisonInfo
$logger

Méthodes publiques

Méthode 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 méthode

Constructor
public __construct ( DBFarmRole $DBFarmRole ) : void
$DBFarmRole DBFarmRole
Résultat void

getFarmRoleMetrics() public méthode

public getFarmRoleMetrics ( )

getFinalDecision() public méthode

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
Résultat string Returns resulting decision

logDecisionInfo() public méthode

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 méthode

Makes a decision to scale farm
public makeScalingDecision ( ) : Scalr_Scaling_Decision
Résultat Scalr_Scaling_Decision

setFarmRoleMetrics() public méthode

public setFarmRoleMetrics ( $metrics )

Property Details

$decisonInfo public_oe property

public $decisonInfo

$logger public_oe property

public $logger