Object

akka.persistence.cassandra.testkit

CassandraLauncher

Related Doc: package testkit

Permalink

object CassandraLauncher

Starts Cassandra in current JVM. There can only be one Cassandra instance per JVM, but keyspaces can be used for isolation.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CassandraLauncher
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class CleanFailedException extends RuntimeException

    Permalink

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. val DefaultTestConfigResource: String

    Permalink

    Default config for testing "test-embedded-cassandra.yaml"

  5. final def asInstanceOf[T0]: T0

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

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def freePort(): Int

    Permalink
  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 main(args: Array[String]): Unit

    Permalink

    Main method to start Cassandra, see #start.

    Main method to start Cassandra, see #start. Note that cassandra-all jar must be in classpath.

    port can be defined with -DCassandraLauncher.port=4000, default is the randomPort clean can be defined with -DCassandraLauncher.clean=true, default is false directory can be defined with -DCassandraLauncher.directory=target/embedded-cassandra, default is target/embedded-cassandra configResource yaml configuration loaded from classpath, can be defined with -DCassandraLauncher.configResource=test-embedded-cassandra.yaml, default is defined in CassandraLauncher#DefaultTestConfigResource, i.e. test-embedded-cassandra.yaml

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. lazy val randomPort: Int

    Permalink

    The random free port that will be used if port=0 is specified in the start method.

  19. def start(cassandraDirectory: File, configResource: String, clean: Boolean, port: Int): Unit

    Permalink

    Start Cassandra

    Start Cassandra

    cassandraDirectory

    the data directory to use

    configResource

    yaml configuration loaded from classpath, default configuration for testing is defined in CassandraLauncher#DefaultTestConfigResource

    clean

    if true all files in the data directory will be deleted before starting Cassandra

    port

    the native_transport_port to use, if 0 a random free port is used, which can be retrieved (before starting) with CassandraLauncher.randomPort.

    Exceptions thrown

    akka.persistence.cassandra.testkit.CassandraLauncher.CleanFailedException if clean is true and removal of the directory fails

  20. def stop(): Unit

    Permalink

    Stops Cassandra.

    Stops Cassandra. However, it will not be possible to start Cassandra again in same JVM.

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped