Package org.apache.hadoop.hbase.chaos
Class ChaosAgent.LocalShell
java.lang.Object
org.apache.hadoop.util.Shell
org.apache.hadoop.util.Shell.ShellCommandExecutor
org.apache.hadoop.hbase.chaos.ChaosAgent.LocalShell
- All Implemented Interfaces:
org.apache.hadoop.util.Shell.CommandExecutor
- Enclosing class:
- ChaosAgent
protected static class ChaosAgent.LocalShell
extends org.apache.hadoop.util.Shell.ShellCommandExecutor
Executes Command locally.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.util.Shell
org.apache.hadoop.util.Shell.CommandExecutor, org.apache.hadoop.util.Shell.ExitCodeException, org.apache.hadoop.util.Shell.OSType, org.apache.hadoop.util.Shell.ShellCommandExecutor -
Field Summary
FieldsFields inherited from class org.apache.hadoop.util.Shell
ENV_HADOOP_HOME, ENV_NAME_REGEX, FREEBSD, inheritParentEnv, isSetsidAvailable, LINK_COMMAND, LINUX, LOG, MAC, osType, OTHER, PPC_64, READ_LINK_COMMAND, SET_GROUP_COMMAND, SET_OWNER_COMMAND, SET_PERMISSION_COMMAND, SOLARIS, SYSPROP_HADOOP_HOME_DIR, timeOutInterval, TOKEN_SEPARATOR_REGEX, USER_NAME_COMMAND, WINDOWS, WINDOWS_MAX_SHELL_LENGHT, WINDOWS_MAX_SHELL_LENGTH, WindowsProcessLaunchLock, WINUTILS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.util.Shell.ShellCommandExecutor
close, getOutput, getTimeoutInterval, parseExecResult, toStringMethods inherited from class org.apache.hadoop.util.Shell
appendScriptExtension, appendScriptExtension, bashQuote, checkIsBashSupported, checkWindowsCommandLineLength, destroyAllShellProcesses, execCommand, execCommand, execCommand, getAllShells, getCheckProcessIsAliveCommand, getEnvironment, getEnvironmentVariableRegex, getExitCode, getGetPermissionCommand, getGroupsCommand, getGroupsForUserCommand, getGroupsIDForUserCommand, getHadoopHome, getMemlockLimit, getProcess, getQualifiedBin, getQualifiedBinPath, getReadlinkCommand, getRunScriptCommand, getSetOwnerCommand, getSetPermissionCommand, getSetPermissionCommand, getSignalKillCommand, getSymlinkCommand, getUsersForNetgroupCommand, getWaitingThread, getWinUtilsFile, getWinUtilsPath, hasWinutilsPath, isJava7OrAbove, isJavaVersionAtLeast, isTimedOut, run, setEnvironment, setWorkingDirectoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.util.Shell.CommandExecutor
getExitCode
-
Field Details
-
user
-
execCommand
-
-
Constructor Details
-
LocalShell
-
-
Method Details
-
getExecString
- Overrides:
getExecStringin classorg.apache.hadoop.util.Shell.ShellCommandExecutor
-
execute
- Specified by:
executein interfaceorg.apache.hadoop.util.Shell.CommandExecutor- Overrides:
executein classorg.apache.hadoop.util.Shell.ShellCommandExecutor- Throws:
IOException
-