zookeeper: added config description [#METR-10172]

This commit is contained in:
Pavel Kartavyy 2014-03-13 18:56:31 +04:00
parent 420d5696ea
commit 4384ba0009

View File

@ -20,6 +20,19 @@ class ZooKeeper
public:
ZooKeeper(const std::string & hosts, int32_t sessionTimeoutMs = DEFAULT_SESSION_TIMEOUT, WatchFunction * watch = nullptr);
/** конфиг вида
<zookeeper>
<node>
<host>example1</host>
<port>2181</port>
</node>
<node>
<host>example2</host>
<port>2181</port>
</node>
<session_timeout_ms>30000</session_timeout_ms>
</zookeeper>
*/
ZooKeeper(const Poco::Util::LayeredConfiguration & config, const std::string & config_name,
WatchFunction * watch = nullptr);