Class: Mongo::Cluster::Topology::ReplicaSetWithPrimary

Inherits:
ReplicaSetNoPrimary show all
Defined in:
lib/mongo/cluster/topology/replica_set_with_primary.rb

Overview

Defines behavior when a cluster is in replica set topology, and is a no primary which has been discovered by the driver.

Since:

  • 2.7.0

Constant Summary

Constants inherited from ReplicaSetNoPrimary

Mongo::Cluster::Topology::ReplicaSetNoPrimary::NAME

Constants included from Loggable

Loggable::PREFIX

Instance Attribute Summary

Attributes inherited from Base

#compatibility_error, #logical_session_timeout, #monitoring, #options, #server_descriptions

Attributes included from Monitoring::Publishable

#monitoring

Method Summary

Methods inherited from ReplicaSetNoPrimary

#display_name, #has_readable_server?, #has_writable_server?, #replica_set?, #servers, #sharded?, #single?, #summary, #unknown?

Methods inherited from Base

#addresses, #compatible?, #data_bearing_servers?, #initialize, #max_election_id, #max_set_version, #new_max_election_id, #new_max_set_version, #replica_set_name, #server_hosts_match_any?

Methods included from Monitoring::Publishable

#publish_cmap_event, #publish_event, #publish_sdam_event

Methods included from Loggable

#log_debug, #log_error, #log_fatal, #log_info, #log_warn, #logger

Constructor Details

This class inherits a constructor from Mongo::Cluster::Topology::Base