Class: Mongo::Monitoring::Event::Cmap::ConnectionClosed
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_closed.rb |
Overview
::Mongo::Monitoring::Event
published when a connection is closed.
Constant Summary
-
ERROR =
:error
-
HANDSHAKE_FAILED =
:handshake_failed
-
IDLE =
:idle
-
POOL_CLOSED =
:pool_closed
-
STALE =
:stale
-
UNKNOWN =
:unknown
Class Method Summary
-
.new(address, id, reason) ⇒ ConnectionClosed
constructor
Internal use only
Internal use only
Create the event.
Instance Attribute Summary
- #address ⇒ Mongo::Address readonly
- #connection_id ⇒ Integer readonly
- #reason ⇒ Symbol readonly
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 ⇒ Mongo::Address (readonly)
# File 'lib/mongo/monitoring/event/cmap/connection_closed.rb', line 75
attr_reader :address
#connection_id ⇒ Integer
(readonly)
# File 'lib/mongo/monitoring/event/cmap/connection_closed.rb', line 64
attr_reader :connection_id
#reason ⇒ Symbol (readonly)
# File 'lib/mongo/monitoring/event/cmap/connection_closed.rb', line 69
attr_reader :reason
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_closed.rb', line 98
def summary "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::Cmap::/, '')} " + "address=#{address} connection_id=#{connection_id} reason=#{reason}>" end