org.dspace.statistics.util
Class ClassicDSpaceLogConverter

java.lang.Object
  extended by org.dspace.statistics.util.ClassicDSpaceLogConverter

public class ClassicDSpaceLogConverter
extends Object

A utility class to convert the classic dspace.log (as generated by log4j) files into an intermediate format for ingestion into the new solr stats.

Author:
Stuart Lewis

Constructor Summary
ClassicDSpaceLogConverter(Context c, boolean v, boolean nE)
          Create an instance of the converter utility
 
Method Summary
 int convert(String in, String out)
          Convert a classic log file
static void main(String[] args)
          Main method to execute the converter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassicDSpaceLogConverter

public ClassicDSpaceLogConverter(Context c,
                                 boolean v,
                                 boolean nE)
Create an instance of the converter utility

Parameters:
c - The context
v - Whether or not to provide verbose output
nE - Whether to include actions logged by org.dspace.usage.LoggerUsageEventListener
Method Detail

convert

public int convert(String in,
                   String out)
Convert a classic log file

Parameters:
in - The filename to read from
out - The filename to write to
Returns:
The number of lines processed

main

public static void main(String[] args)
Main method to execute the converter

Parameters:
args - CLI args


Copyright © 2011 DuraSpace. All Rights Reserved.