public class StateAggregator extends Object
Health
,
and compute an aggregate state based on the contributed states to each category,
setting that derived state on the instance. By using the no-args constructor, the
default aggregation algorithm will be used, which returns the "most critical"
State
discovered.
An alternate aggregation algorithm may be installed by calling the constructor that
takes an StateAggregator.Algorithm
implementation as a parameter.
Modifier and Type | Class and Description |
---|---|
static interface |
StateAggregator.Algorithm
The aggregation computation algorithm interface.
|
Constructor and Description |
---|
StateAggregator()
Constructs a state aggregator that uses the default aggregation algorithm.
|
StateAggregator(StateAggregator.Algorithm algorithm)
Constructs a state aggregator that uses the specified aggregation algorithm.
|
public StateAggregator()
public StateAggregator(StateAggregator.Algorithm algorithm)
algorithm
- the algorithm implementation to useCopyright © 2015. All Rights Reserved.