Class

com.twitter.finagle.serverset2

Zk2Resolver

Related Doc: package serverset2

Permalink

class Zk2Resolver extends Resolver

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Zk2Resolver
  2. Resolver
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Zk2Resolver()

    Permalink
  2. new Zk2Resolver(statsReceiver: StatsReceiver)

    Permalink
  3. new Zk2Resolver(statsReceiver: StatsReceiver, stabilizerWindow: Duration, unhealthyWindow: Duration)

    Permalink
  4. new Zk2Resolver(statsReceiver: StatsReceiver, stabilizerWindow: Duration, unhealthyWindow: Duration, timer: Timer)

    Permalink
  5. new Zk2Resolver(statsReceiver: StatsReceiver, stabilizerWindow: Duration, unhealthyWindow: Duration, inetResolver: InetResolver, timer: Timer)

    Permalink

    statsReceiver

    maintains stats and gauges used in resolution

    stabilizerWindow

    the window over which we stabilize updates from zk as per the semantics of the Stabilizer.

    unhealthyWindow

    how long must the zk client be unhealthy before reporting trouble

    inetResolver

    used to perform address resolution

    timer

    timer to use for stabilization and zk sessions

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def bind(arg: String): Var[Addr]

    Permalink

    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)

    Definition Classes
    Zk2Resolver → Resolver
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. val scheme: String

    Permalink
    Definition Classes
    Zk2Resolver → Resolver
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Resolver

Inherited from AnyRef

Inherited from Any

Ungrouped