org.apache.blur.thrift.util
Class CreateInsertQueryRepeating

java.lang.Object
  extended by org.apache.blur.thrift.util.CreateInsertQueryRepeating

public class CreateInsertQueryRepeating
extends Object

Tests a lot of things, mainly connecting to a blur cluster and slamming a bunch of rows in before querying for them. I like to use it as a load test.


Constructor Summary
CreateInsertQueryRepeating(String host, String table)
           
 
Method Summary
 void createTable(Blur.Iface client, String tableName, String cluster)
           
 void getClusters(Blur.Iface client)
           
 void loadupTable(int rows)
           
static void main(String[] args)
           
 void queryTable(int times)
           
 String randomString(int length)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateInsertQueryRepeating

public CreateInsertQueryRepeating(String host,
                                  String table)
                           throws BlurException,
                                  TException,
                                  IOException
Throws:
BlurException
TException
IOException
Method Detail

randomString

public String randomString(int length)

getClusters

public void getClusters(Blur.Iface client)

createTable

public void createTable(Blur.Iface client,
                        String tableName,
                        String cluster)
                 throws BlurException,
                        TException
Throws:
BlurException
TException

main

public static void main(String[] args)
                 throws BlurException,
                        TException,
                        IOException
Parameters:
args -
Throws:
TException
BlurException
IOException

queryTable

public void queryTable(int times)
                throws BlurException,
                       TException
Throws:
BlurException
TException

loadupTable

public void loadupTable(int rows)
                 throws BlurException,
                        TException,
                        IOException
Throws:
BlurException
TException
IOException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.