|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.master.MetricsMaster
@InterfaceStability.Evolving @InterfaceAudience.Private public class MetricsMaster
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 |
---|
public MetricsMaster(MetricsMasterWrapper masterWrapper)
Method Detail |
---|
public MetricsMasterSource getMetricsSource()
public void addSplit(long time, long size)
time
- time that the split tooksize
- length of original HLogs that were splitpublic void addMetaWALSplit(long time, long size)
time
- time that the split tooksize
- length of original HLogs that were splitpublic void incrementRequests(int inc)
inc
- How much to add to requests.public void updateRITCount(int ritCount)
ritCount
- public void updateRITCountOverThreshold(int ritCountOverThreshold)
ritCountOverThreshold
- public void updateRITOldestAge(long timestamp)
timestamp
- public void addSnapshot(long time)
time
- time that the snapshot tookpublic void addSnapshotRestore(long time)
time
- time that the snapshot restore tookpublic void addSnapshotClone(long time)
time
- time that the snapshot clone took
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |