Class NewLocalNodeExecutor
- java.lang.Object
-
- com.dtolabs.rundeck.core.execution.impl.local.NewLocalNodeExecutor
-
- All Implemented Interfaces:
NodeExecutor,DescriptionBuilder.Collaborator
public class NewLocalNodeExecutor extends java.lang.Object implements NodeExecutor, DescriptionBuilder.Collaborator
- Since:
- 6/12/17
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROP_MERGE_ENVstatic java.lang.StringSERVICE_PROVIDER_TYPE
-
Constructor Summary
Constructors Constructor Description NewLocalNodeExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildWith(DescriptionBuilder builder)visit the builder and do some workNodeExecutorResultexecuteCommand(ExecutionContext context, java.lang.String[] command, INodeEntry node)Execute a command on a node and return the result.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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.dtolabs.rundeck.core.execution.service.NodeExecutor
supportVariableInjection
-
-
-
-
Field Detail
-
SERVICE_PROVIDER_TYPE
public static final java.lang.String SERVICE_PROVIDER_TYPE
- See Also:
- Constant Field Values
-
PROP_MERGE_ENV
public static final java.lang.String PROP_MERGE_ENV
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildWith
public void buildWith(DescriptionBuilder builder)
Description copied from interface:DescriptionBuilder.Collaboratorvisit the builder and do some work- Specified by:
buildWithin interfaceDescriptionBuilder.Collaborator- Parameters:
builder- the builder
-
executeCommand
public NodeExecutorResult executeCommand(ExecutionContext context, java.lang.String[] command, INodeEntry node)
Description copied from interface:NodeExecutorExecute a command on a node and return the result.- Specified by:
executeCommandin interfaceNodeExecutor- 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
public NodeExecutorResult executeCommand(ExecutionContext context, java.lang.String[] command, java.io.InputStream inputStream, INodeEntry node)
Description copied from interface:NodeExecutorExecute a command on a node and return the result, with an inputstream to provide input to the command.- Specified by:
executeCommandin interfaceNodeExecutor- 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
-
-