Brooklyn

brooklyn.entity.drivers.downloads
[Java] Class BasicDownloadsManager

java.lang.Object
  brooklyn.entity.drivers.downloads.BasicDownloadsManager
All Implemented Interfaces:
DownloadResolverManager

public class BasicDownloadsManager

Method Summary
static BasicDownloadsManager newDefault(StringConfigMap config)

The default is (in-order) to:

  1. Use the local repo, if any (defaulting to $HOME/.brooklyn/repository)
  2. Use brooklyn properties for any download overrides defined there (see DownloadPropertiesResolver
  3. Use the entity's Attributes.DOWNLOAD_URL
  4. Use the cloudsoft fallback repo

DownloadResolver newDownloader(EntityDriver driver)

DownloadResolver newDownloader(EntityDriver driver, java.util.Map properties)

DownloadResolver newDownloader(EntityDriver driver, java.lang.String addonName, java.util.Map addonProperties)

static BasicDownloadsManager newEmpty()

void registerFilenameProducer(Function producer)

void registerPrimaryProducer(Function producer)

void registerProducer(Function producer)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

newDefault

public static BasicDownloadsManager newDefault(StringConfigMap config)
The default is (in-order) to:
  1. Use the local repo, if any (defaulting to $HOME/.brooklyn/repository)
  2. Use brooklyn properties for any download overrides defined there (see DownloadPropertiesResolver
  3. Use the entity's Attributes.DOWNLOAD_URL
  4. Use the cloudsoft fallback repo
Parameters:
config
Returns:


newDownloader

@Override
public DownloadResolver newDownloader(EntityDriver driver)


newDownloader

@Override
public DownloadResolver newDownloader(EntityDriver driver, java.util.Map properties)


newDownloader

@Override
public DownloadResolver newDownloader(EntityDriver driver, java.lang.String addonName, java.util.Map addonProperties)


newEmpty

public static BasicDownloadsManager newEmpty()


registerFilenameProducer

@Override
public void registerFilenameProducer(Function producer)


registerPrimaryProducer

@Override
public void registerPrimaryProducer(Function producer)


registerProducer

@Override
public void registerProducer(Function producer)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.