org.crsh.jcr
Class SCPCommand

java.lang.Object
  extended by org.crsh.ssh.term.AbstractCommand
      extended by org.crsh.jcr.SCPCommand
All Implemented Interfaces:
Runnable, org.apache.sshd.server.Command, org.apache.sshd.server.SessionAware
Direct Known Subclasses:
SinkCommand, SourceCommand

public abstract class SCPCommand
extends AbstractCommand
implements Runnable

Three internal options in SCP:

Version:
$Revision$
Author:
Julien Viet

Field Summary
protected static int ERROR
          .
protected  org.slf4j.Logger log
          .
protected static int OK
          .
 
Fields inherited from class org.crsh.ssh.term.AbstractCommand
callback, err, in, out, session
 
Constructor Summary
protected SCPCommand(String target)
           
 
Method Summary
protected  void ack()
           
 void destroy()
           
protected abstract  void execute(javax.jcr.Session session, String path)
           
protected  void readAck()
           
protected  String readLine()
           
 void run()
           
 void start(org.apache.sshd.server.Environment env)
           
 
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 final org.slf4j.Logger log
.


OK

protected static final int OK
.

See Also:
Constant Field Values

ERROR

protected static final int ERROR
.

See Also:
Constant Field Values
Constructor Detail

SCPCommand

protected SCPCommand(String target)
Method Detail

ack

protected final void ack()
                  throws IOException
Throws:
IOException

readAck

protected final void readAck()
                      throws IOException
Throws:
IOException

readLine

protected final String readLine()
                         throws IOException
Throws:
IOException

start

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

destroy

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

run

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

execute

protected abstract void execute(javax.jcr.Session session,
                                String path)
                         throws Exception
Throws:
Exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.