Public Member Functions | |
LogAssistant (String[] args) | |
Static Public Member Functions | |
void | main (String[] args) |
Static Public Attributes | |
final String | TIME_FORMAT = "yyyy'-'MM'-'dd'T'HH':'mm':'ss" |
Private Member Functions | |
void | parseCommandLine (String[] params) throws IllegalStateException |
boolean | checkState () |
Date | getDate (String date) throws ParseException |
void | extractLogs () |
void | splitFile () |
Static Private Member Functions | |
void | usage (String prgName) |
Private Attributes | |
char | command |
Date | startDate = null endDate=null |
String | filterFileName = null |
Integer | num = null |
Integer | minutes = null |
String | sourceFileName = null |
String | destFileName = null |
boolean | outputAsCSV = false |
String | cols = null |
|
Constructor
|
|
Check the state of the variables. This method checks if the interal variables are set in the right way It is usually executed before running a command
|
|
Extract the logs from the source to the destination file |
|
Parse the given string into a Date
|
|
|
|
Parse the command line and fill the internal variables Throws an IllegalStateException if an error arises while parsing like for example invalid parameters.
|
|
Split the input log file in several files |
|
Print a usage message on screen
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|