Class HTTPServerAccessLogImporter
java.lang.Object
org.ametys.plugins.site.cache.monitoring.process.access.HTTPServerAccessLogImporter
- All Implemented Interfaces:
Disposable
,Component
,Configurable
,LogEnabled
,Serviceable
public class HTTPServerAccessLogImporter
extends Object
implements Component, Configurable, Serviceable, Disposable, LogEnabled
Import HTTP server access log and pass them to the resource access monitor
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected final class
A log file importer. -
Field Summary
Modifier and TypeFieldDescriptionprotected Date
Date of the initialization of the component, to ensure that only newer log entries are importerprotected Logger
Loggerprotected ResourceAccessComponent
The resource access monitoring componentstatic final String
Avalon ROLE. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) void
dispose()
void
enableLogging
(Logger logger) void
Scan the log files for each site importer.void
service
(ServiceManager manager)
-
Field Details
-
ROLE
Avalon ROLE. -
_logger
Logger -
_resourceAccessComponent
The resource access monitoring component -
_initializationDate
Date of the initialization of the component, to ensure that only newer log entries are importer
-
-
Constructor Details
-
HTTPServerAccessLogImporter
public HTTPServerAccessLogImporter()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
enableLogging
- Specified by:
enableLogging
in interfaceLogEnabled
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
dispose
- Specified by:
dispose
in interfaceDisposable
-
scanLogFiles
Scan the log files for each site importer.
-