public class MongoDB extends BaseConnector<MongoDB>
| Modifier and Type | Class and Description |
|---|---|
static class |
MongoDB.MongoDBFormat |
params, PREFIX, required| Constructor and Description |
|---|
MongoDB() |
| Modifier and Type | Method and Description |
|---|---|
MongoDB |
auth(String username,
String password)
Sets the authentication information that should be used for the connector
|
MongoDB |
collectionName(String name)
Optional collection name.
|
MongoDB |
dbName(String name) |
MongoDB |
format(MongoDB.MongoDBFormat format)
The output format for your data:
basic_interaction_meta - The current default format, where each payload contains only basic interaction JSON
document.
|
MongoDB |
host(String host) |
MongoDB |
password(String password) |
MongoDB |
port(int host) |
MongoDB |
url(String host,
int port)
Simple calls
host(String).port(int) for convenience |
MongoDB |
username(String username) |
exists, fromMap, parameters, putAll, setParam, setup, typepublic MongoDB 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 MongoDB host(String host)
host - The host name of your CouchDB installation.public MongoDB port(int host)
host - You can specify a port or accept the default.public MongoDB dbName(String name)
name - The name of an existing database.public MongoDB collectionName(String name)
public MongoDB auth(String username, String password)
username - the usernamepassword - the passwordpublic MongoDB username(String username)
username - he username for authorization.public MongoDB password(String password)
password - The password for authorization.public MongoDB format(MongoDB.MongoDBFormat format)
Copyright © 2015. All Rights Reserved.