public class ShellCommandDefault extends Object implements ShellCommand
STATUS_DESTROYED, STATUS_FAILED| Constructor and Description |
|---|
ShellCommandDefault() |
ShellCommandDefault(String owner,
String... cmds) |
| Modifier and Type | Method and Description |
|---|---|
xapi.collect.api.Fifo<String> |
commands() |
ShellCommand |
commands(String... cmds) |
String |
directory() |
ShellCommand |
directory(String directory) |
protected Process |
doRun(ArgumentProcessor processor) |
String |
owner() |
ShellCommand |
owner(String owner) |
ShellSession |
run(xapi.util.api.SuccessHandler<ShellSession> callback,
ArgumentProcessor processor)
Starts the command; returns a future and accepts a callback.
|
public String owner()
owner in interface ShellCommandpublic String directory()
directory in interface ShellCommandpublic xapi.collect.api.Fifo<String> commands()
commands in interface ShellCommandpublic ShellCommand directory(String directory)
directory in interface ShellCommandpublic ShellCommand owner(String owner)
owner in interface ShellCommandpublic ShellCommand commands(String... cmds)
commands in interface ShellCommandpublic ShellSession run(xapi.util.api.SuccessHandler<ShellSession> callback, ArgumentProcessor processor)
ShellCommandrun in interface ShellCommandcallback - - optional success handler, to allow pushing work forwardprocessor - - optional argument handler, to manipulate the command being run.ShellSession future, for platforms that can afford to block on results.protected Process doRun(ArgumentProcessor processor) throws IOException
IOExceptionCopyright © December 07, 2012–2015 The Internet Party. All rights reserved.