|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.shell.impl.remoting.ServerAutomaton
public class ServerAutomaton
| Field Summary | |
|---|---|
(package private) ObjectInputStream |
in
. |
(package private) CloseableList |
listeners
. |
(package private) Logger |
log
. |
(package private) ObjectOutputStream |
out
. |
(package private) ServerProcess |
process
. |
| Constructor Summary | |
|---|---|
ServerAutomaton(InputStream in,
OutputStream out)
|
|
ServerAutomaton(ObjectOutputStream out,
ObjectInputStream in)
|
|
| Method Summary | |
|---|---|
ServerAutomaton |
addCloseListener(Closeable closeable)
|
(package private) void |
cancel(ServerProcess process)
|
void |
close()
|
CompletionMatch |
complete(String prefix)
Completion. |
ShellProcess |
createProcess(String request)
Process a request. |
(package private) void |
execute(ServerProcess process,
ShellProcessContext processContext)
|
String |
getPrompt()
Returns the shell prompt. |
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 |
|---|
final Logger log
final ObjectInputStream in
final ObjectOutputStream out
ServerProcess process
final CloseableList listeners
| Constructor Detail |
|---|
public ServerAutomaton(ObjectOutputStream out,
ObjectInputStream in)
public ServerAutomaton(InputStream in,
OutputStream out)
throws IOException
IOException| Method Detail |
|---|
public ServerAutomaton addCloseListener(Closeable closeable)
public String getWelcome()
Shell
getWelcome in interface Shellpublic String getPrompt()
Shell
getPrompt in interface Shell
public ShellProcess createProcess(String request)
throws IllegalStateException
Shell
createProcess in interface Shellrequest - the request to process
IllegalStateException - if the shell cannot create a processpublic CompletionMatch complete(String prefix)
Shell
complete in interface Shellprefix - the prefix to complete
public void close()
close in interface Closeable
void execute(ServerProcess process,
ShellProcessContext processContext)
throws IllegalStateException
IllegalStateException
void cancel(ServerProcess process)
throws IllegalStateException
IllegalStateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||