com.github.dakusui.cmd
public class CommandFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static CommandResult |
run(int timeout,
String[] execShell,
String command) |
static CommandResult |
runLocal(int timeout,
String command) |
static CommandResult |
runLocal(String command) |
static CommandResult |
runRemote(int timeout,
String userName,
String hostName,
String privKeyFile,
String command) |
static CommandResult |
runRemote(String userName,
String hostName,
String privKeyFile,
String command) |
public static CommandResult run(int timeout, String[] execShell, String command) throws CommandException
CommandExceptionpublic static CommandResult runLocal(int timeout, String command) throws CommandException
CommandExceptionpublic static CommandResult runLocal(String command) throws CommandException
CommandExceptionpublic static CommandResult runRemote(String userName, String hostName, String privKeyFile, String command) throws CommandException
CommandExceptionpublic static CommandResult runRemote(int timeout, String userName, String hostName, String privKeyFile, String command) throws CommandException
CommandExceptionCopyright © 2013. All Rights Reserved.