com.websudos.util.zookeeper

ZkStore

abstract class ZkStore extends AnyRef

This is a ZooKeeper client store for accessors using ZooKeeperConf traits to read/write from ZooKeeper. Its sole purpose is to centralise access to ZooKeeper hosts and not necessitate access to multiple clients.

Using a single global client object with a synchronized access pattern and just-in-time init we can solve the problem of localhost Mesos based deployments. In a Mesos environment the ZooKeeper host is always fixed and every client application can easily talk to the same node to obtain data.

Users can easily override all the default implementation details and assumptions this store has and roll out their own communication instance with ZooKeeper. For now, this is mostly tailored to our Mesos deployment mechanism.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ZkStore
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ZkStore()(implicit timeout: Duration)

    timeout

    The connection timeout used to enforce a timeout when connection to the ZooKeeper host.

Abstract Value Members

  1. abstract val address: InetSocketAddress

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

    Definition Classes
    Any
  7. def client: ZkClient

    Simple accessor that will guarantee a client is initialised before it is used.

    Simple accessor that will guarantee a client is initialised before it is used. It's not the cheapest to maintain due to the inherent synchronisation required by maintaining global state.

    However, for its purpose, a reference to this client is required only in the initialisation of clients and its generally to cheap to matter.

    returns

    A reference to the global ZooKeeper client guaranteed by this store.

  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( classOf[java.lang.Throwable] )
  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. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  18. def serialize(address: Set[InetSocketAddress]): String

  19. def serialize(address: InetSocketAddress): String

    The default way to serialise an InetSocketAddress to a string.

    The default way to serialise an InetSocketAddress to a string. This method will be used by all other primitive definitions inside this project meaning users can easily override this to enforce their own conventions.

    JSON serialisation or any other form of serialization could easily be used to store and retrieve data from a ZooKeeper path. The data in question is only intended for sequences of host:port pairs.

    address

    The InetSocketAddress to serialise to a string.

    returns

    The string representation of the InetSocketAddress that will be stored as bytes in ZooKeeper.

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. implicit val timeout: Duration

    The connection timeout used to enforce a timeout when connection to the ZooKeeper host.

  22. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped