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, startupclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassLoader, getConfiguration, getHBaseVersion, getInstance, getLoadSequence, getPriority, getVersionprivate 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 WALCoprocessorEnvironmentpublic MetricRegistry getMetricRegistryForRegionServer()
WALCoprocessorEnvironmentSee ExampleRegionServerObserverWithMetrics class in the hbase-examples modules for examples of how metrics can be instantiated and used.
getMetricRegistryForRegionServer in interface WALCoprocessorEnvironmentpublic void shutdown()
BaseEnvironmentshutdown in class BaseEnvironment<WALCoprocessor>Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.