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

86 Views Asked by At

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.

1

There are 1 best solutions below

1
Dmytro Nosan On BEST ANSWER

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.