com.twitter.finagle.memcached

ZookeeperCacheNodeGroup

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
ZookeeperStateMonitor, Group[CacheNode], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ZookeeperCacheNodeGroup
  2. ZookeeperStateMonitor
  3. Group
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

    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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    Group
  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. final def apply(): Set[CacheNode]

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

    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
  9. def applyZKData(data: Array[Byte]): Unit

    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
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

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

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

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

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

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

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

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

    Definition Classes
    Any
  19. def loadZKChildren: () ⇒ Unit

    Definition Classes
    ZookeeperStateMonitor
  20. def loadZKData: () ⇒ Unit

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

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

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

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

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def reconnectZK: () ⇒ Unit

    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
  28. final lazy val ref: AtomicReference[Set[CacheNode]]

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

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

    Optional, the destination to report the stats to

    Optional, the destination to report the stats to

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

    Definition Classes
    AnyRef
  32. def toString(): String

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

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

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

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

    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
  37. val zkPath: String

    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