@@ -0,0 +1,2452 @@
+/* This file is part of VoltDB.%0A * Copyright (C) 2008-2012 VoltDB Inc.%0A *%0A * Permission is hereby granted, free of charge, to any person obtaining%0A * a copy of this software and associated documentation files (the%0A * %22Software%22), to deal in the Software without restriction, including%0A * without limitation the rights to use, copy, modify, merge, publish,%0A * distribute, sublicense, and/or sell copies of the Software, and to%0A * permit persons to whom the Software is furnished to do so, subject to%0A * the following conditions:%0A *%0A * The above copyright notice and this permission notice shall be%0A * included in all copies or substantial portions of the Software.%0A *%0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND,%0A * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF%0A * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.%0A * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR%0A * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,%0A * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR%0A * OTHER DEALINGS IN THE SOFTWARE.%0A */%0A%0Apackage voter;%0A%0Aimport java.io.IOException;%0A%0Aimport java.util.Random;%0A%0Aimport org.voltdb.client.*;%0Aimport org.voltdb.client.Client;%0A%0Apublic class SimpleBenchmark%0A%7B%0A    private final static int TXNS = 10000;%0A%0A    public static void main(String%5B%5D args)%0A    %7B%0A        System.out.println(%22Running Simple Benchmark%22);%0A        try %7B%0A            final Client client = ClientFactory.createClient();%0A            final Random rng = new Random();%0A%0A            for (String s : args) %7B%0A                client.createConnection(s, Client.VOLTDB_SERVER_PORT);%0A            %7D%0A%0A            for (int i=0; i %3C SimpleBenchmark.TXNS; i++) %7B%0A                ClientResponse response =%0A                    client.callProcedure(%22VOTES.insert%22, rng.nextLong(), %22MA%22, Integer.valueOf(i));%0A%0A                if (response.getStatus() != ClientResponse.SUCCESS) %7B%0A                    throw new RuntimeException(response.getStatusString());%0A                %7D%0A%0A                if (i %25 1000 == 0) %7B%0A                    System.out.printf(%22.%22);%0A                %7D%0A            %7D%0A        %7D%0A        catch (IOException e) %7B%0A            throw new RuntimeException(e);%0A        %7D%0A        catch (ProcCallException e) %7B%0A            throw new RuntimeException(e);%0A        %7D%0A%0A        System.out.println(%22 completed %22 + SimpleBenchmark.TXNS + %22 transactions.%22);%0A    %7D%0A%7D%0A

Add SP-only voter client.