org.crsh.shell
Interface ShellProcess

All Known Implementing Classes:
AsyncProcess, CRaSHProcess, ServerProcess

public interface ShellProcess

A shell process.


Method Summary
 void cancel()
          Signals the process it should be cancelled.
 void execute(ShellProcessContext processContext)
          Begin the process.
 

Method Detail

execute

void execute(ShellProcessContext processContext)
             throws IllegalStateException
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.

Parameters:
processContext - the process context
Throws:
IllegalStateException - if the process cannot be executed for some reason

cancel

void cancel()
Signals the process it should be cancelled.



Copyright © 2014 eXo Platform SAS. All Rights Reserved.