Class DefaultStatusAggregator
- java.lang.Object
-
- io.streamthoughts.azkarra.http.health.internal.DefaultStatusAggregator
-
- All Implemented Interfaces:
StatusAggregator
public class DefaultStatusAggregator extends Object implements StatusAggregator
-
-
Constructor Summary
Constructors Constructor Description DefaultStatusAggregator()
Creates a newDefaultStatusAggregator
instance.DefaultStatusAggregator(List<Status> statusOrder)
Creates a newDefaultStatusAggregator
instance using the specified status order.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Status
aggregateStatus(List<Status> allStatus)
Aggregates the the specified list of status.
-
-
-
Constructor Detail
-
DefaultStatusAggregator
public DefaultStatusAggregator()
Creates a newDefaultStatusAggregator
instance.
-
DefaultStatusAggregator
public DefaultStatusAggregator(List<Status> statusOrder)
Creates a newDefaultStatusAggregator
instance using the specified status order.
-
-
Method Detail
-
aggregateStatus
public Status aggregateStatus(List<Status> allStatus)
Aggregates the the specified list of status.- Specified by:
aggregateStatus
in interfaceStatusAggregator
- Parameters:
allStatus
- the list ofStatus
to be aggregate.- Returns:
- the aggregated
Status
instance.
-
-