com.sun.jdmk.discovery
Class DiscoveryResponse

java.lang.Object
  extended by com.sun.jdmk.discovery.DiscoveryResponse
All Implemented Interfaces:
Serializable

public class DiscoveryResponse
extends Object
implements Serializable

The DiscoveryResponse is used by the DiscoveryClient class to represent the result of a discovery operation.

See Also:
DiscoveryClient, Serialized Form

Method Summary
 String getHost()
          Returns the host name.
 String getImplementationName()
          Returns the JMX implementation name (the name of the product corresponding to the agent).
 String getImplementationVendor()
          Returns the JMX implementation vendor (the vendor of the product corresponding to the agent).
 String getImplementationVersion()
          Returns the JMX implementation version (the version of the product corresponding to the agent).
 String getMBeanServerId()
          Returns the identification of the MbeanServer.
 Hashtable getObjectList()
          Returns the list of communicators.
 JMXServiceURL[] getServerAddresses()
          Returns a list of connector server addresses, a server is one which is registered into an MBeanServer as JMXConnectorServerMBean, either a JMX Remote JMXConnectorServer or a Java DMK legacy one which is wrapped as a JMXConnectorServer.
 String getSpecificationName()
          Returns the full name of the JMX specification implemented by the agent.
 String getSpecificationVendor()
          Returns the vendor of the JMX specification implemented by the agent.
 String getSpecificationVersion()
          Returns the version of the JMX specification implemented by the agent.
 byte[] getUserData()
          Returns a byte[] containing the additional information that the user added in the DiscoveryResponse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHost

public String getHost()
Returns the host name.

Returns:
the host name.

getMBeanServerId

public String getMBeanServerId()
Returns the identification of the MbeanServer.

Returns:
the MbeanServer identification.

getSpecificationName

public String getSpecificationName()
Returns the full name of the JMX specification implemented by the agent.

Returns:
the full name of the JMX specification implemented by the agent.

getSpecificationVersion

public String getSpecificationVersion()
Returns the version of the JMX specification implemented by the agent.

Returns:
the version of the JMX specification implemented by the agent.

getSpecificationVendor

public String getSpecificationVendor()
Returns the vendor of the JMX specification implemented by the agent.

Returns:
the vendor of the JMX specification implemented by the agent.

getImplementationName

public String getImplementationName()
Returns the JMX implementation name (the name of the product corresponding to the agent).

Returns:
the JMX implementation name.

getImplementationVersion

public String getImplementationVersion()
Returns the JMX implementation version (the version of the product corresponding to the agent).

Returns:
the JMX implementation version.

getImplementationVendor

public String getImplementationVendor()
Returns the JMX implementation vendor (the vendor of the product corresponding to the agent).

Returns:
the JMX implementation vendor.

getObjectList

public Hashtable getObjectList()
Returns the list of communicators. It is an Hashtable. Keys are ObjectName and values are ConnectorAddress if its relevant. The method findMBeanServers sets this Hashtable to null.

Returns:
the list of communicators.

getUserData

public byte[] getUserData()
Returns a byte[] containing the additional information that the user added in the DiscoveryResponse. If no additional information has been added, this method returns null.

Returns:
user-specific information.

getServerAddresses

public JMXServiceURL[] getServerAddresses()
Returns a list of connector server addresses, a server is one which is registered into an MBeanServer as JMXConnectorServerMBean, either a JMX Remote JMXConnectorServer or a Java DMK legacy one which is wrapped as a JMXConnectorServer. A Java DMK legacy connector server registered as a legacy MBean (ex: RmiConnectorServerMBean) will not be included in this list.

Returns:
a list of connector server addresses.
Since:
Java DMK 5.1

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.