@InterfaceAudience.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
ChaosMonkey
via CoprocClusterManager
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.Stub
Modifier and Type | Field and Description |
---|---|
static String |
BACKGROUND_DELAY_MS_KEY |
private ExecutorService |
backgroundExecutor |
private org.apache.hadoop.conf.Configuration |
conf |
static long |
DEFAULT_BACKGROUND_DELAY_MS |
private static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
ShellExecEndpointCoprocessor() |
Modifier and Type | Method and Description |
---|---|
private void |
doExec(org.apache.hadoop.util.Shell.ShellCommandExecutor shell,
org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse.Builder builder)
Execute
shell and collect results into builder as side-effects. |
Iterable<com.google.protobuf.Service> |
getServices() |
private void |
runBackgroundTask(org.apache.hadoop.util.Shell.ShellCommandExecutor shell,
com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse> done) |
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) |
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) |
void |
start(org.apache.hadoop.hbase.CoprocessorEnvironment env) |
callMethod, getDescriptor, getDescriptorForType, getRequestPrototype, getResponsePrototype, newBlockingStub, newReflectiveBlockingService, newReflectiveService, newStub
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMasterObserver
private static final org.slf4j.Logger LOG
public static final String BACKGROUND_DELAY_MS_KEY
public static final long DEFAULT_BACKGROUND_DELAY_MS
private final ExecutorService backgroundExecutor
private org.apache.hadoop.conf.Configuration conf
public ShellExecEndpointCoprocessor()
public Iterable<com.google.protobuf.Service> getServices()
getServices
in interface org.apache.hadoop.hbase.Coprocessor
public void start(org.apache.hadoop.hbase.CoprocessorEnvironment env)
start
in interface org.apache.hadoop.hbase.Coprocessor
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)
shellExec
in class org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecService
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)
private void runBackgroundTask(org.apache.hadoop.util.Shell.ShellCommandExecutor shell, com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse> done)
private void doExec(org.apache.hadoop.util.Shell.ShellCommandExecutor shell, org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse.Builder builder) throws IOException
shell
and collect results into builder
as side-effects.IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.