Class CacheMonitoringScheduler
- java.lang.Object
-
- java.util.TimerTask
-
- org.ametys.web.cache.monitoring.process.CacheMonitoringScheduler
-
- All Implemented Interfaces:
Runnable
,Disposable
,Initializable
,LogEnabled
,Serviceable
public class CacheMonitoringScheduler extends TimerTask implements Initializable, Serviceable, Disposable, LogEnabled
This scheduler launches ResourceAccessMonitor and CacheMonitoringUpdater every hour at 15.
-
-
Field Summary
Fields Modifier and Type Field Description protected ResourceStatisticsComponent
_cacheStatsUpdater
Cache stats updaterprotected Logger
_logger
Loggerprotected ResourceAccessComponent
_resourceAccessMonitor
Resource Access Monitorprotected Timer
_timer
Timer.
-
Constructor Summary
Constructors Constructor Description CacheMonitoringScheduler()
-
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
-
_resourceAccessMonitor
protected ResourceAccessComponent _resourceAccessMonitor
Resource Access Monitor
-
_cacheStatsUpdater
protected ResourceStatisticsComponent _cacheStatsUpdater
Cache stats updater
-
-
Constructor Detail
-
CacheMonitoringScheduler
public CacheMonitoringScheduler()
-
-
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
-
-