Package krati.store.factory

Examples of krati.store.factory.StaticArrayStoreFactory


            _config = null;
        }
    }
   
    public void testStaticArrayStoreFactory() throws IOException {
        ArrayStoreFactory storeFactory = new StaticArrayStoreFactory();
        ArrayStore store = storeFactory.create(_config);
        assertEquals(StaticDataArray.class, store.getClass());
        store.close();
    }
View Full Code Here


    }
   
    public void testStaticArrayStorePartitionFactory() throws IOException {
        setUpStorePartitionConfig();
       
        ArrayStoreFactory storeFactory = new StaticArrayStoreFactory();
        ArrayStore store = storeFactory.create(_config);
        assertEquals(StaticArrayStorePartition.class, store.getClass());
       
        StaticArrayStorePartition p = (StaticArrayStorePartition)store;
        assertEquals(p.capacity(), p.length());
        assertEquals(p.capacity(), store.capacity());
View Full Code Here

        configTemplate.setSegmentFileSizeMB(32);
        configTemplate.setNumSyncBatches(2);
        configTemplate.setBatchSize(100);
       
        // Create multi-tenant store responder
        ArrayStoreFactory storeFactory = new StaticArrayStoreFactory();
        StoreResponderFactory responderFactory = new BasicArrayStoreResponderFactory(storeFactory);
        MultiTenantStoreResponder mtStoreResponder = new MultiTenantStoreResponder(homeDir, configTemplate, responderFactory);
       
        String source;
        StoreResponder responder;
View Full Code Here

TOP

Related Classes of krati.store.factory.StaticArrayStoreFactory

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.