public class RemoteDownloader extends Object implements PackageDownloader
| Constructor and Description |
|---|
RemoteDownloader(ResourceContext<?> resourceContext,
boolean resourceExists,
ProfileServiceConnection profileServiceConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroyArchive(File archive) |
File |
prepareArchive(org.rhq.core.domain.content.PackageDetailsKey key,
org.rhq.core.domain.resource.ResourceType resourceType) |
public RemoteDownloader(ResourceContext<?> resourceContext, boolean resourceExists, ProfileServiceConnection profileServiceConnection)
resourceContext - the resource context if the resource exists or
the parent resource context if the resource doesn't exist yetresourceExists - this tells the downloader which API to use. This has to go
hand in hand with the resourceContext that is being provided.profileServiceConnection - public File prepareArchive(org.rhq.core.domain.content.PackageDetailsKey key, org.rhq.core.domain.resource.ResourceType resourceType)
prepareArchive in interface PackageDownloaderpublic void destroyArchive(File archive)
destroyArchive in interface PackageDownloaderCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.