Package test.driver

Examples of test.driver.StoreTestDriver


        Database store = dbEnv.getSimpleDB();
        StoreReader<Database, byte[], byte[]> storeReader = new BdbBytesReader();
        StoreWriter<Database, byte[], byte[]> storeWriter = new BdbBytesWriter();

        StoreTestDriver driver;
        driver = new StoreTestBytesDriver<Database>(store, storeReader, storeWriter, _lineSeedData, _keyCount, _hitPercent);
        driver.run(_numReaders, 1, _runTimeSeconds);

        StatsLog.endUnit(unitTestName);
    }
View Full Code Here


        StoredMap<String, String> store = dbEnv.getMap();
        StoreReader<StoredMap<String, String>, String, String> storeReader = new BdbStringReader();
        StoreWriter<StoredMap<String, String>, String, String> storeWriter = new BdbStringWriter();

        StoreTestDriver driver;
        driver = new StoreTestStringDriver<StoredMap<String, String>>(store, storeReader, storeWriter, _lineSeedData, _keyCount, _hitPercent);
        driver.run(_numReaders, 1, _runTimeSeconds);

        StatsLog.endUnit(unitTestName);
    }
View Full Code Here

       
        DataStore<byte[], byte[]> store = getDataStore(storeDir);
        StoreReader<DataStore<byte[], byte[]>, byte[], byte[]> storeReader = new DataStoreReader();
        StoreWriter<DataStore<byte[], byte[]>, byte[], byte[]> storeWriter = new DataStoreWriter();
       
        StoreTestDriver driver;
        driver = new StoreTestBytesDriver<DataStore<byte[], byte[]>>(store, storeReader, storeWriter, _lineSeedData, _keyCount, _hitPercent);
        driver.run(numOfReaders, numOfWriters, runDuration);
       
        store.sync();
       
        try {
            iterate(store, 100);
View Full Code Here

TOP

Related Classes of test.driver.StoreTestDriver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.