| Constructor and Description |
|---|
LogParserUtil() |
| Modifier and Type | Method and Description |
|---|---|
void |
parseLog(String logFile)
Parse the log file/directory.
|
void |
setDateFormat(String datePattern)
Set date format for the
LogParser. |
void |
setLogParser(LogParser logParser)
Set the
LogParser to use. |
long |
stringToUnixTimestamp(String date)
Converts String date to unix timestamp.
|
public void setLogParser(LogParser logParser)
LogParser to use.logParser - the LogParser to use.public void setDateFormat(String datePattern)
LogParser.datePattern - the date pattern in the log.public long stringToUnixTimestamp(String date) throws ParseException
RmSingleLineParser.date - The String date.ParseException - if data conversion from String to unix timestamp
fails.public final void parseLog(String logFile) throws SkylineStoreException, IOException, ResourceEstimatorException
logFile - the file/directory of the log.SkylineStoreException - if fails to addHistory to
SkylineStore.IOException - if fails to parse the log.ResourceEstimatorException - if the LogParser
is not initialized.Copyright © 2019 Apache Software Foundation. All Rights Reserved.