com.sun.jaw.impl.agent.services.jawdiscovery
Class DiscoveryResponderEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.sun.jaw.impl.agent.services.jawdiscovery.DiscoveryResponderEvent
- public class DiscoveryResponderEvent
- extends java.util.EventObject
The DiscoveryResponderEvent object is sent by the
DiscoveryMonitor m-bean to its listener, an instance
of the Java class that implements the DiscoveryResponderListener
interface.
The DiscoveryResponderEvent object is sent by the
DiscoveryMonitor when it receives a registration or
deregistration message from a DiscoveryResponder.
- See Also:
DiscoveryMonitor,
DiscoveryResponderListener,
DiscoveryResponder, Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Method Summary |
java.lang.String |
getClassVersion()
Returns the version of this class. |
DiscoveryResponse |
getEventInfo()
Returns the hostname of the agent and a vector containing the object names of any
adaptors present on the agent. |
java.lang.Integer |
getState()
Returns the state of the agent. |
| Methods inherited from class java.util.EventObject |
getSource,
toString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
DiscoveryResponderEvent
public DiscoveryResponderEvent(DiscoveryMonitor source,
int state,
DiscoveryResponse agtDes)
- Constructs a
DiscoveryResponderEvent.
- Parameters:
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.
getState
public java.lang.Integer getState()
- Returns the state of the agent.
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.
- Returns:
DiscoveryMonitor.ONLINE or DiscoveryMonitor.OFFLINE
getEventInfo
public DiscoveryResponse getEventInfo()
- Returns the hostname of the agent and a vector containing the object names of any
adaptors present on the agent.
If state is DiscoveryMonitor.OFFLINE, only the host is significant.
- Returns:
- A
DiscoveryResponse object. This object contains the hostname
as a string host and a vector of ObjectName.
getClassVersion
public java.lang.String getClassVersion()
- Returns the version of this class.
- Returns:
- The version of this class.