Package org.apache.hadoop.hbase
Class ShellExecEndpointCoprocessor
java.lang.Object
org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecService
org.apache.hadoop.hbase.ShellExecEndpointCoprocessor
- All Implemented Interfaces:
com.google.protobuf.Service,org.apache.hadoop.hbase.Coprocessor,org.apache.hadoop.hbase.coprocessor.MasterCoprocessor,org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessor
@Private
public class ShellExecEndpointCoprocessor
extends org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecService
implements org.apache.hadoop.hbase.coprocessor.MasterCoprocessor, org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessor
Receives shell commands from the client and executes them blindly. Intended only for use by
ChaosMonkey via CoprocClusterManager-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecService
org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecService.BlockingInterface, org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecService.Interface, org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecService.StubNested classes/interfaces inherited from interface org.apache.hadoop.hbase.Coprocessor
org.apache.hadoop.hbase.Coprocessor.State -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate final ExecutorServiceprivate org.apache.hadoop.conf.Configurationstatic final longprivate static final org.slf4j.LoggerFields inherited from interface org.apache.hadoop.hbase.Coprocessor
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddoExec(org.apache.hadoop.util.Shell.ShellCommandExecutor shell, org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse.Builder builder) Executeshelland collect results intobuilderas side-effects.Iterable<com.google.protobuf.Service>private voidrunBackgroundTask(org.apache.hadoop.util.Shell.ShellCommandExecutor shell, com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse> done) private voidrunForegroundTask(org.apache.hadoop.util.Shell.ShellCommandExecutor shell, com.google.protobuf.RpcController controller, com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse> done) voidshellExec(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecRequest request, com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse> done) voidstart(org.apache.hadoop.hbase.CoprocessorEnvironment env) Methods inherited from class org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecService
callMethod, getDescriptor, getDescriptorForType, getRequestPrototype, getResponsePrototype, newBlockingStub, newReflectiveBlockingService, newReflectiveService, newStubMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.Coprocessor
stopMethods inherited from interface org.apache.hadoop.hbase.coprocessor.MasterCoprocessor
getMasterObserverMethods inherited from interface org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessor
getRegionServerObserver
-
Field Details
-
LOG
-
BACKGROUND_DELAY_MS_KEY
- See Also:
-
DEFAULT_BACKGROUND_DELAY_MS
- See Also:
-
backgroundExecutor
-
conf
-
-
Constructor Details
-
ShellExecEndpointCoprocessor
public ShellExecEndpointCoprocessor()
-
-
Method Details
-
getServices
- Specified by:
getServicesin interfaceorg.apache.hadoop.hbase.Coprocessor
-
start
- Specified by:
startin interfaceorg.apache.hadoop.hbase.Coprocessor
-
shellExec
public void shellExec(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecRequest request, com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse> done) - Specified by:
shellExecin classorg.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecService
-
runForegroundTask
private void runForegroundTask(org.apache.hadoop.util.Shell.ShellCommandExecutor shell, com.google.protobuf.RpcController controller, com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse> done) -
runBackgroundTask
private void runBackgroundTask(org.apache.hadoop.util.Shell.ShellCommandExecutor shell, com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse> done) -
doExec
private void doExec(org.apache.hadoop.util.Shell.ShellCommandExecutor shell, org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse.Builder builder) throws IOException Executeshelland collect results intobuilderas side-effects.- Throws:
IOException
-