Class WowzaStreamingDistributionService
java.lang.Object
org.opencastproject.job.api.AbstractJobProducer
org.opencastproject.distribution.api.AbstractDistributionService
org.opencastproject.distribution.streaming.wowza.WowzaStreamingDistributionService
- All Implemented Interfaces:
org.opencastproject.distribution.api.DistributionService,org.opencastproject.distribution.api.StreamingDistributionService,org.opencastproject.job.api.JobProducer
public class WowzaStreamingDistributionService
extends org.opencastproject.distribution.api.AbstractDistributionService
implements org.opencastproject.distribution.api.StreamingDistributionService
Distributes media to the local media delivery directory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatThe load on the system introduced by creating a distribute jobstatic final floatThe load on the system introduced by creating a retract jobprotected static final StringDefault schemestatic final StringThe key to look for in the service configuration file to override theDEFAULT_DISTRIBUTE_JOB_LOADstatic final StringReceipt typestatic final StringThe key to look for in the service configuration file to override theDEFAULT_RETRACT_JOB_LOADprotected static final StringThe key in the properties file that specifies in which order the videos in the SMIL file should be storedprotected static final StringThe key in the properties file that defines the streaming directory.protected static final StringThe key in the properties file that defines the streaming formats to distribute.protected static final StringThe tenant specific key in the properties file that defines the wowza port.protected static final StringThe tenant-specific key in the properties file that defines the wowza url.Fields inherited from class org.opencastproject.distribution.api.AbstractDistributionService
distributionChannel, organizationDirectoryService, securityService, serviceRegistry, serviceUrl, trustedHttpClient, userDirectoryService, workspaceFields 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.distribution.api.DistributionService
CONFIG_KEY_STORE_TYPE, JOB_TYPE_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of the streaming distribution service. -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.opencastproject.job.api.Jobdistribute(String channelId, org.opencastproject.mediapackage.MediaPackage mediapackage, String elementId) org.opencastproject.job.api.Jobdistribute(String channelId, org.opencastproject.mediapackage.MediaPackage mediapackage, Set<String> elementIds) List<org.opencastproject.mediapackage.MediaPackageElement> distributeSync(String channelId, org.opencastproject.mediapackage.MediaPackage mediaPackage, String elementId) List<org.opencastproject.mediapackage.MediaPackageElement> distributeSync(String channelId, org.opencastproject.mediapackage.MediaPackage mediaPackage, Set<String> elementIds) voidprotected Stringprocess(org.opencastproject.job.api.Job job) booleanorg.opencastproject.job.api.Jobretract(String channelId, org.opencastproject.mediapackage.MediaPackage mediapackage, String elementId) org.opencastproject.job.api.Jobretract(String channelId, org.opencastproject.mediapackage.MediaPackage mediaPackage, Set<String> elementIds) List<org.opencastproject.mediapackage.MediaPackageElement> retractSync(String channelId, org.opencastproject.mediapackage.MediaPackage mediaPackage, String elementId) List<org.opencastproject.mediapackage.MediaPackageElement> retractSync(String channelId, org.opencastproject.mediapackage.MediaPackage mediaPackage, Set<String> elementIds) voidsetOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryService) voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) voidsetUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) voidsetWorkspace(org.opencastproject.workspace.api.Workspace workspace) Methods inherited from class org.opencastproject.distribution.api.AbstractDistributionService
getOrganizationDirectoryService, getSecurityService, getServiceRegistry, getTrustedHttpClient, getUserDirectoryService, setTrustedHttpClientMethods inherited from class org.opencastproject.job.api.AbstractJobProducer
acceptJob, activate, countJobs, finallyUpdateJob, getJobType, incident, isReadyToAccept, isReadyToAcceptJobs
-
Field Details
-
STREAMING_DIRECTORY_KEY
The key in the properties file that defines the streaming directory.- See Also:
-
WOWZA_FORMATS_KEY
The key in the properties file that defines the streaming formats to distribute.- See Also:
-
WOWZA_URL_KEY
The tenant-specific key in the properties file that defines the wowza url.- See Also:
-
WOWZA_PORT_KEY
The tenant specific key in the properties file that defines the wowza port.- See Also:
-
streamingUrls
-
SMIL_ORDER_KEY
The key in the properties file that specifies in which order the videos in the SMIL file should be stored- See Also:
-
DEFAULT_SCHEME
Default scheme- See Also:
-
JOB_TYPE
Receipt type- See Also:
-
DEFAULT_DISTRIBUTE_JOB_LOAD
public static final float DEFAULT_DISTRIBUTE_JOB_LOADThe load on the system introduced by creating a distribute job- See Also:
-
DEFAULT_RETRACT_JOB_LOAD
public static final float DEFAULT_RETRACT_JOB_LOADThe load on the system introduced by creating a retract job- See Also:
-
DISTRIBUTE_JOB_LOAD_KEY
The key to look for in the service configuration file to override theDEFAULT_DISTRIBUTE_JOB_LOAD- See Also:
-
RETRACT_JOB_LOAD_KEY
The key to look for in the service configuration file to override theDEFAULT_RETRACT_JOB_LOAD- See Also:
-
-
Constructor Details
-
WowzaStreamingDistributionService
public WowzaStreamingDistributionService()Creates a new instance of the streaming distribution service.
-
-
Method Details
-
getDistributionType
- Specified by:
getDistributionTypein interfaceorg.opencastproject.distribution.api.DistributionService
-
activate
public void activate(org.osgi.framework.BundleContext bundleContext, Map<String, Object> properties) throws org.osgi.service.component.ComponentException, org.osgi.service.cm.ConfigurationException- Throws:
org.osgi.service.component.ComponentExceptionorg.osgi.service.cm.ConfigurationException
-
modified
public void modified(org.osgi.framework.BundleContext bundleContext, Map<String, Object> properties) throws org.osgi.service.component.ComponentException, org.osgi.service.cm.ConfigurationException- Throws:
org.osgi.service.component.ComponentExceptionorg.osgi.service.cm.ConfigurationException
-
publishToStreaming
public boolean publishToStreaming()- Specified by:
publishToStreamingin interfaceorg.opencastproject.distribution.api.StreamingDistributionService
-
distribute
public org.opencastproject.job.api.Job distribute(String channelId, org.opencastproject.mediapackage.MediaPackage mediapackage, Set<String> elementIds) throws org.opencastproject.distribution.api.DistributionException - Specified by:
distributein interfaceorg.opencastproject.distribution.api.StreamingDistributionService- Throws:
org.opencastproject.distribution.api.DistributionException- See Also:
-
distribute
public org.opencastproject.job.api.Job distribute(String channelId, org.opencastproject.mediapackage.MediaPackage mediapackage, String elementId) throws org.opencastproject.distribution.api.DistributionException - Specified by:
distributein interfaceorg.opencastproject.distribution.api.DistributionService- Throws:
org.opencastproject.distribution.api.DistributionException- See Also:
-
retract
public org.opencastproject.job.api.Job retract(String channelId, org.opencastproject.mediapackage.MediaPackage mediapackage, String elementId) throws org.opencastproject.distribution.api.DistributionException - Specified by:
retractin interfaceorg.opencastproject.distribution.api.DistributionService- Throws:
org.opencastproject.distribution.api.DistributionException- See Also:
-
retract
public org.opencastproject.job.api.Job retract(String channelId, org.opencastproject.mediapackage.MediaPackage mediaPackage, Set<String> elementIds) throws org.opencastproject.distribution.api.DistributionException - Specified by:
retractin interfaceorg.opencastproject.distribution.api.StreamingDistributionService- Throws:
org.opencastproject.distribution.api.DistributionException- See Also:
-
distributeSync
public List<org.opencastproject.mediapackage.MediaPackageElement> distributeSync(String channelId, org.opencastproject.mediapackage.MediaPackage mediaPackage, String elementId) throws org.opencastproject.distribution.api.DistributionException - Specified by:
distributeSyncin interfaceorg.opencastproject.distribution.api.DistributionService- Throws:
org.opencastproject.distribution.api.DistributionException
-
distributeSync
public List<org.opencastproject.mediapackage.MediaPackageElement> distributeSync(String channelId, org.opencastproject.mediapackage.MediaPackage mediaPackage, Set<String> elementIds) throws org.opencastproject.distribution.api.DistributionException - Specified by:
distributeSyncin interfaceorg.opencastproject.distribution.api.StreamingDistributionService- Throws:
org.opencastproject.distribution.api.DistributionException
-
retractSync
public List<org.opencastproject.mediapackage.MediaPackageElement> retractSync(String channelId, org.opencastproject.mediapackage.MediaPackage mediaPackage, String elementId) throws org.opencastproject.distribution.api.DistributionException - Specified by:
retractSyncin interfaceorg.opencastproject.distribution.api.DistributionService- Throws:
org.opencastproject.distribution.api.DistributionException
-
retractSync
public List<org.opencastproject.mediapackage.MediaPackageElement> retractSync(String channelId, org.opencastproject.mediapackage.MediaPackage mediaPackage, Set<String> elementIds) throws org.opencastproject.distribution.api.DistributionException - Specified by:
retractSyncin interfaceorg.opencastproject.distribution.api.StreamingDistributionService- Throws:
org.opencastproject.distribution.api.DistributionException
-
process
- Specified by:
processin classorg.opencastproject.job.api.AbstractJobProducer- Throws:
Exception- See Also:
-
getDistributionDirectory
-
setWorkspace
public void setWorkspace(org.opencastproject.workspace.api.Workspace workspace) - Overrides:
setWorkspacein classorg.opencastproject.distribution.api.AbstractDistributionService
-
setServiceRegistry
public void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) - Overrides:
setServiceRegistryin classorg.opencastproject.distribution.api.AbstractDistributionService
-
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) - Overrides:
setSecurityServicein classorg.opencastproject.distribution.api.AbstractDistributionService
-
setUserDirectoryService
public void setUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) - Overrides:
setUserDirectoryServicein classorg.opencastproject.distribution.api.AbstractDistributionService
-
setOrganizationDirectoryService
public void setOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryService) - Overrides:
setOrganizationDirectoryServicein classorg.opencastproject.distribution.api.AbstractDistributionService
-