public class ConditionalDependencyGraphWrapper extends DependencyGraph
DependencyGraph
and append RunCondition
to Dependency
.
Methods other than addDependency are just calling methods of wrapped DependencyGraph
DependencyGraph.Dependency
EMPTY
Constructor and Description |
---|
ConditionalDependencyGraphWrapper(DependencyGraph graph,
org.jenkins_ci.plugins.run_condition.RunCondition condition,
org.jenkins_ci.plugins.run_condition.BuildStepRunner runner) |
Modifier and Type | Method and Description |
---|---|
void |
addDependency(DependencyGraph.Dependency dep)
Add dependency.
|
void |
build() |
int |
compare(AbstractProject o1,
AbstractProject o2) |
<T> T |
getComputationalData(Class<T> key) |
List<AbstractProject> |
getDownstream(AbstractProject p) |
List<DependencyGraph.Dependency> |
getDownstreamDependencies(AbstractProject p) |
Set<AbstractProject> |
getTransitiveDownstream(AbstractProject src) |
Set<AbstractProject> |
getTransitiveUpstream(AbstractProject src) |
List<AbstractProject> |
getUpstream(AbstractProject p) |
List<DependencyGraph.Dependency> |
getUpstreamDependencies(AbstractProject p) |
boolean |
hasIndirectDependencies(AbstractProject src,
AbstractProject dst) |
<T> void |
putComputationalData(Class<T> key,
T value) |
addDependency, addDependency, addDependency, addDependencyDeclarers, getTopologicallySorted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public ConditionalDependencyGraphWrapper(DependencyGraph graph, org.jenkins_ci.plugins.run_condition.RunCondition condition, org.jenkins_ci.plugins.run_condition.BuildStepRunner runner)
public void addDependency(DependencyGraph.Dependency dep)
RunCondition
will be attached.addDependency
in class DependencyGraph
DependencyGraph.addDependency(hudson.model.DependencyGraph.Dependency)
public void build()
build
in class DependencyGraph
public int compare(AbstractProject o1, AbstractProject o2)
compare
in interface Comparator<AbstractProject>
compare
in class DependencyGraph
public <T> T getComputationalData(Class<T> key)
getComputationalData
in class DependencyGraph
public List<AbstractProject> getDownstream(AbstractProject p)
getDownstream
in class DependencyGraph
public List<DependencyGraph.Dependency> getDownstreamDependencies(AbstractProject p)
getDownstreamDependencies
in class DependencyGraph
public Set<AbstractProject> getTransitiveDownstream(AbstractProject src)
getTransitiveDownstream
in class DependencyGraph
public Set<AbstractProject> getTransitiveUpstream(AbstractProject src)
getTransitiveUpstream
in class DependencyGraph
public List<AbstractProject> getUpstream(AbstractProject p)
getUpstream
in class DependencyGraph
public List<DependencyGraph.Dependency> getUpstreamDependencies(AbstractProject p)
getUpstreamDependencies
in class DependencyGraph
public boolean hasIndirectDependencies(AbstractProject src, AbstractProject dst)
hasIndirectDependencies
in class DependencyGraph
public <T> void putComputationalData(Class<T> key, T value)
putComputationalData
in class DependencyGraph
Copyright © 2016–2021. All rights reserved.