Interface StreamingDistributionService
- All Superinterfaces:
DistributionService
- All Known Implementing Classes:
StreamingDistributionServiceRemoteImpl,WowzaStreamingDistributionService
Distributes elements from MediaPackages to distribution channels.
-
Field Summary
Fields inherited from interface org.opencastproject.distribution.api.DistributionService
CONFIG_KEY_STORE_TYPE, JOB_TYPE_PREFIX -
Method Summary
Modifier and TypeMethodDescriptiondistribute(String channelId, MediaPackage mediapackage, Set<String> elementIds) distributeSync(String channelId, MediaPackage mediapackage, Set<String> elementIds) Distributes the given elements synchronously.booleanChecks if streaming is enabled for the current tenant.retract(String channelId, MediaPackage mediaPackage, Set<String> elementIds) retractSync(String channelId, MediaPackage mediaPackage, Set<String> elementIds) Retracts the given elements synchronously.Methods inherited from interface org.opencastproject.distribution.api.DistributionService
distribute, distributeSync, getDistributionType, retract, retractSync
-
Method Details
-
publishToStreaming
boolean publishToStreaming()Checks if streaming is enabled for the current tenant.- Returns:
- whether streaming is enabled for the current tenant
-
distribute
Job distribute(String channelId, MediaPackage mediapackage, Set<String> elementIds) throws DistributionException, MediaPackageException -
retract
Job retract(String channelId, MediaPackage mediaPackage, Set<String> elementIds) throws DistributionException - Throws:
DistributionException
-
distributeSync
List<MediaPackageElement> distributeSync(String channelId, MediaPackage mediapackage, Set<String> elementIds) throws DistributionException Distributes the given elements synchronously. This should be used rarely since load balancing will be unavailable. However, since the dispatching logic is bypassed, synchronous execution is much faster. It is useful in interactive scenarios where you synchronously wait for job execution anyway and you don't want to make the user waiting for too long.- Parameters:
channelId- The channel to retract from.mediapackage- A media package holding the elements to retract.elementIds- The IDs of the elements to retract.- Returns:
- The distributed elements.
- Throws:
DistributionException- In case distribution fails.
-
retractSync
List<MediaPackageElement> retractSync(String channelId, MediaPackage mediaPackage, Set<String> elementIds) throws DistributionException Retracts the given elements synchronously. This should be used rarely since load balancing will be unavailable. However, since the dispatching logic is bypassed, synchronous execution is much faster. It is useful in interactive scenarios where you synchronously wait for job execution anyway and you don't want to make the user waiting for too long.- Parameters:
channelId- The channel to retract from.mediaPackage- A media package holding the elements to retract.elementIds- The IDs of the elements to retract.- Returns:
- The retracted elements.
- Throws:
DistributionException- In case retraction fails.
-