org.jenkins.ci.plugins
Class PersistentBuildQueue

java.lang.Object
  extended by org.jenkins.ci.plugins.PersistentBuildQueue

public final class PersistentBuildQueue
extends java.lang.Object

A queue of AbstractBuild that is to be persisted across the Jenkins lifecycle.

Since:
1.0
Author:
Jesse Farinacci

Method Summary
static void add(hudson.model.AbstractProject project)
          Add a AbstractProject to the QUEUE.
static void load()
          Called at Jenkins start (and probably more times, hence the isLoaded check) to load up the persisted build queue and AbstractProject.scheduleBuild(int, hudson.model.Cause) for all entries in the set.
static void remove(hudson.model.AbstractProject project)
          Remove a AbstractProject to the QUEUE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public static void add(hudson.model.AbstractProject project)
Add a AbstractProject to the QUEUE.

Parameters:
project - the project to add

load

public static void load()
Called at Jenkins start (and probably more times, hence the isLoaded check) to load up the persisted build queue and AbstractProject.scheduleBuild(int, hudson.model.Cause) for all entries in the set.


remove

public static void remove(hudson.model.AbstractProject project)
Remove a AbstractProject to the QUEUE.

Parameters:
project - the project to remove


Copyright © 2004-2011. All Rights Reserved.