public class MongoDBConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MongoDBConfiguration.SecurityType |
Constructor and Description |
---|
MongoDBConfiguration() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthDatabase() |
com.mongodb.MongoCredential |
getCredential() |
String |
getDatabase() |
com.mongodb.MongoClientOptions |
getOptions() |
String |
getPassword() |
String |
getRemoteServerList()
Returns the
host:port[;host:port...] list that identifies the remote servers
to include in this cluster; |
String |
getSecurityType() |
protected List<com.mongodb.ServerAddress> |
getServers() |
Boolean |
getSsl() |
String |
getUri()
The full connection URI string to mongodb.
|
String |
getUser() |
void |
setAuthDatabase(String database) |
void |
setDatabase(String database) |
void |
setPassword(String googlePassword) |
void |
setRemoteServerList(String remoteServerList)
Set the list of remote servers that make up the MongoDB cluster.
|
void |
setSecurityType(String securityType) |
void |
setSsl(Boolean ssl) |
void |
setUri(String uri) |
void |
setUser(String username) |
public com.mongodb.MongoClientOptions getOptions()
public com.mongodb.MongoCredential getCredential()
public String getRemoteServerList()
host:port[;host:port...]
list that identifies the remote servers
to include in this cluster;host:port[;host:port...]
listpublic void setRemoteServerList(String remoteServerList)
remoteServerList
- the server list in appropriate server:port;server2:port2
format.public String getUser()
public void setUser(String username)
public String getPassword()
public void setPassword(String googlePassword)
public Boolean getSsl()
public void setSsl(Boolean ssl)
public String getDatabase()
public void setDatabase(String database)
public String getSecurityType()
public void setSecurityType(String securityType)
public String getAuthDatabase()
public void setAuthDatabase(String database)
protected List<com.mongodb.ServerAddress> getServers()
public String getUri()
public void setUri(String uri)
Copyright © 2020. All rights reserved.