Class WebLogIndexingService

java.lang.Object
org.dlese.dpc.index.WebLogIndexingService

public final class WebLogIndexingService extends Object
Indexes Web and query log files using Lucene.
Author:
John Weatherley
  • Constructor Details

    • WebLogIndexingService

      public WebLogIndexingService(String configFile)
  • Method Details

    • main

      public static void main(String[] args)
      The main program for the WebLogIndexingService
      Parameters:
      args - The command line arguments
    • indexFiles

      public void indexFiles()
    • indexWebLogFile

      public long indexWebLogFile(File webLogFile) throws IOException
      Throws:
      IOException
    • swapIndexes

      public boolean swapIndexes()
    • getSimpleDateStamp

      public static String getSimpleDateStamp()
      Return a string for the current time and date, sutiable for display in log files and output to standout:
      Returns:
      The dateStamp value
    • getDateStamp

      public static String getDateStamp()
      Return a string for the current time and date, sutiable for display in log files and output to standout:
      Returns:
      The dateStamp value
    • setDebug

      public static void setDebug(boolean db)
      Sets the debug attribute object
      Parameters:
      db - The new debug value