Package org.apache.hadoop.hbase.metrics
Class MetricRegistryInfo
java.lang.Object
org.apache.hadoop.hbase.metrics.MetricRegistryInfo
HBase Metrics are grouped in different MetricRegistry'ies. All metrics that correspond to a
subcomponent (like RPC, GC, WAL) are managed in a single MetricRegistry. This class holds the
name and description and JMX related context names for such group of metrics.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMetricRegistryInfo
(String metricsName, String metricsDescription, String metricsJmxContext, String metricsContext, boolean existingSource) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the metrics context.Get the description of what this source exposes.Get the name of the context in JMX that this source will be exposed through.Get the name of the metrics that are being exported by this source.int
hashCode()
boolean
Returns whether or not this MetricRegistry is for an existing BaseSource
-
Field Details
-
metricsName
-
metricsDescription
-
metricsContext
-
metricsJmxContext
-
existingSource
-
-
Constructor Details
-
MetricRegistryInfo
public MetricRegistryInfo(String metricsName, String metricsDescription, String metricsJmxContext, String metricsContext, boolean existingSource)
-
-
Method Details
-
getMetricsContext
Get the metrics context. For hadoop metrics2 system this is usually an all lowercased string. eg. regionserver, master, thriftserver- Returns:
- The string context used to register this source to hadoop's metrics2 system.
-
getMetricsDescription
Get the description of what this source exposes. -
getMetricsJmxContext
Get the name of the context in JMX that this source will be exposed through. This is in ObjectName format. With the default context being Hadoop -> HBase -
getMetricsName
Get the name of the metrics that are being exported by this source. Eg. IPC, GC, WAL -
isExistingSource
Returns whether or not this MetricRegistry is for an existing BaseSource- Returns:
- true if this MetricRegistry is for an existing BaseSource.
-
equals
-
hashCode
-