Public Member Functions | |
LogFileExtractor (String inputFile, String outputFile, Date startDate, Date endDate, String filterName, boolean csvFormat, String cols) throws Exception | |
Override void | xmlEntryReceived (String xmlLogString) |
void | extract () throws Exception |
Override void | bytesRead (long bytes) |
Override void | bytesWritten (long bytes) |
Override void | logsRead (int numOfLogs) |
Override void | logsWritten (int numOfLogs) |
Override void | errorReceived (String xml) |
Private Member Functions | |
void | openDestFile () |
boolean | checkDate (ILogEntry log) |
Private Attributes | |
long | start = -1 |
long | end = -1 |
String | filterFileName = null |
FiltersVector | filters = null |
String | inFileName |
String | destFileName |
ACSLogParser | parser = null |
final int | OUTPUT_BUFFER_SIZE = 8192 |
BufferedWriter | outF = null |
boolean | writeAsCSV = false |
CSVConverter | csv |
IOHelper | outHelper |
|
Constructor The parameters defines the criteria. They can be null (but not all null of course). All the criteria are applied in AND. If the start/end date are not present, the dates are not checked.
|
|
|
|
|
|
Check if the date of the log is between the requested start and end date
|
|
|
|
Extract the logs from the source to the destination applying the selection criteria given in the constructor |
|
|
|
|
|
Create the
This method uses a new
|
|
Exceuted when a new log has been read
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The helper to write log into |
|
|
|
|
|
|
|
|