Class ClientMetaCoprocessorHost
java.lang.Object
org.apache.hadoop.hbase.coprocessor.CoprocessorHost<ClientMetaCoprocessor,ClientMetaCoprocessorEnvironment>
org.apache.hadoop.hbase.coprocessor.ClientMetaCoprocessorHost
@Private
public class ClientMetaCoprocessorHost
extends CoprocessorHost<ClientMetaCoprocessor,ClientMetaCoprocessorEnvironment>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classNested classes/interfaces inherited from class org.apache.hadoop.hbase.coprocessor.CoprocessorHost
CoprocessorHost.EnvironmentPriorityComparator, CoprocessorHost.ObserverGetter<C,O>, CoprocessorHost.ObserverOperationWithoutResult<O>, CoprocessorHost.ObserverOperationWithResult<O, R> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.LoggerFields inherited from class org.apache.hadoop.hbase.coprocessor.CoprocessorHost
ABORT_ON_ERROR_KEY, abortable, CLIENT_META_COPROCESSOR_CONF_KEY, conf, coprocEnvironments, COPROCESSORS_ENABLED_CONF_KEY, DEFAULT_ABORT_ON_ERROR, DEFAULT_COPROCESSORS_ENABLED, DEFAULT_SKIP_LOAD_DUPLICATE_TABLE_COPROCESSOR, DEFAULT_USER_COPROCESSORS_ENABLED, loadSequence, MASTER_COPROCESSOR_CONF_KEY, pathPrefix, REGION_COPROCESSOR_CONF_KEY, REGIONSERVER_COPROCESSOR_CONF_KEY, RPC_COPROCESSOR_CONF_KEY, SKIP_LOAD_DUPLICATE_TABLE_COPROCESSOR, USER_COPROCESSORS_ENABLED_CONF_KEY, USER_REGION_COPROCESSOR_CONF_KEY, WAL_COPROCESSOR_CONF_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckAndGetInstance(Class<?> implClass) Called when a new Coprocessor class needs to be loaded.createEnvironment(ClientMetaCoprocessor instance, int priority, int sequence, org.apache.hadoop.conf.Configuration conf) Called when a new Coprocessor class is loadedpostGetActiveMaster(ServerName serverName) postGetBootstrapNodes(List<ServerName> bootstrapNodes) postGetClusterId(String clusterId) postGetMasters(Map<ServerName, Boolean> serverNames) postGetMetaLocations(List<HRegionLocation> metaLocations) voidvoidvoidvoidvoidMethods inherited from class org.apache.hadoop.hbase.coprocessor.CoprocessorHost
abortServer, abortServer, checkAndLoadInstance, execOperation, execOperationWithResult, execShutdown, findCoprocessor, findCoprocessor, findCoprocessorEnvironment, findCoprocessors, getCoprocessorClassNames, getCoprocessors, getExternalClassLoaders, getLoadedCoprocessors, handleCoprocessorThrowable, load, load, load, loadSystemCoprocessors, shutdown
-
Field Details
-
LOG
-
clientMetaObserverGetter
-
-
Constructor Details
-
ClientMetaCoprocessorHost
-
-
Method Details
-
createEnvironment
public ClientMetaCoprocessorEnvironment createEnvironment(ClientMetaCoprocessor instance, int priority, int sequence, org.apache.hadoop.conf.Configuration conf) Description copied from class:CoprocessorHostCalled when a new Coprocessor class is loaded- Specified by:
createEnvironmentin classCoprocessorHost<ClientMetaCoprocessor,ClientMetaCoprocessorEnvironment>
-
checkAndGetInstance
public ClientMetaCoprocessor checkAndGetInstance(Class<?> implClass) throws InstantiationException, IllegalAccessException Description copied from class:CoprocessorHostCalled when a new Coprocessor class needs to be loaded. Checks if type of the given class is what the corresponding host implementation expects. If it is of correct type, returns an instance of the coprocessor to be loaded. If not, returns null. If an exception occurs when trying to create instance of a coprocessor, it's passed up and eventually results into server aborting.- Specified by:
checkAndGetInstancein classCoprocessorHost<ClientMetaCoprocessor,ClientMetaCoprocessorEnvironment> - Throws:
InstantiationExceptionIllegalAccessException
-
preGetClusterId
- Throws:
IOException
-
postGetClusterId
- Throws:
IOException
-
preGetActiveMaster
- Throws:
IOException
-
postGetActiveMaster
- Throws:
IOException
-
preGetMasters
- Throws:
IOException
-
postGetMasters
public Map<ServerName,Boolean> postGetMasters(Map<ServerName, Boolean> serverNames) throws IOException- Throws:
IOException
-
preGetBootstrapNodes
- Throws:
IOException
-
postGetBootstrapNodes
- Throws:
IOException
-
preGetMetaLocations
- Throws:
IOException
-
postGetMetaLocations
public List<HRegionLocation> postGetMetaLocations(List<HRegionLocation> metaLocations) throws IOException - Throws:
IOException
-