Class VideoGridServiceEndpoint
java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.videogrid.endpoint.VideoGridServiceEndpoint
@Path("/videogrid")
public class VideoGridServiceEndpoint
extends org.opencastproject.rest.AbstractJobProducerEndpoint
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) org.opencastproject.job.api.JobProducerorg.opencastproject.serviceregistry.api.ServiceRegistryprotected voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Callback from the OSGi declarative services to set the service registry.voidsetVideoGridService(org.opencastproject.videogrid.api.VideoGridService videoGridService) Sets the videoGridServiceMethods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint
checkHeartbeat, dispatchJob
-
Constructor Details
-
VideoGridServiceEndpoint
public VideoGridServiceEndpoint()
-
-
Method Details
-
setServiceRegistry
protected void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Callback from the OSGi declarative services to set the service registry.- Parameters:
serviceRegistry- the service registry
-
setVideoGridService
public void setVideoGridService(org.opencastproject.videogrid.api.VideoGridService videoGridService) 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 org.opencastproject.mediapackage.MediaPackageException, org.apache.commons.codec.EncoderException - Throws:
org.opencastproject.mediapackage.MediaPackageExceptionorg.apache.commons.codec.EncoderException
-
getService
public org.opencastproject.job.api.JobProducer getService()- Specified by:
getServicein classorg.opencastproject.rest.AbstractJobProducerEndpoint- See Also:
-
getServiceRegistry
public org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()- Specified by:
getServiceRegistryin classorg.opencastproject.rest.AbstractJobProducerEndpoint- See Also:
-