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