Interface DownloadDistributionService
- All Superinterfaces:
DistributionService
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 TypeMethodDescriptionorg.opencastproject.job.api.Jobdistribute(String channelId, org.opencastproject.mediapackage.MediaPackage mediapackage, String elementId, boolean checkAvailability) org.opencastproject.job.api.Jobdistribute(String channelId, org.opencastproject.mediapackage.MediaPackage mediapackage, Set<String> elementIds, boolean checkAvailability) org.opencastproject.job.api.Jobdistribute(String pubChannelId, org.opencastproject.mediapackage.MediaPackage mediaPackage, Set<String> downloadIds, boolean checkAvailability, boolean preserveReference) List<org.opencastproject.mediapackage.MediaPackageElement> distributeSync(String channelId, org.opencastproject.mediapackage.MediaPackage mediapackage, Set<String> elementIds, boolean checkAvailability) Distributes the given elements synchronously.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, Set<String> elementIds) Retracts the given elements synchronously.Methods inherited from interface org.opencastproject.distribution.api.DistributionService
distribute, distributeSync, getDistributionType, retract, retractSync
-
Method Details
-
distribute
org.opencastproject.job.api.Job distribute(String channelId, org.opencastproject.mediapackage.MediaPackage mediapackage, String elementId, boolean checkAvailability) throws DistributionException, org.opencastproject.mediapackage.MediaPackageException - Throws:
DistributionExceptionorg.opencastproject.mediapackage.MediaPackageException
-
distribute
org.opencastproject.job.api.Job distribute(String channelId, org.opencastproject.mediapackage.MediaPackage mediapackage, Set<String> elementIds, boolean checkAvailability) throws DistributionException, org.opencastproject.mediapackage.MediaPackageException - Throws:
DistributionExceptionorg.opencastproject.mediapackage.MediaPackageException
-
distribute
org.opencastproject.job.api.Job distribute(String pubChannelId, org.opencastproject.mediapackage.MediaPackage mediaPackage, Set<String> downloadIds, boolean checkAvailability, boolean preserveReference) throws DistributionException, org.opencastproject.mediapackage.MediaPackageException - Throws:
DistributionExceptionorg.opencastproject.mediapackage.MediaPackageException
-
retract
org.opencastproject.job.api.Job retract(String channelId, org.opencastproject.mediapackage.MediaPackage mediaPackage, Set<String> elementIds) throws DistributionException - Throws:
DistributionException
-
distributeSync
List<org.opencastproject.mediapackage.MediaPackageElement> distributeSync(String channelId, org.opencastproject.mediapackage.MediaPackage mediapackage, Set<String> elementIds, boolean checkAvailability) 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.checkAvailability- Whether to check if the distributed elements are available through their URI.- Returns:
- The distributed elements.
- Throws:
DistributionException- In case distribution fails.
-
retractSync
List<org.opencastproject.mediapackage.MediaPackageElement> retractSync(String channelId, org.opencastproject.mediapackage.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.
-