Package org.ametys.cms.workflow.purge
Class PurgeContentsScheduler
java.lang.Object
java.util.TimerTask
org.ametys.cms.workflow.purge.PurgeContentsScheduler
- All Implemented Interfaces:
Runnable
,Disposable
,Initializable
,Configurable
,Contextualizable
,LogEnabled
,Serviceable
public class PurgeContentsScheduler
extends TimerTask
implements Initializable, LogEnabled, Serviceable, Disposable, Contextualizable, Configurable
Purge contents scheduler: launches a cron which purges contents at a given periodicity.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Configuration
The component configuration.protected Context
The avalon context.protected Logger
The logger.protected ServiceManager
The service manager.protected Timer
The timer. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) void
contextualize
(Context context) void
dispose()
void
enableLogging
(Logger logger) void
void
run()
void
service
(ServiceManager manager) Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Field Details
-
_manager
The service manager. -
_configuration
The component configuration. -
_context
The avalon context. -
_logger
The logger. -
_timer
The timer.
-
-
Constructor Details
-
PurgeContentsScheduler
public PurgeContentsScheduler()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
enableLogging
- Specified by:
enableLogging
in interfaceLogEnabled
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
run
-
dispose
- Specified by:
dispose
in interfaceDisposable
-