com.scalagent.joram.mom.dest.ftp
Class TransferImplJftp
java.lang.Object
com.scalagent.joram.mom.dest.ftp.TransferImplJftp
- All Implemented Interfaces:
- TransferItf, net.sf.jftp.net.ConnectionListener
public class TransferImplJftp
- extends java.lang.Object
- implements TransferItf, net.sf.jftp.net.ConnectionListener
Field Summary |
private boolean |
established
|
private net.sf.jftp.net.ConnectionHandler |
handler
|
Method Summary |
void |
actionFinished(net.sf.jftp.net.BasicConnection con)
|
void |
connectionFailed(net.sf.jftp.net.BasicConnection con,
java.lang.String why)
|
void |
connectionInitialized(net.sf.jftp.net.BasicConnection con)
|
java.lang.String |
getFile(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String user,
java.lang.String pass,
java.lang.String remotePath,
java.lang.String localPath,
java.lang.String remoteFileName,
java.lang.String localFileName,
java.lang.String type,
long crc)
|
void |
updateProgress(java.lang.String file,
java.lang.String type,
long bytes)
|
void |
updateRemoteDirectory(net.sf.jftp.net.BasicConnection con)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
established
private boolean established
handler
private net.sf.jftp.net.ConnectionHandler handler
TransferImplJftp
public TransferImplJftp()
getFile
public java.lang.String getFile(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String user,
java.lang.String pass,
java.lang.String remotePath,
java.lang.String localPath,
java.lang.String remoteFileName,
java.lang.String localFileName,
java.lang.String type,
long crc)
throws java.lang.Exception
- Specified by:
getFile
in interface TransferItf
- Throws:
java.lang.Exception
updateRemoteDirectory
public void updateRemoteDirectory(net.sf.jftp.net.BasicConnection con)
- Specified by:
updateRemoteDirectory
in interface net.sf.jftp.net.ConnectionListener
connectionInitialized
public void connectionInitialized(net.sf.jftp.net.BasicConnection con)
- Specified by:
connectionInitialized
in interface net.sf.jftp.net.ConnectionListener
updateProgress
public void updateProgress(java.lang.String file,
java.lang.String type,
long bytes)
- Specified by:
updateProgress
in interface net.sf.jftp.net.ConnectionListener
connectionFailed
public void connectionFailed(net.sf.jftp.net.BasicConnection con,
java.lang.String why)
- Specified by:
connectionFailed
in interface net.sf.jftp.net.ConnectionListener
actionFinished
public void actionFinished(net.sf.jftp.net.BasicConnection con)
- Specified by:
actionFinished
in interface net.sf.jftp.net.ConnectionListener
Copyright © 2010 ScalAgent D.T.. All Rights Reserved.