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)
|
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,
java.lang.String destinationPath)
Copy file to the node to a specific path
|
java.lang.String[] |
fileCopyFiles(ExecutionContext context,
java.io.File basedir,
java.util.List<java.io.File> files,
java.lang.String remotePath,
INodeEntry node)
Copy multiple files to the node to a specific path
|
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,
java.lang.String destinationPath)
Copy string as a file to the node to a specific path
|
getName
static final java.lang.String SERVICE_NAME
StepExecutionResult executeStep(StepExecutionContext context, StepExecutionItem item) throws StepException
context
- contextitem
- itemStepException
- on errorNodeStepResult executeNodeStep(StepExecutionContext context, NodeStepExecutionItem item, INodeEntry node) throws NodeStepException
context
- contextitem
- step itemnode
- nodeNodeStepException
- on errorDispatcherResult dispatchToNodes(StepExecutionContext context, NodeStepExecutionItem item) throws DispatcherException, ExecutionServiceException
context
- contextitem
- step itemDispatcherException
- on dispatch errorExecutionServiceException
- on service errorDispatcherResult dispatchToNodes(StepExecutionContext context, Dispatchable item) throws DispatcherException, ExecutionServiceException
context
- contextitem
- step itemDispatcherException
- on dispatch errorExecutionServiceException
- on service errorjava.lang.String fileCopyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node, java.lang.String destinationPath) throws FileCopierException
context
- contextinput
- input streamnode
- nodedestinationPath
- destination pathFileCopierException
- on errorjava.lang.String fileCopyFile(ExecutionContext context, java.io.File file, INodeEntry node, java.lang.String destinationPath) throws FileCopierException
context
- contextfile
- input filenode
- nodedestinationPath
- destination pathFileCopierException
- on errorjava.lang.String[] fileCopyFiles(ExecutionContext context, java.io.File basedir, java.util.List<java.io.File> files, java.lang.String remotePath, INodeEntry node) throws FileCopierException
context
- contextbasedir
- base directory for copied filesfiles
- array of input filesremotePath
- remote path destination for filesnode
- nodeFileCopierException
- on errorjava.lang.String fileCopyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node, java.lang.String destinationPath) throws FileCopierException
context
- contextscript
- script stringnode
- nodedestinationPath
- destination pathFileCopierException
- on errorNodeExecutorResult executeCommand(ExecutionContext context, java.lang.String[] command, INodeEntry node)
executeCommand(ExecutionContext, ExecArgList, com.dtolabs.rundeck.core.common.INodeEntry)
context
- contextcommand
- command stringsnode
- nodeNodeExecutorResult executeCommand(ExecutionContext context, ExecArgList command, INodeEntry node)
context
- contextcommand
- commandnode
- node