public class AvailabilityPoint extends Object implements Serializable
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 and Description |
|---|
AvailabilityPoint(org.rhq.core.domain.measurement.AvailabilityType availabilityType,
long timestamp)
Deprecated.
Creates an availability point with an explicitly known value.
|
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.measurement.AvailabilityType |
getAvailabilityType()
Deprecated.
|
long |
getTimestamp()
Deprecated.
The timestamp that this data point object represents.
|
int |
getValue()
Deprecated.
|
boolean |
isKnown()
Deprecated.
Returns
true if the availability type is explicitly known. |
String |
toString()
Deprecated.
|
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 statuspublic 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()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.