public abstract class ConsoleCommand extends Object
| Constructor and Description |
|---|
ConsoleCommand(Console console) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
afterAttach()
Called after attach(..) is called.
|
protected abstract void |
afterDetach()
Called after detach() is called
|
void |
attach(ConsoleOutput output)
Called by creator of the process
Calls afterAttach()
|
void |
detach()
Mark this process ready to be detached from console.
|
ConsoleOutput |
getConsoleOutput() |
boolean |
hasRedirectOut() |
boolean |
isAttached() |
abstract void |
processOperation(Operation operation)
Called after every operation made by the user
|
protected Console console
public ConsoleCommand(Console console)
public final void attach(ConsoleOutput output) throws IOException
IOException - streampublic final boolean isAttached()
public final void detach()
throws IOException
IOException - streampublic final boolean hasRedirectOut()
public final ConsoleOutput getConsoleOutput()
protected abstract void afterAttach()
throws IOException
IOException - streamprotected abstract void afterDetach()
throws IOException
IOException - streampublic abstract void processOperation(Operation operation) throws IOException
operation - operationIOException - streamCopyright © 2014 JBoss by Red Hat. All rights reserved.