public final class AttributeBasedScalingPolicy extends AbstractWeightedScalingPolicy implements com.bytex.snamp.supervision.elasticity.AttributeBasedScalingPolicy
VOICELESS| Constructor and Description |
|---|
AttributeBasedScalingPolicy(String attributeName,
double voteWeight,
com.google.common.collect.Range<Double> operationalRange) |
AttributeBasedScalingPolicy(String attributeName,
double voteWeight,
com.google.common.collect.Range<Double> operationalRange,
Duration analysisDepth) |
AttributeBasedScalingPolicy(String attributeName,
double voteWeight,
com.google.common.collect.Range<Double> operationalRange,
Duration observationTime,
com.bytex.snamp.moa.ReduceOperation aggregator,
boolean incrementalWeight,
Duration analysisDepth) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureScriptlet(com.bytex.snamp.configuration.ScriptletConfiguration scriptlet) |
double |
evaluate(ScalingPolicyEvaluationContext context)
Performs voting.
|
com.bytex.snamp.moa.ReduceOperation |
getAggregator() |
Duration |
getAnalysisDepth() |
String |
getAttributeName() |
com.google.common.collect.Range<Double> |
getOperationalRange() |
com.google.common.collect.Range<Double> |
getRecommendation()
Gets advice about more optimal operational range.
|
void |
reset()
Resets internal state of the object.
|
getObservationTime, getVoteWeight, isIncrementalVoteWeightpublic AttributeBasedScalingPolicy(String attributeName, double voteWeight, com.google.common.collect.Range<Double> operationalRange, Duration observationTime, com.bytex.snamp.moa.ReduceOperation aggregator, boolean incrementalWeight, Duration analysisDepth)
public AttributeBasedScalingPolicy(String attributeName, double voteWeight, com.google.common.collect.Range<Double> operationalRange, Duration analysisDepth)
public Duration getAnalysisDepth()
@Nonnull public com.google.common.collect.Range<Double> getRecommendation()
getRecommendation in interface com.bytex.snamp.supervision.elasticity.AttributeBasedScalingPolicy@Nonnull public String getAttributeName()
getAttributeName in interface com.bytex.snamp.supervision.elasticity.AttributeBasedScalingPolicy@Nonnull public com.google.common.collect.Range<Double> getOperationalRange()
getOperationalRange in interface com.bytex.snamp.supervision.elasticity.AttributeBasedScalingPolicy@Nonnull public com.bytex.snamp.moa.ReduceOperation getAggregator()
getAggregator in interface com.bytex.snamp.supervision.elasticity.AttributeBasedScalingPolicypublic void reset()
reset in interface com.bytex.snamp.Statefulreset in class AbstractWeightedScalingPolicypublic double evaluate(ScalingPolicyEvaluationContext context)
context - An object containing all necessary data for voting by this voter.public void configureScriptlet(com.bytex.snamp.configuration.ScriptletConfiguration scriptlet)
configureScriptlet in interface ScriptletConfigurationSupportCopyright © 2015–2017 Bytex Solutions. All rights reserved.