Class: Synapse::DockerWatcher

Inherits:
BaseWatcher show all
Defined in:
lib/synapse/service_watcher/docker.rb

Constant Summary

Constants inherited from BaseWatcher

BaseWatcher::LEADER_WARN_INTERVAL

Instance Attribute Summary

Attributes inherited from BaseWatcher

#haproxy, #name

Instance Method Summary collapse

Methods inherited from BaseWatcher

#backends, #initialize, #ping?, #stop

Methods included from Logging

configure_logger_for, #log, logger_for

Constructor Details

This class inherits a constructor from Synapse::BaseWatcher

Instance Method Details

#startObject


6
7
8
9
10
11
# File 'lib/synapse/service_watcher/docker.rb', line 6

def start
  @check_interval = @discovery['check_interval'] || 15.0
  @watcher = Thread.new do
    watch
  end
end