Package org.xtreemfs.babudb.api

Examples of org.xtreemfs.babudb.api.DatabaseManager.addTransactionListener()


        TransactionListener l0 = new TransactionListener() {
            public void transactionPerformed(Transaction txn) {
                count.incrementAndGet();
            }
        };
        dbMan.addTransactionListener(l0);
       
        // create and execute a transaction
        Transaction txn = dbMan.createTransaction();
        txn.createDatabase("test", 1);
        txn.insertRecord("test", 0, "hello".getBytes(), "world".getBytes());
View Full Code Here


        TransactionListener l1 = new TransactionListener() {
            public void transactionPerformed(Transaction txn) {
                count.incrementAndGet();
            }
        };
        dbMan.addTransactionListener(l1);
        dbMan.executeTransaction(txn);
       
        assertEquals(3, count.get());
       
    }
View Full Code Here

                } catch (Throwable e) {
                    errors.add(e);
                }
            }
        };
        dbMan.addTransactionListener(l);
       
        // create and execute multiple transactions: each creates a new database
        // and populates multiple indices
        for (int i = 0; i < numTxns; i++) {
           
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.