public class ConfigurationResolveReport
extends java.lang.Object
Constructor and Description |
---|
ConfigurationResolveReport(ResolveEngine resolveEngine,
ModuleDescriptor md,
java.lang.String conf,
java.util.Date date,
ResolveOptions options) |
Modifier and Type | Method and Description |
---|---|
void |
addDependency(IvyNode node) |
void |
addDependency(IvyNode node,
DownloadReport report) |
void |
checkIfChanged()
Check if the set of dependencies has changed since the previous execution of a resolution.
|
static ArtifactDownloadReport[] |
filterOutMergedArtifacts(ArtifactDownloadReport[] allFailedReports) |
ArtifactDownloadReport[] |
getAllArtifactsReports()
Get every report on the download requests.
|
int |
getArtifactsNumber() |
ArtifactDownloadReport[] |
getArtifactsReports(DownloadStatus downloadStatus,
boolean withEvicted)
Get the report on the download requests.
|
java.lang.String |
getConfiguration() |
java.util.Date |
getDate() |
IvyNode |
getDependency(ModuleRevisionId mrid) |
ArtifactDownloadReport[] |
getDownloadedArtifactsReports()
Get the report on the successful download requests with the evicted modules
|
IvyNode[] |
getDownloadedNodes() |
ArtifactDownloadReport[] |
getDownloadReports(ModuleRevisionId mrid) |
IvyNode[] |
getEvictedNodes() |
ArtifactDownloadReport[] |
getFailedArtifactsReports()
Get the report on the failed download requests with the evicted modules
|
ModuleDescriptor |
getModuleDescriptor() |
java.util.List<ModuleId> |
getModuleIds()
gives all the modules ids concerned by this report, from the most dependent to the least one
|
java.util.Set<ModuleRevisionId> |
getModuleRevisionIds()
Returns all non evicted and non error dependency mrids The returned set is ordered so that a
dependency will always be found before their own dependencies
|
java.util.Collection<IvyNode> |
getNodes(ModuleId mid) |
int |
getNodesNumber() |
ResolveEngine |
getResolveEngine() |
ResolveOptions |
getResolveOptions() |
IvyNode[] |
getSearchedNodes() |
IvyNode[] |
getUnresolvedDependencies() |
boolean |
hasChanged() |
boolean |
hasError() |
void |
updateDependency(ModuleRevisionId mrid,
IvyNode node) |
public ConfigurationResolveReport(ResolveEngine resolveEngine, ModuleDescriptor md, java.lang.String conf, java.util.Date date, ResolveOptions options)
public void checkIfChanged()
This function use the report file found in the cache. So the function must be called before the new report is serialized there.
This function also use the internal dependencies that must already be filled. This function might be 'heavy' because it may have to parse the previous report.
public boolean hasChanged()
public java.util.Set<ModuleRevisionId> getModuleRevisionIds()
public void addDependency(IvyNode node)
public void updateDependency(ModuleRevisionId mrid, IvyNode node)
public void addDependency(IvyNode node, DownloadReport report)
public java.lang.String getConfiguration()
public java.util.Date getDate()
public ModuleDescriptor getModuleDescriptor()
public ResolveOptions getResolveOptions()
public IvyNode[] getUnresolvedDependencies()
public IvyNode[] getEvictedNodes()
public IvyNode[] getDownloadedNodes()
public IvyNode[] getSearchedNodes()
public ArtifactDownloadReport[] getDownloadReports(ModuleRevisionId mrid)
public IvyNode getDependency(ModuleRevisionId mrid)
public java.util.List<ModuleId> getModuleIds()
public ResolveEngine getResolveEngine()
public int getArtifactsNumber()
public ArtifactDownloadReport[] getAllArtifactsReports()
null
public ArtifactDownloadReport[] getArtifactsReports(DownloadStatus downloadStatus, boolean withEvicted)
downloadStatus
- the status of download to retrieve. Set it to null
for no restriction
on the download statuswithEvicted
- set it to true
if the report for the evicted modules have to be
retrieved.null
ArtifactDownloadReport
public ArtifactDownloadReport[] getDownloadedArtifactsReports()
null
public ArtifactDownloadReport[] getFailedArtifactsReports()
null
public boolean hasError()
public int getNodesNumber()
public static ArtifactDownloadReport[] filterOutMergedArtifacts(ArtifactDownloadReport[] allFailedReports)
Copyright ©2007-2022 The Apache Software Foundation, Licensed under Apache License, Version 2.0.