Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.jmx » connector » [javadoc | source]
org.jboss.jmx.connector
public class: TestClient [javadoc | source]
java.lang.Object
   org.jboss.jmx.connector.TestClient
Test Client for the JMX Client Connector. It cretes a local MBeanServer and adds the ConnectorFactory as first MBean. Then it will use the ConnectorFactory to local servers on the net and then to locate its offered protocols (Server side Connectors). After the user selected and server and a protocol its client-side connector will be loaded through the ConnectorFactory and a connection to the server will be established. Now the offered MBean on the remote server and its attributes and operations will be listed and at the end this test client will add a notification listener to all MBeans on the remote server. The user can now wait for a notification because the client will be up and running. If the user stops the client by -C it will stop and deregister the selected Connector (locally) and this will remove all the registered listeners.
Method from org.jboss.jmx.connector.TestClient Summary:
listServices,   main,   registerListeners
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.jmx.connector.TestClient Detail:
 public static  void listServices(RemoteMBeanServer pConnector) throws Exception 
 public static  void main(String[] args) throws Exception 
 public static  void registerListeners(RemoteMBeanServer pConnector) throws Exception