gov.nasa.pds.report.logs.pushpull
Class FtpPull

java.lang.Object
  extended by gov.nasa.pds.report.logs.pushpull.FtpPull
All Implemented Interfaces:
PDSPull

public class FtpPull
extends Object
implements PDSPull


Field Summary
protected  org.apache.commons.net.ftp.FTPClient client
           
 
Constructor Summary
FtpPull()
           
 
Method Summary
 boolean connect(String hostname, String username, String password, boolean encrypted)
           
 void disconnect()
           
 void pull(String path, String destination)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

protected org.apache.commons.net.ftp.FTPClient client
Constructor Detail

FtpPull

public FtpPull()
Method Detail

connect

public boolean connect(String hostname,
                       String username,
                       String password,
                       boolean encrypted)
                throws PushPullException
Specified by:
connect in interface PDSPull
Throws:
PushPullException

pull

public final void pull(String path,
                       String destination)
                throws PushPullException
Specified by:
pull in interface PDSPull
Throws:
PushPullException

disconnect

public void disconnect()
                throws PushPullException
Specified by:
disconnect in interface PDSPull
Throws:
PushPullException


Copyright © 2010–2015 Planetary Data System. All rights reserved.