org.apache.hadoop.hbase.master
Class MetricsAssignmentManagerSourceImpl
java.lang.Object
org.apache.hadoop.hbase.metrics.BaseSourceImpl
org.apache.hadoop.hbase.master.MetricsAssignmentManagerSourceImpl
- All Implemented Interfaces:
- MetricsAssignmentManagerSource, BaseSource, org.apache.hadoop.metrics2.MetricsSource
@InterfaceAudience.Private
public class MetricsAssignmentManagerSourceImpl
- extends BaseSourceImpl
- implements MetricsAssignmentManagerSource
Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl |
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource |
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantile |
MetricsAssignmentManagerSourceImpl
public MetricsAssignmentManagerSourceImpl()
MetricsAssignmentManagerSourceImpl
public MetricsAssignmentManagerSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext)
init
public void init()
- Description copied from interface:
BaseSource
- Clear out the metrics and re-prepare the source.
- Specified by:
init
in interface BaseSource
- Overrides:
init
in class BaseSourceImpl
updateAssignmentTime
public void updateAssignmentTime(long time)
- Specified by:
updateAssignmentTime
in interface MetricsAssignmentManagerSource
updateBulkAssignTime
public void updateBulkAssignTime(long time)
- Specified by:
updateBulkAssignTime
in interface MetricsAssignmentManagerSource
setRIT
public void setRIT(int ritCount)
- Description copied from interface:
MetricsAssignmentManagerSource
- Set the number of regions in transition.
- Specified by:
setRIT
in interface MetricsAssignmentManagerSource
- Parameters:
ritCount
- count of the regions in transition.
setRITCountOverThreshold
public void setRITCountOverThreshold(int ritCount)
- Description copied from interface:
MetricsAssignmentManagerSource
- Set the count of the number of regions that have been in transition over the threshold time.
- Specified by:
setRITCountOverThreshold
in interface MetricsAssignmentManagerSource
- Parameters:
ritCount
- number of regions in transition for longer than threshold.
setRITOldestAge
public void setRITOldestAge(long ritCount)
- Description copied from interface:
MetricsAssignmentManagerSource
- Set the oldest region in transition.
- Specified by:
setRITOldestAge
in interface MetricsAssignmentManagerSource
- Parameters:
ritCount
- age of the oldest RIT.
Copyright © 2015 The Apache Software Foundation. All rights reserved.