Modifier and Type | Field and Description |
---|---|
protected String |
logDestBase |
protected com.jcraft.jsch.Session |
session |
protected com.jcraft.jsch.ChannelSftp |
sftpChannel |
Constructor and Description |
---|
PDSPullImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
connect(String hostname,
String username,
String password,
boolean encrypted)
Connects to external machine using SFTP.
|
void |
disconnect()
Disconnect SFTP and the session
|
void |
pull(String path,
String destination)
Retrieve the logs using the specified login information and host
|
protected com.jcraft.jsch.Session session
protected com.jcraft.jsch.ChannelSftp sftpChannel
protected String logDestBase
public boolean connect(String hostname, String username, String password, boolean encrypted) throws PushPullException
connect
in interface PDSPull
hostname
- username
- password
- password to external machineencrypted
- tells whether or not the password is encryptedPushPullException
com.jcraft.jsch.JSchException
public void disconnect()
disconnect
in interface PDSPull
public final void pull(String path, String destination) throws PushPullException
pull
in interface PDSPull
PushPullException
Copyright © 2010–2016 Planetary Data System. All rights reserved.