Package org.apache.pekko.cluster.metrics
Class MixMetricsSelectorBase
java.lang.Object
org.apache.pekko.cluster.metrics.CapacityMetricsSelector
org.apache.pekko.cluster.metrics.MixMetricsSelectorBase
- All Implemented Interfaces:
- Serializable,- MetricsSelector
- Direct Known Subclasses:
- MixMetricsSelector,- MixMetricsSelector$
Base class for MetricsSelector that combines other selectors and aggregates their capacity.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionMixMetricsSelectorBase(Iterable<CapacityMetricsSelector> selectors) Java API: construct a mix-selector from a sequence of selectorsMixMetricsSelectorBase(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors) 
- 
Method SummaryModifier and TypeMethodDescriptioncapacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics) Remaining capacity for each node.Methods inherited from class org.apache.pekko.cluster.metrics.CapacityMetricsSelectorweights, weights
- 
Constructor Details- 
MixMetricsSelectorBasepublic MixMetricsSelectorBase(scala.collection.immutable.IndexedSeq<CapacityMetricsSelector> selectors) 
- 
MixMetricsSelectorBaseJava API: construct a mix-selector from a sequence of selectors
 
- 
- 
Method Details- 
capacitypublic scala.collection.immutable.Map<Address,Object> capacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics) Description copied from class:CapacityMetricsSelectorRemaining 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:
- capacityin class- CapacityMetricsSelector
 
 
-