Class: Triglav::Agent::Base::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/triglav/agent/base/connection.rb

Overview

An abstract base class of Connection.

Wrap a connection to a storage. You can implement any methods which you want to use in your Monitor class.

You have to implement following methods:

  • initialize

An instance is created for each `resource_uri_prefix`, that is, shared among resources with of same `resource_uri_prefix`.

Note that multiple connections would be created, one connection for one parallel thread basically.

Instance Method Summary collapse

Constructor Details

#initialize(connection_info) ⇒ Connection

Returns a new instance of Connection

Parameters:

  • connection_info (Hash)

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/triglav/agent/base/connection.rb', line 19

def initialize(connection_info)
  raise NotImplementedError
end