Package org.apache.pekko.cluster.metrics
Class MixMetricsSelector
- java.lang.Object
-
- org.apache.pekko.cluster.metrics.CapacityMetricsSelector
-
- org.apache.pekko.cluster.metrics.MixMetricsSelectorBase
-
- org.apache.pekko.cluster.metrics.MixMetricsSelector
-
- All Implemented Interfaces:
java.io.Serializable
,MetricsSelector
,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 MixMetricsSelector
apply(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors)
MetricsSelector that combines other selectors and aggregates their capacity values.boolean
canEqual(java.lang.Object x$1)
static scala.collection.immutable.Map<Address,java.lang.Object>
capacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)
MixMetricsSelector
copy(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors)
scala.collection.immutable.IndexedSeq<CapacityMetricsSelector>
copy$default$1()
boolean
equals(java.lang.Object x$1)
static MixMetricsSelector$
getInstance()
Java API: get the default singleton instanceint
hashCode()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
scala.collection.immutable.IndexedSeq<CapacityMetricsSelector>
selectors()
java.lang.String
toString()
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 org.apache.pekko.cluster.metrics.MixMetricsSelectorBase
capacity
-
Methods inherited from class org.apache.pekko.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 [org.apache.pekko.cluster.routing.HeapMetricsSelector], [org.apache.pekko.cluster.routing.CpuMetricsSelector], and [org.apache.pekko.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:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-