public class RESTMetrics extends Object implements org.apache.hadoop.metrics.Updater
Constructor and Description |
---|
RESTMetrics() |
Modifier and Type | Method and Description |
---|---|
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() |
public void shutdown()
public void doUpdates(org.apache.hadoop.metrics.MetricsContext unused)
doUpdates
in interface org.apache.hadoop.metrics.Updater
unused
- public void resetAllMinMax()
public float getRequests()
public void incrementRequests(int inc)
inc
- How much to add to requests.public float getSucessfulGetCount()
public void incrementSucessfulGetRequests(int inc)
inc
- How much to add to sucessfulGetCount.public float getSucessfulPutCount()
public void incrementSucessfulPutRequests(int inc)
inc
- How much to add to sucessfulPutCount.public float getFailedPutCount()
public void incrementFailedPutRequests(int inc)
inc
- How much to add to failedPutCount.public float getFailedGetCount()
public void incrementFailedGetRequests(int inc)
inc
- How much to add to failedGetCount.public float getSucessfulDeleteCount()
public void incrementSucessfulDeleteRequests(int inc)
inc
- How much to add to sucessfulDeleteCount.public float getFailedDeleteCount()
public void incrementFailedDeleteRequests(int inc)
inc
- How much to add to failedDeleteCount.Copyright © 2014 The Apache Software Foundation. All Rights Reserved.