|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rhq.core.domain.discovery.AvailabilityReport
public class AvailabilityReport
Contains a set of one or more Availability
values used to indicate the statuses of a set of resources. Note
that only the start times
are used when looking at the resource times - the end
times found in the Availability
objects are ignored. This is because a report only defines a snapshot in time
- at a particular time (the availabilities' start times) a resource was either up or down. Reports do not tell you
the span of time a resource was up or down, it only tells you what state they were in at a particular millisecond in
time.
Constructor Summary | |
---|---|
AvailabilityReport()
Constructor for AvailabilityReport that is here solely to support the Externalizable interface. |
|
AvailabilityReport(boolean changesOnly,
String agentName)
Constructor for AvailabilityReport . |
|
AvailabilityReport(String agentName)
Constructor for AvailabilityReport that assumes this report will represent a full inventory (same as if
constructing with AvailabilityReport(boolean, String) with the first argument being false ). |
Method Summary | |
---|---|
void |
addAvailability(Availability availability)
|
String |
getAgentName()
Returns the agent name of the agent that produced this report. |
List<Availability> |
getResourceAvailability()
|
boolean |
isChangesOnlyReport()
Returns false if all resources in inventory are represented in this report. |
void |
readExternal(ObjectInput in)
|
String |
toString()
|
String |
toString(boolean includeAll)
Returns a string representation of this report. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AvailabilityReport()
AvailabilityReport
that is here solely to support the Externalizable
interface.
Callers should not use this - instead, use the other constructors.
public AvailabilityReport(String agentName)
AvailabilityReport
that assumes this report will represent a full inventory (same as if
constructing with AvailabilityReport(boolean, String)
with the first argument being false
).
agentName
- identifies the agent that produced this reportpublic AvailabilityReport(boolean changesOnly, String agentName)
AvailabilityReport
.
changesOnly
- if false
, this report will represent the full inventory; in other words, it will
contain availability statuses for all resources. If true
, this report will only
contain availability statuses for only those resources that have changed statusagentName
- identifies the agent that produced this reportMethod Detail |
---|
public String getAgentName()
public void addAvailability(Availability availability)
public List<Availability> getResourceAvailability()
public boolean isChangesOnlyReport()
false
if all resources in inventory are represented in this report. true
is
returned if only those resources that have changed status are in this report.
public String toString()
toString
in class Object
public String toString(boolean includeAll)
includeAll
- if true
, the returned string includes all the individual availabilities,
otherwise, the returned string only tells you how many of them there are
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |