org.apache.ivy.core.resolve

Class IvyNodeEviction

public class IvyNodeEviction extends Object

Nested Class Summary
static classIvyNodeEviction.EvictionData
This class contains data about the eviction of an IvyNode.
Constructor Summary
IvyNodeEviction(IvyNode node)
Method Summary
CollectiongetAllEvictingConflictManagers()
CollectiongetAllEvictingNodes()
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
CollectiongetAllEvictingNodesDetails()
String[]getEvictedConfs()
IvyNodeEviction.EvictionDatagetEvictedData(String rootModuleConf)
CollectiongetEvictedNodes(ModuleId mid, String rootModuleConf)
CollectiongetEvictedRevisions(ModuleId mid, String rootModuleConf)
IvyNodeEviction.EvictionDatagetEvictionDataInRoot(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.
CollectiongetPendingConflicts(String rootModuleConf, ModuleId mid)
SetgetResolvedNodes(ModuleId mid, String rootModuleConf)
CollectiongetResolvedRevisions(ModuleId mid, String rootModuleConf)
booleanisCompletelyEvicted()
booleanisEvicted(String rootModuleConf)
voidmarkEvicted(IvyNodeEviction.EvictionData evictionData)
voidsetEvictedNodes(ModuleId moduleId, String rootModuleConf, Collection evicted)
voidsetPendingConflicts(ModuleId moduleId, String rootModuleConf, Collection conflicts)
voidsetResolvedNodes(ModuleId moduleId, String rootModuleConf, Collection resolved)

Constructor Detail

IvyNodeEviction

public IvyNodeEviction(IvyNode node)

Method Detail

getAllEvictingConflictManagers

public Collection getAllEvictingConflictManagers()

getAllEvictingNodes

public Collection 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:

getAllEvictingNodesDetails

public Collection getAllEvictingNodesDetails()

getEvictedConfs

public String[] getEvictedConfs()

getEvictedData

public IvyNodeEviction.EvictionData getEvictedData(String rootModuleConf)

getEvictedNodes

public Collection getEvictedNodes(ModuleId mid, String rootModuleConf)

getEvictedRevisions

public Collection getEvictedRevisions(ModuleId mid, String rootModuleConf)

getEvictionDataInRoot

public IvyNodeEviction.EvictionData 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. Note that this method only works if conflict resolution has already be done in all the ancestors.

Parameters: rootModuleConf ancestor

Returns:

getPendingConflicts

public Collection getPendingConflicts(String rootModuleConf, ModuleId mid)

getResolvedNodes

public Set getResolvedNodes(ModuleId mid, String rootModuleConf)

Returns: A copy of the set of resolved nodes (real nodes)

getResolvedRevisions

public Collection getResolvedRevisions(ModuleId mid, String rootModuleConf)

isCompletelyEvicted

public boolean isCompletelyEvicted()

isEvicted

public boolean isEvicted(String rootModuleConf)

markEvicted

public void markEvicted(IvyNodeEviction.EvictionData evictionData)

setEvictedNodes

public void setEvictedNodes(ModuleId moduleId, String rootModuleConf, Collection evicted)

setPendingConflicts

public void setPendingConflicts(ModuleId moduleId, String rootModuleConf, Collection conflicts)

setResolvedNodes

public void setResolvedNodes(ModuleId moduleId, String rootModuleConf, Collection resolved)