Class SpeechToTextWorkflowSchedulerQuartz
java.lang.Object
org.opencastproject.kernel.scanner.AbstractScanner
org.opencastproject.speechtotext.async.impl.SpeechToTextWorkflowSchedulerQuartz
- All Implemented Interfaces:
org.osgi.service.cm.ManagedService
public class SpeechToTextWorkflowSchedulerQuartz
extends AbstractScanner
implements org.osgi.service.cm.ManagedService
Quartz job to start workflows to asynchronously attach captions generated by the SpeechToText service.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classQuartz job for automatically starting workflowsNested classes/interfaces inherited from class org.opencastproject.kernel.scanner.AbstractScanner
AbstractScanner.TypedQuartzJob<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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 TypeMethodDescriptionprotected voidactivate(org.osgi.service.component.ComponentContext cc) OSGi component activate callbackvoidOSGi callback to set organization directory servicevoidbindSecurityService(SecurityService service) OSGi callback to set security servicevoidbindServiceRegistry(ServiceRegistry service) 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()voidsetAssetManager(AssetManager service) voidsetDatabase(SpeechToTextDatabase database) voidvoidsetWorkflowService(WorkflowService workflowService) voidupdated(Dictionary<String, ?> properties) Methods inherited from class org.opencastproject.kernel.scanner.AbstractScanner
deactivate, finalize, getAdminContextFor, getCronExpression, getOrganizationDirectoryService, getQuartz, getServiceRegistry, getSystemUserName, isEnabled, schedule, setCronExpression, setEnabled, setQuartz, shutdown, trigger, unschedule
-
Field Details
-
JOB_GROUP
- See Also:
-
JOB_NAME
- See Also:
-
SCANNER_NAME
- See Also:
-
TRIGGER_GROUP
- See Also:
-
TRIGGER_NAME
- See Also:
-
ABANDON_AFTER_SECS
- See Also:
-
WORKFLOW
- See Also:
-
WORKFLOW_RETRY
- See Also:
-
MAX_TRIES
- See Also:
-
-
Constructor Details
-
SpeechToTextWorkflowSchedulerQuartz
public SpeechToTextWorkflowSchedulerQuartz()
-
-
Method Details
-
activate
protected void activate(org.osgi.service.component.ComponentContext cc) Description copied from class:AbstractScannerOSGi component activate callback- Overrides:
activatein classAbstractScanner
-
updated
public void updated(Dictionary<String, ?> properties) throws org.osgi.service.cm.ConfigurationException- Specified by:
updatedin interfaceorg.osgi.service.cm.ManagedService- Throws:
org.osgi.service.cm.ConfigurationException
-
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
-
setWfUtil
-
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
-
setDatabase
-
setAssetManager
-
setWorkflowService
-
bindSecurityService
Description copied from class:AbstractScannerOSGi callback to set security service- Overrides:
bindSecurityServicein classAbstractScanner
-
bindOrganizationDirectoryService
Description copied from class:AbstractScannerOSGi callback to set organization directory service- Overrides:
bindOrganizationDirectoryServicein classAbstractScanner
-
bindServiceRegistry
- Overrides:
bindServiceRegistryin classAbstractScanner
-