Package org.teiid.spring.data.mongodb
Class MongoDBConfiguration
- java.lang.Object
-
- org.teiid.spring.data.mongodb.MongoDBConfiguration
-
- All Implemented Interfaces:
org.teiid.mongodb.MongoDBConfiguration
public class MongoDBConfiguration extends Object implements org.teiid.mongodb.MongoDBConfiguration
-
-
Constructor Summary
Constructors Constructor Description MongoDBConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthDatabase()
String
getDatabase()
com.mongodb.MongoClientOptions
getOptions()
String
getPassword()
String
getRemoteServerList()
Returns thehost:port[;host:port...]
list that identifies the remote servers to include in this cluster;String
getSecurityType()
Boolean
getSsl()
String
getUri()
The full connection URI string to mongodb.String
getUser()
String
getUsername()
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)
-
-
-
Method Detail
-
getOptions
public com.mongodb.MongoClientOptions getOptions()
- Specified by:
getOptions
in interfaceorg.teiid.mongodb.MongoDBConfiguration
-
getRemoteServerList
public String getRemoteServerList()
Returns thehost:port[;host:port...]
list that identifies the remote servers to include in this cluster;- Specified by:
getRemoteServerList
in interfaceorg.teiid.mongodb.MongoDBConfiguration
- Returns:
host:port[;host:port...]
list
-
setRemoteServerList
public void setRemoteServerList(String remoteServerList)
Set the list of remote servers that make up the MongoDB cluster.- Parameters:
remoteServerList
- the server list in appropriateserver:port;server2:port2
format.
-
getUser
public String getUser()
-
setUser
public void setUser(String username)
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfaceorg.teiid.mongodb.MongoDBConfiguration
-
setPassword
public void setPassword(String googlePassword)
-
getSsl
public Boolean getSsl()
- Specified by:
getSsl
in interfaceorg.teiid.mongodb.MongoDBConfiguration
-
setSsl
public void setSsl(Boolean ssl)
-
getDatabase
public String getDatabase()
- Specified by:
getDatabase
in interfaceorg.teiid.mongodb.MongoDBConfiguration
-
setDatabase
public void setDatabase(String database)
-
getSecurityType
public String getSecurityType()
- Specified by:
getSecurityType
in interfaceorg.teiid.mongodb.MongoDBConfiguration
-
setSecurityType
public void setSecurityType(String securityType)
-
getAuthDatabase
public String getAuthDatabase()
- Specified by:
getAuthDatabase
in interfaceorg.teiid.mongodb.MongoDBConfiguration
-
setAuthDatabase
public void setAuthDatabase(String database)
-
getUri
public String getUri()
The full connection URI string to mongodb. If this is used, no other configuration properties will be looked at. The database should also be set in the URI.- Returns:
-
setUri
public void setUri(String uri)
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceorg.teiid.mongodb.MongoDBConfiguration
-
-