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

Constructors

Properties

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

Accessors

  • get allHosts(): string[]
  • Returns string[]

  • get host(): string
  • Returns string

  • get hostAddress(): HostAddress
  • Returns HostAddress

  • get isDataBearing(): boolean
  • Is this server data bearing

    Returns boolean

  • get isReadable(): boolean
  • Is this server available for reads

    Returns boolean

  • get isWritable(): boolean
  • Is this server available for writes

    Returns boolean

  • get port(): number
  • Returns number

Methods

  • Determines if another ServerDescription is equal to this one per the rules defined in the spec

    Parameters

    Returns boolean

Generated using TypeDoc