Package org.apache.qpid.server.store.berkeleydb.keys

Examples of org.apache.qpid.server.store.berkeleydb.keys.Xid


            PreparedTransactionTB valueBinding = new PreparedTransactionTB();
            DatabaseEntry value = new DatabaseEntry();

            while (cursor.getNext(key, value, LockMode.RMW) == OperationStatus.SUCCESS)
            {
                Xid xid = keyBinding.entryToObject(key);
                PreparedTransaction preparedTransaction = valueBinding.entryToObject(value);
                dtxrh.dtxRecord(xid.getFormat(),xid.getGlobalId(),xid.getBranchId(),
                                preparedTransaction.getEnqueues(),preparedTransaction.getDequeues());
            }

            try
            {
View Full Code Here


                           byte[] branchId,
                           Transaction.Record[] enqueues,
                           Transaction.Record[] dequeues) throws AMQStoreException
    {
        DatabaseEntry key = new DatabaseEntry();
        Xid xid = new Xid(format, globalId, branchId);
        XidTB keyBinding = new XidTB();
        keyBinding.objectToEntry(xid,key);

        DatabaseEntry value = new DatabaseEntry();
        PreparedTransaction preparedTransaction = new PreparedTransaction(enqueues, dequeues);
View Full Code Here

    private void removeXid(com.sleepycat.je.Transaction txn, long format, byte[] globalId, byte[] branchId)
            throws AMQStoreException
    {
        DatabaseEntry key = new DatabaseEntry();
        Xid xid = new Xid(format, globalId, branchId);
        XidTB keyBinding = new XidTB();
       
        keyBinding.objectToEntry(xid, key);

View Full Code Here

        long format = input.readLong();
        byte[] globalId = new byte[input.readInt()];
        input.readFast(globalId);
        byte[] branchId = new byte[input.readInt()];
        input.readFast(branchId);
        return new Xid(format,globalId,branchId);
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.store.berkeleydb.keys.Xid

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.