|
Openwings API Documentation (v1.0) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.openwings.availability.PerformanceReport
This class is used to report a performance metric. The status provides an interpretation of what action should be taken based on the metric. The relative metric is provided as a usage percentage. The actual utilization is also provided in the units of the metric.
| Field Summary | |
protected float |
denominator
This is the acutal available resources. |
static int |
GREEN
This constant is used to indicate normal performance levels. |
protected java.lang.String |
name
This is the name of the measurement. |
protected float |
numerator
This is the actual resource usage reading. |
protected float |
percentage
This indicates the percentage utilization of this component. |
static int |
RED
This constant is used to indicate a performance availability fault. |
protected int |
status
This is the RED, YELLOW, GREEN status indicator. |
protected java.lang.String |
units
This is the units of the measurement. |
static int |
YELLOW
This constant is used to indicate a condition where there is a risk of performance availability fault. |
| Constructor Summary | |
PerformanceReport(java.lang.String name,
int status,
float percentage,
float numerator,
float denominator,
java.lang.String units)
This is the single public constructor for this class. |
|
| Method Summary | |
float |
getDenominator()
This method is used to get the denominator of the measurement. |
java.lang.String |
getName()
This method is used to get the name of the performance metric. |
float |
getNumerator()
This method is used to get the numerator of the measurement. |
float |
getPercentUsage()
This method is used to get the percentage utilization of this metric. |
int |
getStatus()
This method is used to get the status of this performance metric. |
java.lang.String |
getUnits()
This method is used to get the units of the performance metric. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int RED
public static final int YELLOW
public static final int GREEN
protected int status
protected float percentage
protected float numerator
protected float denominator
protected java.lang.String units
protected java.lang.String name
| Constructor Detail |
public PerformanceReport(java.lang.String name,
int status,
float percentage,
float numerator,
float denominator,
java.lang.String units)
name - the name of the measurement.status - the RED, YELLOW,
GREEN status indicator.percentage - the percentage utilization of this component.
This is expressed as a value between 0.0 and 1.0 (inclusive).numerator - the actual resource usage reading.denominator - the acutal available resources.units - the units of the measurement.| Method Detail |
public java.lang.String getName()
public int getStatus()
RED,
YELLOW, or GREENpublic float getPercentUsage()
public float getNumerator()
public float getDenominator()
public java.lang.String getUnits()
|
Openwings API Documentation (v1.0) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||