public final class HealthStatusBasedScalingPolicy extends AbstractWeightedScalingPolicy implements com.bytex.snamp.supervision.elasticity.HealthStatusBasedScalingPolicy
VOICELESS| Constructor and Description |
|---|
HealthStatusBasedScalingPolicy(double voteWeight,
com.bytex.snamp.connector.health.MalfunctionStatus.Level level) |
HealthStatusBasedScalingPolicy(double voteWeight,
com.bytex.snamp.connector.health.MalfunctionStatus.Level level,
Duration observationTime,
boolean incrementalWeight) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureScriptlet(com.bytex.snamp.configuration.ScriptletConfiguration scriptlet) |
double |
evaluate(ScalingPolicyEvaluationContext context)
Evaluates scaling policy and obtain vote weight.
|
com.bytex.snamp.connector.health.MalfunctionStatus.Level |
getLevel() |
getObservationTime, getVoteWeight, isIncrementalVoteWeight, resetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic HealthStatusBasedScalingPolicy(double voteWeight,
com.bytex.snamp.connector.health.MalfunctionStatus.Level level)
public HealthStatusBasedScalingPolicy(double voteWeight,
com.bytex.snamp.connector.health.MalfunctionStatus.Level level,
Duration observationTime,
boolean incrementalWeight)
public com.bytex.snamp.connector.health.MalfunctionStatus.Level getLevel()
getLevel in interface com.bytex.snamp.supervision.elasticity.HealthStatusBasedScalingPolicypublic void configureScriptlet(com.bytex.snamp.configuration.ScriptletConfiguration scriptlet)
configureScriptlet in interface ScriptletConfigurationSupportpublic double evaluate(ScalingPolicyEvaluationContext context)
context - An object containing all necessary data for voting.Copyright © 2015–2017 Bytex Solutions. All rights reserved.