Class Result<T>
java.lang.Object
com.aoindustries.aoserv.cluster.analyze.Result<T>
- All Implemented Interfaces:
Comparable<Result<?>>
- Direct Known Subclasses:
BooleanResult,IntResult,ObjectResult
Stores an AlertLevel, a value, and a textual message.
- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionfinal intSorted by label.final AlertLevelfinal doubleGets the relative amount of devation the value is from the expected/maximum value.final StringgetLabel()abstract TGets the maximum value for the resource ornullif unavailable.abstract TgetValue()Gets the current value for the resource ornullif unavailable.final StringtoString()
-
Method Details
-
getLabel
-
getValue
Gets the current value for the resource ornullif unavailable. -
getMaxValue
Gets the maximum value for the resource ornullif unavailable. -
getDeviation
public final double getDeviation()Gets the relative amount of devation the value is from the expected/maximum value. If the deviation is otherwise unknown or doesn't make sense for the type of resource, should be 1.0. -
getAlertLevel
-
compareTo
Sorted by label.- Specified by:
compareToin interfaceComparable<T>
-
toString
-
