123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Monitoring::Event::Cmap::ConnectionCheckOutFailed

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Mongo::Monitoring::Event::Cmap::Base
Defined in: lib/mongo/monitoring/event/cmap/connection_check_out_failed.rb

Overview

::Mongo::Monitoring::Event published when a connection is unable to be checked out of a pool.

Since:

  • 2.9.0

Constant Summary

Class Method Summary

Instance Attribute Summary

Instance Method Summary

::Mongo::Event::Base - Inherited

#summary

Returns a concise yet useful summary of the event.

#short_class_name

Instance Attribute Details

#addressMongo::Address (readonly)

Returns:

  • (Mongo::Address)

    address The address of the server the connection would have connected to.

Since:

  • 2.9.0

[ GitHub ]

  
# File 'lib/mongo/monitoring/event/cmap/connection_check_out_failed.rb', line 52

attr_reader :address

#reasonSymbol (readonly)

Returns:

  • (Symbol)

    reason The reason a connection was unable to be acquired.

Since:

  • 2.9.0

[ GitHub ]

  
# File 'lib/mongo/monitoring/event/cmap/connection_check_out_failed.rb', line 58

attr_reader :reason

Instance Method Details

#summaryString

Note:

This method is experimental and subject to change.

Returns a concise yet useful summary of the event.

Returns:

  • (String)

    String summary of the event.

Since:

  • 2.9.0

[ GitHub ]

  
# File 'lib/mongo/monitoring/event/cmap/connection_check_out_failed.rb', line 80

def summary
  "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::Cmap::/, '')} address=#{address} " +
      "reason=#{reason}>"
end