org.apache.hadoop.chukwa.datacollection.sender.metrics
Class HttpSenderMetrics

java.lang.Object
  extended by org.apache.hadoop.chukwa.datacollection.sender.metrics.HttpSenderMetrics
All Implemented Interfaces:
org.apache.hadoop.metrics.Updater

public class HttpSenderMetrics
extends Object
implements org.apache.hadoop.metrics.Updater


Field Summary
 org.apache.hadoop.metrics.util.MetricsTimeVaryingInt collectorRollover
           
 org.apache.hadoop.metrics.util.MetricsTimeVaryingInt httpException
           
 org.apache.hadoop.metrics.util.MetricsTimeVaryingInt httpPost
           
 org.apache.hadoop.metrics.util.MetricsTimeVaryingInt httpThrowable
           
 org.apache.hadoop.metrics.util.MetricsTimeVaryingInt httpTimeOutException
           
 org.apache.hadoop.metrics.util.MetricsRegistry registry
           
 
Constructor Summary
HttpSenderMetrics(String processName, String recordName)
          Creates a new instance of HttpSenderMetrics
 
Method Summary
 void doUpdates(org.apache.hadoop.metrics.MetricsContext unused)
          Since this object is a registered updater, this method will be called periodically, e.g.
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registry

public org.apache.hadoop.metrics.util.MetricsRegistry registry

collectorRollover

public org.apache.hadoop.metrics.util.MetricsTimeVaryingInt collectorRollover

httpPost

public org.apache.hadoop.metrics.util.MetricsTimeVaryingInt httpPost

httpException

public org.apache.hadoop.metrics.util.MetricsTimeVaryingInt httpException

httpThrowable

public org.apache.hadoop.metrics.util.MetricsTimeVaryingInt httpThrowable

httpTimeOutException

public org.apache.hadoop.metrics.util.MetricsTimeVaryingInt httpTimeOutException
Constructor Detail

HttpSenderMetrics

public HttpSenderMetrics(String processName,
                         String recordName)
Creates a new instance of HttpSenderMetrics

Method Detail

doUpdates

public void doUpdates(org.apache.hadoop.metrics.MetricsContext unused)
Since this object is a registered updater, this method will be called periodically, e.g. every 5 seconds.

Specified by:
doUpdates in interface org.apache.hadoop.metrics.Updater

shutdown

public void shutdown()


Copyright © ${year} The Apache Software Foundation