com.websudos.phantom.connectors

DefaultCassandraManager

class DefaultCassandraManager extends CassandraManager

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

Instance Constructors

  1. new DefaultCassandraManager(hosts: Set[InetSocketAddress] = CassandraProperties.DefaultHosts)

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 cassandraPort(host: InetAddress = getCurrentIp): Int

  8. def cassandraVersions: Set[VersionNumber]

    Definition Classes
    CassandraManager
  9. def clone(): AnyRef

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

    Volatile reference synchronized by an initialisation lock that allows for recreation of the cluster.

    Volatile reference synchronized by an initialisation lock that allows for recreation of the cluster.

    returns

    A Cassandra Cluster object.

    Attributes
    protected[this]
    Definition Classes
    DefaultCassandraManagerCassandraManager
  11. def clusterRef: Cluster

    Public accessor for the cluster method.

    Public accessor for the cluster method.

    returns

    A reference to the cluster being used.

    Definition Classes
    DefaultCassandraManagerCassandraManager
  12. def createCluster(): Cluster

    This method tells the manager how to create a Cassandra cluster out of the provided settings.

    This method tells the manager how to create a Cassandra cluster out of the provided settings. It deals with the underlying Datastax Cluster builder with a set of defaults that can be easily overridden.

    The purpose of this method, beyond DRY, is to allow users to override the building of a cluster with whatever they need.

    returns

    A reference to a Cassandra/DSE cluster.

    Attributes
    protected[this]
  13. def createKeySpace(keySpace: KeySpace): String

    Attributes
    protected[this]
    Definition Classes
    ConnectionUtils
  14. def createKeySpace(keySpace: String): String

    Creates the CQL query to be executed when phantom connectors guarantee the existence of the keySpace before connection.

    Creates the CQL query to be executed when phantom connectors guarantee the existence of the keySpace before connection. By default, this will use lightweight transactions in Cassandra(IF NOT EXISTS queries) to guarantee data is not overwritten.

    keySpace

    The string name of the KeySpace the manager needs to use.

    returns

    The CQL Query that will be executed to create the KeySpace.

    Attributes
    protected[this]
    Definition Classes
    ConnectionUtils
  15. def embeddedPort: Int

    Definition Classes
    CassandraManager
  16. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  20. def getCurrentIp: InetAddress

    Attributes
    protected[this]
    Definition Classes
    CassandraManager
  21. def hashCode(): Int

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

  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. val livePort: Int

  25. def localhost(port: Int): InetSocketAddress

    Attributes
    protected[this]
    Definition Classes
    CassandraManager
  26. lazy val logger: Logger

    Definition Classes
    ConnectionUtils
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  30. def session: Session

  31. def shouldAttemptReconnect(exception: Throwable): Boolean

    Determines whether a connection error thrown is fatal.

    Determines whether a connection error thrown is fatal. This filters for certain Datastax Java Driver errors, such as a TimeoutError or a ChannelClosedException. It re-creates the cluster in events when it is possible.

    exception

    The exception that was thrown in the connection pipeline.

    returns

    A Boolean marking whether or not a re-connection should be attempted.

    Attributes
    protected[this]
    Definition Classes
    ConnectionUtils
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. def uniformPorts(hosts: Set[InetSocketAddress], port: Int): Set[InetSocketAddress]

  35. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CassandraManager

Inherited from ConnectionUtils

Inherited from AnyRef

Inherited from Any

Ungrouped