org.apache.accumulo.cluster
public class RemoteShell extends org.apache.hadoop.util.Shell.ShellCommandExecutor
Shell.ShellCommandExecutor
, on a remote host. SSH configuration provided by RemoteShellOptions
.Modifier and Type | Field and Description |
---|---|
protected String |
hostname |
protected RemoteShellOptions |
options |
Constructor and Description |
---|
RemoteShell(String hostname,
String[] execString,
File dir,
Map<String,String> env,
long timeout,
RemoteShellOptions options) |
RemoteShell(String hostname,
String[] execString,
File dir,
Map<String,String> env,
RemoteShellOptions options) |
RemoteShell(String hostname,
String[] execString,
File dir,
RemoteShellOptions options) |
RemoteShell(String hostname,
String[] execString,
RemoteShellOptions options) |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
String[] |
getExecString() |
RemoteShellOptions |
getRemoteShellOptions() |
void |
setRemoteShellOptions(RemoteShellOptions options) |
getOutput, parseExecResult, toString
appendScriptExtension, appendScriptExtension, execCommand, execCommand, execCommand, getCheckProcessIsAliveCommand, getEnvironmentVariableRegex, getExitCode, getGetPermissionCommand, getGroupsCommand, getGroupsForUserCommand, getHadoopHome, getProcess, getQualifiedBinPath, getReadlinkCommand, getRunScriptCommand, getSetOwnerCommand, getSetPermissionCommand, getSetPermissionCommand, getSignalKillCommand, getSymlinkCommand, getUsersForNetgroupCommand, getWinUtilsPath, isJava7OrAbove, isTimedOut, run, setEnvironment, setWorkingDirectory
protected RemoteShellOptions options
protected String hostname
public RemoteShell(String hostname, String[] execString, File dir, Map<String,String> env, long timeout, RemoteShellOptions options)
public RemoteShell(String hostname, String[] execString, File dir, Map<String,String> env, RemoteShellOptions options)
public RemoteShell(String hostname, String[] execString, File dir, RemoteShellOptions options)
public RemoteShell(String hostname, String[] execString, RemoteShellOptions options)
public void setRemoteShellOptions(RemoteShellOptions options)
public RemoteShellOptions getRemoteShellOptions()
public String[] getExecString()
getExecString
in class org.apache.hadoop.util.Shell.ShellCommandExecutor
public void execute() throws IOException
execute
in class org.apache.hadoop.util.Shell.ShellCommandExecutor
IOException
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.