Class IvyNodeEviction


  • public class IvyNodeEviction
    extends java.lang.Object
    • Constructor Detail

      • IvyNodeEviction

        public IvyNodeEviction​(IvyNode node)
    • Method Detail

      • getResolvedNodes

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

        public java.util.Collection<ModuleRevisionId> getResolvedRevisions​(ModuleId mid,
                                                                           java.lang.String rootModuleConf)
      • setResolvedNodes

        public void setResolvedNodes​(ModuleId moduleId,
                                     java.lang.String rootModuleConf,
                                     java.util.Collection<IvyNode> resolved)
      • getEvictedNodes

        public java.util.Collection<IvyNode> getEvictedNodes​(ModuleId mid,
                                                             java.lang.String rootModuleConf)
      • getEvictedRevisions

        public java.util.Collection<ModuleRevisionId> getEvictedRevisions​(ModuleId mid,
                                                                          java.lang.String rootModuleConf)
      • setEvictedNodes

        public void setEvictedNodes​(ModuleId moduleId,
                                    java.lang.String rootModuleConf,
                                    java.util.Collection<IvyNode> evicted)
      • isEvicted

        public boolean isEvicted​(java.lang.String rootModuleConf)
      • isCompletelyEvicted

        public boolean isCompletelyEvicted()
      • getEvictedConfs

        public java.lang.String[] getEvictedConfs()
      • getAllEvictingNodes

        public java.util.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 java.util.Collection<java.lang.String> getAllEvictingNodesDetails()
      • getAllEvictingConflictManagers

        public java.util.Collection<ConflictManager> getAllEvictingConflictManagers()
      • getEvictionDataInRoot

        public IvyNodeEviction.EvictionData getEvictionDataInRoot​(java.lang.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 java.util.Collection<IvyNode> getPendingConflicts​(java.lang.String rootModuleConf,
                                                                 ModuleId mid)
      • setPendingConflicts

        public void setPendingConflicts​(ModuleId moduleId,
                                        java.lang.String rootModuleConf,
                                        java.util.Collection<IvyNode> conflicts)