Openwings API Documentation (v1.0)

net.openwings.container.utilities
Class PerformanceThreshold

java.lang.Object
  |
  +--net.openwings.container.utilities.PerformanceThreshold
All Implemented Interfaces:
java.io.Serializable

public class PerformanceThreshold
extends java.lang.Object
implements java.io.Serializable

This class describes the thresholds for GREEN/YELLOW/RED status for a particular type of performance report.

See Also:
Serialized Form

Constructor Summary
PerformanceThreshold(java.lang.String reportName, float yellowThreshold, float redThreshold)
          This is the single public constructor for this class
 
Method Summary
 float getRedThreshold()
          This method returns the threshold indicating imminent failure.
 java.lang.String getReportName()
          This method returns the name of the report.
 float getYellowThreshold()
          This method returns the threshold indicating degraded operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerformanceThreshold

public PerformanceThreshold(java.lang.String reportName,
                            float yellowThreshold,
                            float redThreshold)
This is the single public constructor for this class

Parameters:
reportName - the type of report for which this threshold is used, corresponding to the PerformanceReport.name field.
yellowThreshold - float value between 0.0 and 1.0 (inclusive) representing the ratio in a PerformanceReport.usage field that is the boundary between PerformanceReport.GREEN and PerformanceReport.YELLOW.
redThreshold - float value between 0.0 and 1.0 (inclusive) representing the ratio in a PerformanceReport.usage field that is the boundary between PerformanceReport.YELLOW and PerformanceReport.RED. Should be greater than or equal to yellowThreshold.
Method Detail

getReportName

public java.lang.String getReportName()
This method returns the name of the report.

Returns:
the type of report for which this threshold is used, corresponding to the PerformanceReport.name field.

getYellowThreshold

public float getYellowThreshold()
This method returns the threshold indicating degraded operation.

Returns:
float value between 0.0 and 1.0 (inclusive) representing the ratio in a PerformanceReport.usage field that is the boundary between PerformanceReport.GREEN and PerformanceReport.YELLOW.

getRedThreshold

public float getRedThreshold()
This method returns the threshold indicating imminent failure.


Openwings API Documentation (v1.0)