PHP 클래스 Scalr_Scaling_Manager

파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$decisonInfo
$logger

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( DBFarmRole $DBFarmRole ) : void
$DBFarmRole DBFarmRole
리턴 void

getFarmRoleMetrics() 공개 메소드

public getFarmRoleMetrics ( )

getFinalDecision() 공개 메소드

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
리턴 string Returns resulting decision

logDecisionInfo() 공개 메소드

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() 공개 메소드

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

setFarmRoleMetrics() 공개 메소드

public setFarmRoleMetrics ( $metrics )

프로퍼티 상세

$decisonInfo 공개적으로 프로퍼티

public $decisonInfo

$logger 공개적으로 프로퍼티

public $logger