Click or drag to resize

ServerDescription Class

Represents information about a server.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.Core.ServersServerDescription

Namespace:  MongoDB.Driver.Core.Servers
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
Syntax
public sealed class ServerDescription : IEquatable<ServerDescription>

The ServerDescription type exposes the following members.

Constructors
  NameDescription
Public methodServerDescription
Initializes a new instance of the ServerDescription class.
Top
Properties
  NameDescription
Public propertyAverageRoundTripTime
Gets the average round trip time.
Public propertyCanonicalEndPoint
Gets the canonical end point. This is the endpoint that the cluster knows this server by. Currently, it only applies to a replica set config and will match what is in the replica set configuration.
Public propertyElectionId
Gets the election identifier.
Public propertyEndPoint
Gets the end point.
Public propertyHeartbeatException
Gets the most recent heartbeat exception.
Public propertyHeartbeatInterval
Gets the heartbeat interval.
Public propertyIsCompatibleWithDriver
Gets a value indicating whether this server is compatible with the driver.
Public propertyIsDataBearing
Gets a value indicating whether this instance is a data bearing server.
Public propertyLastUpdateTimestamp
Gets the last update timestamp (when the ServerDescription itself was last updated).
Public propertyLastWriteTimestamp
Gets the last write timestamp (from the lastWrite field of the isMaster result).
Public propertyLogicalSessionTimeout
Gets the logical session timeout.
Public propertyMaxBatchCount
Gets the maximum number of documents in a batch.
Public propertyMaxDocumentSize
Gets the maximum size of a document.
Public propertyMaxMessageSize
Gets the maximum size of a message.
Public propertyMaxWireDocumentSize
Gets the maximum size of a wire document.
Public propertyReplicaSetConfig
Gets the replica set configuration.
Public propertyServerId
Gets the server identifier.
Public propertyState
Gets the server state.
Public propertyTags
Gets the replica set tags.
Public propertyType
Gets the server type.
Public propertyVersion
Gets the server version.
Public propertyWireVersionRange
Gets the wire version range.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(ServerDescription)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodWith
Returns a new instance of ServerDescription with some values changed.
Public methodWithHeartbeatException
Returns a new ServerDescription with a new HeartbeatException.
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also