Class HeapMetricsSelector$

  extended by akka.cluster.routing.CapacityMetricsSelector
      extended by akka.cluster.routing.HeapMetricsSelector$
All Implemented Interfaces:
MetricsSelector, java.io.Serializable, scala.Equals, scala.Product

public class HeapMetricsSelector$
extends CapacityMetricsSelector
implements scala.Product, scala.Serializable

MetricsSelector that uses the heap metrics. Low heap capacity => small weight.

See Also:
Serialized Form

Field Summary
static HeapMetricsSelector$ MODULE$
          Static reference to the singleton instance of this Scala object.
Constructor Summary
Method Summary
 scala.collection.immutable.Map<Address,java.lang.Object> capacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)
          Remaining capacity for each node.
 HeapMetricsSelector$ getInstance()
          Java API: get the singleton instance
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
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface akka.cluster.routing.MetricsSelector

Field Detail


public static final HeapMetricsSelector$ MODULE$
Static reference to the singleton instance of this Scala object.

Constructor Detail


public HeapMetricsSelector$()
Method Detail


public HeapMetricsSelector$ getInstance()
Java API: get the singleton instance


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