Package | Description |
---|---|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Field and Description |
---|---|
private ServerVersion |
ConnectionDescription.serverVersion |
private ServerVersion |
MessageSettings.serverVersion |
private ServerVersion |
MessageSettings.Builder.serverVersion |
private ServerVersion |
ServerDescription.version |
private ServerVersion |
ServerDescription.Builder.version |
Modifier and Type | Method and Description |
---|---|
ServerVersion |
ConnectionDescription.getServerVersion()
Gets the version of the server.
|
ServerVersion |
MessageSettings.getServerVersion() |
ServerVersion |
ServerDescription.getVersion()
Gets the server version
|
(package private) static ServerVersion |
DescriptionHelper.getVersion(BsonDocument buildInfoResult) |
Modifier and Type | Method and Description |
---|---|
int |
ServerVersion.compareTo(ServerVersion o) |
(package private) static ServerDescription |
DescriptionHelper.createServerDescription(ServerAddress serverAddress,
BsonDocument isMasterResult,
ServerVersion serverVersion,
long roundTripTime) |
MessageSettings.Builder |
MessageSettings.Builder.serverVersion(ServerVersion serverVersion) |
ServerDescription.Builder |
ServerDescription.Builder.version(ServerVersion version)
Sets the server version
|
Constructor and Description |
---|
ConnectionDescription(ConnectionId connectionId,
ServerVersion serverVersion,
ServerType serverType,
int maxBatchCount,
int maxDocumentSize,
int maxMessageSize)
Construct an instance.
|
ConnectionDescription(ConnectionId connectionId,
ServerVersion serverVersion,
ServerType serverType,
int maxBatchCount,
int maxDocumentSize,
int maxMessageSize,
java.util.List<java.lang.String> compressors)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
(package private) static boolean |
OperationHelper.serverIsAtLeastVersion(ConnectionDescription description,
ServerVersion serverVersion) |