com.twitter.finagle.memcached

ZookeeperCachePoolCluster

class ZookeeperCachePoolCluster extends CachePoolCluster with ZookeeperStateMonitor

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

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ZookeeperCachePoolCluster
  2. ZookeeperStateMonitor
  3. CachePoolCluster
  4. Cluster
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. 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
    ZookeeperStateMonitor
  7. 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
    ZookeeperCachePoolClusterZookeeperStateMonitor
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

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

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

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

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

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

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

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

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

    Definition Classes
    ZookeeperStateMonitor
  18. def map[U](f: (CacheNode) ⇒ U): Cluster[U]

    Definition Classes
    Cluster
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  22. def ready: Future[Unit]

    Definition Classes
    Cluster
  23. 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
  24. def snap: (Seq[CacheNode], Future[Spool[Change[CacheNode]]])

    Definition Classes
    CachePoolCluster → Cluster
  25. val statsReceiver: StatsReceiver

    Optional, the destination to report the stats to

    Optional, the destination to report the stats to

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

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. final def updatePool(newSet: Set[CacheNode]): Unit

    TODO: pick up new rev of Cluster once it's ready Soon enough the Cluster will be defined in a way that we can directly managing the managers in a more flexible way, by then we should be able to do batch update we want here.

    TODO: pick up new rev of Cluster once it's ready Soon enough the Cluster will be defined in a way that we can directly managing the managers in a more flexible way, by then we should be able to do batch update we want here. For now, the updating pool is still done one by one.

    Attributes
    protected[this]
    Definition Classes
    CachePoolCluster
  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. 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
    ZookeeperCachePoolClusterZookeeperStateMonitor
  33. val zkPath: String

    the zookeeper path representing the cache pool

    the zookeeper path representing the cache pool

    Attributes
    protected
    Definition Classes
    ZookeeperCachePoolClusterZookeeperStateMonitor

Inherited from ZookeeperStateMonitor

Inherited from CachePoolCluster

Inherited from Cluster[CacheNode]

Inherited from AnyRef

Inherited from Any

Ungrouped