public class ProfileDownloader extends Object
Constructor and Description |
---|
ProfileDownloader(io.fabric8.api.FabricService fabricService,
File target,
boolean force,
ExecutorService executorService) |
Modifier and Type | Method and Description |
---|---|
protected void |
addMavenBundles(io.fabric8.api.FabricService fabricService,
io.fabric8.api.Profile profile,
Set<String> bundles,
List<String> bundleList) |
void |
downloadProfile(io.fabric8.api.Profile profile)
Downloads the bundles, features and FABs for this profile.
|
void |
downloadVersion(io.fabric8.api.Version version)
Downloads the bundles, features and FABs for all the profiles in this version
|
List<String> |
getFailedProfileIDs()
Returns the list of profile IDs which failed
|
ProfileDownloaderListener |
getListener() |
static String |
getMavenCoords(String bundle)
Returns the mvn coordinates URL from the URI string, stripping any prefix like "wrap:" or "war: " or whatnot; or return null if there is no maven URL inside the URI
|
int |
getProcessedFileCount()
Returns the number of files successfully processed
|
boolean |
isDownloadFilesFromProfile() |
boolean |
isStopOnFailure() |
void |
setDownloadFilesFromProfile(boolean downloadFilesFromProfile) |
void |
setListener(ProfileDownloaderListener listener) |
void |
setStopOnFailure(boolean stopOnFailure) |
public ProfileDownloader(io.fabric8.api.FabricService fabricService, File target, boolean force, ExecutorService executorService)
public ProfileDownloaderListener getListener()
public void setListener(ProfileDownloaderListener listener)
public boolean isStopOnFailure()
public void setStopOnFailure(boolean stopOnFailure)
public boolean isDownloadFilesFromProfile()
public void setDownloadFilesFromProfile(boolean downloadFilesFromProfile)
public void downloadVersion(io.fabric8.api.Version version) throws Exception
Exception
public void downloadProfile(io.fabric8.api.Profile profile) throws Exception
Exception
public static String getMavenCoords(String bundle)
public int getProcessedFileCount()
public List<String> getFailedProfileIDs()
Copyright © 2011–2014 Red Hat. All rights reserved.