org.apache.ivy.core.report

Class ConfigurationResolveReport

public class ConfigurationResolveReport extends Object

Represents a whole resolution report for a module but for a specific configuration
Constructor Summary
ConfigurationResolveReport(ResolveEngine resolveEngine, ModuleDescriptor md, String conf, Date date, ResolveOptions options)
Method Summary
voidaddDependency(IvyNode node)
voidaddDependency(IvyNode node, DownloadReport report)
voidcheckIfChanged()
Check if the set of dependencies has changed since the previous execution of a resolution.
This function use the report file found in the cache.
static ArtifactDownloadReport[]filterOutMergedArtifacts(ArtifactDownloadReport[] allFailedReports)
ArtifactDownloadReport[]getAllArtifactsReports()
Get every report on the download requests.
intgetArtifactsNumber()
ArtifactDownloadReport[]getArtifactsReports(DownloadStatus downloadStatus, boolean withEvicted)
Get the report on the download requests.
StringgetConfiguration()
DategetDate()
IvyNodegetDependency(ModuleRevisionId mrid)
ArtifactDownloadReport[]getDownloadedArtifactsReports()
Get the report on the sucessfull 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
ModuleDescriptorgetModuleDescriptor()
ListgetModuleIds()
gives all the modules ids concerned by this report, from the most dependent to the least one
SetgetModuleRevisionIds()
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
CollectiongetNodes(ModuleId mid)
intgetNodesNumber()
ResolveEnginegetResolveEngine()
IvyNode[]getSearchedNodes()
IvyNode[]getUnresolvedDependencies()
booleanhasChanged()
booleanhasError()
voidupdateDependency(ModuleRevisionId mrid, IvyNode node)

Constructor Detail

ConfigurationResolveReport

public ConfigurationResolveReport(ResolveEngine resolveEngine, ModuleDescriptor md, String conf, Date date, ResolveOptions options)

Method Detail

addDependency

public void addDependency(IvyNode node)

addDependency

public void addDependency(IvyNode node, DownloadReport report)

checkIfChanged

public void checkIfChanged()
Check if the set of dependencies has changed since the previous execution of a resolution.
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.

Returns:

filterOutMergedArtifacts

public static ArtifactDownloadReport[] filterOutMergedArtifacts(ArtifactDownloadReport[] allFailedReports)

getAllArtifactsReports

public ArtifactDownloadReport[] getAllArtifactsReports()
Get every report on the download requests.

Returns: the list of reports, never null

getArtifactsNumber

public int getArtifactsNumber()

getArtifactsReports

public ArtifactDownloadReport[] getArtifactsReports(DownloadStatus downloadStatus, boolean withEvicted)
Get the report on the download requests. The list of download report can be restricted to a specific download status, and also remove the download report for the evicted modules.

Parameters: downloadStatus the status of download to retreive. Set it to null for no restriction on the download status withEvicted set it to true if the report for the evicted modules have to be retrieved.

Returns: the list of reports, never null

See Also: ArtifactDownloadReport

getConfiguration

public String getConfiguration()

getDate

public Date getDate()

getDependency

public IvyNode getDependency(ModuleRevisionId mrid)

getDownloadedArtifactsReports

public ArtifactDownloadReport[] getDownloadedArtifactsReports()
Get the report on the sucessfull download requests with the evicted modules

Returns: the list of reports, never null

getDownloadedNodes

public IvyNode[] getDownloadedNodes()

getDownloadReports

public ArtifactDownloadReport[] getDownloadReports(ModuleRevisionId mrid)

getEvictedNodes

public IvyNode[] getEvictedNodes()

getFailedArtifactsReports

public ArtifactDownloadReport[] getFailedArtifactsReports()
Get the report on the failed download requests with the evicted modules

Returns: the list of reports, never null

getModuleDescriptor

public ModuleDescriptor getModuleDescriptor()

getModuleIds

public List getModuleIds()
gives all the modules ids concerned by this report, from the most dependent to the least one

Returns: a list of ModuleId

getModuleRevisionIds

public Set 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

Returns: all non evicted and non error dependency mrids

getNodes

public Collection getNodes(ModuleId mid)

getNodesNumber

public int getNodesNumber()

getResolveEngine

public ResolveEngine getResolveEngine()

getSearchedNodes

public IvyNode[] getSearchedNodes()

getUnresolvedDependencies

public IvyNode[] getUnresolvedDependencies()

hasChanged

public boolean hasChanged()

UNKNOWN: checkIfChanged has been called.

hasError

public boolean hasError()

updateDependency

public void updateDependency(ModuleRevisionId mrid, IvyNode node)