Package org.opencastproject.rest
Class AbstractJobProducerEndpoint
java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
- Direct Known Subclasses:
AbstractAssetManagerRestEndpoint,AmberscriptTranscriptionRestService,AwsS3DistributionRestService,CaptionServiceRestEndpoint,ComposerRestService,ConfigurablePublicationRestService,CoverImageEndpoint,CropRestEndpoint,DownloadDistributionRestService,ExecuteRestEndpoint,GoogleSpeechTranscriptionRestService,IBMWatsonTranscriptionRestService,IngestDownloadServiceEndpoint,IngestRestService,MediaInspectionRestEndpoint,MicrosoftAzureTranscriptionRestService,OaiPmhPublicationRestService,OsgiAbstractJobProducerEndpoint,SearchRestService,SilenceDetectionServiceEndpoint,SpeechToTextServiceRestEndpoint,TextAnalysisRestEndpoint,TimelinePreviewsRestEndpoint,VideoEditorServiceEndpoint,VideoGridServiceEndpoint,VideoSegmenterRestEndpoint,WaveformServiceEndpoint,WorkflowRestService,WowzaStreamingDistributionRestService,YouTubePublicationRestService
Base implementation for job producer REST endpoints.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Responsejavax.ws.rs.core.ResponsedispatchJob(long jobId, String jobOperation) abstract JobProducerReturns the job producer that is backing this REST endpoint.abstract ServiceRegistryReturn the service registry.
-
Constructor Details
-
AbstractJobProducerEndpoint
public AbstractJobProducerEndpoint()
-
-
Method Details
-
dispatchJob
@POST @Path("/dispatch") public javax.ws.rs.core.Response dispatchJob(@FormParam("id") long jobId, @FormParam("operation") String jobOperation) throws ServiceRegistryException - Throws:
ServiceRegistryException- See Also:
-
checkHeartbeat
@HEAD @Path("/dispatch") public javax.ws.rs.core.Response checkHeartbeat() -
getService
Returns the job producer that is backing this REST endpoint.- Returns:
- the job producer
-
getServiceRegistry
Return the service registry.
-