org.apache.ivy.core.resolve
public class IvyNode extends Object implements Comparable
Constructor Summary | |
---|---|
IvyNode(ResolveData data, IvyNode parent, DependencyDescriptor dd) | |
IvyNode(ResolveData data, ModuleDescriptor md) |
Method Summary | |
---|---|
void | addCaller(String rootModuleConf, IvyNode callerNode, String callerConf, String requestedConf, String[] dependencyConfs, DependencyDescriptor dd) |
void | blacklist(IvyNodeBlacklist bdata)
Blacklists the current node, so that a new resolve process won't ever consider this node as
available in the repository.
|
void | clean()
Clean data related to one root module configuration only |
int | compareTo(Object obj) |
void | discardConf(String rootModuleConf, String conf) |
boolean | doesCallersExclude(String rootModuleConf, Artifact artifact, Stack callersStack) |
boolean | equals(Object obj) |
IvyNode | findNode(ModuleRevisionId mrid) |
Artifact[] | getAllArtifacts()
Returns all the artifacts of this dependency required in all the root module configurations
|
IvyNodeCallers.Caller[] | getAllCallers() |
Collection | getAllCallersModuleIds() |
Collection | getAllEvictingConflictManagers() |
Collection | getAllEvictingNodes() |
Collection | getAllEvictingNodesDetails() |
IvyNodeCallers.Caller[] | getAllRealCallers() |
Artifact[] | getArtifacts(String rootModuleConf)
Returns the artifacts of this dependency required in the configurations themselves required
in the given root module configuration
|
IvyNodeBlacklist | getBlacklistData(String rootModuleConf)
Returns the blacklist data of this node in the given root module conf, or null
if this node is not blacklisted in this root module conf.
|
IvyNodeCallers.Caller[] | getCallers(String rootModuleConf) |
Configuration | getConfiguration(String conf) |
String[] | getConfigurations(String rootModuleConf)
Returns the configurations of the dependency required in a given root module configuration.
|
ConflictManager | getConflictManager(ModuleId mid) |
String[] | getConfsToFetch() |
ResolveData | getData() |
Collection | getDependencies(String rootModuleConf, String[] confs) |
Collection | getDependencies(String rootModuleConf, String conf, String requestedConf) |
DependencyDescriptor | getDependencyDescriptor(IvyNode parent) |
ModuleDescriptor | getDescriptor() |
String[] | getEvictedConfs() |
IvyNodeEviction.EvictionData | getEvictedData(String rootModuleConf) |
Collection | getEvictedNodes(ModuleId mid, String rootModuleConf) |
Collection | getEvictedRevisions(ModuleId mid, String rootModuleConf) |
IvyNodeEviction.EvictionData | getEvictionDataInRoot(String rootModuleConf, IvyNode ancestor) |
ModuleRevisionId | getId() |
long | getLastModified()
Returns the last modified timestamp of the module represented by this Node, or 0 if the last
modified timestamp is currently unkwown (module not loaded)
|
IvyNodeUsage | getMainUsage() |
ModuleId | getModuleId() |
ResolvedModuleRevision | getModuleRevision() |
Collection | getPendingConflicts(String rootModuleConf, ModuleId mid)
Returns a collection of Nodes in conflict for which conflict has been detected but conflict
resolution hasn't been done yet
|
Exception | getProblem() |
String | getProblemMessage() |
long | getPublication() |
String[] | getRealConfs(String conf) |
IvyNode | getRealNode() |
String[] | getRequiredConfigurations(IvyNode in, String inConf)
returns the required configurations from the given node
|
String[] | getRequiredConfigurations()
returns all the current required configurations of the node
|
ModuleRevisionId | getResolvedId() |
Set | getResolvedNodes(ModuleId moduleId, String rootModuleConf) A copy of the set of resolved nodes (real nodes) |
Collection | getResolvedRevisions(ModuleId moduleId, String rootModuleConf) |
IvyNode | getRoot() |
String[] | getRootModuleConfigurations()
Returns the root module configurations in which this dependency is required
|
Set | getRootModuleConfigurationsSet()
Returns the root module configurations in which this dependency is required
|
Artifact[] | getSelectedArtifacts(Filter artifactFilter)
Returns all the artifacts of this dependency required in the root module configurations in
which the node is not evicted nor blacklisted
|
boolean | hasAnyMergedUsageWithTransitiveDependency(String rootModuleConf)
Indicates if there is any of the merged usages of this node which has a depender with
transitive dependency descriptor.
|
boolean | hasConfigurationsToLoad() |
int | hashCode() |
boolean | hasProblem() |
boolean | isBlacklisted(String rootModuleConf)
Indicates if this node has been blacklisted in the given root module conf.
|
boolean | isCompletelyBlacklisted()
Indicates if this node has been blacklisted in all root module configurations.
|
boolean | isCompletelyEvicted() |
protected boolean | isConfRequiredByMergedUsageOnly(String rootModuleConf, String conf) |
boolean | isDownloaded() |
boolean | isEvicted(String rootModuleConf) |
boolean | isFetched(String conf) |
boolean | isLoaded() |
boolean | isSearched() |
boolean | loadData(String rootModuleConf, IvyNode parent, String parentConf, String conf, boolean shouldBePublic, IvyNodeUsage usage)
After the call node may be discarded. |
void | markEvicted(IvyNodeEviction.EvictionData evictionData) |
void | markEvicted(String rootModuleConf, IvyNode node, ConflictManager conflictManager, Collection resolved) |
void | setEvictedNodes(ModuleId moduleId, String rootModuleConf, Collection evicted) |
void | setPendingConflicts(ModuleId moduleId, String rootModuleConf, Collection conflicts) |
void | setResolvedNodes(ModuleId moduleId, String rootModuleConf, Collection resolved) |
String | toString() |
void | updateConfsToFetch(Collection confs) |
This is useful in combination with RestartResolveProcess for conflict manager implementation which use a best effort strategy to find compatible dependency set, like LatestCompatibleConflictManager
Parameters: rootModuleConf the root module configuration in which the node should be blacklisted
Returns:
Parameters: rootModuleConf
Returns:
null
if this node is not blacklisted in this root module conf.
Parameters: rootModuleConf the root module configuration to consider
Returns: the blacklist data if any
Parameters: rootModuleConf
Returns:
Returns: the last modified timestamp of the module represented by this Node
Parameters: rootModuleConf mid the module id for which pending conflicts should be found
Returns: a Collection of IvyNode in pending conflict
Parameters: in
Returns:
Returns:
Returns:
Returns:
Parameters: artifactFilter
Returns:
If at there is at least one usage from the merged usages for which there is a depender in the given root module conf which has a dependency descriptor with transitive == true, then it returns true. Otherwise it returns false.
Parameters: rootModuleConf the root module configuration to consider
Returns: true if there is any merged usage with transitive dd, false otherwise.
A blacklisted node should be considered as if it doesn't even exist on the repository.
Parameters: rootModuleConf the root module conf for which we'd like to know if the node is blacklisted
Returns: true if this node is blacklisted int he given root module conf, false otherwise
See Also: IvyNode
Returns: true if this node is blacklisted in all root module configurations, false otherwise
See Also: IvyNode