ppe.util
Class SshCp
java.lang.Object
ppe.util.SshCp
public class SshCp
- extends java.lang.Object
Copies files between to remote systems using Ganymed's scp.
This actually requires getting the file to the local system
and then putting it to the recipient.
Constructor Summary |
SshCp()
|
Method Summary |
void |
cp(ch.ethz.ssh2.Connection connection,
java.lang.String remoteTargetDirectory,
java.io.File localFile)
|
void |
cp(java.util.HashMap<java.lang.String,ch.ethz.ssh2.Connection> htc,
java.util.List<java.lang.String> recipientHosts,
java.lang.String srcHost,
java.lang.String srcDir,
java.lang.String filename)
Copies the specified files to set of hosts. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SshCp
public SshCp()
cp
public void cp(java.util.HashMap<java.lang.String,ch.ethz.ssh2.Connection> htc,
java.util.List<java.lang.String> recipientHosts,
java.lang.String srcHost,
java.lang.String srcDir,
java.lang.String filename)
throws java.io.IOException
- Copies the specified files to set of hosts. The file
is copied to the same place in the directory tree on all
the recipients.
- Parameters:
recipientHosts
- srcHost
- srcDir
- filename
- htc
-
- Throws:
java.io.IOException
cp
public void cp(ch.ethz.ssh2.Connection connection,
java.lang.String remoteTargetDirectory,
java.io.File localFile)
throws java.io.IOException
- Throws:
java.io.IOException