palio.connectors
Class FTPConnector
java.lang.Object
palio.connectors.Connector
palio.connectors.PooledConnector
palio.connectors.FTPConnector
public class FTPConnector
- extends PooledConnector
Date: 2009-07-27 Time: 12:37:03
- Version:
- 1.1.0
- Author:
- Krzysztof Madyniak (kmadyniak@torn.com.pl), Tomasz Rogozik (trogozik@torn.com.pl)
Constructor Summary |
FTPConnector(java.lang.String url,
java.util.Properties properties)
|
Method Summary |
void |
deleteFile(java.lang.String remotePath)
|
java.lang.Object |
execute(groovy.lang.Closure commands)
|
long |
getFileSize(java.lang.String remotePath)
|
java.lang.String[] |
listFiles(java.lang.String remotePath,
java.lang.Boolean fullPath)
|
void |
makeDirectory(java.lang.String remotePath)
|
void |
removeDirectory(java.lang.String remotePath)
|
void |
renameFile(java.lang.String remotePathFrom,
java.lang.String remotePathTo)
|
void |
retriveFile(java.lang.String remotePath,
java.lang.String localPath)
|
void |
storeFile(java.lang.String remotePath,
java.lang.String localPath,
FTPConnector.FileType fileType)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_REFRESH_INTERVAL
public static final int DEFAULT_REFRESH_INTERVAL
- Default refresh interval for FTP connector (in ms)
- See Also:
- Constant Field Values
FTPConnector
public FTPConnector(java.lang.String url,
java.util.Properties properties)
retriveFile
public void retriveFile(java.lang.String remotePath,
java.lang.String localPath)
throws palio.PalioException
- Throws:
palio.PalioException
storeFile
public void storeFile(java.lang.String remotePath,
java.lang.String localPath,
FTPConnector.FileType fileType)
throws palio.PalioException
- Throws:
palio.PalioException
listFiles
public java.lang.String[] listFiles(java.lang.String remotePath,
java.lang.Boolean fullPath)
throws palio.PalioException
- Throws:
palio.PalioException
deleteFile
public void deleteFile(java.lang.String remotePath)
throws palio.PalioException
- Throws:
palio.PalioException
renameFile
public void renameFile(java.lang.String remotePathFrom,
java.lang.String remotePathTo)
throws palio.PalioException
- Throws:
palio.PalioException
removeDirectory
public void removeDirectory(java.lang.String remotePath)
throws palio.PalioException
- Throws:
palio.PalioException
makeDirectory
public void makeDirectory(java.lang.String remotePath)
throws palio.PalioException
- Throws:
palio.PalioException
getFileSize
public long getFileSize(java.lang.String remotePath)
throws palio.PalioException
- Throws:
palio.PalioException
execute
public java.lang.Object execute(groovy.lang.Closure commands)
throws palio.PalioException
- Throws:
palio.PalioException