hudson.model
Class DependencyGraph.Dependency

java.lang.Object
  extended by hudson.model.DependencyGraph.Dependency
Direct Known Subclasses:
AbstractMavenProject.MavenModuleDependency
Enclosing class:
DependencyGraph

public static class DependencyGraph.Dependency
extends Object

Represents an edge in the dependency graph.

Since:
1.341

Constructor Summary
DependencyGraph.Dependency(AbstractProject upstream, AbstractProject downstream)
           
 
Method Summary
 boolean equals(Object obj)
           
 AbstractProject getDownstreamProject()
           
 AbstractProject getUpstreamProject()
           
 int hashCode()
           
 boolean pointsItself()
          Does this method point to itself?
 boolean shouldTriggerBuild(AbstractBuild build, TaskListener listener, List<Action> actions)
          Decide whether build should be triggered and provide any Actions for the build.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyGraph.Dependency

public DependencyGraph.Dependency(AbstractProject upstream,
                                  AbstractProject downstream)
Method Detail

getUpstreamProject

public AbstractProject getUpstreamProject()

getDownstreamProject

public AbstractProject getDownstreamProject()

shouldTriggerBuild

public boolean shouldTriggerBuild(AbstractBuild build,
                                  TaskListener listener,
                                  List<Action> actions)
Decide whether build should be triggered and provide any Actions for the build. Default implementation always returns true (for backward compatibility), and adds no Actions. Subclasses may override to control how/if the build is triggered.

Parameters:
build - Build of upstream project that just completed
listener - For any error/log output
actions - Add Actions for the triggered build to this list; never null
Returns:
True to trigger a build of the downstream project

pointsItself

public boolean pointsItself()
Does this method point to itself?


equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004-2013. All Rights Reserved.