org.alltimeflashdreamer.filelister
Class InitialIndexer

java.lang.Object
  extended byorg.alltimeflashdreamer.filelister.InitialIndexer

public class InitialIndexer
extends Object

Title: InitialIndexer

Description: Runs and controls the general, so called "initial" archiving process of the FileLister application. This process scans the file system and builds up the index in the database which then may be searched through the web module.

Organization: All Time Flash Dreamer

Version:
0.5.1
Author:
Copyright (c) 2002-2004 by Florian Steinsiepe

Constructor Summary
InitialIndexer(String sPropertyFileDir, boolean bQuietMode)
          The constructor may be called through the command line and calls the FileLister through the "non-servlet" constructor which automatically runs the initial indexing process.
 
Method Summary
static void main(String[] args)
          Main initializes the "normal" constructor and handles the various possible exceptions of the FileHandler application as well as the unexpected, but nevertheless unloved OutOfMemoryError.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitialIndexer

public InitialIndexer(String sPropertyFileDir,
                      boolean bQuietMode)
               throws FileListerException
The constructor may be called through the command line and calls the FileLister through the "non-servlet" constructor which automatically runs the initial indexing process.

Parameters:
sPropertyFileDir - the directory where the property file is stored
bQuietMode - whether to print messages to the System.out or not (true means "print no messages at all")
Throws:
FileListerException - wrapper for a config file error or a SQL server connection exception
Method Detail

main

public static void main(String[] args)
Main initializes the "normal" constructor and handles the various possible exceptions of the FileHandler application as well as the unexpected, but nevertheless unloved OutOfMemoryError. This error may come up in case the "system.maxfilelisterobjects" parameter of the property file is too high.
The list command line arguments must contain the path to the config file and may contain the "quiet mode" parameter. The order of the arguments is optional.

Parameters:
args - must contain the path to the config file and may contain the quiet mode switch