Package org.apache.ivy.core.report
Class ResolveReport
java.lang.Object
org.apache.ivy.core.report.ResolveReport
Represents a whole resolution report for a module
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<String,ConfigurationResolveReport> the list of all dependencies resolved, ordered from the more dependent to the less dependentprivate longprivate longprivate ModuleDescriptorprivate Stringprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReport(String conf, ConfigurationResolveReport report) voidprivate booleangatherExtendingConfs(Set<String> extendingConfs, String conf, String extended) Get every report on the download requests.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.getArtifactsReports(DownloadStatus downloadStatus, boolean withEvicted) Get the report on the download requests.getConfigurationReport(String conf) String[]Returns the list of all dependencies concerned by this report as a List of IvyNode ordered from the more dependent to the least onelongThe total size of downloaded artifacts, in bytes.longIvyNode[]getExtendingConfs(String extended) Get every configuration which extends the specified one.Get every report on the download requests.gives all the modules ids concerned by this report, from the most dependent to the least onelongIvyNode[]booleanCan only be called if checkIfChanged has been calledbooleanhasError()voidoutput(ReportOutputter[] outputters, ResolutionCacheManager cacheMgr, ResolveOptions options) voidsetDependencies(List<IvyNode> dependencies, Filter<Artifact> artifactFilter) voidsetDownloadSize(long size) voidsetDownloadTime(long elapsedTime) voidsetProblemMessages(List<String> problems) voidsetResolveTime(long elapsedTime) toFixedModuleDescriptor(IvySettings settings, List<ModuleId> midToKeep)
-
Field Details
-
md
-
confReports
-
problemMessages
-
dependencies
the list of all dependencies resolved, ordered from the more dependent to the less dependent -
artifacts
-
resolveTime
private long resolveTime -
downloadTime
private long downloadTime -
resolveId
-
downloadSize
private long downloadSize
-
-
Constructor Details
-
ResolveReport
-
ResolveReport
-
-
Method Details
-
addReport
-
getConfigurationReport
-
getConfigurations
-
hasError
public boolean hasError() -
output
public void output(ReportOutputter[] outputters, ResolutionCacheManager cacheMgr, ResolveOptions options) throws IOException - Throws:
IOException
-
getModuleDescriptor
-
getEvictedNodes
-
getUnresolvedDependencies
-
getFailedArtifactsReports
Get every report on the download requests.- Returns:
- the list of reports, never
null
-
getAllArtifactsReports
Get every report on the download requests.- Returns:
- the list of reports, never
null
-
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 retrieve. Set it tonullfor no restriction on the download statuswithEvicted- set it totrueif the report for the evicted modules have to be retrieved,falseto exclude reports from modules evicted in all configurations.- Returns:
- the list of reports, never
null - See Also:
-
getArtifactsReports
-
checkIfChanged
public void checkIfChanged() -
hasChanged
public boolean hasChanged()Can only be called if checkIfChanged has been called- Returns:
- boolean
-
setProblemMessages
-
getProblemMessages
-
getAllProblemMessages
-
setDependencies
-
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.
-
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.
-
getModuleIds
gives all the modules ids concerned by this report, from the most dependent to the least one- Returns:
- a list of ModuleId
-
setResolveTime
public void setResolveTime(long elapsedTime) -
getResolveTime
public long getResolveTime() -
setDownloadTime
public void setDownloadTime(long elapsedTime) -
getDownloadTime
public long getDownloadTime() -
setDownloadSize
public void setDownloadSize(long size) -
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.
-
getResolveId
-
getExtendingConfs
Get every configuration which extends the specified one. The returned list also includes the specified one.- Parameters:
extended- String- Returns:
- Set of String
-
gatherExtendingConfs
-
toFixedModuleDescriptor
-