Class HTTPServerAccessLogImporter.LogFileImporter
- java.lang.Object
-
- org.ametys.plugins.site.cache.monitoring.process.access.HTTPServerAccessLogImporter.LogFileImporter
-
- Enclosing class:
- HTTPServerAccessLogImporter
protected final class HTTPServerAccessLogImporter.LogFileImporter extends Object
A log file importer. This class is able to import logs from an access log file.
-
-
Field Summary
Fields Modifier and Type Field Description private BufferedReader
_br
private DateFormat
_df
private File
_file
private boolean
_initialized
-
Constructor Summary
Constructors Modifier Constructor Description protected
LogFileImporter(File logFile)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
importEntries()
Import new entries from the httpserver log file of this importerprotected void
initialize()
Initialize the log file importer.private void
scanLogEntries()
private void
skipEntriesUntilEOS()
Skip to the end of the buffered stream
-
-
-
Field Detail
-
_df
private final DateFormat _df
-
_br
private BufferedReader _br
-
_initialized
private boolean _initialized
-
-
Constructor Detail
-
LogFileImporter
protected LogFileImporter(File logFile)
Constructor- Parameters:
logFile
- the log file to import
-
-
Method Detail
-
initialize
protected void initialize()
Initialize the log file importer.
-
importEntries
protected void importEntries()
Import new entries from the httpserver log file of this importer
-
skipEntriesUntilEOS
private void skipEntriesUntilEOS() throws IOException
Skip to the end of the buffered stream- Throws:
IOException
- if something goes wrong during the entry skipping process
-
scanLogEntries
private void scanLogEntries() throws IOException
- Throws:
IOException
-
-