Class: Synapse::ServiceWatcher::MarathonWatcher
- Inherits:
-
BaseWatcher
- Object
- BaseWatcher
- Synapse::ServiceWatcher::MarathonWatcher
- Defined in:
- lib/synapse/service_watcher/marathon.rb
Constant Summary
Constants inherited from BaseWatcher
BaseWatcher::LEADER_WARN_INTERVAL
Instance Attribute Summary
Attributes inherited from BaseWatcher
Instance Method Summary collapse
Methods inherited from BaseWatcher
#backends, #config_for_generator, #haproxy, #initialize, #ping?
Methods included from Logging
configure_logger_for, #log, logger_for
Constructor Details
This class inherits a constructor from Synapse::ServiceWatcher::BaseWatcher
Instance Method Details
#start ⇒ Object
8 9 10 11 12 |
# File 'lib/synapse/service_watcher/marathon.rb', line 8 def start @check_interval = @discovery['check_interval'] || 10.0 @connection = nil @watcher = Thread.new { sleep splay; watch } end |
#stop ⇒ Object
14 15 16 17 18 |
# File 'lib/synapse/service_watcher/marathon.rb', line 14 def stop @connection.finish rescue # pass end |