Interface NodeExecutor
-
- All Known Implementing Classes:
LocalNodeExecutor
,NewLocalNodeExecutor
,ScriptPluginNodeExecutor
public interface NodeExecutor
NodeExecutor executes a command on a node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description NodeExecutorResult
executeCommand(ExecutionContext context, java.lang.String[] command, INodeEntry node)
Execute a command on a node and return the result.default boolean
supportVariableInjection()
To indicate if the command execution suppports rd_variable injection
-
-
-
Method Detail
-
executeCommand
NodeExecutorResult executeCommand(ExecutionContext context, java.lang.String[] command, INodeEntry node)
Execute a command on a node and return the result.- Parameters:
context
- the execution contextcommand
- the array of strings for the command line, with any necessary data context references replaced.node
- the node to execute on- Returns:
- a result
-
supportVariableInjection
default boolean supportVariableInjection()
To indicate if the command execution suppports rd_variable injection- Returns:
- boolean
-
-