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

    Fields
    Modifier and Type
    Field
    Description
    private String
     
    private String
     

    Fields 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
    Constructor
    Description
    LocalShell(String user, String execCommand)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     

    Methods inherited from class org.apache.hadoop.util.Shell.ShellCommandExecutor

    close, getOutput, getTimeoutInterval, parseExecResult, toString

    Methods inherited from class org.apache.hadoop.util.Shell

    appendScriptExtension, appendScriptExtension, 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, isTimedOut, run, setEnvironment, setWorkingDirectory

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.hadoop.util.Shell.CommandExecutor

    getExitCode
  • Field Details

  • Constructor Details

  • Method Details

    • getExecString

      public String[] getExecString()
      Overrides:
      getExecString in class org.apache.hadoop.util.Shell.ShellCommandExecutor
    • execute

      public void execute() throws IOException
      Specified by:
      execute in interface org.apache.hadoop.util.Shell.CommandExecutor
      Overrides:
      execute in class org.apache.hadoop.util.Shell.ShellCommandExecutor
      Throws:
      IOException