public class BasicDownloadsManager extends java.lang.Object implements DownloadResolverManager
DownloadResolverManager.DownloadRequirement, DownloadResolverManager.DownloadTargets| Constructor and Description |
|---|
BasicDownloadsManager() |
| Modifier and Type | Method and Description |
|---|---|
static BasicDownloadsManager |
newDefault(StringConfigMap config)
The default is (in-order) to:
Use the local repo, if any (defaulting to $HOME/.brooklyn/repository)
Use brooklyn properties for any download overrides defined there (see
DownloadProducerFromProperties
Use the entity's Attributes.DOWNLOAD_URL
Use the cloudsoft fallback repo
|
DownloadResolver |
newDownloader(EntityDriver driver)
For installing the main entity.
|
DownloadResolver |
newDownloader(EntityDriver driver,
java.util.Map<java.lang.String,?> properties)
For installing the main entity.
|
DownloadResolver |
newDownloader(EntityDriver driver,
java.lang.String addonName,
java.util.Map<java.lang.String,?> addonProperties)
For installing an entity add-on.
|
static BasicDownloadsManager |
newEmpty() |
void |
registerFilenameProducer(com.google.common.base.Function<? super DownloadResolverManager.DownloadRequirement,java.lang.String> producer)
Registers a producer for generating the expected filename of the download artifact.
|
void |
registerPrimaryProducer(com.google.common.base.Function<? super DownloadResolverManager.DownloadRequirement,? extends DownloadResolverManager.DownloadTargets> producer)
Registers a producer, to be tried before all other producers.
|
void |
registerProducer(com.google.common.base.Function<? super DownloadResolverManager.DownloadRequirement,? extends DownloadResolverManager.DownloadTargets> producer)
Registers a producer, to be tried after all other registered producers have been tried.
|
public static BasicDownloadsManager newDefault(StringConfigMap config)
DownloadProducerFromProperties
config - public static BasicDownloadsManager newEmpty()
public void registerPrimaryProducer(com.google.common.base.Function<? super DownloadResolverManager.DownloadRequirement,? extends DownloadResolverManager.DownloadTargets> producer)
DownloadResolverManagerBasicDownloadTargets.empty()).registerPrimaryProducer in interface DownloadResolverManagerregisterResolver(Function)public void registerProducer(com.google.common.base.Function<? super DownloadResolverManager.DownloadRequirement,? extends DownloadResolverManager.DownloadTargets> producer)
DownloadResolverManagerBasicDownloadTargets.empty()).registerProducer in interface DownloadResolverManagerpublic void registerFilenameProducer(com.google.common.base.Function<? super DownloadResolverManager.DownloadRequirement,java.lang.String> producer)
DownloadResolverManagerresolve(EntityDriver) result.registerFilenameProducer in interface DownloadResolverManagerpublic DownloadResolver newDownloader(EntityDriver driver)
DownloadResolverManagernewDownloader in interface DownloadResolverManagerpublic DownloadResolver newDownloader(EntityDriver driver, java.util.Map<java.lang.String,?> properties)
DownloadResolverManagernewDownloader in interface DownloadResolverManagerpublic DownloadResolver newDownloader(EntityDriver driver, java.lang.String addonName, java.util.Map<java.lang.String,?> addonProperties)
DownloadResolverManagernewDownloader in interface DownloadResolverManager