public abstract class DeviationShedder extends Object implements LoadSheddingStrategy
| Modifier and Type | Field and Description |
|---|---|
protected TreeSet<org.apache.commons.lang3.tuple.Pair<Double,String>> |
bundleTreeSetCache |
protected TreeSet<org.apache.commons.lang3.tuple.Pair<Double,String>> |
metricTreeSetCache |
| Constructor and Description |
|---|
DeviationShedder()
Initialize this DeviationShedder.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract double |
brokerValue(BrokerData brokerData,
ServiceConfiguration conf) |
protected abstract double |
bundleValue(String bundle,
BrokerData brokerData,
ServiceConfiguration conf) |
com.google.common.collect.Multimap<String,String> |
findBundlesForUnloading(LoadData loadData,
ServiceConfiguration conf)
Recommend that all of the returned bundles be unloaded based on observing excessive standard deviations according
to some metric.
|
protected abstract double |
getDeviationThreshold(ServiceConfiguration conf) |
protected TreeSet<org.apache.commons.lang3.tuple.Pair<Double,String>> metricTreeSetCache
protected abstract double bundleValue(String bundle, BrokerData brokerData, ServiceConfiguration conf)
protected abstract double brokerValue(BrokerData brokerData, ServiceConfiguration conf)
protected abstract double getDeviationThreshold(ServiceConfiguration conf)
public com.google.common.collect.Multimap<String,String> findBundlesForUnloading(LoadData loadData, ServiceConfiguration conf)
findBundlesForUnloading in interface LoadSheddingStrategyloadData - The load data to used to make the unloading decision.conf - The service configuration.Copyright © 2017–2021 Apache Software Foundation. All rights reserved.