class Mongo::Monitoring::Event::ServerClosed
Event
fired when the server is closed.
@since 2.4.0
Attributes
address[R]
@return [ Address
] address The server address.
topology[R]
@return [ Topology ] topology The topology.
Public Class Methods
new(address, topology)
click to toggle source
Create the event.
@example Create the event.
ServerClosed.new(address)
@param [ Address
] address The server address. @param [ Integer ] topology The topology.
@since 2.4.0
# File lib/mongo/monitoring/event/server_closed.rb, line 39 def initialize(address, topology) @address = address @topology = topology end
Public Instance Methods
summary()
click to toggle source
Returns a concise yet useful summary of the event.
@return [ String ] String summary of the event.
@note This method is experimental and subject to change.
@since 2.7.0 @api experimental
# File lib/mongo/monitoring/event/server_closed.rb, line 52 def summary "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::/, '')}" + " address=#{address} topology=#{topology.summary}>" end