org.crsh.shell.impl.remoting
Class ServerProcess

java.lang.Object
  extended by org.crsh.shell.impl.remoting.ServerProcess
All Implemented Interfaces:
ShellProcess

public class ServerProcess
extends Object
implements ShellProcess


Field Summary
(package private)  String line
          .
(package private)  ServerAutomaton server
          .
private  int status
          .
 
Constructor Summary
ServerProcess(ServerAutomaton server, String line)
           
 
Method Summary
 void cancel()
          Signals the process it should be cancelled.
 void execute(ShellProcessContext processContext)
          Begin the process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

final ServerAutomaton server
.


line

final String line
.


status

private int status
.

Constructor Detail

ServerProcess

ServerProcess(ServerAutomaton server,
              String line)
Method Detail

execute

public void execute(ShellProcessContext processContext)
             throws IllegalStateException
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
Throws:
IllegalStateException - if the process cannot be executed for some reason

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.