Package | Description |
---|---|
com.allanbank.mongodb.client.connection |
Provides interfaces for managing connections to different MongoDB server configurations.
|
com.allanbank.mongodb.client.connection.auth |
Wraps a connection and ensures that all requests are properly authenticated.
|
com.allanbank.mongodb.client.connection.bootstrap |
Bootstraps a the correct type of connections for the type of MongoDB cluster.
|
com.allanbank.mongodb.client.connection.proxy |
Support for connection that delegate to a lower level connection.
|
com.allanbank.mongodb.client.connection.rs |
Support for connections to Replica Sets.
|
com.allanbank.mongodb.client.connection.sharded |
Support for connections to Sharded Configurations.
|
com.allanbank.mongodb.client.connection.socket |
Low level socket connection to a single MongoDB server.
|
com.allanbank.mongodb.client.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 | Method and Description |
---|---|
protected ConnectionFactory |
BootstrapConnectionFactory.bootstrapReplicaSet(ProxiedConnectionFactory factory)
Initializes the factory for connecting to the replica set.
|
protected ConnectionFactory |
BootstrapConnectionFactory.bootstrapSharded(ProxiedConnectionFactory factory)
Initializes the factory for connecting to the sharded cluster.
|
Modifier and Type | Field and Description |
---|---|
protected ProxiedConnectionFactory |
AbstractProxyMultipleConnection.myFactory
The connection factory for opening secondary connections.
|
Constructor and Description |
---|
AbstractProxyMultipleConnection(Connection proxiedConnection,
K server,
Cluster cluster,
ProxiedConnectionFactory factory,
MongoClientConfiguration config)
Creates a new
AbstractProxyMultipleConnection . |
Modifier and Type | Field and Description |
---|---|
protected ProxiedConnectionFactory |
ReplicaSetConnectionFactory.myConnectionFactory
The factory to create proxied connections.
|
Constructor and Description |
---|
ReplicaSetConnection(Connection proxiedConnection,
Server server,
Cluster cluster,
ProxiedConnectionFactory factory,
MongoClientConfiguration config,
ReplicaSetReconnectStrategy strategy)
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.
|
Modifier and Type | Method and Description |
---|---|
protected ClusterPinger |
ShardedConnectionFactory.createClusterPinger(ProxiedConnectionFactory factory,
MongoClientConfiguration config)
Creates a
ClusterPinger object to periodically update the status
of the servers. |
Constructor and Description |
---|
ShardedConnection(Connection proxiedConnection,
Server server,
Cluster cluster,
ServerSelector selector,
ProxiedConnectionFactory factory,
MongoClientConfiguration config)
Creates a new
ShardedConnection . |
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(Cluster cluster,
ProxiedConnectionFactory factory,
MongoClientConfiguration config)
Creates a new ClusterPinger.
|
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.