Package com.googlecode.jmxtrans.model

Examples of com.googlecode.jmxtrans.model.Server


public class TreeWalker {

  private static final Logger log = LoggerFactory.getLogger(TreeWalker.class);

  public static void main(String[] args) throws Exception {
    Server server = Server.builder().setHost("localhost").setPort("1099").build();

    JMXConnector conn = null;
    try {
      conn = server.getServerConnection();
      MBeanServerConnection mbeanServer = conn.getMBeanServerConnection();

      TreeWalker tw = new TreeWalker();
      tw.walkTree(mbeanServer);
    } catch (IOException e) {
      log.error("Problem processing queries for server: " + server.getHost() + ":" + server.getPort(), e);
    } finally {
      if (conn != null) {
        conn.close();
      }
    }
View Full Code Here

TOP

Related Classes of com.googlecode.jmxtrans.model.Server

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.