public class MongoDBManagedConnectionFactory
extends org.teiid.resource.spi.BasicManagedConnectionFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
MongoDBManagedConnectionFactory.SecurityType |
| Modifier and Type | Field and Description |
|---|---|
static BundleUtil |
UTIL |
| Constructor and Description |
|---|
MongoDBManagedConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.teiid.resource.spi.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() |
protected List<com.mongodb.ServerAddress> |
getServers() |
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) |
public static final BundleUtil UTIL
public org.teiid.resource.spi.BasicConnectionFactory<MongoDBConnectionImpl> createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactorycreateConnectionFactory in class org.teiid.resource.spi.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 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 com.mongodb.MongoClientURI getConnectionURI()
protected List<com.mongodb.ServerAddress> getServers() throws javax.resource.ResourceException
javax.resource.ResourceExceptionpublic int hashCode()
Copyright © 2018 JBoss by Red Hat. All rights reserved.