org.apache.blur.metrics
Class JSONReporter

java.lang.Object
  extended by com.yammer.metrics.reporting.AbstractReporter
      extended by com.yammer.metrics.reporting.AbstractPollingReporter
          extended by org.apache.blur.metrics.JSONReporter
All Implemented Interfaces:
com.yammer.metrics.core.MetricProcessor<org.apache.blur.metrics.JSONReporter.Context>, Runnable

public class JSONReporter
extends com.yammer.metrics.reporting.AbstractPollingReporter
implements com.yammer.metrics.core.MetricProcessor<org.apache.blur.metrics.JSONReporter.Context>


Method Summary
static void enable(com.yammer.metrics.core.MetricsRegistry metricsRegistry, String name, long period, TimeUnit unit, int numberOfElements)
           
static void enable(String name, long period, TimeUnit unit, int numberOfElements)
           
 void processCounter(com.yammer.metrics.core.MetricName name, com.yammer.metrics.core.Counter counter, org.apache.blur.metrics.JSONReporter.Context context)
           
 void processGauge(com.yammer.metrics.core.MetricName name, com.yammer.metrics.core.Gauge<?> gauge, org.apache.blur.metrics.JSONReporter.Context context)
           
 void processHistogram(com.yammer.metrics.core.MetricName name, com.yammer.metrics.core.Histogram histogram, org.apache.blur.metrics.JSONReporter.Context context)
           
 void processMeter(com.yammer.metrics.core.MetricName name, com.yammer.metrics.core.Metered meter, org.apache.blur.metrics.JSONReporter.Context context)
           
 void processTimer(com.yammer.metrics.core.MetricName name, com.yammer.metrics.core.Timer timer, org.apache.blur.metrics.JSONReporter.Context context)
           
 void run()
           
static void writeJSONData(Writer writer)
           
 
Methods inherited from class com.yammer.metrics.reporting.AbstractPollingReporter
shutdown, shutdown, start
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

enable

public static void enable(String name,
                          long period,
                          TimeUnit unit,
                          int numberOfElements)
                   throws IOException
Throws:
IOException

enable

public static void enable(com.yammer.metrics.core.MetricsRegistry metricsRegistry,
                          String name,
                          long period,
                          TimeUnit unit,
                          int numberOfElements)
                   throws IOException
Throws:
IOException

writeJSONData

public static void writeJSONData(Writer writer)
                          throws IOException
Throws:
IOException

run

public void run()
Specified by:
run in interface Runnable
Specified by:
run in class com.yammer.metrics.reporting.AbstractPollingReporter

processMeter

public void processMeter(com.yammer.metrics.core.MetricName name,
                         com.yammer.metrics.core.Metered meter,
                         org.apache.blur.metrics.JSONReporter.Context context)
                  throws Exception
Specified by:
processMeter in interface com.yammer.metrics.core.MetricProcessor<org.apache.blur.metrics.JSONReporter.Context>
Throws:
Exception

processCounter

public void processCounter(com.yammer.metrics.core.MetricName name,
                           com.yammer.metrics.core.Counter counter,
                           org.apache.blur.metrics.JSONReporter.Context context)
                    throws Exception
Specified by:
processCounter in interface com.yammer.metrics.core.MetricProcessor<org.apache.blur.metrics.JSONReporter.Context>
Throws:
Exception

processHistogram

public void processHistogram(com.yammer.metrics.core.MetricName name,
                             com.yammer.metrics.core.Histogram histogram,
                             org.apache.blur.metrics.JSONReporter.Context context)
                      throws Exception
Specified by:
processHistogram in interface com.yammer.metrics.core.MetricProcessor<org.apache.blur.metrics.JSONReporter.Context>
Throws:
Exception

processTimer

public void processTimer(com.yammer.metrics.core.MetricName name,
                         com.yammer.metrics.core.Timer timer,
                         org.apache.blur.metrics.JSONReporter.Context context)
                  throws Exception
Specified by:
processTimer in interface com.yammer.metrics.core.MetricProcessor<org.apache.blur.metrics.JSONReporter.Context>
Throws:
Exception

processGauge

public void processGauge(com.yammer.metrics.core.MetricName name,
                         com.yammer.metrics.core.Gauge<?> gauge,
                         org.apache.blur.metrics.JSONReporter.Context context)
                  throws Exception
Specified by:
processGauge in interface com.yammer.metrics.core.MetricProcessor<org.apache.blur.metrics.JSONReporter.Context>
Throws:
Exception


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.