Class Mongo::Node
In: lib/mongo/util/node.rb
Parent: Object

Methods

Attributes

address  [RW] 
client  [RW] 
host  [RW] 
last_state  [RW] 
port  [RW] 
socket  [RW] 

Public Class methods

Public Instance methods

==(other)

Alias for eql?

This should only be called within a mutex

Create a connection to the provided node, and, if successful, return the socket. Otherwise, return nil.

Return a list of replica set nodes from the config. Note: this excludes arbiters.

Get the configuration for the provided node as returned by the ismaster command. Additionally, check that the replica set name matches with the name provided.

Protected Instance methods

Ensure that this node is a healthy member of a replica set.

Ensure that this node is part of a replica set of the expected name.

[Validate]