Class Mongo::Event::DescriptionChanged
In: lib/mongo/event/description_changed.rb
Parent: Base

This handles a change in description.

@since 2.0.6

Methods

handle   new  

Attributes

cluster  [R]  @return [ Mongo::Cluster ] cluster The cluster.

Public Class methods

Initialize the new host added event handler.

@example Create the new handler.

  ServerAdded.new(cluster)

@param [ Mongo::Cluster ] cluster The cluster to publish from.

@since 2.0.0

Public Instance methods

This event publishes an event to add the cluster and logs the configuration change.

@param [ Server::Description ] previous_desc Previous server description. @param [ Server::Description ] updated_desc The changed description.

@since 2.0.0

[Validate]