public class ServerProcess extends Object implements ShellProcess
Modifier and Type | Field and Description |
---|---|
(package private) String |
line
.
|
(package private) ServerAutomaton |
server
.
|
private int |
status
.
|
Constructor and Description |
---|
ServerProcess(ServerAutomaton server,
String line) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Signals the process it should be cancelled.
|
void |
execute(ShellProcessContext processContext)
Begin the process.
|
KeyHandler |
getKeyHandler()
Returns the key handler or null if the process won't handle key events.
|
final ServerAutomaton server
private int status
ServerProcess(ServerAutomaton server, String line)
public void execute(ShellProcessContext processContext) throws IllegalStateException
ShellProcess
ShellProcessContext.end(ShellResponse)
method.execute
in interface ShellProcess
processContext
- the process contextIllegalStateException
- if the process is already executing or has been executedpublic KeyHandler getKeyHandler()
ShellProcess
getKeyHandler
in interface ShellProcess
public void cancel()
ShellProcess
ShellProcessContext.end(ShellResponse)
method.cancel
in interface ShellProcess
Copyright © 2015 eXo Platform SAS. All Rights Reserved.