public class EventAdapter extends java.lang.Object implements EventListener
Constructor and Description |
---|
EventAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
bytesTransferred(java.lang.String connId,
java.lang.String remoteFilename,
long count)
Report the number of bytes transferred so far.
|
void |
commandSent(java.lang.String connId,
java.lang.String cmd)
Log an FTP command being sent to the server.
|
void |
downloadCompleted(java.lang.String connId,
java.lang.String remoteFilename)
Notifies that a download has completed
|
void |
downloadStarted(java.lang.String connId,
java.lang.String remoteFilename)
Notifies that a download has started
|
void |
replyReceived(java.lang.String connId,
java.lang.String reply)
Log an FTP reply being sent back to the client.
|
void |
uploadCompleted(java.lang.String connId,
java.lang.String remoteFilename)
Notifies that an upload has completed
|
void |
uploadStarted(java.lang.String connId,
java.lang.String remoteFilename)
Notifies that an upload has started
|
public void commandSent(java.lang.String connId, java.lang.String cmd)
commandSent
in interface EventListener
cmd
- command stringconnId
- Identifier of FTP connectionpublic void replyReceived(java.lang.String connId, java.lang.String reply)
replyReceived
in interface EventListener
reply
- reply stringconnId
- Identifier of FTP connectionpublic void bytesTransferred(java.lang.String connId, java.lang.String remoteFilename, long count)
bytesTransferred
in interface EventListener
count
- count of bytes transferredconnId
- Identifier of FTP connectionremoteFilename
- Name of remote filepublic void downloadStarted(java.lang.String connId, java.lang.String remoteFilename)
downloadStarted
in interface EventListener
remoteFilename
- remote file nameconnId
- Identifier of FTP connectionpublic void downloadCompleted(java.lang.String connId, java.lang.String remoteFilename)
downloadCompleted
in interface EventListener
remoteFilename
- remote file nameconnId
- Identifier of FTP connectionpublic void uploadStarted(java.lang.String connId, java.lang.String remoteFilename)
uploadStarted
in interface EventListener
remoteFilename
- remote file nameconnId
- Identifier of FTP connectionpublic void uploadCompleted(java.lang.String connId, java.lang.String remoteFilename)
uploadCompleted
in interface EventListener
remoteFilename
- remote file nameconnId
- Identifier of FTP connectionCopyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.