Class MongoServerInstance
Represents an instance of a MongoDB server host.
public sealed class MongoServerInstance
- Inheritance
-
MongoServerInstance
- Inherited Members
- Extension Methods
Properties
- Address
Gets the address of this server instance.
- InstanceType
Gets the instance type.
- IsArbiter
Gets a value indicating whether this server instance is an arbiter instance.
- IsPassive
Gets a value indicating whether this server instance is a passive instance.
- IsPrimary
Gets a value indicating whether this server instance is a primary.
- IsSecondary
Gets a value indicating whether this server instance is a secondary.
- MaxBatchCount
Gets the maximum batch count for write operations.
- MaxDocumentSize
Gets the max document size for this server instance.
- MaxMessageLength
Gets the max message length for this server instance.
- MaxWireDocumentSize
Gets the maximum size of a wire document. Normally slightly larger than MaxDocumentSize.
- MaxWireVersion
Gets the maximum wire version.
- SequentialId
Gets the unique sequential Id for this server instance.
- Settings
Gets the server for this server instance.
- State
Gets the state of this server instance.
Methods
- GetIPEndPoint()
Gets the IP end point of this server instance.
- GetServerDescription()
Gets the server description.
- Ping()
Checks whether the server is alive (throws an exception if not).
- Supports(FeatureId)
Checks whether this server instance supports a feature.
Events
- StateChanged
Occurs when the value of the State property changes.