org.apache.hadoop.ipc.metrics
Class RpcDetailedMetrics

java.lang.Object
  extended by org.apache.hadoop.ipc.metrics.RpcDetailedMetrics
All Implemented Interfaces:
Updater

public class RpcDetailedMetrics
extends Object
implements Updater

This class is for maintaining the various RPC method related statistics and publishing them through the metrics interfaces. This also registers the JMX MBean for RPC.


Field Summary
 MetricsRegistry registry
           
 
Constructor Summary
RpcDetailedMetrics(String hostName, String port)
           
 
Method Summary
 void doUpdates(MetricsContext context)
          Push the metrics to the monitoring subsystem on doUpdate() call.
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registry

public final MetricsRegistry registry
Constructor Detail

RpcDetailedMetrics

public RpcDetailedMetrics(String hostName,
                          String port)
Method Detail

doUpdates

public void doUpdates(MetricsContext context)
Push the metrics to the monitoring subsystem on doUpdate() call.

Specified by:
doUpdates in interface Updater

shutdown

public void shutdown()


Copyright © 2009 The Apache Software Foundation