Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ServerDescription

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

Internal type, not meant to be directly instantiated

Hierarchy

  • ServerDescription

Index

Constructors

constructor

Properties

Optional $clusterTime

$clusterTime: ClusterTime

Private _hostAddress

_hostAddress: HostAddress

address

address: string

arbiters

arbiters: string[]

Optional electionId

electionId: ObjectId

Optional error

error: MongoError

hosts

hosts: string[]

lastUpdateTime

lastUpdateTime: number

lastWriteDate

lastWriteDate: number

Optional logicalSessionTimeoutMinutes

logicalSessionTimeoutMinutes: number

maxWireVersion

maxWireVersion: number

Optional me

me: string

minWireVersion

minWireVersion: number

passives

passives: string[]

Optional primary

primary: string

roundTripTime

roundTripTime: number

Optional setName

setName: string

Optional setVersion

setVersion: number

tags

tags: TagSet

Optional topologyVersion

topologyVersion: TopologyVersion

type

Accessors

allHosts

  • get allHosts(): string[]

host

  • get host(): string

hostAddress

isDataBearing

  • get isDataBearing(): boolean

isReadable

  • get isReadable(): boolean

isWritable

  • get isWritable(): boolean

port

  • get port(): number

Methods

equals

Generated using TypeDoc