Package | Description |
---|---|
com.allanbank.mongodb.client |
Provides implementations of the main client interfaces and classes to translate the
Reply (s) from the server. |
com.allanbank.mongodb.client.message |
Low level messages to be sent to the MongoDB server.
|
com.allanbank.mongodb.client.state |
Support for tracking the state of a set of MongoDB servers.
|
com.allanbank.mongodb.error |
Exceptions for common MongoDB error conditions.
|
Modifier and Type | Method and Description |
---|---|
VersionRange |
Message.getRequiredVersionRange()
Returns the required version range for the message.
|
VersionRange |
ClusterStats.getServerVersionRange()
Returns the range of versions that we currently see within the cluster.
|
static VersionRange |
VersionRange.maximum(Version maxVersion)
Returns a
VersionRange that is only limited by a maximum version. |
static VersionRange |
VersionRange.minimum(Version minVersion)
Returns a
VersionRange that is only limited by a minimum version. |
static VersionRange |
VersionRange.range(Version minVersion,
Version maxVersion)
Returns a
VersionRange based on the minimum and maximum versions
provided. |
Modifier and Type | Field and Description |
---|---|
static VersionRange |
CreateIndexCommand.REQUIRED_VERSION_RANGE
The required server version range for the
createIndexes command. |
static VersionRange |
BatchedWriteCommand.REQUIRED_VERSION_RANGE
The required server version range for the
BatchedWrite command. |
Modifier and Type | Method and Description |
---|---|
VersionRange |
AbstractMessage.getRequiredVersionRange()
Returns the required version range for the message.
|
static VersionRange |
QueryVersionVisitor.version(Document query)
Helper to returns the required server version to support the query
operators.
|
Constructor and Description |
---|
AbstractMessage(String databaseName,
String collectionName,
ReadPreference readPreference,
VersionRange versionRange)
Creates a new AbstractMessage.
|
AggregateCommand(Aggregate aggregation,
String databaseName,
String collectionName,
Document commandDocument,
ReadPreference readPreference,
VersionRange requiredServerVersion)
Create a new AggregateCommand.
|
Command(String databaseName,
String collectionName,
Document commandDocument,
Document routingDocument,
ReadPreference readPreference,
VersionRange requiredServerVersion)
Create a new Command.
|
Command(String databaseName,
String collectionName,
Document commandDocument,
ReadPreference readPreference,
VersionRange requiredServerVersion)
Create a new Command.
|
Insert(String databaseName,
String collectionName,
List<Document> documents,
boolean continueOnError,
VersionRange requiredServerVersion)
Creates a new Insert.
|
Modifier and Type | Field and Description |
---|---|
protected VersionRange |
Cluster.myServerVersionRange
The range of versions within the cluster.
|
Modifier and Type | Method and Description |
---|---|
VersionRange |
Cluster.getServerVersionRange()
Returns the range of versions that we currently see within the cluster.
|
Constructor and Description |
---|
ServerVersionException(String operation,
VersionRange range,
Version actual,
Message message)
Creates a new ServerVersionException.
|
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.