Class WorkflowCleanupScanner
java.lang.Object
org.opencastproject.kernel.scanner.AbstractScanner
org.opencastproject.kernel.scanner.AbstractBufferScanner
org.opencastproject.workflow.impl.AbstractWorkflowBufferScanner
org.opencastproject.workflow.impl.WorkflowCleanupScanner
- All Implemented Interfaces:
org.osgi.service.cm.ManagedService
public class WorkflowCleanupScanner
extends AbstractWorkflowBufferScanner
implements org.osgi.service.cm.ManagedService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classQuartz job to which cleans up the workflow instancesNested classes/interfaces inherited from class org.opencastproject.kernel.scanner.AbstractScanner
AbstractScanner.TypedQuartzJob<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static intBuffer of failed jobs in daysprotected static intBuffer of parentless jobs in daysprotected static intBuffer of failed jobs in daysprotected static intBuffer of successful jobs in daysFields inherited from class org.opencastproject.kernel.scanner.AbstractBufferScanner
buffer, PARAM_KEY_BUFFERFields inherited from class org.opencastproject.kernel.scanner.AbstractScanner
JOB_PARAM_PARENT, PARAM_KEY_CRON_EXPR, PARAM_KEY_ENABLED, quartz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) OSGi component activate callbackvoidbindOrganizationDirectoryService(OrganizationDirectoryService organizationDirectoryService) OSGi callback to set organization directory servicevoidbindSecurityService(SecurityService securityService) OSGi callback to set security servicevoidbindServiceRegistry(ServiceRegistry serviceRegistry) voidbindWorkflowService(WorkflowService workflowService) OSGi callback to set workflow servicevoidOSGi deactivate component callback.The name of the job group to schedule this quartz job under.The name of the jobThe name of the scanner to use in log files.The name of the group to store the quartz triggers under.The name of the triggers to use for the quartz jobs.voidscan()voidupdated(Dictionary properties) Methods inherited from class org.opencastproject.workflow.impl.AbstractWorkflowBufferScanner
getWorkflowServiceMethods inherited from class org.opencastproject.kernel.scanner.AbstractBufferScanner
getBuffer, setBufferMethods inherited from class org.opencastproject.kernel.scanner.AbstractScanner
finalize, getAdminContextFor, getCronExpression, getOrganizationDirectoryService, getQuartz, getServiceRegistry, getSystemUserName, isEnabled, schedule, setCronExpression, setEnabled, setQuartz, shutdown, trigger, unschedule
-
Field Details
-
bufferForSuccessfulJobs
protected static int bufferForSuccessfulJobsBuffer of successful jobs in days -
bufferForFailedJobs
protected static int bufferForFailedJobsBuffer of failed jobs in days -
bufferForStoppedJobs
protected static int bufferForStoppedJobsBuffer of failed jobs in days -
bufferForParentlessJobs
protected static int bufferForParentlessJobsBuffer of parentless jobs in days
-
-
Constructor Details
-
WorkflowCleanupScanner
public WorkflowCleanupScanner()
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) Description copied from class:AbstractScannerOSGi component activate callback- Overrides:
activatein classAbstractScanner
-
deactivate
public void deactivate()Description copied from class:AbstractScannerOSGi deactivate component callback.- Overrides:
deactivatein classAbstractScanner
-
getJobGroup
Description copied from class:AbstractScannerThe name of the job group to schedule this quartz job under.- Specified by:
getJobGroupin classAbstractScanner
-
getJobName
Description copied from class:AbstractScannerThe name of the job- Specified by:
getJobNamein classAbstractScanner
-
getTriggerGroupName
Description copied from class:AbstractScannerThe name of the group to store the quartz triggers under.- Specified by:
getTriggerGroupNamein classAbstractScanner
-
getTriggerName
Description copied from class:AbstractScannerThe name of the triggers to use for the quartz jobs.- Specified by:
getTriggerNamein classAbstractScanner
-
updated
- Specified by:
updatedin interfaceorg.osgi.service.cm.ManagedService- Overrides:
updatedin classAbstractBufferScanner- Throws:
org.osgi.service.cm.ConfigurationException
-
scan
public void scan()- Specified by:
scanin classAbstractScanner
-
getScannerName
Description copied from class:AbstractScannerThe name of the scanner to use in log files.- Specified by:
getScannerNamein classAbstractScanner
-
bindWorkflowService
Description copied from class:AbstractWorkflowBufferScannerOSGi callback to set workflow service- Overrides:
bindWorkflowServicein classAbstractWorkflowBufferScanner
-
bindServiceRegistry
- Overrides:
bindServiceRegistryin classAbstractScanner
-
bindOrganizationDirectoryService
public void bindOrganizationDirectoryService(OrganizationDirectoryService organizationDirectoryService) Description copied from class:AbstractScannerOSGi callback to set organization directory service- Overrides:
bindOrganizationDirectoryServicein classAbstractScanner
-
bindSecurityService
Description copied from class:AbstractScannerOSGi callback to set security service- Overrides:
bindSecurityServicein classAbstractScanner
-