|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.measurement.Availability
public class Availability
This Entity Bean stores information about resource availability. The actual data is run-length encoded. This means
that the availability state
(e.g. UP or DOWN) changed at the
start time
.
This provides historical data regarding when a resource was up or down. To get the current availability
of a resource, it is best to use the ResourceAvailability
entity instead.
ResourceAvailability
,
Serialized FormField Summary | |
---|---|
static String |
FIND_BY_RESOURCE
|
static String |
FIND_BY_RESOURCE_AND_DATE
|
static String |
FIND_BY_RESOURCE_NO_SORT
|
static String |
FIND_CURRENT_BY_RESOURCE
|
static String |
FIND_FOR_AUTO_GROUP_WITHIN_INTERVAL
|
static String |
FIND_FOR_RESOURCE_GROUP_WITHIN_INTERVAL
|
static String |
FIND_FOR_RESOURCE_WITHIN_INTERVAL
|
static String |
FIND_NONMATCHING_WITH_RESOURCE_ID_BY_AGENT_AND_TYPE
|
static String |
NATIVE_QUERY_PURGE
|
static String |
QUERY_DELETE_BY_RESOURCES
|
Constructor Summary | |
---|---|
protected |
Availability()
|
|
Availability(Resource resource,
Date startTime,
AvailabilityType type)
Constructor for Availability . |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
AvailabilityType |
getAvailabilityType()
Indicates the availability status as either UP or DOWN; if null is returned, the status is unknown. |
Date |
getEndTime()
The end time of this availability period. |
int |
getId()
|
Resource |
getResource()
|
Date |
getStartTime()
|
int |
hashCode()
|
void |
setAvailabilityType(AvailabilityType availabilityType)
Sets the availability status. |
void |
setEndTime(Date endTime)
|
void |
setStartTime(Date startTime)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String FIND_CURRENT_BY_RESOURCE
public static final String FIND_BY_RESOURCE
public static final String FIND_BY_RESOURCE_NO_SORT
public static final String FIND_NONMATCHING_WITH_RESOURCE_ID_BY_AGENT_AND_TYPE
public static final String FIND_FOR_RESOURCE_WITHIN_INTERVAL
public static final String FIND_FOR_RESOURCE_GROUP_WITHIN_INTERVAL
public static final String FIND_FOR_AUTO_GROUP_WITHIN_INTERVAL
public static final String FIND_BY_RESOURCE_AND_DATE
public static final String QUERY_DELETE_BY_RESOURCES
public static final String NATIVE_QUERY_PURGE
Constructor Detail |
---|
protected Availability()
public Availability(Resource resource, Date startTime, AvailabilityType type)
Availability
. If type
is null
, it will be considered unknown.
resource
- startTime
- type
- Method Detail |
---|
public int getId()
public Resource getResource()
public Date getStartTime()
public void setStartTime(Date startTime)
public Date getEndTime()
null
if this represents the last known
availability.
public void setEndTime(Date endTime)
public AvailabilityType getAvailabilityType()
null
is returned, the status is unknown.
public void setAvailabilityType(AvailabilityType availabilityType)
null
to indicate an "unknown" availability status.
availabilityType
- public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |