Package | Description |
---|---|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
Modifier and Type | Method and Description |
---|---|
ServerDescription.Builder |
ServerDescription.Builder.address(ServerAddress address)
Sets the address of the server.
|
ServerDescription.Builder |
ServerDescription.Builder.arbiters(Set<String> arbiters)
Sets the arbiters in the replica set
|
static ServerDescription.Builder |
ServerDescription.builder()
Gets a Builder for creating a new ServerDescription instance.
|
ServerDescription.Builder |
ServerDescription.Builder.canonicalAddress(String canonicalAddress)
Sets the canonical host name and port of this server.
|
ServerDescription.Builder |
ServerDescription.Builder.electionId(ObjectId electionId)
Sets the electionId reported by this server.
|
ServerDescription.Builder |
ServerDescription.Builder.exception(Throwable exception)
Sets the exception thrown while attempting to determine the server description.
|
ServerDescription.Builder |
ServerDescription.Builder.hosts(Set<String> hosts)
Sets all members of the replica set that are neither hidden, passive, nor arbiters.
|
ServerDescription.Builder |
ServerDescription.Builder.maxDocumentSize(int maxDocumentSize)
The maximum permitted size of a BSON object in bytes for this mongod process.
|
ServerDescription.Builder |
ServerDescription.Builder.maxWireVersion(int maxWireVersion)
The latest version of the wire protocol that this MongoDB server is capable of using to communicate with clients.
|
ServerDescription.Builder |
ServerDescription.Builder.minWireVersion(int minWireVersion)
The earliest version of the wire protocol that this MongoDB server is capable of using to communicate with clients.
|
ServerDescription.Builder |
ServerDescription.Builder.ok(boolean ok)
The isOK() result from requesting this information from MongoDB
|
ServerDescription.Builder |
ServerDescription.Builder.passives(Set<String> passives)
Sets the passive members of the replica set.
|
ServerDescription.Builder |
ServerDescription.Builder.primary(String primary)
Sets the address of the current primary in the replica set
|
ServerDescription.Builder |
ServerDescription.Builder.roundTripTime(long roundTripTime,
TimeUnit timeUnit)
Set the time it took to make the round trip for requesting this information from the server
|
ServerDescription.Builder |
ServerDescription.Builder.setName(String setName)
Sets the name of the replica set
|
ServerDescription.Builder |
ServerDescription.Builder.setVersion(Integer setVersion)
Sets the setVersion reported by this server.
|
ServerDescription.Builder |
ServerDescription.Builder.state(ServerConnectionState state)
The current state of the connection to the server.
|
ServerDescription.Builder |
ServerDescription.Builder.tagSet(TagSet tagSet)
A set of any tags assigned to this member.
|
ServerDescription.Builder |
ServerDescription.Builder.type(ServerType type)
Sets the type of the server, for example whether it's a standalone or in a replica set.
|
ServerDescription.Builder |
ServerDescription.Builder.version(ServerVersion version)
Sets the server version
|
Copyright © 2016. All Rights Reserved.