Class 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 Detail

    • 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.
        Specified by:
        run in interface Runnable
      • moveFile

        public void moveFile​(SourceFile source,
                             DestinationFile destination)
        Move this file from the source to the destination.