|
|||||||||||
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.MonitoredObjectElement
com.sun.management.oss.impl.job.opstatus.CIBMonitoredObjectElement
CIBMonitoredObjectElement
holds the availability and the operational
status of a monitored object identified by an object name.
Constructor Summary | |
CIBMonitoredObjectElement(javax.management.ObjectName objectName)
Creates a new instance of CIBMonitoredObjectElement with the
given object name. |
Method Summary | |
boolean |
setAvailabilityStatusState(int state,
long lastChange,
long degradedTime)
Sets the new state of this availability status, the time in milliseconds when the change occured and the time in milliseconds when the monitored entity left the normal state. |
void |
setException(java.lang.String msg)
Sets the exception field of this object. |
boolean |
setOperationalStatusState(int state,
long lastChange,
long startTime)
Sets the new state of this operational status, the time in milliseconds when the change occured and time in milliseconds when the monitored entity entered the RUNNING state. |
java.lang.String |
toXml()
Returns a XML representation of this CIBMonitoredObjectElement instance. |
Methods inherited from class com.sun.management.oss.impl.job.opstatus.MonitoredObjectElement |
getException, hasException |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CIBMonitoredObjectElement(javax.management.ObjectName objectName)
CIBMonitoredObjectElement
with the
given object name.
objectName
- the object name that identified the monitored object
represented by this objectMethod Detail |
public boolean setAvailabilityStatusState(int state, long lastChange, long degradedTime)
The returned value indicates if the availability status has changed since last call.
state
- the new state.lastChange
- the time in milliseconds when the change occured.degradedTime
- time in milliseconds when the state left the normal state
public void setException(java.lang.String msg)
An exception is set if an issue occured while retrieving information from the instrumentation layer.
setException
in class MonitoredObjectElement
msg
- the exception message.public boolean setOperationalStatusState(int state, long lastChange, long startTime)
The returned value indicates if the operational status has changed since last call (on the first call, this method returns false).
state
- the new state.lastChange
- the time in milliseconds when the change occured.startTime
- time in milliseconds when the state entered the RUNNING state
public java.lang.String toXml()
CIBMonitoredObjectElement
instance.
toXml
in class MonitoredObjectElement
CIBMonitoredObjectElement
instance.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |