Class: ProxyMgr::ServiceConfig::Zookeeper

Inherits:
Base
  • Object
show all
Includes:
Logging
Defined in:
lib/proxymgr/service_config/zookeeper.rb

Instance Method Summary collapse

Methods included from Logging

disable!, #logger, logger

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from ProxyMgr::ServiceConfig::Base

Instance Method Details

#startObject



9
10
11
12
13
14
15
16
17
# File 'lib/proxymgr/service_config/zookeeper.rb', line 9

def start
  @services = {}

  @client     = Zoology::Client.new(@config['servers'])
  @path_cache = Zoology::PathCache.new(@client,
                                       @config['path'],
                                       &method(:watch))
  @client.connect
end