|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.ssh.term.AbstractCommand org.crsh.jcr.SCPCommand
public abstract class SCPCommand
Field Summary | |
---|---|
private org.apache.sshd.server.Environment |
env
. |
protected static int |
ERROR
. |
protected Logger |
log
. |
protected static int |
OK
. |
private String |
target
. |
private Thread |
thread
. |
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()
|
private void |
execute()
|
protected abstract void |
execute(javax.jcr.Session session,
String path)
|
(package private) InputStream |
read(int length)
Read from the input stream an exact amount of bytes. |
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 |
---|
protected final Logger log
protected static final int OK
protected static final int ERROR
private Thread thread
private org.apache.sshd.server.Environment env
private final String target
Constructor Detail |
---|
protected SCPCommand(String target)
Method Detail |
---|
final InputStream read(int length) throws IOException
length
- the expected data length to read
IOException
- any io exceptionprotected final void ack() throws IOException
IOException
protected final void readAck() throws IOException
IOException
protected final String readLine() throws IOException
IOException
public final void start(org.apache.sshd.server.Environment env) throws IOException
start
in interface org.apache.sshd.server.Command
IOException
public final void destroy()
destroy
in interface org.apache.sshd.server.Command
public final void run()
run
in interface Runnable
private void execute() throws Exception
Exception
protected abstract void execute(javax.jcr.Session session, String path) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |