Class/Object

com.twitter.finagle.cacheresolver

ZookeeperCachePoolCluster

Related Docs: object ZookeeperCachePoolCluster | package cacheresolver

Permalink

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
Visibility
  1. Public
  2. All

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. 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
    ZookeeperStateMonitor
  5. 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
    ZookeeperCachePoolClusterZookeeperStateMonitor
  6. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    CachePoolCluster → Cluster
  23. val statsReceiver: StatsReceiver

    Permalink

    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

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

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

    Permalink

    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

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

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

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

    Permalink

    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