Package com.sun.messaging.jmq.jmsserver.core.cluster

Examples of com.sun.messaging.jmq.jmsserver.core.cluster.RemoteTransactionAckEntry


        this.type = TransactionInfo.TXN_REMOTE;
        this.txnhome = new TransactionBroker(txnhome, true);
        if (recovery) {
            addRecoveryTransactionAcks(acks);
        } else {
            this.txnAckEntry = new RemoteTransactionAckEntry(acks, false);
        }
    }
View Full Code Here


    public synchronized void addRecoveryTransactionAcks(
                               TransactionAcknowledgement[] acks) {

        if (getState().getState() == TransactionState.PREPARED) {
            recoveryTxnAckEntrys.add(
                new RemoteTransactionAckEntry(acks, true, false));
        } else {
            recoveryTxnAckEntrys.add(
                new RemoteTransactionAckEntry(acks, true, true));
        }
    }
View Full Code Here

        int n = 0;
        if (txnAckEntry != null) {
            n += txnAckEntry.getAcks().length;
        }

        RemoteTransactionAckEntry tae = null;
        Iterator itr = recoveryTxnAckEntrys.iterator();
        while (itr.hasNext()) {
            tae = (RemoteTransactionAckEntry)itr.next();
            n += tae.getAcks().length;
        }
        return n;
    }
View Full Code Here

    public boolean isProcessed() {

        if (txnAckEntry != null && !txnAckEntry.isProcessed()) return false;

        synchronized (this) {
            RemoteTransactionAckEntry tae = null;
            Iterator itr = recoveryTxnAckEntrys.iterator();
            while (itr.hasNext()) {
                tae = (RemoteTransactionAckEntry)itr.next();
                if (!tae.isProcessed()) return false;
            }
        }
        return true;
    }
View Full Code Here

    if (rtaes != null) {

      ArrayList<TransactionAcknowledgement> al = new ArrayList<TransactionAcknowledgement>();
      for (int i = 0; i < rtaes.length; i++) {
        RemoteTransactionAckEntry rtae = rtaes[i];
        TransactionAcknowledgement[] txnAcks = rtae.getAcks();
        for (int j = 0; j < txnAcks.length; j++) {
          al.add(txnAcks[j]);
        }
      }
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.jmsserver.core.cluster.RemoteTransactionAckEntry

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.