Class AbstractJobProducer

java.lang.Object
org.opencastproject.job.api.AbstractJobProducer
All Implemented Interfaces:
JobProducer
Direct Known Subclasses:
AbstractCoverImageService, AbstractDistributionService, AmberscriptTranscriptionService, AnimateServiceImpl, AssetManagerJobProducer, CaptionServiceImpl, ComposerServiceImpl, ConfigurablePublicationServiceImpl, CropServiceImpl, ExecuteServiceImpl, GoogleSpeechTranscriptionService, IBMWatsonTranscriptionService, IngestDownloadServiceImpl, IngestServiceImpl, MediaInspectionServiceImpl, MicrosoftAzureTranscriptionService, OaiPmhPublicationServiceImpl, OsgiAbstractJobProducer, SearchServiceImpl, SilenceDetectionServiceImpl, SoxServiceImpl, SpeechToTextServiceImpl, TextAnalyzerServiceImpl, TimelinePreviewsServiceImpl, VideoEditorServiceImpl, VideoGridServiceImpl, VideoSegmenterServiceImpl, WaveformServiceImpl, YouTubeV3PublicationServiceImpl

public abstract class AbstractJobProducer extends Object implements JobProducer
This class serves as a convenience for services that implement the JobProducer api to deal with handling long running, asynchronous operations.
  • Field Details

    • DEFAULT_ACCEPT_JOB_LOADS_EXCEEDING

      public static final boolean DEFAULT_ACCEPT_JOB_LOADS_EXCEEDING
      The default value whether to accept a job whose load exceeds the host’s max load
      See Also:
    • ACCEPT_JOB_LOADS_EXCEEDING_PROPERTY

      public static final String ACCEPT_JOB_LOADS_EXCEEDING_PROPERTY
      The key to look for in the service configuration file to override the DEFAULT_ACCEPT_JOB_LOADS_EXCEEDING
      See Also:
    • acceptJobLoadsExeedingMaxLoad

      protected boolean acceptJobLoadsExeedingMaxLoad
      Whether to accept a job whose load exceeds the host’s max load
    • jobType

      protected String jobType
      The types of job that this producer can handle
    • executor

      protected ExecutorService executor
      To enable threading when dispatching jobs
  • Constructor Details

    • AbstractJobProducer

      public AbstractJobProducer(String jobType)
      Creates a new abstract job producer for jobs of the given type.
      Parameters:
      jobType - the job type
  • Method Details