Class HighestSeverityAbove
- java.lang.Object
-
- org.opennms.netmgt.bsm.service.model.functions.reduce.HighestSeverityAbove
-
- All Implemented Interfaces:
ReductionFunction
public class HighestSeverityAbove extends Object implements ReductionFunction
-
-
Constructor Summary
Constructors Constructor Description HighestSeverityAbove()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
accept(ReduceFunctionVisitor<T> visitor)
Status
getThreshold()
Optional<StatusWithIndices>
reduce(List<StatusWithIndex> statuses)
protected static Optional<StatusWithIndices>
reduceWithHighestSeverityAbove(List<StatusWithIndex> statuses, Status threshold)
void
setThreshold(Status threshold)
-
-
-
Method Detail
-
reduce
public Optional<StatusWithIndices> reduce(List<StatusWithIndex> statuses)
- Specified by:
reduce
in interfaceReductionFunction
-
reduceWithHighestSeverityAbove
protected static Optional<StatusWithIndices> reduceWithHighestSeverityAbove(List<StatusWithIndex> statuses, Status threshold)
-
setThreshold
public void setThreshold(Status threshold)
-
getThreshold
public Status getThreshold()
-
accept
public <T> T accept(ReduceFunctionVisitor<T> visitor)
- Specified by:
accept
in interfaceReductionFunction
-
-