Class FlowExecutionList.DefaultStorage
java.lang.Object
org.jenkinsci.plugins.workflow.flow.FlowExecutionList.DefaultStorage
- All Implemented Interfaces:
ExtensionPoint
,FlowExecutionList.Storage
- Enclosing class:
- FlowExecutionList
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@Extension(ordinal=-1000.0)
public static final class FlowExecutionList.DefaultStorage
extends Object
implements FlowExecutionList.Storage
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if an entry is present.iterator()
Enumerate running builds.void
load()
Load data during startup.void
Add an entry, if not already present.void
resume()
Resume builds.void
shutDown()
Flush any unsaved data before Jenkins exits.void
Remove an entry, if present.
-
Constructor Details
-
DefaultStorage
public DefaultStorage()
-
-
Method Details
-
iterator
Description copied from interface:FlowExecutionList.Storage
Enumerate running builds. Order is unspecified. The set may be mutated while the iterator is active.- Specified by:
iterator
in interfaceFlowExecutionList.Storage
-
register
Description copied from interface:FlowExecutionList.Storage
Add an entry, if not already present.- Specified by:
register
in interfaceFlowExecutionList.Storage
-
unregister
Description copied from interface:FlowExecutionList.Storage
Remove an entry, if present.- Specified by:
unregister
in interfaceFlowExecutionList.Storage
-
contains
Description copied from interface:FlowExecutionList.Storage
Check if an entry is present.- Specified by:
contains
in interfaceFlowExecutionList.Storage
-
load
public void load()Description copied from interface:FlowExecutionList.Storage
Load data during startup.- Specified by:
load
in interfaceFlowExecutionList.Storage
-
resume
public void resume()Description copied from interface:FlowExecutionList.Storage
Resume builds.FlowExecutionOwner.get()
should be called on each entry. IfFlowExecution.isComplete()
already, or an exception is thrown, the entry should be removed as ifFlowExecutionList.Storage.unregister(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner)
had been called.- Specified by:
resume
in interfaceFlowExecutionList.Storage
-
shutDown
Description copied from interface:FlowExecutionList.Storage
Flush any unsaved data before Jenkins exits.- Specified by:
shutDown
in interfaceFlowExecutionList.Storage
- Throws:
InterruptedException
-