All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.jaw.impl.agent.services.jawdiscovery.DiscoveryResponderEvent
java.lang.Object
|
+----java.util.EventObject
|
+----com.sun.jaw.impl.agent.services.jawdiscovery.DiscoveryResponderEvent
- public class DiscoveryResponderEvent
- extends 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.
-
DiscoveryResponderEvent(DiscoveryMonitor, int, DiscoveryResponse)
- Creates a
DiscoveryResponderEvent object.
-
getClassVersion()
- Returns the version of this class.
-
getEventInfo()
- Returns the hostname of the agent and a vector containing the object names of any
adaptors present on the agent.
-
getState()
- Returns the state of the agent.
DiscoveryResponderEvent
public DiscoveryResponderEvent(DiscoveryMonitor source,
int state,
DiscoveryResponse agtDes)
- Creates a
DiscoveryResponderEvent object.
- 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 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 String getClassVersion()
- Returns the version of this class.
- Returns:
- The version of this class.
All Packages Class Hierarchy This Package Previous Next Index