Class Threshold
- java.lang.Object
-
- org.opennms.netmgt.bsm.service.model.functions.reduce.Threshold
-
- All Implemented Interfaces:
ReductionFunction
public class Threshold extends java.lang.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)
java.util.Map<Status,java.lang.Integer>
getHitsByStatus(java.util.List<Status> statuses)
java.util.Map<Status,java.lang.Integer>
getHitsByStatusWithIndex(java.util.List<StatusWithIndex> statuses)
float
getThreshold()
java.util.Optional<StatusWithIndices>
reduce(java.util.List<StatusWithIndex> statuses)
void
setThreshold(float threshold)
java.lang.String
toString()
-
-
-
Method Detail
-
setThreshold
public void setThreshold(float threshold)
-
getThreshold
public float getThreshold()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
reduce
public java.util.Optional<StatusWithIndices> reduce(java.util.List<StatusWithIndex> statuses)
- Specified by:
reduce
in interfaceReductionFunction
-
accept
public <T> T accept(ReduceFunctionVisitor<T> visitor)
- Specified by:
accept
in interfaceReductionFunction
-
getHitsByStatusWithIndex
public java.util.Map<Status,java.lang.Integer> getHitsByStatusWithIndex(java.util.List<StatusWithIndex> statuses)
-
-