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:
Serializable
,MetricsSelector
,scala.Equals
,scala.Product
public final class MixMetricsSelector
extends MixMetricsSelectorBase
implements scala.Product, Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMixMetricsSelector
(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors) -
Method Summary
Modifier and TypeMethodDescriptionstatic MixMetricsSelector
apply
(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors) MetricsSelector that combines other selectors and aggregates their capacity values.boolean
capacity
(scala.collection.immutable.Set<NodeMetrics> nodeMetrics) copy
(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors) scala.collection.immutable.IndexedSeq<CapacityMetricsSelector>
boolean
static MixMetricsSelector$
Java API: get the default singleton instanceint
hashCode()
int
productElement
(int x$1) productElementName
(int x$1) scala.collection.Iterator<Object>
scala.collection.immutable.IndexedSeq<CapacityMetricsSelector>
toString()
static scala.Option<scala.collection.immutable.IndexedSeq<CapacityMetricsSelector>>
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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
MixMetricsSelector
-
-
Method Details
-
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
-
weights
public static scala.collection.immutable.Map<Address,Object> weights(scala.collection.immutable.Set<NodeMetrics> nodeMetrics) -
capacity
public static scala.collection.immutable.Map<Address,Object> capacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics) -
selectors
-
copy
public MixMetricsSelector copy(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors) -
copy$default$1
-
productPrefix
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArity
in interfacescala.Product
-
productElement
- Specified by:
productElement
in interfacescala.Product
-
productIterator
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-