com.dtolabs.rundeck.core.execution.service
Interface DestinationFileCopier

All Superinterfaces:
FileCopier
All Known Implementing Classes:
JschScpFileCopier, LocalFileCopier

public interface DestinationFileCopier
extends FileCopier

$INTERFACE is ... User: greg Date: 8/23/13 Time: 6:07 PM


Method Summary
 java.lang.String copyFile(ExecutionContext context, java.io.File file, INodeEntry node, java.lang.String destination)
          Copy the contents of an input stream to the node
 java.lang.String copyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node, java.lang.String destination)
          Copy the contents of an input stream to the node
 java.lang.String copyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node, java.lang.String destination)
          Copy the contents of an input stream to the node
 
Methods inherited from interface com.dtolabs.rundeck.core.execution.service.FileCopier
copyFile, copyFileStream, copyScriptContent
 

Method Detail

copyFileStream

java.lang.String copyFileStream(ExecutionContext context,
                                java.io.InputStream input,
                                INodeEntry node,
                                java.lang.String destination)
                                throws FileCopierException
Copy the contents of an input stream to the node

Parameters:
context - context
input - the input stream
node -
destination - the full path destination for the file
Returns:
File path of the file after copying to the node
Throws:
FileCopierException - if an error occurs

copyFile

java.lang.String copyFile(ExecutionContext context,
                          java.io.File file,
                          INodeEntry node,
                          java.lang.String destination)
                          throws FileCopierException
Copy the contents of an input stream to the node

Parameters:
context - context
file - local file tocopy
node -
destination - the full path destination for the file
Returns:
File path of the file after copying to the node
Throws:
FileCopierException - if an error occurs

copyScriptContent

java.lang.String copyScriptContent(ExecutionContext context,
                                   java.lang.String script,
                                   INodeEntry node,
                                   java.lang.String destination)
                                   throws FileCopierException
Copy the contents of an input stream to the node

Parameters:
context - context
script - file content string
node -
destination - the full path destination for the file
Returns:
File path of the file after copying to the node
Throws:
FileCopierException - if an error occurs