gov.nasa.pds.report.update.util
Class SFTPConnect
java.lang.Object
gov.nasa.pds.report.update.util.SFTPConnect
- All Implemented Interfaces:
- RemoteFileTransfer
public class SFTPConnect
- extends Object
- implements RemoteFileTransfer
Utility that provides all SFTP connection functionality
- Author:
- jpadams
Method Summary |
com.google.gson.JsonObject |
checkConnection(com.google.gson.JsonObject start,
String hostname,
String username,
String password,
String pathname)
Check the SFTP connection to the specified machine according the login
information |
void |
getLogs(String hostname,
String username,
String password,
String pathname,
String logDestPath)
Retrieve the logs using the specified login information and host |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
session
protected com.jcraft.jsch.Session session
sftpChannel
protected com.jcraft.jsch.ChannelSftp sftpChannel
logDestBase
protected String logDestBase
SFTPConnect
public SFTPConnect()
checkConnection
public final com.google.gson.JsonObject checkConnection(com.google.gson.JsonObject start,
String hostname,
String username,
String password,
String pathname)
- Check the SFTP connection to the specified machine according the login
information
- Specified by:
checkConnection
in interface RemoteFileTransfer
- Parameters:
hostname
- username
- password
- pathname
-
- Returns:
getLogs
public final void getLogs(String hostname,
String username,
String password,
String pathname,
String logDestPath)
- Retrieve the logs using the specified login information and host
- Specified by:
getLogs
in interface RemoteFileTransfer
Copyright © 2010-2013 Planetary Data System. All Rights Reserved.