Class LifeCycleTaskRunner
java.lang.Object
org.opencastproject.lifecyclemanagement.impl.LifeCycleTaskRunner
Periodically checks on the tasks in the database.
If there are scheduled tasks this attempts to run them.
If there are running tasks this attempts to check if their status should be changed
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.opencastproject.assetmanager.api.AssetManagerprotected org.opencastproject.lifecyclemanagement.api.LifeCycleServiceprotected org.opencastproject.security.api.OrganizationDirectoryServiceprotected ScheduledExecutorServiceThe thread pool to use for dispatching queued jobs and checking on phantom services.protected org.opencastproject.security.api.SecurityServiceprotected org.opencastproject.workflow.api.WorkflowService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) voidvoidmodified(org.osgi.service.component.ComponentContext cc) voidsetAssetManager(org.opencastproject.assetmanager.api.AssetManager assetManager) voidsetIndexService(org.opencastproject.index.service.api.IndexService indexService) voidsetLifeCycleService(org.opencastproject.lifecyclemanagement.api.LifeCycleService lifeCycleService) voidsetOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService orgDirServ) voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) voidsetWorkflowService(org.opencastproject.workflow.api.WorkflowService workflowService) voidupdated(Dictionary<String, ?> properties)
-
Field Details
-
lifeCycleService
protected org.opencastproject.lifecyclemanagement.api.LifeCycleService lifeCycleService -
workflowService
protected org.opencastproject.workflow.api.WorkflowService workflowService -
assetManager
protected org.opencastproject.assetmanager.api.AssetManager assetManager -
securityService
protected org.opencastproject.security.api.SecurityService securityService -
organizationDirectoryService
protected org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryService -
scheduledExecutor
The thread pool to use for dispatching queued jobs and checking on phantom services.
-
-
Constructor Details
-
LifeCycleTaskRunner
public LifeCycleTaskRunner()
-
-
Method Details
-
setLifeCycleService
public void setLifeCycleService(org.opencastproject.lifecyclemanagement.api.LifeCycleService lifeCycleService) -
setWorkflowService
public void setWorkflowService(org.opencastproject.workflow.api.WorkflowService workflowService) -
setAssetManager
public void setAssetManager(org.opencastproject.assetmanager.api.AssetManager assetManager) -
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) -
setOrganizationDirectoryService
public void setOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService orgDirServ) -
setIndexService
public void setIndexService(org.opencastproject.index.service.api.IndexService indexService) -
activate
public void activate(org.osgi.service.component.ComponentContext cc) throws org.osgi.service.cm.ConfigurationException - Throws:
org.osgi.service.cm.ConfigurationException
-
modified
public void modified(org.osgi.service.component.ComponentContext cc) throws org.osgi.service.cm.ConfigurationException - Throws:
org.osgi.service.cm.ConfigurationException
-
updated
public void updated(Dictionary<String, ?> properties) throws org.osgi.service.cm.ConfigurationException- Throws:
org.osgi.service.cm.ConfigurationException
-
deactivate
public void deactivate()
-