public interface ShellCommand
| Modifier and Type | Field and Description |
|---|---|
static Integer |
STATUS_DESTROYED |
static Integer |
STATUS_FAILED |
| Modifier and Type | Method and Description |
|---|---|
xapi.collect.api.Fifo<String> |
commands() |
ShellCommand |
commands(String... text) |
String |
directory() |
ShellCommand |
directory(String directory) |
String |
owner() |
ShellCommand |
owner(String owner) |
ShellResult |
run(xapi.util.api.SuccessHandler<ShellResult> callback,
ArgumentProcessor processor)
Starts the command; returns a future and accepts a callback.
|
static final Integer STATUS_DESTROYED
static final Integer STATUS_FAILED
String owner()
xapi.collect.api.Fifo<String> commands()
String directory()
ShellCommand owner(String owner)
ShellCommand directory(String directory)
ShellCommand commands(String... text)
ShellResult run(xapi.util.api.SuccessHandler<ShellResult> callback, ArgumentProcessor processor)
callback - - optional success handler, to allow pushing work forwardprocessor - - optional argument handler, to manipulate the command being run.ShellResult future, for platforms that can afford to block on results.Copyright © 2012-2013 The Internet Party. All Rights Reserved.