class Mongo::Monitoring::Event::TopologyOpening

Event fired when the topology is opening.

@since 2.4.0

Attributes

topology[R]

@return [ Topology ] topology The topology.

Public Class Methods

new(topology) click to toggle source

Create the event.

@example Create the event.

TopologyOpening.new(topology)

@param [ Integer ] topology The topology.

@since 2.4.0

# File lib/mongo/monitoring/event/topology_opening.rb, line 35
def initialize(topology)
  @topology = topology
end

Public Instance Methods

inspect() click to toggle source

Returns a concise yet useful summary of the event.

@return [ String ] String summary of the event.

@since 2.6.0

# File lib/mongo/monitoring/event/topology_opening.rb, line 44
def inspect
  "#<#{self.class} topology=#{topology.class.name.sub(/.*::/, '')}>"
end