public class ExecutionContextImpl extends java.lang.Object implements ExecutionContext, StepExecutionContext, NodeExecutionContext
Modifier and Type | Class and Description |
---|---|
static class |
ExecutionContextImpl.Builder |
Modifier and Type | Method and Description |
---|---|
static ExecutionContextImpl.Builder |
builder() |
static ExecutionContextImpl.Builder |
builder(ExecutionContext context) |
static ExecutionContextImpl.Builder |
builder(StepExecutionContext context) |
<T> java.util.Optional<T> |
componentForType(java.lang.Class<T> type) |
<T> java.util.Collection<T> |
componentsForType(java.lang.Class<T> type) |
INodeSet |
filteredNodes() |
com.dtolabs.rundeck.core.authorization.AuthContext |
getAuthContext() |
java.lang.String |
getCharsetEncoding() |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
getDataContext()
Return data context set
|
DataContext |
getDataContextObject() |
ExecutionListener |
getExecutionListener() |
ExecutionLogger |
getExecutionLogger() |
FlowControl |
getFlowControl() |
Framework |
getFramework() |
java.lang.String |
getFrameworkProject()
Get the framework project name
|
IFramework |
getIFramework() |
JobService |
getJobService() |
LoggingManager |
getLoggingManager() |
int |
getLoglevel()
Return the loglevel value, using the Ant equivalents: DEBUG=1,
|
java.lang.String |
getNodeRankAttribute() |
INodeSet |
getNodes()
Return the node selector
|
NodesSelector |
getNodeSelector()
Return the node selector
|
ProjectNodeService |
getNodeService() |
OrchestratorConfig |
getOrchestrator() |
SharedOutputContext |
getOutputContext() |
PluginControlService |
getPluginControlService() |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
getPrivateDataContext() |
DataContext |
getPrivateDataContextObject() |
MultiDataContext<ContextView,DataContext> |
getSharedDataContext() |
INodeEntry |
getSingleNodeContext() |
java.util.List<java.lang.Integer> |
getStepContext() |
int |
getStepNumber() |
StorageTree |
getStorageTree() |
int |
getThreadCount() |
java.lang.String |
getUser() |
com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext |
getUserAndRolesAuthContext() |
WorkflowExecutionListener |
getWorkflowExecutionListener() |
boolean |
isKeepgoing() |
boolean |
isNodeRankOrderAscending() |
void |
setAuthContext(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext authContext) |
void |
setCharsetEncoding(java.lang.String charsetEncoding) |
<T> int |
useAllComponentsOfType(java.lang.Class<T> type,
java.util.function.Consumer<T> consumer)
apply the consumer to components of the given type, and remove "useOnce" components after use
|
<T> java.util.Optional<T> |
useSingleComponentOfType(java.lang.Class<T> type)
apply the consumer to a single component of the given type, and remove the component if it is "useOnce"
|
<T> boolean |
useSingleComponentOfType(java.lang.Class<T> type,
java.util.function.Consumer<java.util.Optional<T>> consumer)
apply the consumer to a single component of the given type, and remove the component if it is "useOnce"
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentList
public static ExecutionContextImpl.Builder builder()
public static ExecutionContextImpl.Builder builder(ExecutionContext context)
public static ExecutionContextImpl.Builder builder(StepExecutionContext context)
public <T> java.util.Collection<T> componentsForType(java.lang.Class<T> type)
componentsForType
in interface ExecutionContext
public <T> int useAllComponentsOfType(java.lang.Class<T> type, java.util.function.Consumer<T> consumer)
ExecutionContext
useAllComponentsOfType
in interface ExecutionContext
public <T> boolean useSingleComponentOfType(java.lang.Class<T> type, java.util.function.Consumer<java.util.Optional<T>> consumer)
ExecutionContext
useSingleComponentOfType
in interface ExecutionContext
public <T> java.util.Optional<T> useSingleComponentOfType(java.lang.Class<T> type)
ExecutionContext
useSingleComponentOfType
in interface ExecutionContext
public <T> java.util.Optional<T> componentForType(java.lang.Class<T> type)
componentForType
in interface ExecutionContext
public MultiDataContext<ContextView,DataContext> getSharedDataContext()
getSharedDataContext
in interface ExecutionContext
public com.dtolabs.rundeck.core.authorization.AuthContext getAuthContext()
getAuthContext
in interface ExecutionContext
public com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext getUserAndRolesAuthContext()
getUserAndRolesAuthContext
in interface ExecutionContext
public void setAuthContext(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext authContext)
public StorageTree getStorageTree()
getStorageTree
in interface ExecutionContext
public FlowControl getFlowControl()
getFlowControl
in interface StepExecutionContext
public java.lang.String getCharsetEncoding()
getCharsetEncoding
in interface ExecutionContext
public void setCharsetEncoding(java.lang.String charsetEncoding)
public SharedOutputContext getOutputContext()
getOutputContext
in interface ExecutionContext
public INodeEntry getSingleNodeContext()
getSingleNodeContext
in interface NodeExecutionContext
public LoggingManager getLoggingManager()
getLoggingManager
in interface ExecutionContext
public java.lang.String getFrameworkProject()
ExecutionContext
getFrameworkProject
in interface ExecutionContext
public java.lang.String getUser()
getUser
in interface ExecutionContext
public NodesSelector getNodeSelector()
ExecutionContext
getNodeSelector
in interface ExecutionContext
public INodeSet getNodes()
ExecutionContext
getNodes
in interface ExecutionContext
public INodeSet filteredNodes()
filteredNodes
in interface StepExecutionContext
public int getLoglevel()
ExecutionContext
getLoglevel
in interface ExecutionContext
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getDataContext()
ExecutionContext
getDataContext
in interface ExecutionContext
public DataContext getDataContextObject()
getDataContextObject
in interface ExecutionContext
public DataContext getPrivateDataContextObject()
getPrivateDataContextObject
in interface ExecutionContext
public ExecutionListener getExecutionListener()
getExecutionListener
in interface ExecutionContext
public WorkflowExecutionListener getWorkflowExecutionListener()
getWorkflowExecutionListener
in interface ExecutionContext
public ExecutionLogger getExecutionLogger()
getExecutionLogger
in interface ExecutionContext
public Framework getFramework()
getFramework
in interface ExecutionContext
public IFramework getIFramework()
getIFramework
in interface ExecutionContext
public int getThreadCount()
getThreadCount
in interface ExecutionContext
public boolean isKeepgoing()
isKeepgoing
in interface ExecutionContext
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getPrivateDataContext()
getPrivateDataContext
in interface ExecutionContext
public java.lang.String getNodeRankAttribute()
getNodeRankAttribute
in interface ExecutionContext
public boolean isNodeRankOrderAscending()
isNodeRankOrderAscending
in interface ExecutionContext
public int getStepNumber()
getStepNumber
in interface StepExecutionContext
public java.util.List<java.lang.Integer> getStepContext()
getStepContext
in interface StepExecutionContext
public JobService getJobService()
getJobService
in interface ExecutionContext
public ProjectNodeService getNodeService()
getNodeService
in interface ExecutionContext
public OrchestratorConfig getOrchestrator()
getOrchestrator
in interface ExecutionContext
public PluginControlService getPluginControlService()
getPluginControlService
in interface ExecutionContext