Class: Mongo::Monitoring::Event::Cmap::PoolCleared
- Inherits:
-
Base
- Object
- Event::Base
- Base
- Mongo::Monitoring::Event::Cmap::PoolCleared
- Defined in:
- lib/mongo/monitoring/event/cmap/pool_cleared.rb
Overview
Event published when a connection pool is cleared.
Instance Attribute Summary collapse
-
#address ⇒ Mongo::Address
readonly
Address The address of the server the pool’s connections will connect to.
Instance Method Summary collapse
-
#initialize(address) ⇒ PoolCleared
constructor
private
Create the event.
-
#summary ⇒ String
Returns a concise yet useful summary of the event.
Constructor Details
#initialize(address) ⇒ PoolCleared
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create the event.
38 39 40 |
# File 'lib/mongo/monitoring/event/cmap/pool_cleared.rb', line 38 def initialize(address) @address = address end |
Instance Attribute Details
#address ⇒ Mongo::Address (readonly)
Returns address The address of the server the pool’s connections will connect to.
29 30 31 |
# File 'lib/mongo/monitoring/event/cmap/pool_cleared.rb', line 29 def address @address end |
Instance Method Details
#summary ⇒ String
Note:
This method is experimental and subject to change.
Returns a concise yet useful summary of the event.
50 51 52 |
# File 'lib/mongo/monitoring/event/cmap/pool_cleared.rb', line 50 def summary "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::Cmap::/, '')} address=#{address}>" end |