Class: Synapse::ServiceWatcher::DockerWatcher

Inherits:
BaseWatcher
  • Object
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

#name, #revision

Instance Method Summary collapse

Methods inherited from BaseWatcher

#backends, #config_for_generator, #haproxy, #initialize, #ping?, #stop

Methods included from Logging

configure_logger_for, #log, logger_for

Constructor Details

This class inherits a constructor from Synapse::ServiceWatcher::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