public interface ExecutionService extends FrameworkSupportService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
DispatcherResult |
dispatchToNodes(StepExecutionContext context,
Dispatchable item)
Dispatch the command (execution item) to all the nodes within the context.
|
DispatcherResult |
dispatchToNodes(StepExecutionContext context,
NodeStepExecutionItem item)
Dispatch the command (execution item) to all the nodes within the context.
|
NodeExecutorResult |
executeCommand(ExecutionContext context,
ExecArgList command,
INodeEntry node)
Execute a command within the context on the node.
|
NodeExecutorResult |
executeCommand(ExecutionContext context,
java.lang.String[] command,
INodeEntry node)
|
ExecutionResult |
executeItem(StepExecutionContext context,
StepExecutionItem item)
|
NodeStepResult |
executeNodeStep(StepExecutionContext context,
NodeStepExecutionItem item,
INodeEntry node)
Interpret the execution item within the context for the given node.
|
StepExecutionResult |
executeStep(StepExecutionContext context,
StepExecutionItem item)
Execute a workflow step item for the given context and return the result.
|
java.lang.String |
fileCopyFile(ExecutionContext context,
java.io.File file,
INodeEntry node)
Copy file to the node as a script file to the temp file location.
|
java.lang.String |
fileCopyFile(ExecutionContext context,
java.io.File file,
INodeEntry node,
java.lang.String destinationPath)
Copy file to the node to a specific path
|
java.lang.String |
fileCopyFileStream(ExecutionContext context,
java.io.InputStream input,
INodeEntry node)
Copy inputstream as a file to the node.
|
java.lang.String |
fileCopyFileStream(ExecutionContext context,
java.io.InputStream input,
INodeEntry node,
java.lang.String destinationPath)
Copy inputstream as a file to the node to a specific path
|
java.lang.String |
fileCopyScriptContent(ExecutionContext context,
java.lang.String script,
INodeEntry node)
Copy string as a file to the node,
|
java.lang.String |
fileCopyScriptContent(ExecutionContext context,
java.lang.String script,
INodeEntry node,
java.lang.String destinationPath)
Copy string as a file to the node to a specific path
|
getName
static final java.lang.String SERVICE_NAME
ExecutionResult executeItem(StepExecutionContext context, StepExecutionItem item) throws ExecutionException, ExecutionServiceException
executeStep(com.dtolabs.rundeck.core.execution.workflow.StepExecutionContext, StepExecutionItem)
item
- itemExecutionException
ExecutionServiceException
StepExecutionResult executeStep(StepExecutionContext context, StepExecutionItem item) throws StepException
item
- itemStepException
NodeStepResult executeNodeStep(StepExecutionContext context, NodeStepExecutionItem item, INodeEntry node) throws NodeStepException
NodeStepException
DispatcherResult dispatchToNodes(StepExecutionContext context, NodeStepExecutionItem item) throws DispatcherException, ExecutionServiceException
DispatcherResult dispatchToNodes(StepExecutionContext context, Dispatchable item) throws DispatcherException, ExecutionServiceException
java.lang.String fileCopyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node) throws FileCopierException
FileCopierException
java.lang.String fileCopyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node, java.lang.String destinationPath) throws FileCopierException
FileCopierException
java.lang.String fileCopyFile(ExecutionContext context, java.io.File file, INodeEntry node) throws FileCopierException
FileCopierException
java.lang.String fileCopyFile(ExecutionContext context, java.io.File file, INodeEntry node, java.lang.String destinationPath) throws FileCopierException
context
- file
- node
- destinationPath
- FileCopierException
java.lang.String fileCopyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node) throws FileCopierException
FileCopierException
java.lang.String fileCopyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node, java.lang.String destinationPath) throws FileCopierException
FileCopierException
NodeExecutorResult executeCommand(ExecutionContext context, java.lang.String[] command, INodeEntry node)
executeCommand(ExecutionContext, ExecArgList, com.dtolabs.rundeck.core.common.INodeEntry)
NodeExecutorResult executeCommand(ExecutionContext context, ExecArgList command, INodeEntry node)