public class FTPMessenger extends FTPConnector
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 |
---|
FTPMessenger(java.util.Map props)
Creates new FTPMessenger
|
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 content 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 ftp.
|
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 ftp.
|
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 ftp 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 ftp 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, completePendingCommand, connect, createDirectory, ftpCwd, ftpDelete, ftpGet, ftpGet, ftpGet, ftpList, ftpMkd, ftpNoOp, ftpPut, ftpPut, ftpPut, ftpPwd, ftpRmd, getFTPClient, getParent, getReplyCode, getReplyString, getSize, getTimestamp, getURI, isConnected, main, reconnect, retrieveFileStream, storeFileStream
public FTPMessenger(java.util.Map props) throws java.io.IOException
java.io.IOException
public void retrieve(XQueue xq) throws java.io.IOException, javax.jms.JMSException
java.io.IOException
javax.jms.JMSException
public void download(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOException
TimeoutException
javax.jms.JMSException
public void upload(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOException
TimeoutException
javax.jms.JMSException
public void pickup(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOException
TimeoutException
javax.jms.JMSException
public void list(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOException
TimeoutException
javax.jms.JMSException
public void store(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOException
TimeoutException
javax.jms.JMSException
public void copy(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOException
TimeoutException
javax.jms.JMSException
public java.lang.String getOperation()