public class MongoDBManagedConnectionFactory extends BasicManagedConnectionFactory implements MongoDBConfiguration
MongoDBConfiguration.SecurityType| Modifier and Type | Field and Description |
|---|---|
static BundleUtil |
UTIL |
SEEDLIST_PREFIX, STANDARD_PREFIX| Constructor and Description |
|---|
MongoDBManagedConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
BasicConnectionFactory<MongoDBConnectionImpl> |
createConnectionFactory() |
boolean |
equals(Object obj) |
String |
getAuthDatabase() |
protected com.mongodb.MongoClientURI |
getConnectionURI() |
String |
getDatabase() |
String |
getPassword() |
String |
getRemoteServerList()
Returns the
host:port[;host:port...] list that identifies the remote servers
to include in this cluster; |
String |
getSecurityType() |
Boolean |
getSsl() |
String |
getUsername() |
int |
hashCode() |
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 |
setUsername(String username) |
checkEquals, createConnectionFactory, createManagedConnection, getInstance, getInvalidConnections, getLogWriter, getResourceAdapter, matchManagedConnections, setLogWriter, setResourceAdapterclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetCredential, getOptions, getServerspublic static final BundleUtil UTIL
public BasicConnectionFactory<MongoDBConnectionImpl> createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactorycreateConnectionFactory in class BasicManagedConnectionFactoryjavax.resource.ResourceExceptionpublic String getRemoteServerList()
host:port[;host:port...] list that identifies the remote servers
to include in this cluster;getRemoteServerList in interface MongoDBConfigurationhost:port[;host:port...] listpublic void setRemoteServerList(String remoteServerList)
remoteServerList - the server list in appropriate server:port;server2:port2 format.public String getUsername()
getUsername in interface MongoDBConfigurationpublic void setUsername(String username)
public String getPassword()
getPassword in interface MongoDBConfigurationpublic void setPassword(String googlePassword)
public Boolean getSsl()
getSsl in interface MongoDBConfigurationpublic void setSsl(Boolean ssl)
public String getDatabase()
getDatabase in interface MongoDBConfigurationpublic void setDatabase(String database)
public String getSecurityType()
getSecurityType in interface MongoDBConfigurationpublic void setSecurityType(String securityType)
public String getAuthDatabase()
getAuthDatabase in interface MongoDBConfigurationpublic void setAuthDatabase(String database)
protected com.mongodb.MongoClientURI getConnectionURI()
public int hashCode()
Copyright © 2020. All rights reserved.