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 SummaryConstructorsConstructorDescriptionMixMetricsSelector(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic MixMetricsSelectorapply(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors) MetricsSelector that combines other selectors and aggregates their capacity values.booleancapacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics) copy(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors) scala.collection.immutable.IndexedSeq<CapacityMetricsSelector>booleanstatic MixMetricsSelector$Java API: get the default singleton instanceinthashCode()intproductElement(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.MixMetricsSelectorBasecapacityMethods inherited from class org.apache.pekko.cluster.metrics.CapacityMetricsSelectorweights, weightsMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.ProductproductElementNames
- 
Constructor Details- 
MixMetricsSelector
 
- 
- 
Method Details- 
getInstanceJava API: get the default singleton instance
- 
applypublic 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]
- 
unapplypublic static scala.Option<scala.collection.immutable.IndexedSeq<CapacityMetricsSelector>> unapply(MixMetricsSelector x$0) 
- 
weights
- 
weightspublic static scala.collection.immutable.Map<Address,Object> weights(scala.collection.immutable.Set<NodeMetrics> nodeMetrics) 
- 
capacitypublic static scala.collection.immutable.Map<Address,Object> capacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics) 
- 
selectors
- 
copypublic MixMetricsSelector copy(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors) 
- 
copy$default$1
- 
productPrefix- Specified by:
- productPrefixin interface- scala.Product
 
- 
productAritypublic int productArity()- Specified by:
- productArityin interface- scala.Product
 
- 
productElement- Specified by:
- productElementin interface- scala.Product
 
- 
productIterator- Specified by:
- productIteratorin interface- scala.Product
 
- 
canEqual- Specified by:
- canEqualin interface- scala.Equals
 
- 
productElementName- Specified by:
- productElementNamein interface- scala.Product
 
- 
hashCodepublic int hashCode()
- 
toString
- 
equals
 
-