org.apache.hadoop.hbase.master
Class MetricsAssignmentManagerSourceImpl

java.lang.Object
  extended by org.apache.hadoop.hbase.metrics.BaseSourceImpl
      extended by 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


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry
 
Fields inherited from interface org.apache.hadoop.hbase.master.MetricsAssignmentManagerSource
ASSIGN_TIME_NAME, BULK_ASSIGN_TIME_NAME, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, RIT_COUNT_NAME, RIT_COUNT_OVER_THRESHOLD_NAME, RIT_OLDEST_AGE_NAME
 
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
 
Constructor Summary
MetricsAssignmentManagerSourceImpl()
           
MetricsAssignmentManagerSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
           
 
Method Summary
 void init()
          Clear out the metrics and re-prepare the source.
 void setRIT(int ritCount)
          Set the number of regions in transition.
 void setRITCountOverThreshold(int ritCount)
          Set the count of the number of regions that have been in transition over the threshold time.
 void setRITOldestAge(long ritCount)
          Set the oldest region in transition.
 void updateAssignmentTime(long time)
           
 void updateBulkAssignTime(long time)
           
 
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
 

Constructor Detail

MetricsAssignmentManagerSourceImpl

public MetricsAssignmentManagerSourceImpl()

MetricsAssignmentManagerSourceImpl

public MetricsAssignmentManagerSourceImpl(String metricsName,
                                          String metricsDescription,
                                          String metricsContext,
                                          String metricsJmxContext)
Method Detail

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.