Package org.apache.hadoop.hbase
Interface CoprocessorEnvironment<C extends Coprocessor>
- All Known Subinterfaces:
MasterCoprocessorEnvironment
,RegionCoprocessorEnvironment
,RegionServerCoprocessorEnvironment
,WALCoprocessorEnvironment
- All Known Implementing Classes:
BaseEnvironment
,MasterCoprocessorHost.MasterEnvironment
,MasterCoprocessorHost.MasterEnvironmentForCoreCoprocessors
,RegionCoprocessorHost.RegionEnvironment
,RegionCoprocessorHost.RegionEnvironmentForCoreCoprocessors
,RegionServerCoprocessorHost.RegionServerEnvironment
,RegionServerCoprocessorHost.RegionServerEnvironmentForCoreCoprocessors
,WALCoprocessorHost.WALEnvironment
@LimitedPrivate("Coprocesssor")
@Evolving
public interface CoprocessorEnvironment<C extends Coprocessor>
Coprocessor environment state.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the classloader for the loaded coprocessor instanceorg.apache.hadoop.conf.Configuration
Returns a Read-only Configuration; throwsUnsupportedOperationException
if you try to set a configuration.Returns the HBase version as a string (e.g.Returns the loaded coprocessor instanceint
Returns the load sequence numberint
Returns the priority assigned to the loaded coprocessorint
Returns the Coprocessor interface version
-
Method Details
-
getVersion
int getVersion()Returns the Coprocessor interface version -
getHBaseVersion
Returns the HBase version as a string (e.g. "0.21.0") -
getInstance
C getInstance()Returns the loaded coprocessor instance -
getPriority
int getPriority()Returns the priority assigned to the loaded coprocessor -
getLoadSequence
int getLoadSequence()Returns the load sequence number -
getConfiguration
org.apache.hadoop.conf.Configuration getConfiguration()Returns a Read-only Configuration; throwsUnsupportedOperationException
if you try to set a configuration. -
getClassLoader
Returns the classloader for the loaded coprocessor instance
-