|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.management.oss.impl.job.opstatus.DataElement
DataElement
holds a collection of MonitoredObject objects and provides
facility for XML reporting.
Constructor Summary | |
DataElement(OperationalStatusGenericModel model)
Create an new instance of this class. |
Method Summary | |
long |
getCollectionTime()
Returns the time when the last data collection took place. |
java.lang.String |
getReportByEvent(boolean isInstant)
Gets the XML by event report associated to this object. |
java.lang.String |
getReportByFile(boolean isInstant,
java.net.URL destination,
java.util.Date expirationDate)
Gets the XML by file report associated to this object. |
boolean |
setMonitoredObjects(javax.management.ObjectName[] objectNames)
Set the monitored objects (denoted by their object names) to observe and perform a collection process. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataElement(OperationalStatusGenericModel model)
model
- the data model where data will be collected.Method Detail |
public long getCollectionTime()
public java.lang.String getReportByEvent(boolean isInstant)
isInstant
- if true include all monitored objects observed in the last
collection; otherwise include only monitored objects that had changes
from the previous collection campaign.
public java.lang.String getReportByFile(boolean isInstant, java.net.URL destination, java.util.Date expirationDate)
isInstant
- if true include all monitored objects observed in the last
collection; otherwise include only monitored objects that had changes
from the previous collection campaign.destination
- URL location where measurements must be saved (must be a file).expirationDate
- time from the save measurements are obsolate (null
means never delete).
public boolean setMonitoredObjects(javax.management.ObjectName[] objectNames)
Note : the timestamp associated to the element in the XML
report is the time when the data collection took place.
objectNames
- the object names (in String format) of the monitored
objects to observe.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |