Class VideoGridServiceImpl
java.lang.Object
org.opencastproject.job.api.AbstractJobProducer
org.opencastproject.videogrid.impl.VideoGridServiceImpl
- All Implemented Interfaces:
JobProducer,VideoGridService,org.osgi.service.cm.ManagedService
public class VideoGridServiceImpl
extends AbstractJobProducer
implements VideoGridService, org.osgi.service.cm.ManagedService
Create video grids
-
Field Summary
Fields inherited from class org.opencastproject.job.api.AbstractJobProducer
ACCEPT_JOB_LOADS_EXCEEDING_PROPERTY, acceptJobLoadsExeedingMaxLoad, DEFAULT_ACCEPT_JOB_LOADS_EXCEEDING, executor, jobTypeFields inherited from interface org.opencastproject.videogrid.api.VideoGridService
JOB_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) OSGI activate method.createPartialTrack(List<String> command, Track... tracks) Generate the final video in partsprotected OrganizationDirectoryServiceReturns a reference to the organization directory service.protected SecurityServiceReturns a reference to the security serviceprotected ServiceRegistryReturns a reference to the service registry.protected UserDirectoryServiceReturns a reference to the user directory serviceprotected StringAsks the overriding class to process the arguments using the given operation.voidsetOrganizationDirectoryService(OrganizationDirectoryService organizationDirectoryService) voidsetSecurityService(SecurityService securityService) voidsetServiceRegistry(ServiceRegistry jobManager) voidsetUserDirectoryService(UserDirectoryService userDirectoryService) voidsetWorkspace(Workspace workspace) voidupdated(Dictionary properties) Methods inherited from class org.opencastproject.job.api.AbstractJobProducer
acceptJob, countJobs, finallyUpdateJob, getJobType, incident, isReadyToAccept, isReadyToAcceptJobs
-
Constructor Details
-
VideoGridServiceImpl
public VideoGridServiceImpl()Creates a new videogrid service instance.
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) Description copied from class:AbstractJobProducerOSGI activate method.- Overrides:
activatein classAbstractJobProducer- Parameters:
cc- OSGI component context
-
updated
- Specified by:
updatedin interfaceorg.osgi.service.cm.ManagedService- Throws:
ConfigurationException
-
process
Asks the overriding class to process the arguments using the given operation. The result will be added to the associated job as the payload.- Specified by:
processin classAbstractJobProducer- Parameters:
job- the job to process- Returns:
- the operation result
- Throws:
Exception- See Also:
-
createPartialTrack
public Job createPartialTrack(List<String> command, Track... tracks) throws VideoGridServiceException, MediaPackageException Description copied from interface:VideoGridServiceGenerate the final video in parts- Specified by:
createPartialTrackin interfaceVideoGridService- Parameters:
command- An ffmpeg command as a listtracks- Source tracks used by the ffmpeg command- Returns:
- VideoGrid service job.
- Throws:
VideoGridServiceException- If something went wrong during the processingMediaPackageException
-
getServiceRegistry
Description copied from class:AbstractJobProducerReturns a reference to the service registry.- Specified by:
getServiceRegistryin classAbstractJobProducer- Returns:
- the service registry
-
getSecurityService
Description copied from class:AbstractJobProducerReturns a reference to the security service- Specified by:
getSecurityServicein classAbstractJobProducer- Returns:
- the security service
-
getUserDirectoryService
Description copied from class:AbstractJobProducerReturns a reference to the user directory service- Specified by:
getUserDirectoryServicein classAbstractJobProducer- Returns:
- the user directory service
-
getOrganizationDirectoryService
Description copied from class:AbstractJobProducerReturns a reference to the organization directory service.- Specified by:
getOrganizationDirectoryServicein classAbstractJobProducer- Returns:
- the organization directory service
-
setWorkspace
-
setServiceRegistry
-
setSecurityService
-
setUserDirectoryService
-
setOrganizationDirectoryService
public void setOrganizationDirectoryService(OrganizationDirectoryService organizationDirectoryService)
-