Package | Description |
---|---|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.event |
This package contains cluster and connection event related classes
|
Modifier and Type | Field and Description |
---|---|
private ClusterId |
DefaultClusterableServerFactory.clusterId |
private ClusterId |
ServerId.clusterId |
private ClusterId |
BaseCluster.clusterId |
Modifier and Type | Method and Description |
---|---|
ClusterId |
ServerId.getClusterId()
Gets the cluster identifier.
|
protected ClusterId |
BaseCluster.getClusterId() |
Constructor and Description |
---|
BaseCluster(ClusterId clusterId,
ClusterSettings settings,
ClusterableServerFactory serverFactory) |
DefaultClusterableServerFactory(ClusterId clusterId,
ClusterSettings clusterSettings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
CommandListener commandListener,
java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation,
java.util.List<MongoCompressor> compressorList) |
MultiServerCluster(ClusterId clusterId,
ClusterSettings settings,
ClusterableServerFactory serverFactory) |
ServerId(ClusterId clusterId,
ServerAddress address)
Construct an instance.
|
SingleServerCluster(ClusterId clusterId,
ClusterSettings settings,
ClusterableServerFactory serverFactory) |
Modifier and Type | Field and Description |
---|---|
private ClusterId |
ClusterClosedEvent.clusterId |
private ClusterId |
ClusterOpeningEvent.clusterId |
private ClusterId |
ClusterDescriptionChangedEvent.clusterId |
Modifier and Type | Method and Description |
---|---|
ClusterId |
ClusterClosedEvent.getClusterId()
Gets the cluster id associated with this event.
|
ClusterId |
ClusterOpeningEvent.getClusterId()
Gets the cluster id.
|
ClusterId |
ClusterDescriptionChangedEvent.getClusterId()
Gets the cluster id associated with this event.
|
Constructor and Description |
---|
ClusterClosedEvent(ClusterId clusterId)
Constructs a new instance of the event.
|
ClusterDescriptionChangedEvent(ClusterId clusterId,
ClusterDescription newDescription,
ClusterDescription previousDescription)
Constructs a new instance of the event.
|
ClusterOpeningEvent(ClusterId clusterId)
Constructs a new instance of the event.
|