|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.shell.concurrent.AsyncShell
public class AsyncShell
| Nested Class Summary | |
|---|---|
private class |
AsyncShell.Process
|
| Field Summary | |
|---|---|
private AsyncShell.Process |
current
. |
private ExecutorService |
executor
. |
private Object |
lock
. |
private Shell |
shell
. |
private Status |
status
. |
| Constructor Summary | |
|---|---|
AsyncShell(ExecutorService executor,
Shell shell)
|
|
| Method Summary | |
|---|---|
void |
close()
|
Map<String,String> |
complete(String prefix)
Completion. |
ShellProcess |
createProcess(String request)
Process a request. |
String |
getPrompt()
Returns the shell prompt. |
Status |
getStatus()
|
String |
getWelcome()
Returns the welcome message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Object lock
private Status status
private Shell shell
private AsyncShell.Process current
private final ExecutorService executor
| Constructor Detail |
|---|
public AsyncShell(ExecutorService executor,
Shell shell)
| Method Detail |
|---|
public Status getStatus()
public void close()
public String getWelcome()
Shell
getWelcome in interface Shellpublic String getPrompt()
Shell
getPrompt in interface Shellpublic Map<String,String> complete(String prefix)
Shell
complete in interface Shellprefix - the prefix to complete
public ShellProcess createProcess(String request)
Shell
createProcess in interface Shellrequest - the request to process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||