Package jenkins.advancedqueue.sorter
Class StartedJobItemCache
- java.lang.Object
-
- jenkins.advancedqueue.sorter.StartedJobItemCache
-
public class StartedJobItemCache extends Object
Keeps track of the Queue.Items seen by the Sorter, but removed from the queue to become jobs, for UpstreamCauseStrategy.- Since:
- 3.6.0
- Author:
- Ronny Schuetz
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItem(ItemInfo itemInfo, WorkUnit primaryWorkUnit)
static StartedJobItemCache
get()
ItemInfo
getStartedItem(String projectName, int buildNumber)
Gets the Item for a started job, already removed from the queue
-
-
-
Method Detail
-
get
public static StartedJobItemCache get()
-
getStartedItem
@CheckForNull public ItemInfo getStartedItem(String projectName, int buildNumber)
Gets the Item for a started job, already removed from the queue- Parameters:
projectName
- the project namebuildNumber
- the build number- Returns:
- the
ItemInfo
for the provided id ornull
if projectName/buildNumber combination is unknown
-
-