abstract class CRaSHProcess extends Object implements ShellProcess
Modifier and Type | Field and Description |
---|---|
private boolean |
cancelled
.
|
protected CRaSHSession |
crash
.
|
protected String |
request
.
|
private Thread |
thread
.
|
Modifier | Constructor and Description |
---|---|
protected |
CRaSHProcess(CRaSHSession crash,
String request) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Signals the process it should be cancelled.
|
(package private) abstract ShellResponse |
doInvoke(ShellProcessContext context) |
void |
execute(ShellProcessContext processContext)
Begin the process.
|
KeyHandler |
getKeyHandler()
Returns the key handler or null if the process won't handle key events.
|
protected final CRaSHSession crash
private volatile boolean cancelled
protected CRaSHProcess(CRaSHSession crash, String request)
public void execute(ShellProcessContext processContext)
ShellProcess
ShellProcessContext.end(ShellResponse)
method.execute
in interface ShellProcess
processContext
- the process contextpublic KeyHandler getKeyHandler()
ShellProcess
getKeyHandler
in interface ShellProcess
abstract ShellResponse doInvoke(ShellProcessContext context) throws InterruptedException
InterruptedException
public void cancel()
ShellProcess
ShellProcessContext.end(ShellResponse)
method.cancel
in interface ShellProcess
Copyright © 2015 eXo Platform SAS. All Rights Reserved.