|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.di.job.entries.sftp.SFTPClient
public class SFTPClient
Field Summary | |
---|---|
static String |
HTTP_DEFAULT_PORT
|
static String |
PROXY_TYPE_HTTP
|
static String |
PROXY_TYPE_SOCKS5
|
static String |
SOCKS5_DEFAULT_PORT
|
static int |
SSH_DEFAULT_PORT
|
Constructor Summary | |
---|---|
SFTPClient(InetAddress serverIP,
int serverPort,
String userName)
Init Helper Class with connection settings |
|
SFTPClient(InetAddress serverIP,
int serverPort,
String userName,
String privateKeyFilename)
Init Helper Class with connection settings |
|
SFTPClient(InetAddress serverIP,
int serverPort,
String userName,
String privateKeyFilename,
String passPhrase)
Init Helper Class with connection settings |
Method Summary | |
---|---|
void |
chdir(String dirToChangeTo)
|
void |
createFolder(String foldername)
Creates this file as a folder. |
void |
delete(String file)
|
String[] |
dir()
|
void |
disconnect()
|
boolean |
folderExists(String foldername)
|
void |
get(String localFilePath,
String remoteFile)
|
String |
getCompression()
|
org.apache.commons.vfs.FileType |
getFileType(String filename)
|
String |
getPassword()
|
String |
GetPrivateKeyFileName()
|
String |
GetPrivateKeyPassPhrase()
|
InetAddress |
getServerIP()
|
int |
getServerPort()
|
String |
getUserName()
|
void |
login(String password)
|
void |
put(org.apache.commons.vfs.FileObject fileObject,
String remoteFile)
|
String |
pwd()
|
void |
renameFile(String sourcefilename,
String destinationfilename)
Rename the file. |
void |
setCompression(String compression)
|
void |
setProxy(String host,
String port,
String user,
String pass,
String proxyType)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROXY_TYPE_SOCKS5
public static final String PROXY_TYPE_HTTP
public static final String HTTP_DEFAULT_PORT
public static final String SOCKS5_DEFAULT_PORT
public static final int SSH_DEFAULT_PORT
Constructor Detail |
---|
public SFTPClient(InetAddress serverIP, int serverPort, String userName) throws org.pentaho.di.core.exception.KettleJobException
serverIP
- IP address of remote serverserverPort
- port of remote serveruserName
- username of remote server
org.pentaho.di.core.exception.KettleJobException
public SFTPClient(InetAddress serverIP, int serverPort, String userName, String privateKeyFilename) throws org.pentaho.di.core.exception.KettleJobException
serverIP
- IP address of remote serverserverPort
- port of remote serveruserName
- username of remote serverprivateKeyFilename
- filename of private key
org.pentaho.di.core.exception.KettleJobException
public SFTPClient(InetAddress serverIP, int serverPort, String userName, String privateKeyFilename, String passPhrase) throws org.pentaho.di.core.exception.KettleJobException
serverIP
- IP address of remote serverserverPort
- port of remote serveruserName
- username of remote serverprivateKeyFilename
- filename of private keypassPhrase
- passphrase
org.pentaho.di.core.exception.KettleJobException
Method Detail |
---|
public void login(String password) throws org.pentaho.di.core.exception.KettleJobException
org.pentaho.di.core.exception.KettleJobException
public void chdir(String dirToChangeTo) throws org.pentaho.di.core.exception.KettleJobException
org.pentaho.di.core.exception.KettleJobException
public String[] dir() throws org.pentaho.di.core.exception.KettleJobException
org.pentaho.di.core.exception.KettleJobException
public void get(String localFilePath, String remoteFile) throws org.pentaho.di.core.exception.KettleJobException
org.pentaho.di.core.exception.KettleJobException
public String pwd() throws org.pentaho.di.core.exception.KettleJobException
org.pentaho.di.core.exception.KettleJobException
public void put(org.apache.commons.vfs.FileObject fileObject, String remoteFile) throws org.pentaho.di.core.exception.KettleJobException
org.pentaho.di.core.exception.KettleJobException
public void delete(String file) throws org.pentaho.di.core.exception.KettleJobException
org.pentaho.di.core.exception.KettleJobException
public void createFolder(String foldername) throws org.pentaho.di.core.exception.KettleJobException
org.pentaho.di.core.exception.KettleJobException
public void renameFile(String sourcefilename, String destinationfilename) throws org.pentaho.di.core.exception.KettleJobException
org.pentaho.di.core.exception.KettleJobException
public org.apache.commons.vfs.FileType getFileType(String filename) throws org.pentaho.di.core.exception.KettleJobException
org.pentaho.di.core.exception.KettleJobException
public boolean folderExists(String foldername)
public void setProxy(String host, String port, String user, String pass, String proxyType) throws org.pentaho.di.core.exception.KettleJobException
org.pentaho.di.core.exception.KettleJobException
public void disconnect()
public String GetPrivateKeyFileName()
public String GetPrivateKeyPassPhrase()
public String getPassword()
public int getServerPort()
public String getUserName()
public InetAddress getServerIP()
public void setCompression(String compression)
public String getCompression()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |