Class ContentConsistencyScheduler
- java.lang.Object
-
- java.util.TimerTask
-
- org.ametys.cms.content.consistency.ContentConsistencyScheduler
-
- All Implemented Interfaces:
Runnable
,Disposable
,Initializable
,Configurable
,Contextualizable
,LogEnabled
,Serviceable
- Direct Known Subclasses:
ContentConsistencyScheduler
public class ContentConsistencyScheduler extends TimerTask implements Initializable, LogEnabled, Serviceable, Disposable, Contextualizable, Configurable
Content consistency scheduler: launches a cron which generates a content consistency report.
-
-
Field Summary
Fields Modifier and Type Field Description protected Configuration
_configuration
The component configuration.protected Context
_context
The avalon context.protected Logger
_logger
The logger.protected ServiceManager
_manager
The service manager.protected Timer
_timer
The timer.
-
Constructor Summary
Constructors Constructor Description ContentConsistencyScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Configuration configuration)
void
contextualize(Context context)
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
-
_manager
protected ServiceManager _manager
The service manager.
-
_configuration
protected Configuration _configuration
The component configuration.
-
-
Constructor Detail
-
ContentConsistencyScheduler
public ContentConsistencyScheduler()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
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
-
-