Examples of MetricTreeVisitor


Examples of org.platformlayer.metrics.MetricTreeVisitor

  }

  public void serialize(MetricTreeBase tree, OutputStream os) throws IOException {
    final JsonGenerator jsonGenerator = jsonFactory.createJsonGenerator(os);

    tree.accept(new MetricTreeVisitor() {
      private void writeKey(MetricTreeBase o) throws JsonGenerationException, IOException {
        if (o.getKey() != null) {
          jsonGenerator.writeFieldName(o.getKey());
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.