org.apache.blur.thrift.util
Class CreateInsertQueryRepeating
java.lang.Object
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.
CreateInsertQueryRepeating
public CreateInsertQueryRepeating(String host,
String table)
throws BlurException,
TException,
IOException
- Throws:
BlurException
TException
IOException
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.