Package org.apache.ivy.core.resolve
Class IvyNodeEviction
java.lang.Object
org.apache.ivy.core.resolve.IvyNodeEviction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class contains data about the eviction of anIvyNode
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns null if this node has only be evicted transitively, or the the collection of selected nodes if it has been evicted by other selected nodesString[]
getEvictedData
(String rootModuleConf) getEvictedNodes
(ModuleId mid, String rootModuleConf) getEvictedRevisions
(ModuleId mid, String rootModuleConf) getEvictionDataInRoot
(String rootModuleConf, IvyNode ancestor) Returns the eviction data for this node if it has been previously evicted in the root, null otherwise (if it hasn't been evicted in root) for the given rootModuleConf.getPendingConflicts
(String rootModuleConf, ModuleId mid) getResolvedNodes
(ModuleId mid, String rootModuleConf) getResolvedRevisions
(ModuleId mid, String rootModuleConf) boolean
boolean
void
markEvicted
(IvyNodeEviction.EvictionData evictionData) void
setEvictedNodes
(ModuleId moduleId, String rootModuleConf, Collection<IvyNode> evicted) void
setPendingConflicts
(ModuleId moduleId, String rootModuleConf, Collection<IvyNode> conflicts) void
setResolvedNodes
(ModuleId moduleId, String rootModuleConf, Collection<IvyNode> resolved)
-
Constructor Details
-
IvyNodeEviction
-
-
Method Details
-
getResolvedNodes
- Parameters:
mid
- ModuleIdrootModuleConf
- String- Returns:
- A copy of the set of resolved nodes (real nodes)
-
getResolvedRevisions
-
setResolvedNodes
public void setResolvedNodes(ModuleId moduleId, String rootModuleConf, Collection<IvyNode> resolved) -
getEvictedNodes
-
getEvictedRevisions
-
setEvictedNodes
-
isEvicted
-
isCompletelyEvicted
public boolean isCompletelyEvicted() -
markEvicted
-
getEvictedData
-
getEvictedConfs
-
getAllEvictingNodes
Returns null if this node has only be evicted transitively, or the the collection of selected nodes if it has been evicted by other selected nodes- Returns:
- Collection<IvyNode>
-
getAllEvictingNodesDetails
-
getAllEvictingConflictManagers
-
getEvictionDataInRoot
Returns the eviction data for this node if it has been previously evicted in the root, null otherwise (if it hasn't been evicted in root) for the given rootModuleConf. Note that this method only works if conflict resolution has already be done in all the ancestors.- Parameters:
rootModuleConf
- dittoancestor
- IvyNode- Returns:
- EvictionData
-
getPendingConflicts
-
setPendingConflicts
public void setPendingConflicts(ModuleId moduleId, String rootModuleConf, Collection<IvyNode> conflicts)
-