Package akka.cluster.metrics
Class MixMetricsSelector
- java.lang.Object
 - 
- akka.cluster.metrics.CapacityMetricsSelector
 - 
- akka.cluster.metrics.MixMetricsSelectorBase
 - 
- akka.cluster.metrics.MixMetricsSelector
 
 
 
 
- 
- All Implemented Interfaces:
 MetricsSelector,java.io.Serializable,scala.Equals,scala.Product
public final class MixMetricsSelector extends MixMetricsSelectorBase implements scala.Product, java.io.Serializable
- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description MixMetricsSelector(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MixMetricsSelectorapply(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors)MetricsSelector that combines other selectors and aggregates their capacity values.booleancanEqual(java.lang.Object x$1)static scala.collection.immutable.Map<Address,java.lang.Object>capacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)MixMetricsSelectorcopy(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors)scala.collection.immutable.IndexedSeq<CapacityMetricsSelector>copy$default$1()booleanequals(java.lang.Object x$1)static MixMetricsSelector$getInstance()Java API: get the default singleton instanceinthashCode()intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()scala.collection.immutable.IndexedSeq<CapacityMetricsSelector>selectors()java.lang.StringtoString()static scala.Option<scala.collection.immutable.IndexedSeq<CapacityMetricsSelector>>unapply(MixMetricsSelector x$0)static scala.collection.immutable.Map<Address,java.lang.Object>weights(scala.collection.immutable.Map<Address,java.lang.Object> capacity)static scala.collection.immutable.Map<Address,java.lang.Object>weights(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)- 
Methods inherited from class akka.cluster.metrics.MixMetricsSelectorBase
capacity 
- 
Methods inherited from class akka.cluster.metrics.CapacityMetricsSelector
weights, weights 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
MixMetricsSelector
public MixMetricsSelector(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors)
 
 - 
 
- 
Method Detail
- 
getInstance
public static MixMetricsSelector$ getInstance()
Java API: get the default singleton instance 
- 
apply
public static MixMetricsSelector apply(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors)
MetricsSelector that combines other selectors and aggregates their capacity values. By default it uses [akka.cluster.routing.HeapMetricsSelector], [akka.cluster.routing.CpuMetricsSelector], and [akka.cluster.routing.SystemLoadAverageMetricsSelector] 
- 
unapply
public static scala.Option<scala.collection.immutable.IndexedSeq<CapacityMetricsSelector>> unapply(MixMetricsSelector x$0)
 
- 
weights
public static scala.collection.immutable.Map<Address,java.lang.Object> weights(scala.collection.immutable.Map<Address,java.lang.Object> capacity)
 
- 
weights
public static scala.collection.immutable.Map<Address,java.lang.Object> weights(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)
 
- 
capacity
public static scala.collection.immutable.Map<Address,java.lang.Object> capacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)
 
- 
selectors
public scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors()
 
- 
copy
public MixMetricsSelector copy(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors)
 
- 
copy$default$1
public scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> copy$default$1()
 
- 
productPrefix
public java.lang.String productPrefix()
- Specified by:
 productPrefixin interfacescala.Product
 
- 
productArity
public int productArity()
- Specified by:
 productArityin interfacescala.Product
 
- 
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
 productElementin interfacescala.Product
 
- 
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
 productIteratorin interfacescala.Product
 
- 
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
 canEqualin interfacescala.Equals
 
- 
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
 productElementNamein interfacescala.Product
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
 equalsin interfacescala.Equals- Overrides:
 equalsin classjava.lang.Object
 
 - 
 
 -