public enum CommandUtils extends Enum<CommandUtils>
| 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) |
static CommandUtils |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandUtils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static CommandUtils[] values()
for (CommandUtils c : CommandUtils.values()) System.out.println(c);
public static CommandUtils valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic 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 © 2017. All rights reserved.