Examples of TransactionId


Examples of org.apache.activemq.command.TransactionId

        MessageId id = new MessageId(producerId, messageIdGenerator.getNextSequenceId());
        message.setMessageId(id);
        message.setJMSTimestamp(System.currentTimeMillis());

        if (stompTx != null) {
            TransactionId activemqTx = transactions.get(stompTx);
            if (activemqTx == null) {
                throw new ProtocolException("Invalid transaction id: " + stompTx);
            }
            message.setTransactionId(activemqTx);
        }
View Full Code Here

Examples of org.apache.activemq.command.TransactionId

        String messageId = headers.get(Stomp.Headers.Ack.MESSAGE_ID);
        if (messageId == null) {
            throw new ProtocolException("ACK received without a message-id to acknowledge!");
        }

        TransactionId activemqTx = null;
        String stompTx = headers.get(Stomp.Headers.TRANSACTION);
        if (stompTx != null) {
            activemqTx = transactions.get(stompTx);
            if (activemqTx == null) {
                throw new ProtocolException("Invalid transaction id: " + stompTx);
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.xact.TransactionId



  void add(Xact xact, boolean exclude)
  {
    TransactionId id = xact.getId();

    synchronized(this)
    {
      TransactionTableEntry ent = findTransactionEntry(id);
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.xact.TransactionId

    {
      // set tranaction to idle
      return findAndAssumeTransaction((TransactionId)null, tran);
    }

    TransactionId id = null;
    for (Enumeration e = trans.elements();
       e.hasMoreElements() ; )
    {
      TransactionTableEntry ent = (TransactionTableEntry)e.nextElement();
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.xact.TransactionId

    <P>MT - unsafe, caller is recovery, which is single threaded.
  */
  public boolean getMostRecentTransactionForRollback(RawTransaction tran)
  {
        TransactionId id = null;

        if (!trans.isEmpty())
    {
      for (Enumeration e = trans.elements();
         e.hasMoreElements() ; )
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.xact.TransactionId

  {
        TransactionTableEntry   found_ent   = null;

        if (!trans.isEmpty())
    {
            TransactionId           id          = null;
            GlobalTransactionId     gid         = null;
            TransactionTableEntry   ent;

      for (Enumeration e = trans.elements(); e.hasMoreElements(); )
      {
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.xact.TransactionId

                !recovery, "trying to display recovery transaction");
      SanityManager.ASSERT(myxact != null, "my xact is null");
      SanityManager.ASSERT(isClone, "Should only call method on a clone");
    }

    TransactionId t = myxact.getIdNoCheck();
    return (t == null) ? "CLOSED" : t.toString();
  }
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.xact.TransactionId

     *
     **/
    public String diag()
        throws StandardException
    {
        TransactionId id = ((Xact) diag_object).getId();

        if (id instanceof XactId)
            return("Transaction:(" + ((XactId) id).getId() + ")");
        else
            return(id.toString());
    }
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.xact.TransactionId

          if (groupmask != 0 && (groupmask & lr.group()) == 0)
            candidate = false; // no match, throw this log record out

          if (candidate && tranId != null)
          {
            TransactionId tid = lr.getTransactionId();
            if (!tid.equals(tranId)) // nomatch
              candidate = false; // throw this log record out
          }

          // if this log record is not filtered out, we need to read
          // in the rest of the log record to the input buffer.
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.xact.TransactionId

        if (candidate && groupmask != 0 && (groupmask & lr.group()) == 0)
          candidate = false; // no match, throw this log record out

        if (candidate && tranId != null)
        {
          TransactionId tid = lr.getTransactionId();
          if (!tid.equals(tranId)) // nomatch
            candidate = false; // throw this log record out
        }

        // if this log record is not filtered out, we need to read
        // in the rest of the log record to the input buffer.
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.