org.apache.ivy.core.report

Class ResolveReport

public class ResolveReport extends Object

Represents a whole resolution report for a module
Constructor Summary
ResolveReport(ModuleDescriptor md)
ResolveReport(ModuleDescriptor md, String resolveId)
Method Summary
voidaddReport(String conf, ConfigurationResolveReport report)
voidcheckIfChanged()
ArtifactDownloadReport[]getAllArtifactsReports()
Get every report on the download requests.
ListgetAllProblemMessages()
ListgetArtifacts()
Returns the list of all artifacts which should be downloaded per this resolve To know if the artifact have actually been downloaded use information found in ConfigurationResolveReport.
ArtifactDownloadReport[]getArtifactsReports(DownloadStatus downloadStatus, boolean withEvicted)
Get the report on the download requests.
ArtifactDownloadReport[]getArtifactsReports(ModuleRevisionId mrid)
ConfigurationResolveReportgetConfigurationReport(String conf)
String[]getConfigurations()
ListgetDependencies()
Returns the list of all dependencies concerned by this report as a List of IvyNode ordered from the more dependent to the least one
longgetDownloadSize()
The total size of downloaded artifacts, in bytes.
longgetDownloadTime()
IvyNode[]getEvictedNodes()
ArtifactDownloadReport[]getFailedArtifactsReports()
Get every report on the download requests.
ModuleDescriptorgetModuleDescriptor()
ListgetModuleIds()
gives all the modules ids concerned by this report, from the most dependent to the least one
ListgetProblemMessages()
StringgetResolveId()
longgetResolveTime()
IvyNode[]getUnresolvedDependencies()
booleanhasChanged()
Can only be called if checkIfChanged has been called
booleanhasError()
voidoutput(ReportOutputter[] outputters, ResolutionCacheManager cacheMgr, ResolveOptions options)
voidsetDependencies(List dependencies, Filter artifactFilter)
voidsetDownloadSize(long size)
voidsetDownloadTime(long elapsedTime)
voidsetProblemMessages(List problems)
voidsetResolveTime(long elapsedTime)

Constructor Detail

ResolveReport

public ResolveReport(ModuleDescriptor md)

ResolveReport

public ResolveReport(ModuleDescriptor md, String resolveId)

Method Detail

addReport

public void addReport(String conf, ConfigurationResolveReport report)

checkIfChanged

public void checkIfChanged()

getAllArtifactsReports

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

Returns: the list of reports, never null

getAllProblemMessages

public List getAllProblemMessages()

getArtifacts

public List getArtifacts()
Returns the list of all artifacts which should be downloaded per this resolve To know if the artifact have actually been downloaded use information found in ConfigurationResolveReport.

Returns: The list of all artifacts.

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, false to exclude reports from modules evicted in all configurations.

Returns: the list of reports, never null

See Also: ConfigurationResolveReport

getArtifactsReports

public ArtifactDownloadReport[] getArtifactsReports(ModuleRevisionId mrid)

getConfigurationReport

public ConfigurationResolveReport getConfigurationReport(String conf)

getConfigurations

public String[] getConfigurations()

getDependencies

public List getDependencies()
Returns the list of all dependencies concerned by this report as a List of IvyNode ordered from the more dependent to the least one

Returns: The list of all dependencies.

getDownloadSize

public long getDownloadSize()
The total size of downloaded artifacts, in bytes.

This only includes artifacts actually downloaded to cache (DownloadStatus.SUCCESSFUL), and not artifacts already in cache or used at their original location.

Returns: The total size of downloaded artifacts, in bytes.

getDownloadTime

public long getDownloadTime()

getEvictedNodes

public IvyNode[] getEvictedNodes()

getFailedArtifactsReports

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

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

getProblemMessages

public List getProblemMessages()

getResolveId

public String getResolveId()

getResolveTime

public long getResolveTime()

getUnresolvedDependencies

public IvyNode[] getUnresolvedDependencies()

hasChanged

public boolean hasChanged()
Can only be called if checkIfChanged has been called

hasError

public boolean hasError()

output

public void output(ReportOutputter[] outputters, ResolutionCacheManager cacheMgr, ResolveOptions options)

setDependencies

public void setDependencies(List dependencies, Filter artifactFilter)

setDownloadSize

public void setDownloadSize(long size)

setDownloadTime

public void setDownloadTime(long elapsedTime)

setProblemMessages

public void setProblemMessages(List problems)

setResolveTime

public void setResolveTime(long elapsedTime)