class Triglav::Agent::Base::Connection
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
-
close
An instance is created for each `resource_uri_prefix`, that is, shared among resources with of same `resource_uri_prefix`.
Note that multiple connection instances would be created when multiple parallel threads are created in Processor
class.
Public Class Methods
new(connection_info)
click to toggle source
@param [Hash] connection_info
# File lib/triglav/agent/base/connection.rb, line 20 def initialize(connection_info) raise NotImplementedError end
Public Instance Methods
close()
click to toggle source
close the connection
# File lib/triglav/agent/base/connection.rb, line 25 def close raise NotImplementedError end