Package com.googlecode.jmxtrans.model.output

Examples of com.googlecode.jmxtrans.model.output.StdOutWriter


    GraphiteWriter gw = GraphiteWriter.builder()
        .setHost("192.168.192.133")
        .setPort(2003)
        .build();

    StdOutWriter sw = new StdOutWriter(ImmutableList.<String>of(), false, Collections.<String, Object>emptyMap());

    Query q = Query.builder()
        .setObj("java.lang:type=Memory")
        .addAttr("HeapMemoryUsage")
        .addAttr("NonHeapMemoryUsage")
View Full Code Here


        .setPort("1099")
        .setNumQueryThreads(2)
        .addQuery(Query.builder()
            .setObj("java.lang:type=Memory")
            .addAttr("HeapMemoryUsage", "NonHeapMemoryUsage")
            .addOutputWriter(new StdOutWriter(ImmutableList.<String>of(), false, Collections.<String, Object>emptyMap()))
            .build())
        .addQuery(Query.builder()
            .setObj("java.lang:name=CMS Old Gen,type=MemoryPool")
            .addAttr("Usage")
            .addOutputWriter(new StdOutWriter(ImmutableList.<String>of(), false, Collections.<String, Object>emptyMap()))
            .build())
        .addQuery(Query.builder()
            .setObj("java.lang:name=ConcurrentMarkSweep,type=GarbageCollector")
            .addAttr("LastGcInfo")
            .addOutputWriter(new StdOutWriter(ImmutableList.<String>of(), false, Collections.<String, Object>emptyMap()))
            .build())
        .build();

    JmxProcess process = new JmxProcess(server);
    printer.prettyPrint(process);
View Full Code Here

      MBeanInfo info = connection.getMBeanInfo(name);
      MBeanAttributeInfo[] attrs = info.getAttributes();

      Query.Builder query = Query.builder()
          .setObj(name.getCanonicalName())
          .addOutputWriter(new StdOutWriter(ImmutableList.<String>of(), false, Collections.<String, Object>emptyMap()));

      for (MBeanAttributeInfo attrInfo : attrs) {
        query.addAttr(attrInfo.getName());
      }
View Full Code Here

TOP

Related Classes of com.googlecode.jmxtrans.model.output.StdOutWriter

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.