com.dtolabs.rundeck.core.execution.service
Interface NodeExecutor
- All Known Implementing Classes:
- JschNodeExecutor, LocalNodeExecutor
public interface NodeExecutor
NodeExecutor executes a command on a node.
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