com.websudos.phantom.zookeeper

DefaultZookeeperManager

class DefaultZookeeperManager extends ZookeeperManager

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DefaultZookeeperManager
  2. ZookeeperManager
  3. CassandraManager
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DefaultZookeeperManager()

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 clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def cluster: Cluster

    Definition Classes
    ZookeeperManagerCassandraManager
  9. val defaultAddress: InetSocketAddress

    Attributes
    protected[this]
    Definition Classes
    ZookeeperManager
  10. def defaultZkAddress: InetSocketAddress

    This is the default way a ZooKeeper connector will obtain the HOST:IP port of the ZooKeeper coordinator(master) node.

    This is the default way a ZooKeeper connector will obtain the HOST:IP port of the ZooKeeper coordinator(master) node. The phantom testing utilities are capable of auto-generating a ZooKeeper instance if none is found running.

    A test instance is ephemeral with zero persistence, it will get created, populated and deleted once per test run. Upon creation, the test instance will propagate the IP:PORT combo it found available to an environment variable. By convention that variable is TEST_ZOOKEEPER_CONNECTOR.

    This method will try to read that variable and parse an java.net.InetSocketAddress from it. If the environment variable is null or an InetSocketAddress cannot be parsed from it, the ZooKeeper default, localhost:2181 will be used.

    returns

    The InetSocketAddress of the ZooKeeper master node.

  11. val embeddedPort: Int

  12. val envString: String

    Attributes
    protected[com.websudos.phantom.zookeeper]
    Definition Classes
    ZookeeperManager
  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( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  18. def initIfNotInited(keySpace: String): Unit

    This will initialise the Cassandra cluster connection based on the ZooKeeper connector settings.

    This will initialise the Cassandra cluster connection based on the ZooKeeper connector settings. It will connector to ZooKeeper, fetch the Cassandra sequence of HOST:IP pairs, and create a cluster + session for the mix.

    Definition Classes
    DefaultZookeeperManagerCassandraManager
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. lazy val isLocalZooKeeperRunning: Boolean

    Interestingly enough binding to a port with a simple java.

    Interestingly enough binding to a port with a simple java.net.Socket or java.net.ServerSocket to check if a local ZooKeeper exists is not enough in this day and age. We take a slightly different approach, by performing a single check when the default address is initialised. We spawn an actual ZooKeeper Client using the finagle-zookeeper integration and attempt to connect. If the initial ping is successful, we conclude a ZooKeeper is found. Otherwise, we conclude it doesn't exist.

    At present times the Phantom connectors are not capable of monitoring for state change system wide, e.g a move from a local ZooKeeper to an embedded and so on, therefore this check can be done a single time, as any major state change in the system with regards to ZooKeeper going down would not affect existing Cassandra connections and any failure in a Cassandra node is handled by the Datastax driver.

    Attributes
    protected[this]
    Definition Classes
    ZookeeperManager
  21. val livePort: Int

  22. lazy val logger: Logger

  23. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  26. def session: Session

    Definition Classes
    ZookeeperManagerCassandraManager
  27. val store: DefaultClusterStore.type

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

    Definition Classes
    AnyRef
  29. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ZookeeperManager

Inherited from CassandraManager

Inherited from AnyRef

Inherited from Any

Ungrouped