Interface NodeExecutionService
-
- All Superinterfaces:
AppService
- All Known Subinterfaces:
ExecutionService
- All Known Implementing Classes:
ExecutionServiceImpl
public interface NodeExecutionService extends AppService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NodeExecutorResult
executeCommand(ExecutionContext context, ExecArgList command, INodeEntry node)
Execute a command within the context on the node.java.lang.String
fileCopyFile(ExecutionContext context, java.io.File file, INodeEntry node, java.lang.String destinationPath)
Copy file to the node to a specific pathjava.lang.String
fileCopyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node, java.lang.String destinationPath)
Copy stream as a file to the node to a specific path
-
-
-
Method Detail
-
fileCopyFileStream
java.lang.String fileCopyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node, java.lang.String destinationPath) throws FileCopierException, ExecutionException
Copy stream as a file to the node to a specific path- Parameters:
context
- contextinput
- input streamnode
- nodedestinationPath
- destination path- Returns:
- filepath on the node for the destination file.
- Throws:
FileCopierException
- on errorExecutionException
-
fileCopyFile
java.lang.String fileCopyFile(ExecutionContext context, java.io.File file, INodeEntry node, java.lang.String destinationPath) throws FileCopierException, ExecutionException
Copy file to the node to a specific path- Parameters:
context
- contextfile
- input filenode
- nodedestinationPath
- destination path- Returns:
- filepath
- Throws:
FileCopierException
- on errorExecutionException
-
executeCommand
NodeExecutorResult executeCommand(ExecutionContext context, ExecArgList command, INodeEntry node) throws ExecutionException
Execute a command within the context on the node.- Parameters:
context
- contextcommand
- commandnode
- node- Returns:
- result
- Throws:
ExecutionException
-
-