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
Fields Modifier and Type Field Description protected HTTPServerAccessLogImporter
_httpServerLogImporter
HttpServer access logs importerprotected Logger
_logger
Loggerprotected ResourceAccessComponent
_resourceAccessComponent
Resource Access Monitorprotected Timer
_timer
Timer.
-
Constructor Summary
Constructors Constructor Description FrontCacheMonitoringScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
void
enableLogging(Logger logger)
void
initialize()
void
run()
void
service(ServiceManager manager)
-
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
-
-
-
Field Detail
-
_resourceAccessComponent
protected ResourceAccessComponent _resourceAccessComponent
Resource Access Monitor
-
_httpServerLogImporter
protected HTTPServerAccessLogImporter _httpServerLogImporter
HttpServer access logs importer
-
-
Constructor Detail
-
FrontCacheMonitoringScheduler
public FrontCacheMonitoringScheduler()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
enableLogging
public void enableLogging(Logger logger)
- Specified by:
enableLogging
in interfaceLogEnabled
-
initialize
public void initialize() throws Exception
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceDisposable
-
-