public class ScriptFileNodeStepExecutor extends java.lang.Object implements NodeStepExecutor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SCRIPT_FILE_REMOVE_TMP |
static java.lang.String |
SERVICE_IMPLEMENTATION_NAME |
Constructor and Description |
---|
ScriptFileNodeStepExecutor(Framework framework) |
Modifier and Type | Method and Description |
---|---|
NodeStepResult |
executeNodeStep(StepExecutionContext context,
NodeStepExecutionItem item,
INodeEntry node)
Execute the step
|
static NodeStepResult |
executeRemoteScript(ExecutionContext context,
Framework framework,
INodeEntry node,
java.lang.String[] args,
java.lang.String filepath)
Execute a scriptfile already copied to a remote node with the given args
|
static NodeStepResult |
executeRemoteScript(ExecutionContext context,
Framework framework,
INodeEntry node,
java.lang.String[] args,
java.lang.String filepath,
java.lang.String scriptInterpreter,
boolean interpreterargsquoted)
Execute a scriptfile already copied to a remote node with the given args
|
static NodeStepResult |
executeRemoteScript(ExecutionContext context,
Framework framework,
INodeEntry node,
java.lang.String[] args,
java.lang.String filepath,
java.lang.String scriptInterpreter,
boolean interpreterargsquoted,
boolean removeFile)
Execute a scriptfile already copied to a remote node with the given args
|
static ExecArgList |
removeArgsForOsFamily(java.lang.String filepath,
java.lang.String osFamily)
Return ExecArgList for removing a file for the given OS family
|
public static final java.lang.String SERVICE_IMPLEMENTATION_NAME
public static final java.lang.String SCRIPT_FILE_REMOVE_TMP
public ScriptFileNodeStepExecutor(Framework framework)
public NodeStepResult executeNodeStep(StepExecutionContext context, NodeStepExecutionItem item, INodeEntry node) throws NodeStepException
NodeStepExecutor
executeNodeStep
in interface NodeStepExecutor
NodeStepException
public static NodeStepResult executeRemoteScript(ExecutionContext context, Framework framework, INodeEntry node, java.lang.String[] args, java.lang.String filepath) throws NodeStepException
context
- contextframework
- frameworknode
- the nodeargs
- arguments to scriptfilepath
- the remote path for the scriptNodeStepException
public static NodeStepResult executeRemoteScript(ExecutionContext context, Framework framework, INodeEntry node, java.lang.String[] args, java.lang.String filepath, java.lang.String scriptInterpreter, boolean interpreterargsquoted) throws NodeStepException
context
- contextframework
- frameworknode
- the nodeargs
- arguments to scriptfilepath
- the remote path for the scriptscriptInterpreter
- interpreter used to invoke the scriptinterpreterargsquoted
- if true, pass the file and script args as a single argument to the interpreterNodeStepException
public static NodeStepResult executeRemoteScript(ExecutionContext context, Framework framework, INodeEntry node, java.lang.String[] args, java.lang.String filepath, java.lang.String scriptInterpreter, boolean interpreterargsquoted, boolean removeFile) throws NodeStepException
context
- contextframework
- frameworknode
- the nodeargs
- arguments to scriptfilepath
- the remote path for the scriptscriptInterpreter
- interpreter used to invoke the scriptinterpreterargsquoted
- if true, pass the file and script args as a single argument to the interpreterNodeStepException
public static ExecArgList removeArgsForOsFamily(java.lang.String filepath, java.lang.String osFamily)
filepath
- osFamily
-