Package net.schmizz.sshj.xfer.scp
Class SCPEngine
- java.lang.Object
-
- net.schmizz.sshj.xfer.scp.SCPEngine
-
class SCPEngine extends java.lang.Object
- See Also:
- SCP Protocol
-
-
Field Summary
Fields Modifier and Type Field Description private int
exitStatus
private SessionFactory
host
private static char
LF
private TransferListener
listener
private org.slf4j.Logger
log
private LoggerFactory
loggerFactory
private Session.Command
scp
private Session
session
-
Constructor Summary
Constructors Constructor Description SCPEngine(SessionFactory host, TransferListener listener, LoggerFactory loggerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
check(java.lang.String what)
(package private) void
cleanSlate()
(package private) void
execSCPWith(ScpCommandLine commandLine)
(package private) void
exit()
int
getExitStatus()
(package private) TransferListener
getTransferListener()
(package private) java.lang.String
readMessage()
(package private) void
sendMessage(java.lang.String msg)
(package private) void
signal(java.lang.String what)
(package private) long
transferFromRemote(StreamCopier.Listener listener, java.io.OutputStream dest, long length)
(package private) long
transferToRemote(StreamCopier.Listener listener, java.io.InputStream src, long length)
-
-
-
Field Detail
-
LF
private static final char LF
- See Also:
- Constant Field Values
-
loggerFactory
private final LoggerFactory loggerFactory
-
log
private final org.slf4j.Logger log
-
host
private final SessionFactory host
-
listener
private final TransferListener listener
-
session
private Session session
-
scp
private Session.Command scp
-
exitStatus
private int exitStatus
-
-
Constructor Detail
-
SCPEngine
SCPEngine(SessionFactory host, TransferListener listener, LoggerFactory loggerFactory)
-
-
Method Detail
-
getExitStatus
public int getExitStatus()
-
check
void check(java.lang.String what) throws java.io.IOException
- Throws:
java.io.IOException
-
cleanSlate
void cleanSlate()
-
execSCPWith
void execSCPWith(ScpCommandLine commandLine) throws SSHException
- Throws:
SSHException
-
exit
void exit()
-
readMessage
java.lang.String readMessage() throws java.io.IOException
- Throws:
java.io.IOException
-
sendMessage
void sendMessage(java.lang.String msg) throws java.io.IOException
- Throws:
java.io.IOException
-
signal
void signal(java.lang.String what) throws java.io.IOException
- Throws:
java.io.IOException
-
transferToRemote
long transferToRemote(StreamCopier.Listener listener, java.io.InputStream src, long length) throws java.io.IOException
- Throws:
java.io.IOException
-
transferFromRemote
long transferFromRemote(StreamCopier.Listener listener, java.io.OutputStream dest, long length) throws java.io.IOException
- Throws:
java.io.IOException
-
getTransferListener
TransferListener getTransferListener()
-
-