public abstract class CapacityMetricsSelector extends java.lang.Object implements MetricsSelector
Constructor and Description |
---|
CapacityMetricsSelector() |
Modifier and Type | Method and Description |
---|---|
abstract scala.collection.immutable.Map<Address,java.lang.Object> |
capacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)
Remaining capacity for each node.
|
scala.collection.immutable.Map<Address,java.lang.Object> |
weights(scala.collection.immutable.Map<Address,java.lang.Object> capacity)
Converts the capacity values to weights.
|
scala.collection.immutable.Map<Address,java.lang.Object> |
weights(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)
The weights per address, based on the capacity produced by
the nodeMetrics.
|
public abstract scala.collection.immutable.Map<Address,java.lang.Object> capacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)
nodeMetrics
- (undocumented)public scala.collection.immutable.Map<Address,java.lang.Object> weights(scala.collection.immutable.Map<Address,java.lang.Object> capacity)
capacity
- (undocumented)public scala.collection.immutable.Map<Address,java.lang.Object> weights(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)
weights
in interface MetricsSelector
nodeMetrics
- (undocumented)