Package org.platformlayer.client.cli.output

Examples of org.platformlayer.client.cli.output.MetricToJsonVisitor


  @Override
  public void formatRaw(Object o, PrintWriter writer) {
    MetricDataStream dataStream = (MetricDataStream) o;

    try {
      MetricToJsonVisitor visitor = new MetricToJsonVisitor(writer);
      dataStream.accept(visitor);
      visitor.close();
    } catch (IOException e) {
      throw new IllegalArgumentException("Error formatting results", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.client.cli.output.MetricToJsonVisitor

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.