Class Cassandra


  • public class Cassandra
    extends java.lang.Object
    Starts a Casandra Daemon after creating or loading the cassandra config. The main purpose of this class is to wrap the CassandraDaemon and feed it a programmatically created configuration file.
    • Constructor Summary

      Constructors 
      Constructor Description
      Cassandra()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getListenAddress()  
      static java.net.InetSocketAddress getSocketAddress()  
      static boolean isBooting()
      Indicates whether cassandra has finished booting.
      static boolean isStopping()  
      static void main​(java.lang.String[] args)  
      static void printErrors​(com.datastax.oss.driver.api.core.cql.ResultSet rs)  
      static void start​(java.io.File cassandraDir)  
      static void start​(java.io.File cassandraDir, java.lang.String listenAddress)  
      static void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Cassandra

        public Cassandra()
    • Method Detail

      • isBooting

        public static boolean isBooting()
        Indicates whether cassandra has finished booting. Does NOT indicate if cassandra has subsequently been stopped. This method is not synchronized because it is not meant to continuously track the state of cassandra, only serve as a latch to release code that must not execute while cassandra has not yet booted.
        Returns:
        true indicating that cassandra has definitely finished booting, false indicates that cassandra may or may not have booted yet.
      • start

        public static void start​(java.io.File cassandraDir)
      • start

        public static void start​(java.io.File cassandraDir,
                                 java.lang.String listenAddress)
      • getListenAddress

        public static java.lang.String getListenAddress()
      • getSocketAddress

        public static java.net.InetSocketAddress getSocketAddress()
      • stop

        public static void stop()
      • main

        public static void main​(java.lang.String[] args)
      • printErrors

        public static void printErrors​(com.datastax.oss.driver.api.core.cql.ResultSet rs)
      • isStopping

        public static boolean isStopping()