org.apache.hadoop.hbase.master.metrics
Class MasterMetrics
java.lang.Object
org.apache.hadoop.hbase.master.metrics.MasterMetrics
- All Implemented Interfaces:
- org.apache.hadoop.metrics.Updater
public class MasterMetrics
- extends Object
- implements org.apache.hadoop.metrics.Updater
This class is for maintaining the various master statistics
and publishing them through the metrics interfaces.
This class has a number of metrics variables that are publicly accessible;
these variables (objects) have methods to update their values.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MasterMetrics
public MasterMetrics(String name)
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()
addSplit
public void addSplit(long time,
long size)
- Record a single instance of a split
- Parameters:
time
- time that the split tooksize
- length of original HLogs that were split
getRequests
public float getRequests()
- Returns:
- Count of requests.
incrementRequests
public void incrementRequests(int inc)
- Parameters:
inc
- How much to add to requests.
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.