Package org.xtreemfs.babudb.api.dev.transaction

Examples of org.xtreemfs.babudb.api.dev.transaction.TransactionInternal


        txn.serialize(buf);
        assertEquals(buf.position(), size);
       
        // deserialize transaction from buffer
        buf.position(0);
        TransactionInternal txn2 = TransactionInternal.deserialize(buf);
        assertEquals(buf.position(), size);
       
        // compare original transaction with deserialized transaction
        assertEquals(txn.getSize(), txn2.getSize());
        assertEquals(txn.getOperations().size(), txn2.getOperations().size());
        for (int i = 0; i < txn.getOperations().size(); i++) {
           
            Operation op1 = txn.getOperations().get(i);
            Operation op2 = txn2.getOperations().get(i);
           
            // count legal parameters
            int count = 0;
            if (op1.getParams() != null) {
                for (Object obj : op1.getParams()) {
View Full Code Here

TOP

Related Classes of org.xtreemfs.babudb.api.dev.transaction.TransactionInternal

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.