public class ExecutionServiceImpl extends java.lang.Object implements ExecutionService
SERVICE_NAME
Constructor and Description |
---|
ExecutionServiceImpl() |
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)
Execute a command within the context on the 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
|
java.lang.String |
getName() |
protected WorkflowExecutionListener |
getWorkflowListener(ExecutionContext executionContext) |
protected WorkflowExecutionListener getWorkflowListener(ExecutionContext executionContext)
public StepExecutionResult executeStep(StepExecutionContext context, StepExecutionItem item) throws StepException
ExecutionService
executeStep
in interface ExecutionService
context
- contextitem
- itemStepException
- on errorpublic NodeStepResult executeNodeStep(StepExecutionContext context, NodeStepExecutionItem item, INodeEntry node) throws NodeStepException
ExecutionService
executeNodeStep
in interface ExecutionService
context
- contextitem
- step itemnode
- nodeNodeStepException
- on errorpublic DispatcherResult dispatchToNodes(StepExecutionContext context, NodeStepExecutionItem item) throws DispatcherException, ExecutionServiceException
ExecutionService
dispatchToNodes
in interface ExecutionService
context
- contextitem
- step itemDispatcherException
- on dispatch errorExecutionServiceException
- on service errorpublic DispatcherResult dispatchToNodes(StepExecutionContext context, Dispatchable item) throws DispatcherException, ExecutionServiceException
ExecutionService
dispatchToNodes
in interface ExecutionService
context
- contextitem
- step itemDispatcherException
- on dispatch errorExecutionServiceException
- on service errorpublic java.lang.String fileCopyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node, java.lang.String destinationPath) throws FileCopierException
ExecutionService
fileCopyFileStream
in interface ExecutionService
fileCopyFileStream
in interface NodeExecutionService
context
- contextinput
- input streamnode
- nodedestinationPath
- destination pathFileCopierException
- on errorpublic java.lang.String fileCopyFile(ExecutionContext context, java.io.File file, INodeEntry node, java.lang.String destinationPath) throws FileCopierException
ExecutionService
fileCopyFile
in interface ExecutionService
fileCopyFile
in interface NodeExecutionService
context
- contextfile
- input filenode
- nodedestinationPath
- destination pathFileCopierException
- on errorpublic java.lang.String[] fileCopyFiles(ExecutionContext context, java.io.File basedir, java.util.List<java.io.File> files, java.lang.String remotePath, INodeEntry node) throws FileCopierException
ExecutionService
fileCopyFiles
in interface ExecutionService
context
- contextbasedir
- base directory for copied filesfiles
- array of input filesremotePath
- remote path destination for filesnode
- nodeFileCopierException
- on errorpublic java.lang.String fileCopyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node, java.lang.String destinationPath) throws FileCopierException
ExecutionService
fileCopyScriptContent
in interface ExecutionService
context
- contextscript
- script stringnode
- nodedestinationPath
- destination pathFileCopierException
- on errorpublic NodeExecutorResult executeCommand(ExecutionContext context, java.lang.String[] command, INodeEntry node)
ExecutionService
executeCommand
in interface ExecutionService
context
- contextcommand
- command stringsnode
- nodepublic NodeExecutorResult executeCommand(ExecutionContext context, ExecArgList command, INodeEntry node)
ExecutionService
executeCommand
in interface ExecutionService
executeCommand
in interface NodeExecutionService
context
- contextcommand
- commandnode
- nodepublic java.lang.String getName()
getName
in interface FrameworkSupportService