org.apache.hadoop.hbase.master
Class MetricsMaster

java.lang.Object
  extended by org.apache.hadoop.hbase.master.MetricsMaster

@InterfaceStability.Evolving
@InterfaceAudience.Private
public class MetricsMaster
extends Object

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.


Constructor Summary
MetricsMaster(MetricsMasterWrapper masterWrapper)
           
 
Method Summary
 void addSplit(long time, long size)
          Record a single instance of a split
 MetricsMasterSource getMetricsSource()
           
 void incrementRequests(int inc)
           
 void updateRITCount(int ritCount)
          set new value for number of regions in transition.
 void updateRITCountOverThreshold(int ritCountOverThreshold)
          update RIT count that are in this state for more than the threshold as defined by the property rit.metrics.threshold.time.
 void updateRITOldestAge(long timestamp)
          update the timestamp for oldest region in transition metrics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricsMaster

public MetricsMaster(MetricsMasterWrapper masterWrapper)
Method Detail

getMetricsSource

public MetricsMasterSource getMetricsSource()

addSplit

public void addSplit(long time,
                     long size)
Record a single instance of a split

Parameters:
time - time that the split took
size - length of original HLogs that were split

incrementRequests

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

updateRITCount

public void updateRITCount(int ritCount)
set new value for number of regions in transition.

Parameters:
ritCount -

updateRITCountOverThreshold

public void updateRITCountOverThreshold(int ritCountOverThreshold)
update RIT count that are in this state for more than the threshold as defined by the property rit.metrics.threshold.time.

Parameters:
ritCountOverThreshold -

updateRITOldestAge

public void updateRITOldestAge(long timestamp)
update the timestamp for oldest region in transition metrics.

Parameters:
timestamp -


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