public interface Cassandra
Cassandra to be started and stopped.
package overview for more information.
CassandraBuilder| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name of this
Cassandra instance. |
Settings |
getSettings()
Gets the
Settings of this Cassandra instance. |
Version |
getVersion()
Gets the
Version of this Cassandra instance. |
Path |
getWorkingDirectory()
Gets the working directory.
|
boolean |
isRunning()
Checks whether this Cassandra is running.
|
void |
start()
Starts the
Cassandra. |
void |
stop()
Stops the
Cassandra. |
void start()
throws CassandraException
Cassandra. Calling this method on an already started Cassandra has no effect. Causes
the current thread to wait, until the Cassandra has started.CassandraException - if the Cassandra cannot be startedvoid stop() throws CassandraException
Cassandra. Calling this method on an already stopped Cassandra has no effect. Causes
the current thread to wait, until the Cassandra has stopped.CassandraException - if the Cassandra cannot be stoppedboolean isRunning()
true if the Cassandra is runningString getName()
Cassandra instance.nullVersion getVersion()
Version of this Cassandra instance.nullPath getWorkingDirectory()
nullSettings getSettings() throws IllegalStateException
Settings of this Cassandra instance. The settings can be obtained only if Cassandra was
successfully started. Causes the current thread to wait, until either the Cassandra has started or
stopped.IllegalStateException - if Cassandra was not startedCopyright © 2023. All rights reserved.