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 addMetaWALSplit(long time, long size)
          Record a single instance of a split
 void addSnapshot(long time)
          Record a single instance of a snapshot
 void addSnapshotClone(long time)
          Record a single instance of a snapshot cloned table
 void addSnapshotRestore(long time)
          Record a single instance of a snapshot
 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

addMetaWALSplit

public void addMetaWALSplit(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 -

addSnapshot

public void addSnapshot(long time)
Record a single instance of a snapshot

Parameters:
time - time that the snapshot took

addSnapshotRestore

public void addSnapshotRestore(long time)
Record a single instance of a snapshot

Parameters:
time - time that the snapshot restore took

addSnapshotClone

public void addSnapshotClone(long time)
Record a single instance of a snapshot cloned table

Parameters:
time - time that the snapshot clone took


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