Package org.jbundle.jbackup
Class Scanner
- java.lang.Object
-
- org.jbundle.jbackup.Scanner
-
- All Implemented Interfaces:
Runnable,JBackupConstants
- Direct Known Subclasses:
BaseScanner
public class Scanner extends Object implements Runnable, JBackupConstants
Directory scanner. This class is a utility to move a bunch of files from one place to another. There are several ways to run this. First, standalone: 1 - Pass the source and destination parameters. Second, as a task or utility: 1 - Pass a property file with the source and destination parameters 2 - run() it if it is not a task, start it if it is.- Version:
- 1.0.0
- Author:
- Don Corley
-
-
Field Summary
Fields Modifier and Type Field Description protected Propertiesm_properties-
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 Scanner()Creates new DirScannerScanner(Properties properties)Creates new DirScanner
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Standalone support.voidmoveFile(SourceFile source, DestinationFile destination)Move this file from the source to the destination.voidprocess(SourceFileList sourceList, DestinationFile destination)Move files from the source to the destination.voidrun()Move files from the source to the destination.
-
-
-
Field Detail
-
m_properties
protected Properties m_properties
-
-
Constructor Detail
-
Scanner
public Scanner()
Creates new DirScanner
-
Scanner
public Scanner(Properties properties)
Creates new DirScanner
-
-
Method Detail
-
main
public static void main(String[] args)
Standalone support. Usually you specify a property file to use (ie., property.filename=c:\\temp\\updatesite.properties)
-
run
public void run()
Move files from the source to the destination.
-
process
public void process(SourceFileList sourceList, DestinationFile destination)
Move files from the source to the destination.
-
moveFile
public void moveFile(SourceFile source, DestinationFile destination)
Move this file from the source to the destination.
-
-