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(java.lang.String username,
java.lang.String password)
Sets the authentication information that should be used for the connector
|
MongoDB |
collectionName(java.lang.String name)
Optional collection name.
|
MongoDB |
dbName(java.lang.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(java.lang.String host) |
MongoDB |
password(java.lang.String password) |
MongoDB |
port(int host) |
MongoDB |
url(java.lang.String host,
int port)
Simple calls
host(String).port(int) for convenience |
MongoDB |
username(java.lang.String username) |
exists, fromMap, parameters, putAll, setParam, setup, typepublic MongoDB url(java.lang.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(java.lang.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(java.lang.String name)
name - The name of an existing database.public MongoDB collectionName(java.lang.String name)
public MongoDB auth(java.lang.String username, java.lang.String password)
username - the usernamepassword - the passwordpublic MongoDB username(java.lang.String username)
username - he username for authorization.public MongoDB password(java.lang.String password)
password - The password for authorization.public MongoDB format(MongoDB.MongoDBFormat format)
Copyright © 2017. All Rights Reserved.