Package org.apache.activemq.leveldb

Examples of org.apache.activemq.leveldb.LevelDBStoreViewMBean.compact()


        MessageProducer producer = session.createProducer(destination);
        producer.setDeliveryMode(DeliveryMode.PERSISTENT);

        LevelDBStoreViewMBean levelDBView = getLevelDBStoreMBean();
        assertNotNull(levelDBView);
        levelDBView.compact();

        final int SIZE = 6 * 1024 * 5;
        final int MSG_COUNT = 60000;
        final CountDownLatch done = new CountDownLatch(MSG_COUNT);

View Full Code Here


            public boolean isSatisified() throws Exception {
                return countLogFiles() == 1;
            }
        }, TimeUnit.MINUTES.toMillis(5)));

        levelDBView.compact();
        LOG.info("Current number of logs {}", countLogFiles());
    }

    protected long countLogFiles() {
        String[] logFiles = dataDirFile.list(new FilenameFilter() {
View Full Code Here

        MessageProducer producer = session.createProducer(destination);
        producer.setDeliveryMode(DeliveryMode.PERSISTENT);

        final LevelDBStoreViewMBean levelDBView = getLevelDBStoreMBean();
        assertNotNull(levelDBView);
        levelDBView.compact();

        final int SIZE = 6 * 1024 * 5;
        final int MSG_COUNT = 60000;
        final CountDownLatch done = new CountDownLatch(MSG_COUNT);

View Full Code Here

        assertTrue("Should < 3 logfiles left.", Wait.waitFor(new Wait.Condition() {

            @Override
            public boolean isSatisified() throws Exception {
                levelDBView.compact();
                return countLogFiles() < 3;
            }
        }, TimeUnit.MINUTES.toMillis(5), (int)TimeUnit.SECONDS.toMillis(30)));

        levelDBView.compact();
View Full Code Here

                levelDBView.compact();
                return countLogFiles() < 3;
            }
        }, TimeUnit.MINUTES.toMillis(5), (int)TimeUnit.SECONDS.toMillis(30)));

        levelDBView.compact();
        LOG.info("Current number of logs {}", countLogFiles());
    }

    protected long countLogFiles() {
        String[] logFiles = dataDirFile.list(new FilenameFilter() {
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.