Package org.apache.hadoop.hbase
Interface CoprocessorEnvironment<C extends Coprocessor>
- All Known Subinterfaces:
MasterCoprocessorEnvironment,RegionCoprocessorEnvironment,RegionServerCoprocessorEnvironment,RpcCoprocessorEnvironment,WALCoprocessorEnvironment
- All Known Implementing Classes:
BaseEnvironment,MasterCoprocessorHost.MasterEnvironment,MasterCoprocessorHost.MasterEnvironmentForCoreCoprocessors,RegionCoprocessorHost.RegionEnvironment,RegionCoprocessorHost.RegionEnvironmentForCoreCoprocessors,RegionServerCoprocessorHost.RegionServerEnvironment,RegionServerCoprocessorHost.RegionServerEnvironmentForCoreCoprocessors,RpcCoprocessorHost.RpcEnvironment,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.ConfigurationReturns a Read-only Configuration; throwsUnsupportedOperationExceptionif you try to set a configuration.Returns the HBase version as a string (e.g.Returns the loaded coprocessor instanceintReturns the load sequence numberintReturns the priority assigned to the loaded coprocessorintReturns 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; throwsUnsupportedOperationExceptionif you try to set a configuration. -
getClassLoader
Returns the classloader for the loaded coprocessor instance
-