cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r900583 - /incubator/cassandra/trunk/contrib/client_only/ClientOnlyExample.java
Date Mon, 18 Jan 2010 21:51:42 GMT
Author: eevans
Date: Mon Jan 18 21:51:41 2010
New Revision: 900583

URL: http://svn.apache.org/viewvc?rev=900583&view=rev
Log:
update clent_only example for StorageService changes

Modified:
    incubator/cassandra/trunk/contrib/client_only/ClientOnlyExample.java

Modified: incubator/cassandra/trunk/contrib/client_only/ClientOnlyExample.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/contrib/client_only/ClientOnlyExample.java?rev=900583&r1=900582&r2=900583&view=diff
==============================================================================
--- incubator/cassandra/trunk/contrib/client_only/ClientOnlyExample.java (original)
+++ incubator/cassandra/trunk/contrib/client_only/ClientOnlyExample.java Mon Jan 18 21:51:41
2010
@@ -34,7 +34,7 @@
 
     private static void testWriting() throws IOException
     {
-        StorageService.instance().initClient();
+        StorageService.instance.initClient();
         // sleep for a bit so that gossip can do its thing.
         try
         {
@@ -67,12 +67,12 @@
             System.out.println("wrote key" + i);
         }
         System.out.println("Done writing.");
-        StorageService.instance().stopClient();
+        StorageService.instance.stopClient();
     }
 
     private static void testReading() throws IOException
     {
-        StorageService.instance().initClient();
+        StorageService.instance.initClient();
         // sleep for a bit so that gossip can do its thing.
         try
         {
@@ -123,7 +123,7 @@
         // no need to do this:
         // StorageService.instance().decommission();
         // do this instead:
-        StorageService.instance().stopClient();
+        StorageService.instance.stopClient();
     }
 
     /**



Mime
View raw message