@ExportedBean(defaultVisibility=999) public class LockableResource extends hudson.model.AbstractDescribableImpl<LockableResource> implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
LockableResource.DescriptorImpl |
| Modifier and Type | Field and Description |
|---|---|
static String |
GROOVY_LABEL_MARKER |
static int |
NOT_QUEUED |
| Constructor and Description |
|---|
LockableResource(String name) |
LockableResource(String name,
String description,
String labels,
String reservedBy)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
hudson.model.Run<?,?> |
getBuild() |
String |
getBuildName() |
String |
getDescription() |
String |
getLabels() |
String |
getLockCause()
Resolve the lock cause for this resource.
|
String |
getName() |
List<org.jenkinsci.plugins.workflow.steps.StepContext> |
getQueuedContexts()
Deprecated.
|
long |
getQueueItemId() |
String |
getQueueItemProject() |
String |
getReservedBy() |
String |
getReservedByEmail() |
hudson.model.Queue.Task |
getTask() |
int |
hashCode() |
boolean |
isLocked() |
boolean |
isQueued() |
boolean |
isQueued(long taskId) |
boolean |
isQueuedByTask(long taskId) |
boolean |
isReserved() |
boolean |
isValidLabel(String candidate,
Map<String,Object> params) |
void |
reset() |
void |
setBuild(hudson.model.Run<?,?> lockedBy) |
void |
setDescription(String description) |
void |
setLabels(String labels) |
void |
setQueued(long queueItemId) |
void |
setQueued(long queueItemId,
String queueProjectName) |
void |
setReservedBy(String userName) |
String |
toString() |
void |
unqueue() |
void |
unReserve() |
public static final int NOT_QUEUED
public static final String GROOVY_LABEL_MARKER
@Deprecated public LockableResource(String name, String description, String labels, String reservedBy)
@DataBoundConstructor public LockableResource(String name)
@Deprecated public List<org.jenkinsci.plugins.workflow.steps.StepContext> getQueuedContexts()
@DataBoundSetter public void setDescription(String description)
@DataBoundSetter public void setLabels(String labels)
@Exported public String getName()
@Exported public String getDescription()
@Exported public String getLabels()
@Exported public String getReservedBy()
@Exported public boolean isReserved()
@Exported public String getReservedByEmail()
public boolean isQueued()
public boolean isQueued(long taskId)
public boolean isQueuedByTask(long taskId)
public void unqueue()
@Exported public boolean isLocked()
@CheckForNull public String getLockCause()
@WithBridgeMethods(value=hudson.model.AbstractBuild.class,
adapterMethod="getAbstractBuild")
public hudson.model.Run<?,?> getBuild()
@Exported public String getBuildName()
public void setBuild(hudson.model.Run<?,?> lockedBy)
public hudson.model.Queue.Task getTask()
public long getQueueItemId()
public String getQueueItemProject()
public void setQueued(long queueItemId)
public void setQueued(long queueItemId,
String queueProjectName)
@DataBoundSetter public void setReservedBy(String userName)
public void unReserve()
public void reset()
Copyright © 2016–2017. All rights reserved.