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