Author: ivol37 at gmail.com
Date: Fri Jan 14 16:01:16 2011
New Revision: 656

Log:


Modified:
   sandbox/ivol/standalone-cassandra/src/org/amdatu/cassandra/Main.java

Modified: sandbox/ivol/standalone-cassandra/src/org/amdatu/cassandra/Main.java
==============================================================================
--- sandbox/ivol/standalone-cassandra/src/org/amdatu/cassandra/Main.java        
(original)
+++ sandbox/ivol/standalone-cassandra/src/org/amdatu/cassandra/Main.java        
Fri Jan 14 16:01:16 2011
@@ -49,7 +49,6 @@
 
         try {
             Main main = new Main();
-            Thread.sleep(120000);
             main.createTestData();
         }
         catch (Exception e) {
@@ -109,29 +108,29 @@
 
         if (!columnFamilyExists(DEFAULT_KEYSPACE, ROLE_CF)) {
             addColumnFamily(DEFAULT_KEYSPACE, ROLE_CF, "Super", "BytesType", 
"BytesType");
-        }
 
-        // Add 13 test roles to this CF users
-        for (int i=1; i<=13; i++) {
-            setValue(DEFAULT_KEYSPACE, ROLE_CF, "user_"+i, "super", "name", 
toBytes("User " + i));
+            // Add 13 test roles to this CF users
+            for (int i=1; i<=13; i++) {
+                setValue(DEFAULT_KEYSPACE, ROLE_CF, "user_"+i, "super", 
"name", toBytes("User " + i));
+            }
         }
 
         if (!columnFamilyExists(DEFAULT_KEYSPACE, GADGET_CF)) {
             addColumnFamily(DEFAULT_KEYSPACE, GADGET_CF, "Super", "BytesType", 
"BytesType");
-        }
 
-        // Add 20 test gadgets to this CF gadgets
-        for (int i=1; i<=20; i++) {
-            setValue(DEFAULT_KEYSPACE, GADGET_CF, "gadget_"+i, "super", 
"name", toBytes("Gadget " + i));
+            // Add 20 test gadgets to this CF gadgets
+            for (int i=1; i<=20; i++) {
+                setValue(DEFAULT_KEYSPACE, GADGET_CF, "gadget_"+i, "super", 
"name", toBytes("Gadget " + i));
+            }
         }
 
         if (!columnFamilyExists(DEFAULT_KEYSPACE, CATEGORY_CF)) {
             addColumnFamily(DEFAULT_KEYSPACE, CATEGORY_CF, "Super", 
"BytesType", "BytesType");
-        }
 
-        // Add 3 test categories to this CF category
-        for (int i=1; i<=3; i++) {
-            setValue(DEFAULT_KEYSPACE, CATEGORY_CF, "category_"+i, "super", 
"name", toBytes("Category " + i));
+            // Add 3 test categories to this CF category
+            for (int i=1; i<=3; i++) {
+                setValue(DEFAULT_KEYSPACE, CATEGORY_CF, "category_"+i, 
"super", "name", toBytes("Category " + i));
+            }
         }
     }
 

Reply via email to