Search code examples
embedded-cassandra

How to find if Embedded Cassandra is already running or not in version 3.0.3


In Embedded-Cassandra 3.0.3, what is the way to find if Cassandra is already running or now.

https://nosan.github.io/embedded-cassandra/#introducing

In version 2.x, there was a API getState == State.STARTED. What is the equivalent in version 3.0.3. I can't find it in the docs or examples.


Solution

  • There is no such thing in Embedded Cassandra 3.0.3. If Cassandra.start() method has successfully finished it means that Cassandra is running and ready to accept connections.