|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.shell.impl.command.CRaSHProcess
abstract class CRaSHProcess
Field Summary | |
---|---|
private boolean |
cancelled
. |
protected CRaSHSession |
crash
. |
protected String |
request
. |
private Thread |
thread
. |
Constructor Summary | |
---|---|
protected |
CRaSHProcess(CRaSHSession crash,
String request)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final CRaSHSession crash
protected final String request
private volatile Thread thread
private volatile boolean cancelled
Constructor Detail |
---|
protected CRaSHProcess(CRaSHSession crash, String request)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |