Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ServerDescription

The client's view of a single server, based on the most recent hello outcome.

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