Examples of PageFile


Examples of org.apache.activemq.store.kahadb.disk.page.PageFile

        return min + (int)(Math.random() * ((max - min) + 1));
    }

    @Test(timeout=60000)
    public void testLargeValueOverflow() throws Exception {
        pf = new PageFile(getDirectory(), getClass().getName());
        pf.setPageSize(4*1024);
        pf.setEnablePageCaching(false);
        pf.setWriteBatchSize(1);
        pf.load();
        tx = pf.tx();
View Full Code Here

Examples of org.apache.activemq.store.kahadb.disk.page.PageFile

    @Test(timeout=60000)
    public void testListIndexConsistencyOverTime() throws Exception {

        final int NUM_ITERATIONS = 100;

        pf = new PageFile(getDirectory(), getClass().getName());
        pf.setPageSize(4*1024);
        pf.setEnablePageCaching(false);
        pf.setWriteBatchSize(1);
        pf.load();
        tx = pf.tx();
View Full Code Here

Examples of org.apache.activemq.store.kahadb.disk.page.PageFile

    @Test(timeout=60000)
    public void testListLargeDataAddWithReverseRemove() throws Exception {

        final int NUM_ITERATIONS = 100;

        pf = new PageFile(getDirectory(), getClass().getName());
        pf.setPageSize(4*1024);
        pf.setEnablePageCaching(false);
        pf.setWriteBatchSize(1);
        pf.load();
        tx = pf.tx();
View Full Code Here

Examples of org.apache.activemq.store.kahadb.disk.page.PageFile

    public void x_testSplitPerformance() throws Exception {

        final int NUM_ITERATIONS = 200;
        final int RANGE = 200000;

        pf = new PageFile(getDirectory(), getClass().getName());
        pf.setPageSize(4*1024);
        pf.load();
        tx = pf.tx();
        long id = tx.allocate().getPageId();

View Full Code Here

Examples of org.apache.activemq.store.kahadb.disk.page.PageFile

    @Test(timeout=60000)
    public void testListLargeDataAddAndNonSequentialRemove() throws Exception {

        final int NUM_ITERATIONS = 100;

        pf = new PageFile(getDirectory(), getClass().getName());
        pf.setPageSize(4*1024);
        pf.setEnablePageCaching(false);
        pf.setWriteBatchSize(1);
        pf.load();
        tx = pf.tx();
View Full Code Here

Examples of org.apache.activemq.store.kahadb.disk.page.PageFile

    public void setUp() throws Exception {
        ROOT_DIR = new File(IOHelper.getDefaultDataDirectory());
        IOHelper.delete(ROOT_DIR);

        pf = new PageFile(ROOT_DIR, getClass().getName());
        pf.load();
    }
View Full Code Here

Examples of org.apache.activemq.store.kahadb.disk.page.PageFile

    }

    @Test(timeout=60000)
    public void testLargeValue() throws Exception {
        //System.setProperty("maxKahaDBTxSize", "" + (1024*1024*1024));
        pf = new PageFile(getDirectory(), getClass().getName());
        pf.setPageSize(4*1024);
        //pf.setEnablePageCaching(false);
        pf.load();
        tx = pf.tx();
        long id = tx.allocate().getPageId();
View Full Code Here

Examples of org.apache.activemq.store.kahadb.disk.page.PageFile

        tx.commit();
    }

    @Test(timeout=60000)
    public void testLargeValueOverflow() throws Exception {
        pf = new PageFile(getDirectory(), getClass().getName());
        pf.setPageSize(4*1024);
        pf.setWriteBatchSize(1);
        pf.load();
        tx = pf.tx();
        long id = tx.allocate().getPageId();
View Full Code Here

Examples of org.apache.activemq.store.kahadb.disk.page.PageFile

        tx.commit();
    }

    @Test(timeout=60000)
    public void testIndexRepeatFillClearIncrementingPageReuse() throws Exception {
        pf = new PageFile(getDirectory(), getClass().getName());
        pf.setPageSize(4*1024);
        pf.load();

        tx = pf.tx();
        long id = tx.allocate().getPageId();
View Full Code Here

Examples of org.apache.activemq.store.kahadb.disk.page.PageFile

    @Test(timeout=60000)
    public void testListIndexConsistancyOverTime() throws Exception {

        final int NUM_ITERATIONS = 50;

        pf = new PageFile(getDirectory(), getClass().getName());
        pf.setPageSize(4*1024);
        //pf.setEnablePageCaching(false);
        pf.setWriteBatchSize(1);
        pf.load();
        tx = pf.tx();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.