Package org.apache.cassandra.service
Class EmbeddedCassandraService
java.lang.Object
org.apache.cassandra.service.EmbeddedCassandraService
An embedded, in-memory cassandra storage service.
This kind of service is useful when running unit tests of
services using cassandra for example.
See
org.apache.cassandra.service.EmbeddedCassandraServiceTest for usage.
This is the implementation of https://issues.apache.org/jira/browse/CASSANDRA-740
How to use: In the client code simply create a new EmbeddedCassandraService and start it. Example:
cassandra = new EmbeddedCassandraService();
cassandra.start();
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EmbeddedCassandraService
public EmbeddedCassandraService()
-
-
Method Details
-
start
- Throws:
IOException
-
stop
public void stop()
-