|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.shell.concurrent.AsyncShell.Process
private class AsyncShell.Process
| Field Summary | |
|---|---|
private ShellProcess |
callee
. |
private ShellProcessContext |
caller
. |
private String |
request
. |
| Constructor Summary | |
|---|---|
private |
AsyncShell.Process(String request)
|
| Method Summary | |
|---|---|
void |
cancel()
Attempt to cancel the shell process. |
void |
end(ShellResponse response)
This method is invoked when the process ends. |
void |
execute(ShellProcessContext processContext)
Begin the process. |
int |
getWidth()
Returns the term width in chars. |
String |
readLine(String msg,
boolean echo)
A callback made by the process when it needs to read a line of text on the term. |
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final String request
private ShellProcessContext caller
private ShellProcess callee
| Constructor Detail |
|---|
private AsyncShell.Process(String request)
| Method Detail |
|---|
public int getWidth()
ShellProcessContext
getWidth in interface ShellProcessContext
public String readLine(String msg,
boolean echo)
ShellProcessContext
readLine in interface ShellProcessContextmsg - the message to display prior reading the termecho - whether the input line should be echoed or not
public void end(ShellResponse response)
ShellProcessContext
end in interface ShellProcessContextresponse - the shell responsepublic void execute(ShellProcessContext processContext)
ShellProcess
execute in interface ShellProcessprocessContext - the process contextpublic void cancel()
ShellProcess
cancel in interface ShellProcesspublic void run()
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||