站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 server API Documentation 英文版文档

TestClient (JBoss Server API) - JBoss 3.2.7 server API Documentation 英文版文档


org.jboss.jmx.connector
Class TestClient

java.lang.Object
  extended byorg.jboss.jmx.connector.TestClient

public class TestClient
extends Object

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.

Author:
Andreas Schaefer (andreas.schaefer@madplanet.com)
See Also:

Constructor Summary
TestClient()
           
 
Method Summary
static void listServices(RemoteMBeanServer pConnector)
           
static void main(String[] args)
           
static void registerListeners(RemoteMBeanServer pConnector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestClient

public TestClient()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

listServices

public static void listServices(RemoteMBeanServer pConnector)
                         throws Exception
Throws:
Exception

registerListeners

public static void registerListeners(RemoteMBeanServer pConnector)
                              throws Exception
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.