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 int
Sorted by label.final AlertLevel
final double
Gets the relative amount of devation the value is from the expected/maximum value.final String
getLabel()
abstract T
Gets the maximum value for the resource ornull
if unavailable.abstract T
getValue()
Gets the current value for the resource ornull
if unavailable.final String
toString()
-
Method Details
-
getLabel
-
getValue
Gets the current value for the resource ornull
if unavailable. -
getMaxValue
Gets the maximum value for the resource ornull
if 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:
compareTo
in interfaceComparable<T>
-
toString
-