Class MediaInspectionServiceImpl
java.lang.Object
org.opencastproject.job.api.AbstractJobProducer
org.opencastproject.inspection.ffmpeg.MediaInspectionServiceImpl
- All Implemented Interfaces:
org.opencastproject.inspection.api.MediaInspectionService,org.opencastproject.job.api.JobProducer
public class MediaInspectionServiceImpl
extends org.opencastproject.job.api.AbstractJobProducer
implements org.opencastproject.inspection.api.MediaInspectionService
Inspects media via ffprobe.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatThe load introduced on the system by creating an enrich jobstatic final floatThe load introduced on the system by creating an inspect jobstatic final StringThe key to look for in the service configuration file to override theDEFAULT_ENRICH_JOB_LOADstatic final StringThe key to look for in the service configuration file to override theDEFAULT_INSPECT_JOB_LOADFields 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.inspection.api.MediaInspectionService
JOB_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new media inspection service instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) org.opencastproject.job.api.Jobenrich(org.opencastproject.mediapackage.MediaPackageElement element, boolean override) org.opencastproject.job.api.Jobenrich(org.opencastproject.mediapackage.MediaPackageElement element, boolean override, Map<String, String> options) protected org.opencastproject.security.api.OrganizationDirectoryServiceprotected org.opencastproject.security.api.SecurityServiceprotected org.opencastproject.serviceregistry.api.ServiceRegistryprotected org.opencastproject.security.api.UserDirectoryServiceorg.opencastproject.job.api.Joborg.opencastproject.job.api.Jobvoidmodified(org.osgi.service.component.ComponentContext cc) protected Stringprocess(org.opencastproject.job.api.Job job) voidsetOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectory) Sets a reference to the organization directory service.voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) Callback for setting the security service.protected voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry jobManager) voidsetUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) Callback for setting the user directory service.protected voidsetWorkspace(org.opencastproject.workspace.api.Workspace workspace) Methods inherited from class org.opencastproject.job.api.AbstractJobProducer
acceptJob, countJobs, finallyUpdateJob, getJobType, incident, isReadyToAccept, isReadyToAcceptJobs
-
Field Details
-
DEFAULT_INSPECT_JOB_LOAD
public static final float DEFAULT_INSPECT_JOB_LOADThe load introduced on the system by creating an inspect job- See Also:
-
DEFAULT_ENRICH_JOB_LOAD
public static final float DEFAULT_ENRICH_JOB_LOADThe load introduced on the system by creating an enrich job- See Also:
-
INSPECT_JOB_LOAD_KEY
The key to look for in the service configuration file to override theDEFAULT_INSPECT_JOB_LOAD- See Also:
-
ENRICH_JOB_LOAD_KEY
The key to look for in the service configuration file to override theDEFAULT_ENRICH_JOB_LOAD- See Also:
-
-
Constructor Details
-
MediaInspectionServiceImpl
public MediaInspectionServiceImpl()Creates a new media inspection service instance.
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) - Overrides:
activatein classorg.opencastproject.job.api.AbstractJobProducer
-
modified
public void modified(org.osgi.service.component.ComponentContext cc) -
process
- Specified by:
processin classorg.opencastproject.job.api.AbstractJobProducer- Throws:
Exception- See Also:
-
inspect
public org.opencastproject.job.api.Job inspect(URI uri) throws org.opencastproject.inspection.api.MediaInspectionException - Specified by:
inspectin interfaceorg.opencastproject.inspection.api.MediaInspectionService- Throws:
org.opencastproject.inspection.api.MediaInspectionException- See Also:
-
inspect
public org.opencastproject.job.api.Job inspect(URI uri, Map<String, String> options) throws org.opencastproject.inspection.api.MediaInspectionException- Specified by:
inspectin interfaceorg.opencastproject.inspection.api.MediaInspectionService- Throws:
org.opencastproject.inspection.api.MediaInspectionException- See Also:
-
enrich
public org.opencastproject.job.api.Job enrich(org.opencastproject.mediapackage.MediaPackageElement element, boolean override) throws org.opencastproject.inspection.api.MediaInspectionException, org.opencastproject.mediapackage.MediaPackageException - Specified by:
enrichin interfaceorg.opencastproject.inspection.api.MediaInspectionService- Throws:
org.opencastproject.inspection.api.MediaInspectionExceptionorg.opencastproject.mediapackage.MediaPackageException- See Also:
-
enrich
public org.opencastproject.job.api.Job enrich(org.opencastproject.mediapackage.MediaPackageElement element, boolean override, Map<String, String> options) throws org.opencastproject.inspection.api.MediaInspectionException, org.opencastproject.mediapackage.MediaPackageException- Specified by:
enrichin interfaceorg.opencastproject.inspection.api.MediaInspectionService- Throws:
org.opencastproject.inspection.api.MediaInspectionExceptionorg.opencastproject.mediapackage.MediaPackageException- See Also:
-
setWorkspace
protected void setWorkspace(org.opencastproject.workspace.api.Workspace workspace) -
setServiceRegistry
protected void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry jobManager) -
getServiceRegistry
protected org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()- Specified by:
getServiceRegistryin classorg.opencastproject.job.api.AbstractJobProducer- See Also:
-
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) Callback for setting the security service.- Parameters:
securityService- the securityService to set
-
setUserDirectoryService
public void setUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) Callback for setting the user directory service.- Parameters:
userDirectoryService- the userDirectoryService to set
-
setOrganizationDirectoryService
public void setOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectory) Sets a reference to the organization directory service.- Parameters:
organizationDirectory- the organization directory
-
getSecurityService
protected org.opencastproject.security.api.SecurityService getSecurityService()- Specified by:
getSecurityServicein classorg.opencastproject.job.api.AbstractJobProducer- See Also:
-
getUserDirectoryService
protected org.opencastproject.security.api.UserDirectoryService getUserDirectoryService()- Specified by:
getUserDirectoryServicein classorg.opencastproject.job.api.AbstractJobProducer- See Also:
-
getOrganizationDirectoryService
protected org.opencastproject.security.api.OrganizationDirectoryService getOrganizationDirectoryService()- Specified by:
getOrganizationDirectoryServicein classorg.opencastproject.job.api.AbstractJobProducer- See Also:
-