Class IvyNodeEviction

java.lang.Object
org.apache.ivy.core.resolve.IvyNodeEviction

public class IvyNodeEviction extends Object
  • Constructor Details

    • IvyNodeEviction

      public IvyNodeEviction(IvyNode node)
  • Method Details

    • getResolvedNodes

      public Set<IvyNode> getResolvedNodes(ModuleId mid, String rootModuleConf)
      Parameters:
      mid - ModuleId
      rootModuleConf - String
      Returns:
      A copy of the set of resolved nodes (real nodes)
    • getResolvedRevisions

      public Collection<ModuleRevisionId> getResolvedRevisions(ModuleId mid, String rootModuleConf)
    • setResolvedNodes

      public void setResolvedNodes(ModuleId moduleId, String rootModuleConf, Collection<IvyNode> resolved)
    • getEvictedNodes

      public Collection<IvyNode> getEvictedNodes(ModuleId mid, String rootModuleConf)
    • getEvictedRevisions

      public Collection<ModuleRevisionId> getEvictedRevisions(ModuleId mid, String rootModuleConf)
    • setEvictedNodes

      public void setEvictedNodes(ModuleId moduleId, String rootModuleConf, Collection<IvyNode> evicted)
    • isEvicted

      public boolean isEvicted(String rootModuleConf)
    • isCompletelyEvicted

      public boolean isCompletelyEvicted()
    • markEvicted

      public void markEvicted(IvyNodeEviction.EvictionData evictionData)
    • getEvictedData

      public IvyNodeEviction.EvictionData getEvictedData(String rootModuleConf)
    • getEvictedConfs

      public String[] getEvictedConfs()
    • getAllEvictingNodes

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

      public Collection<String> getAllEvictingNodesDetails()
    • getAllEvictingConflictManagers

      public Collection<ConflictManager> getAllEvictingConflictManagers()
    • 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 - ditto
      ancestor - IvyNode
      Returns:
      EvictionData
    • getPendingConflicts

      public Collection<IvyNode> getPendingConflicts(String rootModuleConf, ModuleId mid)
    • setPendingConflicts

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