org.apache.hadoop.hbase.stargate.metrics
Class StargateMetrics

java.lang.Object
  extended by org.apache.hadoop.hbase.stargate.metrics.StargateMetrics
All Implemented Interfaces:
org.apache.hadoop.metrics.Updater

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


Constructor Summary
StargateMetrics()
           
 
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.
 float getRequests()
           
 void incrementRequests(int inc)
           
 void resetAllMinMax()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StargateMetrics

public StargateMetrics()
Method Detail

shutdown

public void shutdown()

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
Parameters:
unused -

resetAllMinMax

public void resetAllMinMax()

getRequests

public float getRequests()
Returns:
Count of requests.

incrementRequests

public void incrementRequests(int inc)
Parameters:
inc - How much to add to requests.


Copyright © 2010 The Apache Software Foundation