Interface NodeExecutor
-
- All Known Implementing Classes:
LocalNodeExecutor,NewLocalNodeExecutor,ScriptPluginNodeExecutor
public interface NodeExecutorNodeExecutor executes a command on a node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description NodeExecutorResultexecuteCommand(ExecutionContext context, java.lang.String[] command, INodeEntry node)Execute a command on a node and return the result.default NodeExecutorResultexecuteCommand(ExecutionContext context, java.lang.String[] command, java.io.InputStream inputStream, INodeEntry node)Execute a command on a node and return the result, with an inputstream to provide input to the command.default booleansupportVariableInjection()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
-
executeCommand
default NodeExecutorResult executeCommand(ExecutionContext context, java.lang.String[] command, java.io.InputStream inputStream, INodeEntry node)
Execute a command on a node and return the result, with an inputstream to provide input to the command.- Parameters:
context- the execution contextcommand- the array of strings for the command line, with any necessary data context references replaced.inputStream- an inputstream to provide input to the commandnode- the node to execute on- Returns:
- a result
-
supportVariableInjection
default boolean supportVariableInjection()
To indicate if the command execution suppports rd_variable injection- Returns:
- boolean
-
-