public class EventAggregator extends java.lang.Object implements FTPMessageListener, FTPProgressMonitor, FTPProgressMonitorEx
| Constructor and Description |
|---|
EventAggregator(EventListener eventListener) |
EventAggregator(java.lang.String connId,
EventListener eventListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
bytesTransferred(long count)
Report the number of bytes transferred so far.
|
void |
logCommand(java.lang.String cmd)
Log an FTP command being sent to the server
|
void |
logReply(java.lang.String reply)
Log an FTP reply being sent back to the client
|
void |
setConnId(java.lang.String connId)
Set the connection id
|
void |
transferComplete(TransferDirection direction,
java.lang.String remoteFile)
Notify that a transfer has completed
|
void |
transferStarted(TransferDirection direction,
java.lang.String remoteFile)
Notify that a transfer has started
|
public EventAggregator(EventListener eventListener)
eventListener - public EventAggregator(java.lang.String connId,
EventListener eventListener)
eventListener - public void setConnId(java.lang.String connId)
connId - connection idpublic void logCommand(java.lang.String cmd)
FTPMessageListenerlogCommand in interface FTPMessageListenercmd - command stringpublic void logReply(java.lang.String reply)
FTPMessageListenerlogReply in interface FTPMessageListenerreply - reply stringpublic void bytesTransferred(long count)
FTPProgressMonitorbytesTransferred in interface FTPProgressMonitorcount - count of bytes transferredpublic void transferComplete(TransferDirection direction, java.lang.String remoteFile)
FTPProgressMonitorExtransferComplete in interface FTPProgressMonitorExdirection - the transfer directionremoteFile - name of the remote filepublic void transferStarted(TransferDirection direction, java.lang.String remoteFile)
FTPProgressMonitorExtransferStarted in interface FTPProgressMonitorExdirection - the transfer directionremoteFile - name of the remote file