org.jenkinsci.plugins.buildflow.concurrent.extension
Class ConcurrentBuildFlowExtensionPlugin
java.lang.Object
hudson.Plugin
org.jenkinsci.plugins.buildflow.concurrent.extension.ConcurrentBuildFlowExtensionPlugin
- All Implemented Interfaces:
- hudson.model.Saveable
public class ConcurrentBuildFlowExtensionPlugin
- extends hudson.Plugin
The ConcurrentBuildFlowExtensionPlugin provides some DSL extensions to the BuildFlowPlugin.
| Nested classes/interfaces inherited from class hudson.Plugin |
hudson.Plugin.DummyImpl |
| Fields inherited from interface hudson.model.Saveable |
NOOP |
|
Method Summary |
Object |
getSharedState(com.cloudbees.plugins.flow.FlowDelegate flowDelegate,
String key,
Object defaultValue)
Gets (or saves if it doesn't exist) the shared state for the delegates BuildFlow project with the given key. |
| Methods inherited from class hudson.Plugin |
configure, configure, doDynamic, getConfigXml, getWrapper, load, postInitialize, save, setServletContext, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
@Extension
public static final ConcurrentBuildFlowExtensionPlugin INSTANCE
ConcurrentBuildFlowExtensionPlugin
public ConcurrentBuildFlowExtensionPlugin()
getSharedState
public Object getSharedState(com.cloudbees.plugins.flow.FlowDelegate flowDelegate,
String key,
Object defaultValue)
- Gets (or saves if it doesn't exist) the shared state for the delegates BuildFlow project with the given key.
- Parameters:
flowDelegate - the flowdelegate whose BuildFlow contains the shared state.key - the key to use for the lookup.defaultValue - the default value to set (and return) if the value has not yet been set.
Care should be taken with the type of objects set in this map,
for example although a @{link java.util.ReentrantLock ReentrantLock} may be used after a
restart of Jenkins no lock would be held.
- Returns:
- the current value of the shared state for the given key.
Copyright © 2013-2014. All Rights Reserved.