org.crsh.ssh.term.inline
Class SSHInlineCommand

java.lang.Object
  extended by org.crsh.ssh.term.AbstractCommand
      extended by org.crsh.ssh.term.inline.SSHInlineCommand
All Implemented Interfaces:
Runnable, org.apache.sshd.server.Command, org.apache.sshd.server.SessionAware

public class SSHInlineCommand
extends AbstractCommand
implements Runnable

SSH inline command


Field Summary
private  String command
          .
private  org.apache.sshd.server.Environment env
          .
protected static int ERROR
          .
protected static Logger log
          .
protected static int OK
          .
private  PluginContext pluginContext
          .
private  Thread thread
          .
 
Fields inherited from class org.crsh.ssh.term.AbstractCommand
callback, err, in, out, session
 
Constructor Summary
SSHInlineCommand(String command, PluginContext pluginContext)
           
 
Method Summary
 void destroy()
           
 void run()
           
 void start(org.apache.sshd.server.Environment environment)
           
 
Methods inherited from class org.crsh.ssh.term.AbstractCommand
setErrorStream, setExitCallback, setInputStream, setOutputStream, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log
.


OK

protected static final int OK
.

See Also:
Constant Field Values

ERROR

protected static final int ERROR
.

See Also:
Constant Field Values

thread

private Thread thread
.


command

private String command
.


pluginContext

private PluginContext pluginContext
.


env

private org.apache.sshd.server.Environment env
.

Constructor Detail

SSHInlineCommand

public SSHInlineCommand(String command,
                        PluginContext pluginContext)
Method Detail

start

public void start(org.apache.sshd.server.Environment environment)
           throws IOException
Specified by:
start in interface org.apache.sshd.server.Command
Throws:
IOException

destroy

public void destroy()
Specified by:
destroy in interface org.apache.sshd.server.Command

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2015 eXo Platform SAS. All Rights Reserved.