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

    Load the zookeeper node data as well as attaching another data watcher, then invoke the applyZKData implementation to process the data string.

    Load the zookeeper node data as well as attaching another data watcher, then invoke the applyZKData implementation to process the data string.

    Definition Classes
    ZookeeperCachePoolClusterZookeeperStateMonitor
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

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

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

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

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

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

    Definition Classes
    Any
  15. def loadZKData: () ⇒ Unit

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

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

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

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

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

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

    Definition Classes
    CachePoolCluster → Cluster
  23. val statsReceiver: StatsReceiver

    Optional, the destination to report the stats to

    Optional, the destination to report the stats to

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

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. 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
  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. 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
  31. 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