com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger
Class GerritTrigger.RunningJobs

java.lang.Object
  extended by com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger.RunningJobs
Enclosing class:
GerritTrigger

public static class GerritTrigger.RunningJobs
extends java.lang.Object

Class for maintaining and synchronizing the runningJobs info. Association between patches and the jobs that we're running for them.


Constructor Summary
GerritTrigger.RunningJobs()
           
 
Method Summary
 java.util.concurrent.Future remove(Change change)
          Removes any reference to the current build for this change.
 void scheduled(Change change, java.util.concurrent.Future build, java.lang.String projectName)
          Does the needful after a build has been scheduled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GerritTrigger.RunningJobs

public GerritTrigger.RunningJobs()
Method Detail

scheduled

public void scheduled(Change change,
                      java.util.concurrent.Future build,
                      java.lang.String projectName)
Does the needful after a build has been scheduled. I.e. cancelling the old build if configured to do so and removing and storing any references.

Parameters:
change - the change.
build - the build that has been scheduled.
projectName - the name of the current project for better logging.

remove

public java.util.concurrent.Future remove(Change change)
Removes any reference to the current build for this change.

Parameters:
change - the change.
Returns:
the build that was removed.


Copyright © 2004-2012. All Rights Reserved.