com.websudos.phantom.connectors

DefaultCassandraManager

Related Docs: object DefaultCassandraManager | package connectors

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: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def cassandraPort(host: InetAddress = getCurrentIp): Int

  6. def cassandraVersions: Set[VersionNumber]

    Definition Classes
    CassandraManager
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. 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
  9. 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
  10. 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]
  11. def createKeySpace(keySpace: KeySpace): String

    Attributes
    protected[this]
    Definition Classes
    ConnectionUtils
  12. 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
  13. def embeddedPort: Int

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

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

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

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

    Definition Classes
    AnyRef → Any
  18. def getCurrentIp: InetAddress

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

    Definition Classes
    AnyRef → Any
  20. val hosts: Set[InetSocketAddress]

    Definition Classes
    CassandraManager
  21. def initIfNotInited(keySpace: String): Unit

  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. val livePort: Int

  24. def localhost(port: Int): InetSocketAddress

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

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

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

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

    Definition Classes
    AnyRef
  29. def session: Session

  30. 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
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

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

  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CassandraManager

Inherited from ConnectionUtils

Inherited from AnyRef

Inherited from Any

Ungrouped