|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
javax.management.Notification
com.sun.jdmk.discovery.DiscoveryResponderNotification
The DiscoveryResponderNotification
object is sent by the
DiscoveryMonitor
MBean to its listener.
The DiscoveryResponderNotification
object is sent by the
DiscoveryMonitor
when it receives a
registration or unregistration message from a DiscoveryResponder
.
Field Summary | |
static String |
REGISTRATION
Notification type denoting that the DiscoveryResponder MBean has been registered or unregistered from the MBeanServer. |
Fields inherited from class javax.management.Notification |
source |
Constructor Summary | |
DiscoveryResponderNotification(DiscoveryMonitor source,
int state,
DiscoveryResponse agtDes,
long sequenceNumber)
Constructs a DiscoveryResponderNotification . |
Method Summary | |
DiscoveryResponse |
getEventInfo()
Returns the hostname and the MBeanServer information of the agent. |
Integer |
getState()
Returns the state of the agent. |
Methods inherited from class javax.management.Notification |
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String REGISTRATION
com.sun.jdmk.discovery
.
Constructor Detail |
public DiscoveryResponderNotification(DiscoveryMonitor source, int state, DiscoveryResponse agtDes, long sequenceNumber)
DiscoveryResponderNotification
.
source
- The object that was registered or the
object on which the event occurred.state
- Indicates whether a
DiscoveryResponder
object has been
added to an agent (DiscoveryMonitor.ONLINE) or removed
(DiscoveryMonitor.OFFLINE).agtDes
- This parameter gives information about the agent.sequenceNumber
- The notification sequence number within the
DiscoveryResponder MBean object.Method Detail |
public Integer getState()
If the state is DiscoveryMonitor.ONLINE
, a DiscoveryResponder
object has been
added to an agent.
If the state is DiscoveryMonitor.OFFLINE
, a DiscoveryResponder
object has been
removed from an agent. The getEventInfo
method provides additional information on the agent.
DiscoveryMonitor.ONLINE
or DiscoveryMonitor.OFFLINE
public DiscoveryResponse getEventInfo()
DiscoveryResponse
description).
If state is DiscoveryMonitor.OFFLINE
, only the host
and MBeanServer information are significant in the DiscoveryResponse
object.
DiscoveryResponse
object. This object contains the hostname
as a string host
and MBeanServer information.
It also contains a list of communicators ( see DiscoveryResponse
description)
if the state is DiscoveryMonitor.ONLINE
.
|
FCS Release jdmk-5_1-b34.1 2005.02.10_16:46:09_MET |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |