public final class SshRemoteUpdate
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
CONNECTION_ERROR
message in exception.
|
private java.io.File[] |
files
Files to send.
|
| Constructor and Description |
|---|
SshRemoteUpdate(java.io.File[] files)
private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
remoteUpdate(java.lang.String user,
java.lang.String host,
int port,
java.lang.String keyPath)
Connect with PrivateKey without passphrase.
|
void |
remoteUpdate(java.lang.String user,
java.lang.String host,
int port,
java.lang.String keyPath,
java.lang.String passphrase)
Connect with PrivateKey and passphrase.
|
void |
remoteUpdate(java.lang.String user,
java.lang.String password,
java.lang.String host,
int port)
Connect with password.
|
private void |
update(SshSession sshs)
updates a router when source directory and session are known.
|
private static final java.lang.String CONNECTION_ERROR
private final transient java.io.File[] files
public SshRemoteUpdate(java.io.File[] files)
files - filespublic void remoteUpdate(java.lang.String user,
java.lang.String password,
java.lang.String host,
int port)
throws RemoteUpdateException
user - userpassword - passwordhost - hostport - portRemoteUpdateException - ConnectionFailedExceptionpublic void remoteUpdate(java.lang.String user,
java.lang.String host,
int port,
java.lang.String keyPath,
java.lang.String passphrase)
throws RemoteUpdateException
user - userhost - hostport - portkeyPath - keyPathpassphrase - passphraseRemoteUpdateException - ConnectionFailedExceptionpublic void remoteUpdate(java.lang.String user,
java.lang.String host,
int port,
java.lang.String keyPath)
throws RemoteUpdateException
user - userhost - hostport - portkeyPath - keyPathRemoteUpdateException - ConnectionFailedExceptionprivate void update(SshSession sshs) throws RemoteUpdateException
sshs - sshsRemoteUpdateException - ConnectionFailedException