Class: Mongo::Monitoring::Event::ServerOpening

Inherits:
Object
  • Object
show all
Defined in:
lib/mongo/monitoring/event/server_opening.rb

Overview

Event fired when the server is opening.

Since:

  • 2.4.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address, topology) ⇒ ServerOpening

Create the event.

Examples:

Create the event.

ServerOpening.new(address)

Parameters:

  • address (Address)

    The server address.

  • topology (Integer)

    The topology.

Since:

  • 2.4.0



39
40
41
42
# File 'lib/mongo/monitoring/event/server_opening.rb', line 39

def initialize(address, topology)
  @address = address
  @topology = topology
end

Instance Attribute Details

#addressAddress (readonly)

Returns address The server address.

Returns:

  • (Address)

    address The server address.

Since:

  • 2.4.0



25
26
27
# File 'lib/mongo/monitoring/event/server_opening.rb', line 25

def address
  @address
end

#topologyTopology (readonly)

Returns topology The topology.

Returns:

  • (Topology)

    topology The topology.

Since:

  • 2.4.0



28
29
30
# File 'lib/mongo/monitoring/event/server_opening.rb', line 28

def topology
  @topology
end