public class AgentUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AgentUtils.ArtifactDownloader<T> |
static interface |
AgentUtils.DownloadCallback |
static class |
AgentUtils.FileDownloader |
static class |
AgentUtils.RepositoryDownloader |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FAB_PROTOCOL |
static java.lang.String |
REQ_PROTOCOL |
Constructor and Description |
---|
AgentUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addFeatures(java.util.Set<org.apache.karaf.features.Feature> features,
DownloadManager downloadManager,
Profile profile)
Adds the set of features to the given set for the given profile
|
static void |
addMavenProxies(java.util.Dictionary props,
FabricService fabricService) |
static void |
addRepository(DownloadManager manager,
java.util.Map<java.net.URI,org.apache.karaf.features.Repository> repositories,
java.net.URI uri) |
static java.util.Map<java.lang.String,java.io.File> |
downloadBundles(DownloadManager manager,
java.lang.Iterable<org.apache.karaf.features.Feature> features,
java.lang.Iterable<java.lang.String> bundles,
java.util.Set<java.lang.String> overrides) |
static java.util.Map<java.lang.String,java.io.File> |
downloadLocations(DownloadManager manager,
java.util.Collection<java.lang.String> locations) |
static java.util.Map<java.lang.String,java.io.File> |
downloadProfileArtifacts(DownloadManager downloadManager,
Profile profile)
Downloads all the bundles and features for the given profile
|
static java.util.Map<java.lang.String,Parser> |
getProfileArtifacts(DownloadManager downloadManager,
Profile profile)
Returns the location and parser map (i.e.
|
static java.util.Map<java.lang.String,Parser> |
getProfileArtifacts(Profile profile,
java.lang.Iterable<java.lang.String> bundles,
java.lang.Iterable<org.apache.karaf.features.Feature> features)
Returns the location and parser map (i.e.
|
protected static java.util.Map<java.net.URI,org.apache.karaf.features.Repository> |
getRepositories(DownloadManager downloadManager,
Profile profile)
Extracts the
URI /Repository map from the profile. |
static java.util.Map<java.lang.String,org.apache.karaf.features.Repository> |
loadRepositories(DownloadManager manager,
java.util.Set<java.lang.String> uris) |
public static final java.lang.String FAB_PROTOCOL
public static final java.lang.String REQ_PROTOCOL
public static java.util.Map<java.lang.String,Parser> getProfileArtifacts(DownloadManager downloadManager, Profile profile) throws java.lang.Exception
java.lang.Exception
public static java.util.Map<java.lang.String,Parser> getProfileArtifacts(Profile profile, java.lang.Iterable<java.lang.String> bundles, java.lang.Iterable<org.apache.karaf.features.Feature> features)
public static void addRepository(DownloadManager manager, java.util.Map<java.net.URI,org.apache.karaf.features.Repository> repositories, java.net.URI uri) throws java.lang.Exception
java.lang.Exception
protected static java.util.Map<java.net.URI,org.apache.karaf.features.Repository> getRepositories(DownloadManager downloadManager, Profile profile) throws java.lang.Exception
URI
/Repository
map from the profile.profile
- downloadManager
- java.net.URISyntaxException
java.lang.Exception
public static void addFeatures(java.util.Set<org.apache.karaf.features.Feature> features, DownloadManager downloadManager, Profile profile) throws java.lang.Exception
features
- downloadManager
- profile
- java.lang.Exception
public static java.util.Map<java.lang.String,org.apache.karaf.features.Repository> loadRepositories(DownloadManager manager, java.util.Set<java.lang.String> uris) throws java.lang.Exception
java.lang.Exception
public static java.util.Map<java.lang.String,java.io.File> downloadProfileArtifacts(DownloadManager downloadManager, Profile profile) throws java.lang.Exception
java.lang.Exception
public static java.util.Map<java.lang.String,java.io.File> downloadBundles(DownloadManager manager, java.lang.Iterable<org.apache.karaf.features.Feature> features, java.lang.Iterable<java.lang.String> bundles, java.util.Set<java.lang.String> overrides) throws java.lang.Exception
java.lang.Exception
public static java.util.Map<java.lang.String,java.io.File> downloadLocations(DownloadManager manager, java.util.Collection<java.lang.String> locations) throws java.net.MalformedURLException, java.lang.InterruptedException, MultiException
java.net.MalformedURLException
java.lang.InterruptedException
MultiException
public static void addMavenProxies(java.util.Dictionary props, FabricService fabricService)
Copyright © 2011-2014 Red Hat. All Rights Reserved.