maintains stats and gauges used in resolution
the window over which we stabilize updates from zk as per the semantics of the Stabilizer.
how long must the zk client be unhealthy before reporting trouble
used to perform address resolution
timer to use for stabilization and zk sessions
Bind a string into a variable address using the zk2 scheme.
Bind a string into a variable address using the zk2 scheme.
NOTE: This specific API doesn't take "zk2!" as a protocol prefix, but when used with just Resolver, "zk2!" is expected as a prefix. Clients should be using the Resolver API rather than this direct interface.
Argument strings must adhere to either of the following formats:
<hosts>:2181!<path> <hosts>:2181!<path>!<endpoint>
where
- <hosts>: The hostname(s) of service discovery ZooKeeper cluster - <path>: A ServerSet path (e.g. /twitter/service/userservice/prod/server) - <endpoint>: An endpoint name (optional)
A com.twitter.finagle.Resolver for the "zk2" service discovery scheme.
Resolution is achieved by looking up registered ServerSet paths within a service discovery ZooKeeper cluster. See
Zk2Resolver.bind
for details.