public class ResolveReport
extends java.lang.Object
Constructor and Description |
---|
ResolveReport(ModuleDescriptor md) |
ResolveReport(ModuleDescriptor md,
java.lang.String resolveId) |
Modifier and Type | Method and Description |
---|---|
void |
addReport(java.lang.String conf,
ConfigurationResolveReport report) |
void |
checkIfChanged() |
ArtifactDownloadReport[] |
getAllArtifactsReports()
Get every report on the download requests.
|
java.util.List |
getAllProblemMessages() |
java.util.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.
|
ArtifactDownloadReport[] |
getArtifactsReports(DownloadStatus downloadStatus,
boolean withEvicted)
Get the report on the download requests.
|
ArtifactDownloadReport[] |
getArtifactsReports(ModuleRevisionId mrid) |
ConfigurationResolveReport |
getConfigurationReport(java.lang.String conf) |
java.lang.String[] |
getConfigurations() |
java.util.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
|
long |
getDownloadSize()
The total size of downloaded artifacts, in bytes.
|
long |
getDownloadTime() |
IvyNode[] |
getEvictedNodes() |
ArtifactDownloadReport[] |
getFailedArtifactsReports()
Get every report on the download requests.
|
ModuleDescriptor |
getModuleDescriptor() |
java.util.List |
getModuleIds()
gives all the modules ids concerned by this report, from the most dependent to the least one
|
java.util.List |
getProblemMessages() |
java.lang.String |
getResolveId() |
long |
getResolveTime() |
IvyNode[] |
getUnresolvedDependencies() |
boolean |
hasChanged()
Can only be called if checkIfChanged has been called
|
boolean |
hasError() |
void |
output(ReportOutputter[] outputters,
ResolutionCacheManager cacheMgr,
ResolveOptions options) |
void |
setDependencies(java.util.List dependencies,
Filter artifactFilter) |
void |
setDownloadSize(long size) |
void |
setDownloadTime(long elapsedTime) |
void |
setProblemMessages(java.util.List problems) |
void |
setResolveTime(long elapsedTime) |
ModuleDescriptor |
toFixedModuleDescriptor(IvySettings settings,
java.util.List<ModuleId> midToKeep) |
public ResolveReport(ModuleDescriptor md)
public ResolveReport(ModuleDescriptor md, java.lang.String resolveId)
public void addReport(java.lang.String conf, ConfigurationResolveReport report)
public ConfigurationResolveReport getConfigurationReport(java.lang.String conf)
public java.lang.String[] getConfigurations()
public boolean hasError()
public void output(ReportOutputter[] outputters, ResolutionCacheManager cacheMgr, ResolveOptions options) throws java.io.IOException
java.io.IOException
public ModuleDescriptor getModuleDescriptor()
public IvyNode[] getEvictedNodes()
public IvyNode[] getUnresolvedDependencies()
public ArtifactDownloadReport[] getFailedArtifactsReports()
null
public ArtifactDownloadReport[] getAllArtifactsReports()
null
public ArtifactDownloadReport[] getArtifactsReports(DownloadStatus downloadStatus, boolean withEvicted)
downloadStatus
- the status of download to retreive. 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, false
to exclude reports from modules evicted in all
configurations.null
ConfigurationResolveReport.getArtifactsReports(DownloadStatus, boolean)
public ArtifactDownloadReport[] getArtifactsReports(ModuleRevisionId mrid)
public void checkIfChanged()
public boolean hasChanged()
public void setProblemMessages(java.util.List problems)
public java.util.List getProblemMessages()
public java.util.List getAllProblemMessages()
public void setDependencies(java.util.List dependencies, Filter artifactFilter)
public java.util.List getDependencies()
public java.util.List getArtifacts()
public java.util.List getModuleIds()
public void setResolveTime(long elapsedTime)
public long getResolveTime()
public void setDownloadTime(long elapsedTime)
public long getDownloadTime()
public void setDownloadSize(long size)
public long getDownloadSize()
This only includes artifacts actually downloaded to cache (DownloadStatus.SUCCESSFUL), and not artifacts already in cache or used at their original location.
public java.lang.String getResolveId()
public ModuleDescriptor toFixedModuleDescriptor(IvySettings settings, java.util.List<ModuleId> midToKeep)