Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index索引

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访问器

  • get allHosts(): string[]
  • get host(): string
  • get isDataBearing(): boolean
  • get isReadable(): boolean
  • get isWritable(): boolean
  • get port(): number

Methods方法

Generated using TypeDoc