org.apache.hadoop.hbase.rest.metrics
Class RESTMetrics

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

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


Constructor Summary
RESTMetrics()
           
 
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 getFailedDeleteCount()
           
 float getFailedGetCount()
           
 float getFailedPutCount()
           
 float getRequests()
           
 float getSucessfulDeleteCount()
           
 float getSucessfulGetCount()
           
 float getSucessfulPutCount()
           
 void incrementFailedDeleteRequests(int inc)
           
 void incrementFailedGetRequests(int inc)
           
 void incrementFailedPutRequests(int inc)
           
 void incrementRequests(int inc)
           
 void incrementSucessfulDeleteRequests(int inc)
           
 void incrementSucessfulGetRequests(int inc)
           
 void incrementSucessfulPutRequests(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

RESTMetrics

public RESTMetrics()
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.

getSucessfulGetCount

public float getSucessfulGetCount()
Returns:
Count of sucessfulGetCount.

incrementSucessfulGetRequests

public void incrementSucessfulGetRequests(int inc)
Parameters:
inc - How much to add to sucessfulGetCount.

getSucessfulPutCount

public float getSucessfulPutCount()
Returns:
Count of sucessfulGetCount.

incrementSucessfulPutRequests

public void incrementSucessfulPutRequests(int inc)
Parameters:
inc - How much to add to sucessfulPutCount.

getFailedPutCount

public float getFailedPutCount()
Returns:
Count of failedPutCount.

incrementFailedPutRequests

public void incrementFailedPutRequests(int inc)
Parameters:
inc - How much to add to failedPutCount.

getFailedGetCount

public float getFailedGetCount()
Returns:
Count of failedGetCount.

incrementFailedGetRequests

public void incrementFailedGetRequests(int inc)
Parameters:
inc - How much to add to failedGetCount.

getSucessfulDeleteCount

public float getSucessfulDeleteCount()
Returns:
Count of sucessfulGetCount.

incrementSucessfulDeleteRequests

public void incrementSucessfulDeleteRequests(int inc)
Parameters:
inc - How much to add to sucessfulDeleteCount.

getFailedDeleteCount

public float getFailedDeleteCount()
Returns:
Count of failedDeleteCount.

incrementFailedDeleteRequests

public void incrementFailedDeleteRequests(int inc)
Parameters:
inc - How much to add to failedDeleteCount.


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.