123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Server::PushMonitor::Connection Private

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Mongo::Server::Monitor::Connection
Defined in: lib/mongo/server/push_monitor/connection.rb

Overview

Since:

  • 2.0.0

Constant Summary

::Mongo::Server::ConnectionCommon - Inherited

HELLO_DOC, LEGACY_HELLO_DOC

::Mongo::Loggable - Included

PREFIX

Class Method Summary

::Mongo::Server::Monitor::Connection - Inherited

.new

Creates a new connection object to the specified target address with the specified options.

Instance Attribute Summary

::Mongo::Server::Monitor::Connection - Inherited

::Mongo::Server::ConnectionCommon - Inherited

#compressor

The compressor negotiated during the handshake for this connection, if any.

#connected?

Determine if the connection is currently connected.

#pid, #socket

Instance Method Summary

::Mongo::Server::Monitor::Connection - Inherited

#check_document

Build a document that should be used for connection check.

#connect!

Establishes a network connection to the target address.

#disconnect!

Disconnect the connection.

#dispatch

Sends a message and returns the result.

#dispatch_bytes

Sends a preserialized message and returns the result.

#handshake!

Send handshake command to connected host and validate the response.

#read_response,
#socket_timeout

Returns the monitoring socket timeout.

#write_bytes, #add_server_connection_id,
#set_hello_ok!

Update @hello_ok flag according to server reply to legacy hello command.

::Mongo::Loggable - Included

#log_debug

Convenience method to log debug messages with the standard prefix.

#log_error

Convenience method to log error messages with the standard prefix.

#log_fatal

Convenience method to log fatal messages with the standard prefix.

#log_info

Convenience method to log info messages with the standard prefix.

#log_warn

Convenience method to log warn messages with the standard prefix.

#logger

Get the logger instance.

#_mongo_log_prefix, #format_message

::Mongo::Server::ConnectionCommon - Inherited

#handshake_command

Build a command that should be used for connection handshake.

#handshake_document

Build a document that should be used for connection handshake.

#add_server_diagnostics

Yields to the block and, if the block raises an exception, adds a note to the exception with the address of the specified server.

#ensure_connected, #set_compressor!, #ssl_options

Instance Method Details

#socket_timeout

Since:

  • 2.0.0

[ GitHub ]

  
# File 'lib/mongo/server/push_monitor/connection.rb', line 25

def socket_timeout
  options[:socket_timeout]
end