DLESE Tools
v1.6.0

org.dlese.dpc.index
Class WebLogIndexingService

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

public final class WebLogIndexingService
extends Object

Indexes Web and query log files using Lucene.

Author:
John Weatherley

Constructor Summary
WebLogIndexingService(String configFile)
           
 
Method Summary
static String getDateStamp()
          Return a string for the current time and date, sutiable for display in log files and output to standout:
static String getSimpleDateStamp()
          Return a string for the current time and date, sutiable for display in log files and output to standout:
 void indexFiles()
           
 long indexWebLogFile(File webLogFile)
           
static void main(String[] args)
          The main program for the WebLogIndexingService
static void setDebug(boolean db)
          Sets the debug attribute object
 boolean swapIndexes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebLogIndexingService

public WebLogIndexingService(String configFile)
Method Detail

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

DLESE Tools
v1.6.0