Class ExecutorStepExecution.PlaceholderTask.PlaceholderExecutable
- java.lang.Object
-
- org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution.PlaceholderTask.PlaceholderExecutable
-
- All Implemented Interfaces:
Queue.Executable
,AccessControlled
,Runnable
,org.jenkinsci.plugins.durabletask.executors.ContinuableExecutable
- Enclosing class:
- ExecutorStepExecution.PlaceholderTask
@ExportedBean @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public final class ExecutorStepExecution.PlaceholderTask.PlaceholderExecutable extends Object implements org.jenkinsci.plugins.durabletask.executors.ContinuableExecutable, AccessControlled
OccupiesExecutor
while workflow uses this build agent.
-
-
Constructor Summary
Constructors Constructor Description PlaceholderExecutable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkPermission(Permission permission)
String
getAbsoluteUrl()
ACL
getACL()
String
getDisplayName()
long
getEstimatedDuration()
Executor
getExecutor()
String
getFullDisplayName()
Integer
getNumber()
ExecutorStepExecution.PlaceholderTask
getParent()
Queue.Executable
getParentExecutable()
Long
getTimestamp()
String
getUrl()
boolean
hasPermission(Permission permission)
void
run()
String
toString()
boolean
willContinue()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, hasAnyPermission, hasPermission, hasPermission2
-
-
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfaceQueue.Executable
- Specified by:
run
in interfaceRunnable
-
getParent
@NonNull public ExecutorStepExecution.PlaceholderTask getParent()
- Specified by:
getParent
in interfaceQueue.Executable
-
getParentExecutable
public Queue.Executable getParentExecutable()
- Specified by:
getParentExecutable
in interfaceQueue.Executable
-
getNumber
@Exported public Integer getNumber()
-
getFullDisplayName
@Exported public String getFullDisplayName()
-
getDisplayName
@Exported public String getDisplayName()
-
getEstimatedDuration
@Exported public long getEstimatedDuration()
- Specified by:
getEstimatedDuration
in interfaceQueue.Executable
-
getTimestamp
@Exported public Long getTimestamp()
-
willContinue
public boolean willContinue()
- Specified by:
willContinue
in interfaceorg.jenkinsci.plugins.durabletask.executors.ContinuableExecutable
-
getExecutor
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @CheckForNull public Executor getExecutor()
-
getUrl
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getUrl()
-
getAbsoluteUrl
@Exported(name="url") public String getAbsoluteUrl()
-
toString
public String toString()
- Specified by:
toString
in interfaceQueue.Executable
- Overrides:
toString
in classObject
-
getACL
@NonNull public ACL getACL()
- Specified by:
getACL
in interfaceAccessControlled
-
checkPermission
public void checkPermission(@NonNull Permission permission) throws org.springframework.security.access.AccessDeniedException
- Specified by:
checkPermission
in interfaceAccessControlled
- Throws:
org.springframework.security.access.AccessDeniedException
-
hasPermission
public boolean hasPermission(@NonNull Permission permission)
- Specified by:
hasPermission
in interfaceAccessControlled
-
-