Class MetricsUserAggregateSourceImpl
java.lang.Object
org.apache.hadoop.hbase.metrics.BaseSourceImpl
org.apache.hadoop.hbase.regionserver.MetricsUserAggregateSourceImpl
- All Implemented Interfaces:
BaseSource
,MetricsUserAggregateSource
,org.apache.hadoop.metrics2.MetricsSource
@Private
public class MetricsUserAggregateSourceImpl
extends BaseSourceImpl
implements MetricsUserAggregateSource
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final ConcurrentHashMap<String,
MetricsUserSource> Fields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
Fields inherited from interface org.apache.hadoop.hbase.regionserver.MetricsUserAggregateSource
METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, NUM_USERS, NUMBER_OF_USERS_DESC
-
Constructor Summary
ConstructorDescriptionMetricsUserAggregateSourceImpl
(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deregister
(MetricsUserSource toRemove) void
getMetrics
(org.apache.hadoop.metrics2.MetricsCollector collector, boolean all) getOrCreateMetricsUser
(String user) Returns a MetricsUserSource if already exists, or creates and registers one for this uservoid
register
(MetricsUserSource source) Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
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, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
-
Field Details
-
LOG
-
userSources
-
-
Constructor Details
-
MetricsUserAggregateSourceImpl
public MetricsUserAggregateSourceImpl() -
MetricsUserAggregateSourceImpl
public MetricsUserAggregateSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
-
-
Method Details
-
getOrCreateMetricsUser
Description copied from interface:MetricsUserAggregateSource
Returns a MetricsUserSource if already exists, or creates and registers one for this user- Specified by:
getOrCreateMetricsUser
in interfaceMetricsUserAggregateSource
- Parameters:
user
- the user name- Returns:
- a metrics user source
-
register
-
deregister
- Specified by:
deregister
in interfaceMetricsUserAggregateSource
-
getUserSources
- Specified by:
getUserSources
in interfaceMetricsUserAggregateSource
-
getMetrics
- Specified by:
getMetrics
in interfaceorg.apache.hadoop.metrics2.MetricsSource
- Overrides:
getMetrics
in classBaseSourceImpl
-