public class SFTPMessenger extends SFTPConnector
ACTION_CWD, ACTION_DEL, ACTION_GET, ACTION_LIST, ACTION_MKD, ACTION_PUT, ACTION_PWD, ACTION_RMD, ACTION_SIZE, ACTION_TIME, FTP_ALL, FTP_DIRECTORY, FTP_FILE, FTP_LINK, FTP_UNKNOWN, uri| Constructor and Description |
|---|
SFTPMessenger(java.util.Map props)
Creates new SFTPMessenger
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy(XQueue xq)
It gets a JMS Message from the XQueue and retrieves the property map in
JSON from its body.
|
void |
download(XQueue xq)
It gets a JMS message from xq that contains a filename to be downloaded
and downloads the file via sftp.
|
java.lang.String |
getOperation() |
void |
list(XQueue xq)
It gets a JMS message from xq that contains a dirname for listing files
in it and gets the list via sftp.
|
void |
pickup(XQueue xq)
It gets a JMS message from the uplink as the file transfer request that
is either an init request for the file transfer or a query request for
the progress of the file transfer.
|
void |
retrieve(XQueue xq)
retrieve a file from sftp server and put it to an XQ
|
void |
store(XQueue xq)
It gets a JMS Message from the XQueue and stores its body into a remote
file via sftp continuously.
|
void |
upload(XQueue xq)
It gets a JMS message from the uplink as the file transfer request that
is either an init request for the file transfer or a query request for
the progress of the file transfer.
|
close, connect, createDirectory, getChannelSftp, getParent, getSize, getTimestamp, getURI, isConnected, main, reconnect, retrieveFileStream, sftpCwd, sftpDelete, sftpGet, sftpGet, sftpGet, sftpList, sftpMkd, sftpPut, sftpPut, sftpPut, sftpPwd, sftpRmd, storeFileStreampublic SFTPMessenger(java.util.Map props)
throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchExceptionpublic void retrieve(XQueue xq) throws java.io.IOException, javax.jms.JMSException
java.io.IOExceptionjavax.jms.JMSExceptionpublic void download(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOExceptionTimeoutExceptionjavax.jms.JMSExceptionpublic void upload(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOExceptionTimeoutExceptionjavax.jms.JMSExceptionpublic void pickup(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOExceptionTimeoutExceptionjavax.jms.JMSExceptionpublic void list(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOExceptionTimeoutExceptionjavax.jms.JMSExceptionpublic void store(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOExceptionTimeoutExceptionjavax.jms.JMSExceptionpublic void copy(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOExceptionTimeoutExceptionjavax.jms.JMSExceptionpublic java.lang.String getOperation()