static class WALCoprocessorHost.WALEnvironment extends BaseEnvironment<WALCoprocessor> implements WALCoprocessorEnvironment
Modifier and Type | Field and Description |
---|---|
private MetricRegistry |
metricRegistry |
private WAL |
wal |
impl, priority
Modifier | Constructor and Description |
---|---|
private |
WALEnvironment(WALCoprocessor impl,
int priority,
int seq,
org.apache.hadoop.conf.Configuration conf,
WAL wal)
Constructor
|
Modifier and Type | Method and Description |
---|---|
MetricRegistry |
getMetricRegistryForRegionServer()
Returns a MetricRegistry that can be used to track metrics at the region server level.
|
WAL |
getWAL() |
void |
shutdown()
Clean up the environment
|
getClassLoader, getConfiguration, getHBaseVersion, getInstance, getLoadSequence, getPriority, getVersion, startup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClassLoader, getConfiguration, getHBaseVersion, getInstance, getLoadSequence, getPriority, getVersion
private final MetricRegistry metricRegistry
private WALEnvironment(WALCoprocessor impl, int priority, int seq, org.apache.hadoop.conf.Configuration conf, WAL wal)
impl
- the coprocessor instancepriority
- chaining priorityseq
- load sequenceconf
- configurationwal
- WALpublic WAL getWAL()
getWAL
in interface WALCoprocessorEnvironment
public MetricRegistry getMetricRegistryForRegionServer()
WALCoprocessorEnvironment
See ExampleRegionServerObserverWithMetrics class in the hbase-examples modules for examples of how metrics can be instantiated and used.
getMetricRegistryForRegionServer
in interface WALCoprocessorEnvironment
public void shutdown()
BaseEnvironment
shutdown
in class BaseEnvironment<WALCoprocessor>
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.