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)
FTPMessageListener
logCommand
in interface FTPMessageListener
cmd
- command stringpublic void logReply(java.lang.String reply)
FTPMessageListener
logReply
in interface FTPMessageListener
reply
- reply stringpublic void bytesTransferred(long count)
FTPProgressMonitor
bytesTransferred
in interface FTPProgressMonitor
count
- count of bytes transferredpublic void transferComplete(TransferDirection direction, java.lang.String remoteFile)
FTPProgressMonitorEx
transferComplete
in interface FTPProgressMonitorEx
direction
- the transfer directionremoteFile
- name of the remote filepublic void transferStarted(TransferDirection direction, java.lang.String remoteFile)
FTPProgressMonitorEx
transferStarted
in interface FTPProgressMonitorEx
direction
- the transfer directionremoteFile
- name of the remote file