You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ee...@apache.org on 2010/01/18 22:51:42 UTC

svn commit: r900583 - /incubator/cassandra/trunk/contrib/client_only/ClientOnlyExample.java

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();
     }
 
     /**