Package org.teiid.mongodb
Interface MongoDBConfiguration
-
public interface MongoDBConfiguration
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMongoDBConfiguration.SecurityType
-
Field Summary
Fields Modifier and Type Field Description static StringSEEDLIST_PREFIXstatic StringSTANDARD_PREFIX
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetAuthDatabase()default com.mongodb.MongoCredentialgetCredential()StringgetDatabase()default com.mongodb.MongoClientOptionsgetOptions()StringgetPassword()StringgetRemoteServerList()A list of servers to use.StringgetSecurityType()default List<com.mongodb.ServerAddress>getServers()BooleangetSsl()StringgetUsername()
-
-
-
Field Detail
-
STANDARD_PREFIX
static final String STANDARD_PREFIX
- See Also:
- Constant Field Values
-
SEEDLIST_PREFIX
static final String SEEDLIST_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSsl
Boolean getSsl()
-
getRemoteServerList
String getRemoteServerList()
A list of servers to use. If the string starts with mongodb:// or mongodb+srv://, then it will be used as the full uri. All other values will be assumed to be a ; separated list of servers.- Returns:
-
getUsername
String getUsername()
-
getPassword
String getPassword()
-
getDatabase
String getDatabase()
-
getSecurityType
String getSecurityType()
TheMongoDBConfiguration.SecurityType. Can be one of SCRAM_SHA_256, SCRAM_SHA_1, MONGODB_CR, Kerberos, X509, None.
Any other value will be treated as MONGODB_CR- Returns:
-
getAuthDatabase
String getAuthDatabase()
-
getCredential
default com.mongodb.MongoCredential getCredential()
-
getOptions
default com.mongodb.MongoClientOptions getOptions()
-
getServers
default List<com.mongodb.ServerAddress> getServers()
-
-