Class IngestDownloadServiceRemoteImpl
java.lang.Object
org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.ingestdownloadservice.remote.IngestDownloadServiceRemoteImpl
- All Implemented Interfaces:
IngestDownloadService
Remote implementation of the ingest download service
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencastproject.serviceregistry.api.RemoteBase
RemoteBase.HttpClientClosingInputStream -
Field Summary
Fields inherited from class org.opencastproject.serviceregistry.api.RemoteBase
client, elementsFromHttpResponse, remoteServiceManager, serviceTypeFields inherited from interface org.opencastproject.ingestdownloadservice.api.IngestDownloadService
JOB_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new ingest download service remote -
Method Summary
Modifier and TypeMethodDescriptioningestDownload(MediaPackage mediaPackage, String sourceFlavors, String sourceTags, boolean deleteExternal, boolean tagsAndFlavor) voidsetRemoteServiceManager(ServiceRegistry serviceRegistry) Sets the remote service manager.voidsetTrustedHttpClient(TrustedHttpClient trustedHttpClient) Sets the trusted http clientMethods inherited from class org.opencastproject.serviceregistry.api.RemoteBase
closeConnection, getResponse, getResponse, runRequest
-
Constructor Details
-
IngestDownloadServiceRemoteImpl
public IngestDownloadServiceRemoteImpl()Constructs a new ingest download service remote
-
-
Method Details
-
ingestDownload
public Job ingestDownload(MediaPackage mediaPackage, String sourceFlavors, String sourceTags, boolean deleteExternal, boolean tagsAndFlavor) throws ServiceRegistryException - Specified by:
ingestDownloadin interfaceIngestDownloadService- Parameters:
mediaPackage- The media package to download elements fromsourceFlavors- Flavors identifying elements to downloadsourceTags- Tags identifying elements to downloaddeleteExternal- If the service should try to delete external elements after downloadingtagsAndFlavor- If elements are selected based on a union or an interjection of the sets selected by tags and flavors- Returns:
- The launched job
- Throws:
ServiceRegistryException- If starting the job failed
-
setTrustedHttpClient
Description copied from class:RemoteBaseSets the trusted http client- Overrides:
setTrustedHttpClientin classRemoteBase- Parameters:
trustedHttpClient-
-
setRemoteServiceManager
Description copied from class:RemoteBaseSets the remote service manager.- Overrides:
setRemoteServiceManagerin classRemoteBase- Parameters:
serviceRegistry-
-