Class FrontCacheMonitoringScheduler
java.lang.Object
java.util.TimerTask
org.ametys.plugins.site.cache.monitoring.process.FrontCacheMonitoringScheduler
- All Implemented Interfaces:
Runnable
,Disposable
,Initializable
,LogEnabled
,Serviceable
public class FrontCacheMonitoringScheduler
extends TimerTask
implements Initializable, Serviceable, Disposable, LogEnabled
Component responsible of the import of httpserver access log file and the
monitoring of the access of the resources.
-
Field Summary
Modifier and TypeFieldDescriptionprotected HTTPServerAccessLogImporter
HttpServer access logs importerprotected Logger
Loggerprotected ResourceAccessComponent
Resource Access Monitorprotected Timer
Timer. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
void
enableLogging
(Logger logger) void
void
run()
void
service
(ServiceManager manager) Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Field Details
-
_logger
Logger -
_timer
Timer. -
_resourceAccessComponent
Resource Access Monitor -
_httpServerLogImporter
HttpServer access logs importer
-
-
Constructor Details
-
FrontCacheMonitoringScheduler
public FrontCacheMonitoringScheduler()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
enableLogging
- Specified by:
enableLogging
in interfaceLogEnabled
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
dispose
- Specified by:
dispose
in interfaceDisposable
-
run
-