Package org.jbundle.jbackup.destination
Class FtpDestination
- java.lang.Object
-
- org.jbundle.jbackup.destination.BaseDestination
-
- org.jbundle.jbackup.destination.FtpDestination
-
- All Implemented Interfaces:
DestinationFile,JBackupConstants,org.jbundle.util.apprunner.PropertyOwner
public class FtpDestination extends BaseDestination implements DestinationFile, JBackupConstants
Directory scanner. //pend(don) NOT FINISHED OR TESTED.- Version:
- Author:
- Administrator
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.net.ftp.FTPClientm_clientprotected Stringm_strLastPathprotected Stringm_strRootFTPDirectory-
Fields inherited from interface org.jbundle.jbackup.JBackupConstants
BACKUP_INCREMENTAL_PARAM, BACKUPDATE_PARAM, BASE_URL_PARAM, BLANK, CALC_FILE_LENGTH_PARAM, DEBUG, DEFAULT_PROPERTY_FILENAME, DEFAULT_ROOT_DIR, DEST_ROOT_PATHNAME_PARAM, DESTINATION_PARAM, FALSE, FILTER_PARAM, FTP_HOST, FTP_PORT, HTTP, LOG_FILENAME_PARAM, MAX_LEVELS, MAX_SIZE_PARAM, PASSWORD, PROPERTY_FILENAME_PARAM, PROPERTY_QUIET_PARAM, ROOT_DIR, ROOT_PACKAGE, SOURCE_PARAM, SOURCE_ROOT_PATHNAME_PARAM, TRUE, USER_NAME, ZIPIN_FILENAME_PARAM, ZIPOUT_FILENAME_PARAM, ZIPOUT_PATHNAME_PARAM
-
-
Constructor Summary
Constructors Constructor Description FtpDestination()FtpDestination(Properties properties)Creates new DirScanner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longaddNextFile(SourceFile source)intchangeDirectory(String strPath)voidfinishTransfer(Properties properties)org.jbundle.util.apprunner.PropertyViewgetPropertyView(Properties properties)voidinit(Properties properties)voidinitTransfer(Properties properties)-
Methods inherited from class org.jbundle.jbackup.destination.BaseDestination
setProperties
-
-
-
-
Constructor Detail
-
FtpDestination
public FtpDestination()
-
FtpDestination
public FtpDestination(Properties properties)
Creates new DirScanner.- Parameters:
properties- If zip file is going to be larger than this, split it up into smaller files.
-
-
Method Detail
-
init
public void init(Properties properties)
- Overrides:
initin classBaseDestination
-
initTransfer
public void initTransfer(Properties properties)
- Specified by:
initTransferin interfaceDestinationFile- Overrides:
initTransferin classBaseDestination
-
finishTransfer
public void finishTransfer(Properties properties)
- Specified by:
finishTransferin interfaceDestinationFile- Overrides:
finishTransferin classBaseDestination
-
addNextFile
public long addNextFile(SourceFile source)
- Specified by:
addNextFilein interfaceDestinationFile- Overrides:
addNextFilein classBaseDestination
-
changeDirectory
public int changeDirectory(String strPath) throws IOException
- Throws:
IOException
-
getPropertyView
public org.jbundle.util.apprunner.PropertyView getPropertyView(Properties properties)
- Specified by:
getPropertyViewin interfaceorg.jbundle.util.apprunner.PropertyOwner- Overrides:
getPropertyViewin classBaseDestination
-
-