|
||||||||||
| 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 value,
long timestamp)
Creates an availability point with an explicitly known value. |
|
AvailabilityPoint(long timestamp)
Creates an availability point with an unknown value (whose getAvailabilityType() will return
AvailabilityType.DOWN. |
|
| Method Summary | |
|---|---|
org.rhq.core.domain.measurement.AvailabilityType |
getAvailabilityType()
|
long |
getTimestamp()
The timestamp that this data point object represents. |
int |
getValue()
Returns the ordinal value of the availability type. |
boolean |
isKnown()
Returns true if the availability data 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 value,
long timestamp)
value - the availability statustimestamp - the time when the resource was in the given availability statuspublic AvailabilityPoint(long timestamp)
getAvailabilityType() will return
AvailabilityType.DOWN.
timestamp - the time when the resource was in the given availability status| Method Detail |
|---|
public boolean isKnown()
true if the availability data is explicitly known. If false, there was no
explicit data in the database that indicated an availability, so the resource's availability will be assumed to
be DOWN.
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()
availability type.
getAvailabilityType()public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||