org.crsh.shell.impl.command
Class CRaSHProcess
java.lang.Object
org.crsh.shell.impl.command.CRaSHProcess
- All Implemented Interfaces:
- ShellProcess
-
abstract class CRaSHProcess
- extends Object
-
- implements ShellProcess
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
crash
protected final CRaSHSession crash
-
.
request
protected final String request
-
.
thread
private volatile Thread thread
-
.
cancelled
private volatile boolean cancelled
-
.
CRaSHProcess
protected CRaSHProcess(CRaSHSession crash,
String request)
execute
public void execute(ShellProcessContext processContext)
- Description copied from interface:
ShellProcess
-
Begin the process. The client of this method should make no assumption whether the process is executed in a synchronous or asynchronous manner. The process will be termined when the process signals it with an invocation of the
ShellProcessContext.end(ShellResponse)
method.
-
- Specified by:
execute
in interface ShellProcess
-
- Parameters:
processContext
- the process context
doInvoke
abstract ShellResponse doInvoke(ShellProcessContext context)
throws InterruptedException
-
-
- Throws:
InterruptedException
cancel
public void cancel()
- Description copied from interface:
ShellProcess
-
Signals the process it should be cancelled.
-
- Specified by:
cancel
in interface ShellProcess
-
Copyright © 2014 eXo Platform SAS. All Rights Reserved.