Class BuildChainGraph
- java.lang.Object
-
- jetbrains.buildServer.controllers.graph.AbstractBuildChainGraph<BuildInfo>
-
- jetbrains.buildServer.controllers.graph.BuildChainGraph
-
public class BuildChainGraph extends AbstractBuildChainGraph<BuildInfo>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BuildChainGraph.GroupType
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.controllers.graph.AbstractBuildChainGraph
FAKE_TOP_NODE_ID
-
-
Constructor Summary
Constructors Constructor Description BuildChainGraph(BuildChain buildChain, Comparator<SBuildType> buildTypesComparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<SBuildType>
addGroup(BuildChainGraph.GroupType groupType, Collection<SBuildType> buildTypes)
Adds a group of build configurations to be represented as a single node in graph.void
clearGroups()
protected List<List<GraphNode<BuildInfo>>>
computeLayers()
protected GraphNode<BuildInfo>
getOrCreateNode(BuildPromotion buildPromotion, Map<String,GraphNode<BuildInfo>> nodesMap)
protected GraphNode<BuildInfo>
getOrCreateNode(SBuildType buildType, Map<String,GraphNode<BuildInfo>> nodesMap)
-
Methods inherited from class jetbrains.buildServer.controllers.graph.AbstractBuildChainGraph
equals, getBuildChain, getLayers, hashCode, setOmitRedundantEdges, toString
-
-
-
-
Constructor Detail
-
BuildChainGraph
public BuildChainGraph(@NotNull BuildChain buildChain, @NotNull Comparator<SBuildType> buildTypesComparator)
-
-
Method Detail
-
addGroup
@NotNull public Collection<SBuildType> addGroup(@NotNull BuildChainGraph.GroupType groupType, @NotNull Collection<SBuildType> buildTypes)
Adds a group of build configurations to be represented as a single node in graph. Note that actual group can have smaller number of build configurations, because when group is created, build configurations which introduce cyclic dependencies as well as build configurations which participate in other groups, are removed from the group- Parameters:
buildTypes
- actually created group
-
clearGroups
public void clearGroups()
-
getOrCreateNode
@NotNull protected GraphNode<BuildInfo> getOrCreateNode(@NotNull SBuildType buildType, @NotNull Map<String,GraphNode<BuildInfo>> nodesMap)
- Specified by:
getOrCreateNode
in classAbstractBuildChainGraph<BuildInfo>
-
getOrCreateNode
@Nullable protected GraphNode<BuildInfo> getOrCreateNode(@NotNull BuildPromotion buildPromotion, @NotNull Map<String,GraphNode<BuildInfo>> nodesMap)
- Specified by:
getOrCreateNode
in classAbstractBuildChainGraph<BuildInfo>
-
computeLayers
@NotNull protected List<List<GraphNode<BuildInfo>>> computeLayers()
- Overrides:
computeLayers
in classAbstractBuildChainGraph<BuildInfo>
-
-