public class AsyncProcess extends Object implements ShellProcess
Modifier and Type | Field and Description |
---|---|
private ShellProcess |
callee
.
|
private ShellProcessContext |
caller
.
|
private ShellProcessContext |
context
.
|
private Object |
lock
.
|
private String |
request
.
|
private AsyncShell |
shell
.
|
private Status |
status
.
|
Constructor and Description |
---|
AsyncProcess(AsyncShell shell,
String request) |
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.
|
Status |
getStatus() |
private ShellProcessContext caller
private ShellProcess callee
private AsyncShell shell
private final ShellProcessContext context
AsyncProcess(AsyncShell shell, String request)
public KeyHandler getKeyHandler()
ShellProcess
getKeyHandler
in interface ShellProcess
public void execute(ShellProcessContext processContext)
ShellProcess
ShellProcessContext.end(ShellResponse)
method.execute
in interface ShellProcess
processContext
- the process contextpublic void cancel()
ShellProcess
ShellProcessContext.end(ShellResponse)
method.cancel
in interface ShellProcess
Copyright © 2015 eXo Platform SAS. All Rights Reserved.