Class

com.twitter.finagle.cacheresolver

ZookeeperCacheNodeGroup

Related Doc: package cacheresolver

Permalink

class ZookeeperCacheNodeGroup extends Group[CacheNode] with ZookeeperStateMonitor

Zookeeper based cache node group with a serverset as the underlying pool. It will monitor the underlying serverset changes and report the detected underlying pool size. It will monitor the serverset parent node for cache pool config data, cache node group update will be triggered whenever cache config data change event happens.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ZookeeperCacheNodeGroup
  2. ZookeeperStateMonitor
  3. Group
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ZookeeperCacheNodeGroup(zkPath: String, zkClient: ZooKeeperClient, statsReceiver: StatsReceiver = NullStatsReceiver)

    Permalink

    zkPath

    the zookeeper path representing the cache pool

    zkClient

    zookeeper client talking to the zookeeper, it will only be used to read zookeeper

    statsReceiver

    Optional, the destination to report the stats to

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: Group[CacheNode]): Group[CacheNode]

    Permalink
    Definition Classes
    Group
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def apply(): Set[CacheNode]

    Permalink
    Definition Classes
    Group
  6. def applyZKChildren(children: List[String]): Unit

    Permalink

    Load the zookeeper node children as well as leaving a children watch, then invoke the applyZKChildren implementation to process the children list.

    Load the zookeeper node children as well as leaving a children watch, then invoke the applyZKChildren implementation to process the children list.

    Definition Classes
    ZookeeperCacheNodeGroupZookeeperStateMonitor
  7. def applyZKData(data: Array[Byte]): Unit

    Permalink

    Load the zookeeper node data as well as leaving a data watch, then invoke the applyZKData implementation to process the data string.

    Load the zookeeper node data as well as leaving a data watch, then invoke the applyZKData implementation to process the data string.

    Definition Classes
    ZookeeperCacheNodeGroupZookeeperStateMonitor
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def collect[U](f: PartialFunction[CacheNode, U]): Group[U]

    Permalink
    Definition Classes
    Group
  11. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  17. def loadZKChildren: () ⇒ Unit

    Permalink
    Definition Classes
    ZookeeperStateMonitor
  18. def loadZKData: () ⇒ Unit

    Permalink
    Definition Classes
    ZookeeperStateMonitor
  19. def map[U](f: (CacheNode) ⇒ U): Group[U]

    Permalink
    Definition Classes
    Group
  20. final def members: Set[CacheNode]

    Permalink
    Definition Classes
    Group
  21. def named(n: String): Group[CacheNode]

    Permalink
    Definition Classes
    Group
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  25. def reconnectZK: () ⇒ Unit

    Permalink

    Reconnect to the zookeeper, this maybe invoked when zookeeper connection expired and the node data watcher previously registered got dropped, hence re-attache the data wather here.

    Reconnect to the zookeeper, this maybe invoked when zookeeper connection expired and the node data watcher previously registered got dropped, hence re-attache the data wather here.

    Definition Classes
    ZookeeperStateMonitor
  26. final lazy val ref: AtomicReference[Set[CacheNode]]

    Permalink
    Attributes
    protected[com.twitter.finagle]
    Definition Classes
    Group
  27. val set: Var[Set[CacheNode]] with Updatable[Set[CacheNode]] with Extractable[Set[CacheNode]]

    Permalink
    Attributes
    protected[com.twitter.finagle]
    Definition Classes
    ZookeeperCacheNodeGroup → Group
  28. val statsReceiver: StatsReceiver

    Permalink

    Optional, the destination to report the stats to

    Optional, the destination to report the stats to

    Attributes
    protected
    Definition Classes
    ZookeeperCacheNodeGroupZookeeperStateMonitor
  29. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. val zkClient: ZooKeeperClient

    Permalink

    zookeeper client talking to the zookeeper, it will only be used to read zookeeper

    zookeeper client talking to the zookeeper, it will only be used to read zookeeper

    Attributes
    protected
    Definition Classes
    ZookeeperCacheNodeGroupZookeeperStateMonitor
  35. val zkPath: String

    Permalink

    the zookeeper path representing the cache pool

    the zookeeper path representing the cache pool

    Attributes
    protected
    Definition Classes
    ZookeeperCacheNodeGroupZookeeperStateMonitor

Inherited from ZookeeperStateMonitor

Inherited from Group[CacheNode]

Inherited from AnyRef

Inherited from Any

Ungrouped