Package | Description |
---|---|
com.allanbank.mongodb.connection |
Provides interfaces for managing connections to different MongoDB server configurations.
|
com.allanbank.mongodb.connection.auth |
Wraps a connection and ensures that all requests are properly authenticated.
|
com.allanbank.mongodb.connection.rs |
Support for connections to Replica Sets.
|
com.allanbank.mongodb.connection.sharded |
Support for connections to Sharded Configurations.
|
com.allanbank.mongodb.connection.socket |
Low level socket connection to a single MongoDB server.
|
com.allanbank.mongodb.connection.state |
Support for tracking the state of a set of MongoDB servers.
|
Modifier and Type | Method and Description |
---|---|
void |
ReconnectStrategy.setConnectionFactory(ProxiedConnectionFactory connectionFactory)
Sets the connection factory to use to establish connections to the
server.
|
Modifier and Type | Class and Description |
---|---|
class |
AuthenticationConnectionFactory
AuthenticationConnectionFactory wraps all of the connections with
AuthenticatingConnection s. |
Constructor and Description |
---|
AuthenticationConnectionFactory(ProxiedConnectionFactory factory,
MongoClientConfiguration config)
Creates a new AuthenticationConnectionFactory.
|
Modifier and Type | Field and Description |
---|---|
protected ProxiedConnectionFactory |
ReplicaSetConnectionFactory.myConnectionFactory
The factory to create proxied connections.
|
Constructor and Description |
---|
ReplicaSetConnection(Connection proxiedConnection,
ServerState server,
ClusterState cluster,
ProxiedConnectionFactory factory,
MongoClientConfiguration config)
Creates a new
ReplicaSetConnection . |
ReplicaSetConnectionFactory(ProxiedConnectionFactory factory,
MongoClientConfiguration config)
Creates a new
ReplicaSetConnectionFactory . |
Modifier and Type | Field and Description |
---|---|
protected ProxiedConnectionFactory |
ShardedConnectionFactory.myConnectionFactory
The factory to create proxied connections.
|
Constructor and Description |
---|
ShardedConnectionFactory(ProxiedConnectionFactory factory,
MongoClientConfiguration config)
Creates a new
ShardedConnectionFactory . |
Modifier and Type | Class and Description |
---|---|
class |
SocketConnectionFactory
ConnectionFactory to create direct socket connections to the servers. |
Modifier and Type | Field and Description |
---|---|
protected ProxiedConnectionFactory |
AbstractReconnectStrategy.myConnectionFactory
The connection factory for new connections.
|
Modifier and Type | Method and Description |
---|---|
ProxiedConnectionFactory |
AbstractReconnectStrategy.getConnectionFactory()
Returns the connection factory for new connections.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractReconnectStrategy.setConnectionFactory(ProxiedConnectionFactory connectionFactory)
Sets the connection factory to use to establish connections to the
server.
|
Constructor and Description |
---|
ClusterPinger(ClusterState cluster,
ClusterType clusterType,
ProxiedConnectionFactory factory,
MongoClientConfiguration config)
Creates a new ClusterPinger.
|
Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.