public class JschScpFileCopier extends BaseFileCopier implements FileCopier, Describable, DestinationFileCopier
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE_PROVIDER_TYPE |
FILE_COPY_DESTINATION_DIR
Constructor and Description |
---|
JschScpFileCopier(Framework framework) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
copyFile(ExecutionContext context,
java.io.File scriptfile,
INodeEntry node)
Copy the contents of an input stream to the node
|
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)
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)
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
|
Description |
getDescription()
Return the configuration description
|
appendRemoteFileExtensionForNode, generateRemoteFilepathForNode, getRemoteDirForNode, writeLocalFile, writeScriptTempFile, writeTempFile
public static final java.lang.String SERVICE_PROVIDER_TYPE
public JschScpFileCopier(Framework framework)
public Description getDescription()
Describable
getDescription
in interface Describable
public java.lang.String copyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node) throws FileCopierException
FileCopier
copyFileStream
in interface FileCopier
context
- contextinput
- the input streamFileCopierException
- if an error occurspublic java.lang.String copyFile(ExecutionContext context, java.io.File scriptfile, INodeEntry node) throws FileCopierException
FileCopier
copyFile
in interface FileCopier
context
- contextscriptfile
- local file tocopyFileCopierException
- if an error occurspublic java.lang.String copyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node) throws FileCopierException
FileCopier
copyScriptContent
in interface FileCopier
context
- contextscript
- file content stringFileCopierException
- if an error occurspublic java.lang.String copyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node, java.lang.String destination) throws FileCopierException
DestinationFileCopier
copyFileStream
in interface DestinationFileCopier
context
- contextinput
- the input streamdestination
- the full path destination for the fileFileCopierException
- if an error occurspublic java.lang.String copyFile(ExecutionContext context, java.io.File file, INodeEntry node, java.lang.String destination) throws FileCopierException
DestinationFileCopier
copyFile
in interface DestinationFileCopier
context
- contextfile
- local file tocopydestination
- the full path destination for the fileFileCopierException
- if an error occurspublic java.lang.String copyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node, java.lang.String destination) throws FileCopierException
DestinationFileCopier
copyScriptContent
in interface DestinationFileCopier
context
- contextscript
- file content stringdestination
- the full path destination for the fileFileCopierException
- if an error occurs