public class SFTP extends BaseConnector<SFTP>
| Modifier and Type | Class and Description |
|---|---|
static class |
SFTP.SFTPFormat |
params, PREFIX, required| Constructor and Description |
|---|
SFTP() |
| Modifier and Type | Method and Description |
|---|---|
SFTP |
auth(String username,
String password)
Sets the authentication information that should be used for the connector
|
SFTP |
compression(String format) |
SFTP |
deliveryFrequency(int freq)
The minimum number of seconds you want DataSift to wait before sending data again:
10 (10 seconds)
30 (30 seconds)
60 (1 minute)
120 (2 minutes)
300 (5 minutes)
In reality, a stream might not have data available after the wait.
|
SFTP |
directory(String directory)
A directory on the server
|
SFTP |
filePrefix(String prefix)
An optional prefix to the filename.
|
SFTP |
format(SFTP.SFTPFormat format)
The output format for your data:
json_meta - The current default format, where each payload contains a full JSON document.
|
SFTP |
gzip() |
SFTP |
host(String host) |
SFTP |
markInProgress(boolean trueOrFalse)
This enables you to see which files are being written and which are complete.
|
SFTP |
maxSize(int max)
The maximum amount of data that DataSift will send in a single batch:
102400 (100KB)
256000 (250KB)
512000 (500KB)
1048576 (1MB)
2097152 (2MB)
5242880 (5MB)
10485760 (10MB)
20971520 (20MB)
52428800 (50MB)
104857600 (100MB)
209715200 (200MB)
|
SFTP |
password(String password) |
SFTP |
port(int host) |
SFTP |
url(String host,
int port)
Simple calls
host(String).port(int) for convenience |
SFTP |
username(String username) |
exists, fromMap, parameters, putAll, setParam, setup, typepublic SFTP url(String host, int port)
host(String).port(int) for conveniencehost - the host of the serverport - the port on which the connection will be attemptedpublic SFTP host(String host)
host - The host name of your CouchDB installation.public SFTP port(int host)
host - You can specify a port or accept the default.public SFTP deliveryFrequency(int freq)
public SFTP maxSize(int max)
public SFTP filePrefix(String prefix)
public SFTP auth(String username, String password)
username - the usernamepassword - the passwordpublic SFTP username(String username)
username - he username for authorization.public SFTP password(String password)
password - The password for authorization.public SFTP markInProgress(boolean trueOrFalse)
public SFTP gzip()
public SFTP format(SFTP.SFTPFormat format)
Copyright © 2015. All Rights Reserved.