Class VideoGridServiceEndpoint
java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.videogrid.endpoint.VideoGridServiceEndpoint
A service endpoint to expose the
VideoGridService via REST.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecreatePartialTrack(String commandString, String tracksXml) Returns the job producer that is backing this REST endpoint.Return the service registry.protected voidsetServiceRegistry(ServiceRegistry serviceRegistry) Callback from the OSGi declarative services to set the service registry.voidsetVideoGridService(VideoGridService videoGridService) Sets the videoGridServiceMethods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint
checkHeartbeat, dispatchJob
-
Constructor Details
-
VideoGridServiceEndpoint
public VideoGridServiceEndpoint()
-
-
Method Details
-
setServiceRegistry
Callback from the OSGi declarative services to set the service registry.- Parameters:
serviceRegistry- the service registry
-
setVideoGridService
Sets the videoGridService- Parameters:
videoGridService- the videoGridService
-
createPartialTrack
@POST @Produces("text/xml") @Path("videogrid") public javax.ws.rs.core.Response createPartialTrack(@FormParam("command") String commandString, @FormParam("sourceTracks") String tracksXml) throws MediaPackageException, org.apache.commons.codec.EncoderException - Throws:
MediaPackageExceptionorg.apache.commons.codec.EncoderException
-
getService
Returns the job producer that is backing this REST endpoint.- Specified by:
getServicein classAbstractJobProducerEndpoint- Returns:
- the job producer
- See Also:
-
getServiceRegistry
Return the service registry.- Specified by:
getServiceRegistryin classAbstractJobProducerEndpoint- See Also:
-