Class LockableResourcesRootAction.Queue.QueueStruct
java.lang.Object
org.jenkins.plugins.lockableresources.actions.LockableResourcesRootAction.Queue.QueueStruct
- Enclosing class:
- LockableResourcesRootAction.Queue
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public static class LockableResourcesRootAction.Queue.QueueStruct
extends Object
-
Constructor Summary
ConstructorDescriptionQueueStruct
(LockableResourcesStruct resourceStruct, QueuedContextStruct context) -
Method Summary
-
Constructor Details
-
QueueStruct
public QueueStruct(LockableResourcesStruct resourceStruct, QueuedContextStruct context) throws Descriptor.FormException - Throws:
Descriptor.FormException
-
-
Method Details
-
getRequiredResources
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public List<LockableResource> getRequiredResources() -
getRequiredLabel
@NonNull @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getRequiredLabel() -
getRequiredNumber
@NonNull @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getRequiredNumber() -
getGroovyScript
@NonNull @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getGroovyScript() -
getBuild
-
getQueuedAt
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public long getQueuedAt() -
takeTooLong
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean takeTooLong()Check if the queue takes too long. At the moment "too long" means over 1 hour. -
getQueuedTimestamp
Returns timestamp when the resource has been added into queue. -
getPriority
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public int getPriority()Returns queue priority. -
getId
Returns queue ID. -
resourcesMatch
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean resourcesMatch() -
labelsMatch
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean labelsMatch() -
scriptMatch
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean scriptMatch()
-