palio.connectors
Class FTPConnector

java.lang.Object
  extended by palio.connectors.Connector
      extended by palio.connectors.PooledConnector
          extended by 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)

Nested Class Summary
static class FTPConnector.FileType
          Enum reprezentujący typy plików
 
Field Summary
static int DEFAULT_REFRESH_INTERVAL
          Default refresh interval for FTP connector (in ms)
 
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 palio.connectors.PooledConnector
BusyChecker, clearThreadResources, close, DedicateChecker, FreeChecker, getInfo, info, init, refresh
 
Methods inherited from class palio.connectors.Connector
getConnector, getInstance, getName, getUrl, init, setDedicatedLogConfiguration, setInstance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_REFRESH_INTERVAL

public static final int DEFAULT_REFRESH_INTERVAL
Default refresh interval for FTP connector (in ms)

See Also:
Constant Field Values
Constructor Detail

FTPConnector

public FTPConnector(java.lang.String url,
                    java.util.Properties properties)
Method Detail

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