Interface FlowExecutionList.Storage
- All Superinterfaces:
ExtensionPoint
- All Known Implementing Classes:
FlowExecutionList.DefaultStorage
- Enclosing class:
- FlowExecutionList
@Restricted(org.kohsuke.accmod.restrictions.Beta.class)
public static interface FlowExecutionList.Storage
extends ExtensionPoint
Alternate mechanism for implementing the storage of the set of builds.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(FlowExecutionOwner owner) Check if an entry is present.iterator()
Enumerate running builds.void
load()
Load data during startup.void
register
(FlowExecutionOwner owner) Add an entry, if not already present.void
resume()
Resume builds.void
shutDown()
Flush any unsaved data before Jenkins exits.void
unregister
(FlowExecutionOwner owner) Remove an entry, if present.
-
Method Details
-
iterator
Iterator<FlowExecution> iterator()Enumerate running builds. Order is unspecified. The set may be mutated while the iterator is active. -
register
Add an entry, if not already present. -
unregister
Remove an entry, if present. -
contains
Check if an entry is present. -
load
void load()Load data during startup. -
resume
void resume()Resume builds.FlowExecutionOwner.get()
should be called on each entry. IfFlowExecution.isComplete()
already, or an exception is thrown, the entry should be removed as ifunregister(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner)
had been called. -
shutDown
Flush any unsaved data before Jenkins exits.- Throws:
InterruptedException
-