Class ServerDescription

The client's view of a single server, based on the most recent hello outcome.基于最近的hello结果的单个服务器的客户端视图。

Internal type, not meant to be directly instantiated内部类型,不意味着要直接实例化

Hierarchy

  • ServerDescription

Properties

$clusterTime?: ClusterTime
address: string
arbiters: string[]
electionId: null | ObjectId
error: null | MongoError
hosts: string[]
lastUpdateTime: number
lastWriteDate: number
logicalSessionTimeoutMinutes: null | number
maxWireVersion: number
me: null | string
minWireVersion: number
passives: string[]
primary: null | string
roundTripTime: number
setName: null | string
setVersion: null | number
tags: TagSet
topologyVersion: null | TopologyVersion

Accessors

Methods

  • Determines if another ServerDescription is equal to this one per the rules defined in the spec根据规范中定义的规则,确定另一个ServerDescription是否等于此ServerDescription

    Parameters

    Returns boolean

Generated using TypeDoc