Class: Mongo::Monitoring::Event::Cmap::ConnectionCheckedIn
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Base ,
::Mongo::Event::Base
|
|
Instance Chain:
self,
Base ,
::Mongo::Event::Base
|
|
Inherits: |
Mongo::Monitoring::Event::Cmap::Base
|
Defined in: | lib/mongo/monitoring/event/cmap/connection_checked_in.rb |
Overview
::Mongo::Monitoring::Event
published when a connection is returned to a connection pool.
Class Method Summary
-
.new(address, id, pool) ⇒ ConnectionCheckedIn
constructor
Internal use only
Internal use only
Create the event.
Instance Attribute Summary
- #address ⇒ Address readonly
- #connection_id ⇒ Integer readonly
-
#pool ⇒ Mongo::Server::ConnectionPool
readonly
was checked in to.
Instance Method Summary
-
#summary ⇒ String
Returns a concise yet useful summary of the event.
::Mongo::Event::Base
- Inherited
#summary | Returns a concise yet useful summary of the event. |
#short_class_name |
Instance Attribute Details
#address ⇒ Address (readonly)
# File 'lib/mongo/monitoring/event/cmap/connection_checked_in.rb', line 31
attr_reader :address
#connection_id ⇒ Integer
(readonly)
# File 'lib/mongo/monitoring/event/cmap/connection_checked_in.rb', line 36
attr_reader :connection_id
#pool ⇒ Mongo::Server::ConnectionPool (readonly)
was checked in to.
# File 'lib/mongo/monitoring/event/cmap/connection_checked_in.rb', line 43
attr_reader :pool
Instance Method Details
#summary ⇒ String
Note:
This method is experimental and subject to change.
Returns a concise yet useful summary of the event.
# File 'lib/mongo/monitoring/event/cmap/connection_checked_in.rb', line 66
def summary "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::Cmap::/, '')} " + "address=#{address} connection_id=#{connection_id} pool=0x#{pool.object_id}>" end