Class BuildLayers


  • public class BuildLayers
    extends Object
    • Constructor Detail

      • BuildLayers

        public BuildLayers​(List<String> buildCycle)
        Class constructor for layers that has build cycle
    • Method Detail

      • topologicalSort

        public static BuildLayers topologicalSort​(List<ParsedBuildJob> buildNodes)
        Sort build nodes with their specified dependencies into layers. Each layer has to be processed before we can process another layer.
        Parameters:
        buildNodes - nodes that will be sorted in correct build order
        Returns:
        layers of dependencies
      • getOrderedBuildLayers

        public List<List<String>> getOrderedBuildLayers()
      • hasCycle

        public boolean hasCycle()
      • getBuildCycle

        public List<String> getBuildCycle()
      • getNumberOfBuildNodes

        public int getNumberOfBuildNodes()