Class HighestSeverityAbove
- java.lang.Object
-
- org.opennms.netmgt.bsm.service.model.functions.reduce.HighestSeverityAbove
-
- All Implemented Interfaces:
ReductionFunction
public class HighestSeverityAbove extends java.lang.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()
java.util.Optional<StatusWithIndices>
reduce(java.util.List<StatusWithIndex> statuses)
protected static java.util.Optional<StatusWithIndices>
reduceWithHighestSeverityAbove(java.util.List<StatusWithIndex> statuses, Status threshold)
void
setThreshold(Status threshold)
-
-
-
Method Detail
-
reduce
public java.util.Optional<StatusWithIndices> reduce(java.util.List<StatusWithIndex> statuses)
- Specified by:
reduce
in interfaceReductionFunction
-
reduceWithHighestSeverityAbove
protected static java.util.Optional<StatusWithIndices> reduceWithHighestSeverityAbove(java.util.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
-
-