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
|
com.mongodb.management |
Contains classes for monitoring the server/driver via Java Management Extensions (JMX).
|
Modifier and Type | Field and Description |
---|---|
private ServerId |
DefaultConnectionPool.serverId |
private ServerId |
ConnectionId.serverId |
private ServerId |
DefaultServerMonitorFactory.serverId |
private ServerId |
DefaultServerMonitor.serverId |
private ServerId |
DefaultServer.serverId |
private ServerId |
InternalStreamConnection.serverId |
Modifier and Type | Method and Description |
---|---|
ServerId |
ConnectionId.getServerId()
Gets the server id.
|
Modifier and Type | Method and Description |
---|---|
InternalConnection |
InternalConnectionFactory.create(ServerId serverId) |
InternalConnection |
InternalStreamConnectionFactory.create(ServerId serverId) |
Constructor and Description |
---|
ConnectionDescription(ServerId serverId)
Construct a defaulted connection description instance.
|
ConnectionId(ServerId serverId)
Construct an instance with the given server id.
|
ConnectionId(ServerId serverId,
int localValue,
java.lang.Integer serverValue) |
DefaultConnectionPool(ServerId serverId,
InternalConnectionFactory internalConnectionFactory,
ConnectionPoolSettings settings) |
DefaultServer(ServerId serverId,
ClusterConnectionMode clusterConnectionMode,
ConnectionPool connectionPool,
ConnectionFactory connectionFactory,
ServerMonitorFactory serverMonitorFactory,
ServerListener serverListener,
CommandListener commandListener,
ClusterClock clusterClock) |
DefaultServerMonitor(ServerId serverId,
ServerSettings serverSettings,
ClusterClock clusterClock,
ChangeListener<ServerDescription> serverStateListener,
InternalConnectionFactory internalConnectionFactory,
ConnectionPool connectionPool) |
DefaultServerMonitorFactory(ServerId serverId,
ServerSettings settings,
ClusterClock clusterClock,
InternalConnectionFactory internalConnectionFactory,
ConnectionPool connectionPool) |
InternalStreamConnection(ServerId serverId,
StreamFactory streamFactory,
java.util.List<MongoCompressor> compressorList,
CommandListener commandListener,
InternalConnectionInitializer connectionInitializer) |
Modifier and Type | Field and Description |
---|---|
private ServerId |
ConnectionPoolOpenedEvent.serverId |
private ServerId |
ConnectionPoolWaitQueueEnteredEvent.serverId |
private ServerId |
ConnectionPoolClosedEvent.serverId |
private ServerId |
ConnectionPoolWaitQueueExitedEvent.serverId |
private ServerId |
ServerOpeningEvent.serverId |
private ServerId |
ServerClosedEvent.serverId |
private ServerId |
ServerDescriptionChangedEvent.serverId |
Modifier and Type | Method and Description |
---|---|
ServerId |
ConnectionPoolOpenedEvent.getServerId()
Gets the server id
|
ServerId |
ConnectionPoolWaitQueueEnteredEvent.getServerId()
Gets the server id.
|
ServerId |
ConnectionPoolClosedEvent.getServerId()
Gets the server id
|
ServerId |
ConnectionPoolWaitQueueExitedEvent.getServerId()
Gets the server id.
|
ServerId |
ServerOpeningEvent.getServerId()
Gets the serverId.
|
ServerId |
ServerClosedEvent.getServerId()
Gets the serverId.
|
ServerId |
ServerDescriptionChangedEvent.getServerId()
Gets the serverId.
|
Constructor and Description |
---|
ConnectionPoolClosedEvent(ServerId serverId)
Constructs a new instance of the event.
|
ConnectionPoolOpenedEvent(ServerId serverId,
ConnectionPoolSettings settings)
Constructs a new instance of the event.
|
ConnectionPoolWaitQueueEnteredEvent(ServerId serverId)
Construct an instance.
|
ConnectionPoolWaitQueueExitedEvent(ServerId serverId)
Construct an instance.
|
ServerClosedEvent(ServerId serverId)
Construct an instance.
|
ServerDescriptionChangedEvent(ServerId serverId,
ServerDescription newDescription,
ServerDescription previousDescription)
Construct an instance.
|
ServerOpeningEvent(ServerId serverId)
Construct an instance.
|
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentMap<ServerId,ConnectionPoolStatistics> |
JMXConnectionPoolListener.map |
Modifier and Type | Method and Description |
---|---|
(package private) ConnectionPoolStatisticsMBean |
JMXConnectionPoolListener.getMBean(ServerId serverId) |
(package private) java.lang.String |
JMXConnectionPoolListener.getMBeanObjectName(ServerId serverId) |
private ConnectionPoolStatistics |
JMXConnectionPoolListener.getStatistics(ServerId serverId) |