ServerType

public enum ServerType : String

The possible types for a server.

  • A standalone mongod server.

    Declaration

    Swift

    case standalone = "Standalone"
  • A router to a sharded cluster, i.e. a mongos server.

    Declaration

    Swift

    case mongos = "Mongos"
  • A replica set member which is not yet checked, but another member thinks it is the primary.

    Declaration

    Swift

    case possiblePrimary = "PossiblePrimary"
  • A replica set primary.

    Declaration

    Swift

    case rsPrimary = "RSPrimary"
  • A replica set secondary.

    Declaration

    Swift

    case rsSecondary = "RSSecondary"
  • A replica set arbiter.

    Declaration

    Swift

    case rsArbiter = "RSArbiter"
  • A replica set member that is none of the other types (a passive, for example).

    Declaration

    Swift

    case rsOther = "RSOther"
  • A replica set member that does not report a set name or a hosts list.

    Declaration

    Swift

    case rsGhost = "RSGhost"
  • A server type that is not yet known.

    Declaration

    Swift

    case unknown = "Unknown"