|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.measurement.AvailabilityPoint
public class AvailabilityPoint
An AvailabilityType for a point in time. This object not only tells you if the resource is UP or DOWN but it
also tells you if the status is known or unknown (that is, either the data existed in the database and the
availability type was known; or there is no data in the database that explicitly tells us what the resource status is
- in that case, the availability will be DOWN but it will be listed as "unknown".
| Constructor Summary | |
|---|---|
AvailabilityPoint(org.rhq.core.domain.measurement.AvailabilityType availabilityType,
long timestamp)
Creates an availability point with an explicitly known value. |
|
| Method Summary | |
|---|---|
org.rhq.core.domain.measurement.AvailabilityType |
getAvailabilityType()
|
long |
getTimestamp()
The timestamp that this data point object represents. |
int |
getValue()
|
boolean |
isKnown()
Returns true if the availability type is explicitly known. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AvailabilityPoint(org.rhq.core.domain.measurement.AvailabilityType availabilityType,
long timestamp)
availabilityType - the availability type. if null set to UNKNOWNtimestamp - the time when the resource was in the given availability status| Method Detail |
|---|
public boolean isKnown()
true if the availability type is explicitly known. If false, there was no
explicit data in the database that indicated an availability.
true if getAvailabilityType() returns a status that is explicitly known about the
resourcepublic long getTimestamp()
availability statuspublic org.rhq.core.domain.measurement.AvailabilityType getAvailabilityType()
public int getValue()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||