com.dtolabs.rundeck.core.execution.impl.jsch
Class JschScpFileCopier
java.lang.Object
com.dtolabs.rundeck.core.execution.impl.common.BaseFileCopier
com.dtolabs.rundeck.core.execution.impl.jsch.JschScpFileCopier
- All Implemented Interfaces:
- FileCopier, Describable
public class JschScpFileCopier
- extends BaseFileCopier
- implements FileCopier, Describable
JschScpFileCopier is ...
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVICE_PROVIDER_TYPE
public static final java.lang.String SERVICE_PROVIDER_TYPE
- See Also:
- Constant Field Values
JschScpFileCopier
public JschScpFileCopier(Framework framework)
getDescription
public Description getDescription()
- Description copied from interface:
Describable
- Return the configuration description
- Specified by:
getDescription
in interface Describable
copyFileStream
public java.lang.String copyFileStream(ExecutionContext context,
java.io.InputStream input,
INodeEntry node)
throws FileCopierException
- Description copied from interface:
FileCopier
- Copy the contents of an input stream to the node
- Specified by:
copyFileStream
in interface FileCopier
- Parameters:
context
- contextinput
- the input stream
- Returns:
- File path of the file after copying to the node
- Throws:
FileCopierException
- if an error occurs
copyFile
public java.lang.String copyFile(ExecutionContext context,
java.io.File scriptfile,
INodeEntry node)
throws FileCopierException
- Description copied from interface:
FileCopier
- Copy the contents of an input stream to the node
- Specified by:
copyFile
in interface FileCopier
- Parameters:
context
- contextscriptfile
- local file tocopy
- Returns:
- File path of the file after copying to the node
- Throws:
FileCopierException
- if an error occurs
copyScriptContent
public java.lang.String copyScriptContent(ExecutionContext context,
java.lang.String script,
INodeEntry node)
throws FileCopierException
- Description copied from interface:
FileCopier
- Copy the contents of an input stream to the node
- Specified by:
copyScriptContent
in interface FileCopier
- Parameters:
context
- contextscript
- file content string
- Returns:
- File path of the file after copying to the node
- Throws:
FileCopierException
- if an error occurs