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
Constructors Constructor Description QueueStruct(LockableResourcesStruct resourceStruct, QueuedContextStruct context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Run<?,?>
getBuild()
String
getGroovyScript()
String
getId()
Returns queue ID.int
getPriority()
Returns queue priority.long
getQueuedAt()
Date
getQueuedTimestamp()
Returns timestamp when the resource has been added into queue.String
getRequiredLabel()
String
getRequiredNumber()
List<LockableResource>
getRequiredResources()
boolean
labelsMatch()
boolean
resourcesMatch()
boolean
scriptMatch()
boolean
takeTooLong()
Check if the queue takes too long.
-
-
-
Constructor Detail
-
QueueStruct
public QueueStruct(LockableResourcesStruct resourceStruct, QueuedContextStruct context)
-
-
Method Detail
-
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
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public Run<?,?> 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
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public Date 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
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String 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()
-
-