提交 bd31bde3 编写于 作者: T tfennelly

Fix Queue.Item.id and Run.getQueueId javadoc

上级 c8abbfc9
......@@ -1505,12 +1505,16 @@ public class Queue extends ResourceController implements Saveable {
*/
@ExportedBean(defaultVisibility = 999)
public static abstract class Item extends Actionable {
private final long id;
/**
* VM-wide unique ID that tracks the {@link Task} as it moves through different stages
* in the queue (each represented by different subtypes of {@link Item}.
* Unique ID (per master) that tracks the {@link Task} as it moves through different stages
* in the queue (each represented by different subtypes of {@link Item} and into any subsequent
* {@link Run} instance (see {@link Run#getQueueId()}).
* @return
* @since TODO
*/
private final long id;
@Exported
public long getId() {
return id;
......
......@@ -139,6 +139,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
/**
* The original {@link Queue.Item#getId()} has not yet been mapped onto the {@link Run} instance.
* @since TODO
*/
public static final long QUEUE_ID_UNKNOWN = -1;
......@@ -156,7 +157,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
/**
* The original Queue task ID from where this Run instance originated.
*/
private long queueId;
private long queueId = Run.QUEUE_ID_UNKNOWN;
/**
* Previous build. Can be null.
......@@ -428,7 +429,6 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
* <p/>
* Mapped from the {@link Queue.Item#getId()}.
* @param queueId The queue item ID.
* @since TODO
*/
@Restricted(NoExternalUse.class)
public void setQueueId(long queueId) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册