|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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()
Default constructor. |
|
PerformanceReport(java.lang.String name,
int status,
float percentage,
float numerator,
float denominator,
java.lang.String units)
This is the primary constructor for this class. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
overrides the default equals() method |
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. |
int |
hashCode()
overrides default hashCode() method. |
void |
setDenominator(float denominator)
This method is used to set the denominator of the measurement. |
void |
setName(java.lang.String name)
This method is used to set the name of the performance metric. |
void |
setNumerator(float numerator)
This method is used to set the numerator of the measurement. |
void |
setPercentUsage(float percentage)
This method is used to set the percentage utilization of this metric. |
void |
setStatus(int status)
This method is used to set the status of this performance metric. |
void |
setUnits(java.lang.String units)
This method is used to set the units of the performance metric. |
java.lang.String |
toString()
overrides default toString() method. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, 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()
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 void setName(java.lang.String name)
name - the name of the performance metric.public int getStatus()
RED,
YELLOW, or GREENpublic void setStatus(int status)
status - the status of the performance metric: RED,
YELLOW, or GREENpublic float getPercentUsage()
public void setPercentUsage(float percentage)
percentage - the percentage utilizationpublic float getNumerator()
public void setNumerator(float numerator)
numerator - the amount utilizedpublic float getDenominator()
public void setDenominator(float denominator)
denominator - the amount availabilepublic java.lang.String getUnits()
public void setUnits(java.lang.String units)
units - the unit of measurement of the metricpublic final boolean equals(java.lang.Object obj)
public final int hashCode()
public java.lang.String toString()
|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||