Class StepExecutionIterator
java.lang.Object
org.jenkinsci.plugins.workflow.steps.StepExecutionIterator
- All Implemented Interfaces:
ExtensionPoint
Enumerates active running
StepExecution
s in the system.- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<?>
Finds all the ongoingStepExecution
and apply the action.static ExtensionList<StepExecutionIterator>
all()
com.google.common.util.concurrent.ListenableFuture<?>
apply
(com.google.common.base.Function<StepExecution, Void> f) Deprecated.
-
Constructor Details
-
StepExecutionIterator
public StepExecutionIterator()
-
-
Method Details
-
accept
Finds all the ongoingStepExecution
and apply the action. The control flow is inverted because a major use case (workflow) loadsStepExecution
s asynchronously (for example when workflow run is blocked trying to restore pickles.)- Returns:
ListenableFuture
to signal the completion of the application.
-
apply
@Deprecated public com.google.common.util.concurrent.ListenableFuture<?> apply(com.google.common.base.Function<StepExecution, Void> f) -
all
-
accept(java.util.function.Consumer<org.jenkinsci.plugins.workflow.steps.StepExecution>)