akka.cluster.routing
Class MixMetricsSelectorBase

java.lang.Object
  extended by akka.cluster.routing.CapacityMetricsSelector
      extended by akka.cluster.routing.MixMetricsSelectorBase
All Implemented Interfaces:
MetricsSelector, java.io.Serializable
Direct Known Subclasses:
MixMetricsSelector, MixMetricsSelector$

public abstract class MixMetricsSelectorBase
extends CapacityMetricsSelector

Base class for MetricsSelector that combines other selectors and aggregates their capacity.

See Also:
Serialized Form

Constructor Summary
MixMetricsSelectorBase(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors)
           
MixMetricsSelectorBase(java.lang.Iterable<CapacityMetricsSelector> selectors)
          Java API: construct a mix-selector from a sequence of selectors
 
Method Summary
 scala.collection.immutable.Map<Address,java.lang.Object> capacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)
          Remaining capacity for each node.
 
Methods inherited from class akka.cluster.routing.CapacityMetricsSelector
weights, weights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MixMetricsSelectorBase

public MixMetricsSelectorBase(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors)

MixMetricsSelectorBase

public MixMetricsSelectorBase(java.lang.Iterable<CapacityMetricsSelector> selectors)
Java API: construct a mix-selector from a sequence of selectors

Method Detail

capacity

public scala.collection.immutable.Map<Address,java.lang.Object> capacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)
Description copied from class: CapacityMetricsSelector
Remaining capacity for each node. The value is between 0.0 and 1.0, where 0.0 means no remaining capacity (full utilization) and 1.0 means full remaining capacity (zero utilization).

Specified by:
capacity in class CapacityMetricsSelector