Class WALCoprocessorHost.WALEnvironment
java.lang.Object
org.apache.hadoop.hbase.coprocessor.BaseEnvironment<WALCoprocessor>
org.apache.hadoop.hbase.regionserver.wal.WALCoprocessorHost.WALEnvironment
- All Implemented Interfaces:
WALCoprocessorEnvironment,CoprocessorEnvironment<WALCoprocessor>
- Enclosing class:
- WALCoprocessorHost
static class WALCoprocessorHost.WALEnvironment
extends BaseEnvironment<WALCoprocessor>
implements WALCoprocessorEnvironment
Encapsulation of the environment of each coprocessor
-
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.coprocessor.BaseEnvironment
impl, priority -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateWALEnvironment(WALCoprocessor impl, int priority, int seq, org.apache.hadoop.conf.Configuration conf, WAL wal) Constructor -
Method Summary
Methods inherited from class org.apache.hadoop.hbase.coprocessor.BaseEnvironment
getClassLoader, getConfiguration, getHBaseVersion, getInstance, getLoadSequence, getPriority, getVersion, startupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.CoprocessorEnvironment
getClassLoader, getConfiguration, getHBaseVersion, getInstance, getLoadSequence, getPriority, getVersion
-
Field Details
-
wal
-
metricRegistry
-
-
Constructor Details
-
WALEnvironment
private WALEnvironment(WALCoprocessor impl, int priority, int seq, org.apache.hadoop.conf.Configuration conf, WAL wal) Constructor- Parameters:
impl- the coprocessor instancepriority- chaining priorityseq- load sequenceconf- configurationwal- WAL
-
-
Method Details
-
getWAL
Description copied from interface:WALCoprocessorEnvironmentReturns reference to the region server's WAL- Specified by:
getWALin interfaceWALCoprocessorEnvironment
-
getMetricRegistryForRegionServer
Description copied from interface:WALCoprocessorEnvironmentReturns a MetricRegistry that can be used to track metrics at the region server level.See ExampleRegionServerObserverWithMetrics class in the hbase-examples modules for examples of how metrics can be instantiated and used.
- Specified by:
getMetricRegistryForRegionServerin interfaceWALCoprocessorEnvironment- Returns:
- A MetricRegistry for the coprocessor class to track and export metrics.
-
shutdown
Description copied from class:BaseEnvironmentClean up the environment- Overrides:
shutdownin classBaseEnvironment<WALCoprocessor>
-