Package krati.store

Examples of krati.store.DefaultDataStoreHandler


*/
public class TestDataStoreHandler extends TestCase {
    static Random rand = new Random();
   
    protected DataStoreHandler createDataStoreHandler() {
        return new DefaultDataStoreHandler();
    }
View Full Code Here


        store = new DynamicDataStore(config);
        store.put("key".getBytes(), "value".getBytes());
        assertTrue(Arrays.equals("value".getBytes(), store.get("key".getBytes())));
        store.close();
       
        config.setDataHandler(new DefaultDataStoreHandler());
        assertTrue(config.getDataHandler() != null);
        config.save();
       
        StoreConfig config2 = new StoreConfig(dir, 10000);
        assertTrue(config2.getDataHandler() == null);
View Full Code Here

    protected byte[] nextValue() {
        return randomBytes(valueLen++);
    }
   
    protected DataStoreHandler createDataStoreHandler() {
        return new DefaultDataStoreHandler();
    }
View Full Code Here

TOP

Related Classes of krati.store.DefaultDataStoreHandler

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.