Class: Mongo::Monitoring::Event::TopologyChanged
 Inherits:

Object
 Object
 Mongo::Monitoring::Event::TopologyChanged
 Defined in:
 lib/mongo/monitoring/event/topology_changed.rb
Overview
Event fired when the topology changes.
Instance Attribute Summary collapse

#new_topology ⇒ Cluster::Topology
readonly
New_topology The new topology.

#previous_topology ⇒ Cluster::Topology
readonly
Previous_topology The previous topology.
Instance Method Summary collapse

#initialize(previous_topology, new_topology) ⇒ TopologyChanged
constructor
Create the event.
Constructor Details
#initialize(previous_topology, new_topology) ⇒ TopologyChanged
Create the event.
39 40 41 42 
# File 'lib/mongo/monitoring/event/topology_changed.rb', line 39 def initialize(previous_topology, new_topology) @previous_topology = previous_topology @new_topology = new_topology end 
Instance Attribute Details
#new_topology ⇒ Cluster::Topology (readonly)
Returns new_topology The new topology.
28 29 30 
# File 'lib/mongo/monitoring/event/topology_changed.rb', line 28 def new_topology @new_topology end 
#previous_topology ⇒ Cluster::Topology (readonly)
Returns previous_topology The previous topology.
25 26 27 
# File 'lib/mongo/monitoring/event/topology_changed.rb', line 25 def previous_topology @previous_topology end 