public class MongoDBManagedConnectionFactory extends BasicManagedConnectionFactory
| Modifier and Type | Field and Description |
|---|---|
static org.teiid.core.BundleUtil |
UTIL |
| Constructor and Description |
|---|
MongoDBManagedConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
BasicConnectionFactory<MongoDBConnectionImpl> |
createConnectionFactory() |
boolean |
equals(Object obj) |
String |
getDatabase() |
String |
getPassword() |
String |
getRemoteServerList()
Returns the
host:port[;host:port...] list that identifies the remote servers
to include in this cluster; |
protected List<com.mongodb.ServerAddress> |
getServers() |
String |
getUsername() |
int |
hashCode() |
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 |
setUsername(String username) |
checkEquals, createConnectionFactory, createManagedConnection, getInstance, getInvalidConnections, getLogWriter, getResourceAdapter, matchManagedConnections, setLogWriter, setResourceAdapterpublic 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;host:port[;host:port...] listpublic void setRemoteServerList(String remoteServerList)
remoteServerList - the server list in appropriate server:port;server2:port2 format.public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String googlePassword)
public String getDatabase()
public void setDatabase(String database)
protected List<com.mongodb.ServerAddress> getServers() throws javax.resource.ResourceException
javax.resource.ResourceExceptionpublic int hashCode()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.