org.apache.hadoop.hbase.metrics
Class MetricsMBeanBase
java.lang.Object
org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase
org.apache.hadoop.hbase.metrics.MetricsMBeanBase
- All Implemented Interfaces:
- DynamicMBean
- Direct Known Subclasses:
- MasterStatistics, RegionServerStatistics, ReplicationStatistics, RESTStatistics
public class MetricsMBeanBase
- extends org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase
Extends the Hadoop MetricsDynamicMBeanBase class to provide JMX support for
custom HBase MetricsBase implementations. MetricsDynamicMBeanBase ignores
registered MetricsBase instance that are not instances of one of the
org.apache.hadoop.metrics.util implementations.
|
Constructor Summary |
protected |
MetricsMBeanBase(org.apache.hadoop.metrics.util.MetricsRegistry mr,
String description)
|
| Methods inherited from class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase |
getAttributes, invoke, setAttribute, setAttributes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
registry
protected final org.apache.hadoop.metrics.util.MetricsRegistry registry
description
protected final String description
registryLength
protected int registryLength
extendedAttributes
protected Map<String,org.apache.hadoop.metrics.util.MetricsBase> extendedAttributes
- HBase MetricsBase implementations that MetricsDynamicMBeanBase does
not understand
extendedInfo
protected MBeanInfo extendedInfo
MetricsMBeanBase
protected MetricsMBeanBase(org.apache.hadoop.metrics.util.MetricsRegistry mr,
String description)
init
protected void init()
getAttribute
public Object getAttribute(String name)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
- Specified by:
getAttribute in interface DynamicMBean- Overrides:
getAttribute in class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo in interface DynamicMBean- Overrides:
getMBeanInfo in class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase
Copyright © 2010 Apache Software Foundation. All Rights Reserved.