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
|
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, waitgetComponentListpublic 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 ExecutionContextpublic <T> int useAllComponentsOfType(java.lang.Class<T> type,
java.util.function.Consumer<T> consumer)
ExecutionContextuseAllComponentsOfType in interface ExecutionContextpublic <T> boolean useSingleComponentOfType(java.lang.Class<T> type,
java.util.function.Consumer<java.util.Optional<T>> consumer)
ExecutionContextuseSingleComponentOfType in interface ExecutionContextpublic <T> java.util.Optional<T> useSingleComponentOfType(java.lang.Class<T> type)
ExecutionContextuseSingleComponentOfType in interface ExecutionContextpublic <T> java.util.Optional<T> componentForType(java.lang.Class<T> type)
componentForType in interface ExecutionContextpublic MultiDataContext<ContextView,DataContext> getSharedDataContext()
getSharedDataContext in interface ExecutionContextpublic com.dtolabs.rundeck.core.authorization.AuthContext getAuthContext()
getAuthContext in interface ExecutionContextpublic com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext getUserAndRolesAuthContext()
getUserAndRolesAuthContext in interface ExecutionContextpublic void setAuthContext(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext authContext)
public StorageTree getStorageTree()
getStorageTree in interface ExecutionContextpublic FlowControl getFlowControl()
getFlowControl in interface StepExecutionContextpublic java.lang.String getCharsetEncoding()
getCharsetEncoding in interface ExecutionContextpublic void setCharsetEncoding(java.lang.String charsetEncoding)
public SharedOutputContext getOutputContext()
getOutputContext in interface ExecutionContextpublic INodeEntry getSingleNodeContext()
getSingleNodeContext in interface NodeExecutionContextpublic LoggingManager getLoggingManager()
getLoggingManager in interface ExecutionContextpublic java.lang.String getFrameworkProject()
ExecutionContextgetFrameworkProject in interface ExecutionContextpublic java.lang.String getUser()
getUser in interface ExecutionContextpublic NodesSelector getNodeSelector()
ExecutionContextgetNodeSelector in interface ExecutionContextpublic INodeSet getNodes()
ExecutionContextgetNodes in interface ExecutionContextpublic INodeSet filteredNodes()
filteredNodes in interface StepExecutionContextpublic int getLoglevel()
ExecutionContextgetLoglevel in interface ExecutionContextpublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getDataContext()
ExecutionContextgetDataContext in interface ExecutionContextpublic DataContext getDataContextObject()
getDataContextObject in interface ExecutionContextpublic DataContext getPrivateDataContextObject()
getPrivateDataContextObject in interface ExecutionContextpublic ExecutionListener getExecutionListener()
getExecutionListener in interface ExecutionContextpublic WorkflowExecutionListener getWorkflowExecutionListener()
getWorkflowExecutionListener in interface ExecutionContextpublic ExecutionLogger getExecutionLogger()
getExecutionLogger in interface ExecutionContextpublic Framework getFramework()
getFramework in interface ExecutionContextpublic int getThreadCount()
getThreadCount in interface ExecutionContextpublic boolean isKeepgoing()
isKeepgoing in interface ExecutionContextpublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getPrivateDataContext()
getPrivateDataContext in interface ExecutionContextpublic java.lang.String getNodeRankAttribute()
getNodeRankAttribute in interface ExecutionContextpublic boolean isNodeRankOrderAscending()
isNodeRankOrderAscending in interface ExecutionContextpublic int getStepNumber()
getStepNumber in interface StepExecutionContextpublic java.util.List<java.lang.Integer> getStepContext()
getStepContext in interface StepExecutionContextpublic JobService getJobService()
getJobService in interface ExecutionContextpublic ProjectNodeService getNodeService()
getNodeService in interface ExecutionContextpublic OrchestratorConfig getOrchestrator()
getOrchestrator in interface ExecutionContextpublic PluginControlService getPluginControlService()
getPluginControlService in interface ExecutionContext