com.dtolabs.rundeck.core.execution
Class ExecutionContextImpl

java.lang.Object
  extended by com.dtolabs.rundeck.core.execution.ExecutionContextImpl
All Implemented Interfaces:
ExecutionContext, StepExecutionContext, NodeExecutionContext

public class ExecutionContextImpl
extends java.lang.Object
implements ExecutionContext, StepExecutionContext, NodeExecutionContext

ExecutionContextImpl is ...


Nested Class Summary
static class ExecutionContextImpl.Builder
           
 
Method Summary
static ExecutionContextImpl.Builder builder()
           
static ExecutionContextImpl.Builder builder(ExecutionContext context)
           
static ExecutionContextImpl.Builder builder(StepExecutionContext context)
           
 java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getDataContext()
          Return data context set
 ExecutionListener getExecutionListener()
           
 Framework getFramework()
          Get the framework
 java.lang.String getFrameworkProject()
          Get the framework project name
 int getLoglevel()
          Return the loglevel value, using the Ant equivalents: DEBUG=1,
 java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>> getNodeDataContext()
          Return the node specific context data keyed by node name
 java.lang.String getNodeRankAttribute()
          Return the node rank attribute to use for ranking
 INodeSet getNodes()
          Return the node selector
 NodesSelector getNodeSelector()
          Return the node selector
 java.io.File getNodesFile()
          Specific file to use for nodes source instead of project nodes
 java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getPrivateDataContext()
          Return the data context in the private scope
 java.util.List<java.lang.Integer> getStepContext()
          Return the stack of step numbers within the larger workflow context.
 int getStepNumber()
          Returns the step being executed.
 int getThreadCount()
          Return node dispatch threadcount
 java.lang.String getUser()
          username
 boolean isKeepgoing()
          return node dispatch keepgoing
 boolean isNodeRankOrderAscending()
          Return true if the node rank order is ascending
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

builder

public static ExecutionContextImpl.Builder builder()

builder

public static ExecutionContextImpl.Builder builder(ExecutionContext context)

builder

public static ExecutionContextImpl.Builder builder(StepExecutionContext context)

getNodeDataContext

public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>> getNodeDataContext()
Description copied from interface: NodeExecutionContext
Return the node specific context data keyed by node name

Specified by:
getNodeDataContext in interface NodeExecutionContext

getFrameworkProject

public java.lang.String getFrameworkProject()
Description copied from interface: ExecutionContext
Get the framework project name

Specified by:
getFrameworkProject in interface ExecutionContext
Returns:
project name

getUser

public java.lang.String getUser()
Description copied from interface: ExecutionContext
username

Specified by:
getUser in interface ExecutionContext

getNodeSelector

public NodesSelector getNodeSelector()
Description copied from interface: ExecutionContext
Return the node selector

Specified by:
getNodeSelector in interface ExecutionContext
Returns:
nodeset

getNodes

public INodeSet getNodes()
Description copied from interface: ExecutionContext
Return the node selector

Specified by:
getNodes in interface ExecutionContext
Returns:
nodeset

getLoglevel

public int getLoglevel()
Description copied from interface: ExecutionContext
Return the loglevel value, using the Ant equivalents: DEBUG=1,

Specified by:
getLoglevel in interface ExecutionContext
Returns:
log level from 0-4: ERR,WARN,INFO,VERBOSE,DEBUG

getDataContext

public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getDataContext()
Description copied from interface: ExecutionContext
Return data context set

Specified by:
getDataContext in interface ExecutionContext
Returns:
map of data contexts keyed by name

getExecutionListener

public ExecutionListener getExecutionListener()
Specified by:
getExecutionListener in interface ExecutionContext

getFramework

public Framework getFramework()
Description copied from interface: ExecutionContext
Get the framework

Specified by:
getFramework in interface ExecutionContext

getNodesFile

public java.io.File getNodesFile()
Description copied from interface: ExecutionContext
Specific file to use for nodes source instead of project nodes

Specified by:
getNodesFile in interface ExecutionContext

getThreadCount

public int getThreadCount()
Description copied from interface: ExecutionContext
Return node dispatch threadcount

Specified by:
getThreadCount in interface ExecutionContext

isKeepgoing

public boolean isKeepgoing()
Description copied from interface: ExecutionContext
return node dispatch keepgoing

Specified by:
isKeepgoing in interface ExecutionContext

getPrivateDataContext

public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getPrivateDataContext()
Description copied from interface: ExecutionContext
Return the data context in the private scope

Specified by:
getPrivateDataContext in interface ExecutionContext

getNodeRankAttribute

public java.lang.String getNodeRankAttribute()
Description copied from interface: ExecutionContext
Return the node rank attribute to use for ranking

Specified by:
getNodeRankAttribute in interface ExecutionContext

isNodeRankOrderAscending

public boolean isNodeRankOrderAscending()
Description copied from interface: ExecutionContext
Return true if the node rank order is ascending

Specified by:
isNodeRankOrderAscending in interface ExecutionContext

getStepNumber

public int getStepNumber()
Description copied from interface: StepExecutionContext
Returns the step being executed.

Specified by:
getStepNumber in interface StepExecutionContext

getStepContext

public java.util.List<java.lang.Integer> getStepContext()
Description copied from interface: StepExecutionContext
Return the stack of step numbers within the larger workflow context.

Specified by:
getStepContext in interface StepExecutionContext