Permalink
Browse files

added option to not start embedded cassandra

  • Loading branch information...
1 parent 5bc853a commit 83443170fb84acfdc80f1f63990ae92d9356c1d2 tnine committed Feb 10, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/lucandra/CassandraUtils.java
@@ -122,6 +122,15 @@
private static boolean cassandraStarted = false;
+
+ public static synchronized void setStartup(){
+ if(cassandraStarted){
+ throw new RuntimeException("You attempted to set the casandra started flag after it has started");
+ }
+
+ cassandraStarted = true;
+ }
+
// Start Cassandra up!!!
public static synchronized void startup()
{

0 comments on commit 8344317

Please sign in to comment.