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

Examples of com.sun.messaging.jmq.jmsserver.core.ConsumerUID.longValue()


  Iterator iter = consumerIDs.iterator();

  int i = 0;
  while (iter.hasNext()) {
      ConsumerUID cid = (ConsumerUID)iter.next();
      long conID = cid.longValue();
      String id;

      try  {
                id = Long.toString(conID);
View Full Code Here


                    String dst = (String)cLogDstList.get(i);
                    dos.writeUTF(dst); // Destination
                    SysMessageID sysid = (SysMessageID)cLogMsgList.get(i);
                    sysid.writeID(dos); // SysMessageID
                    ConsumerUID intid = (ConsumerUID)cLogIntList.get(i);
                    dos.writeLong(intid.longValue()); // ConsumerUID
                }

                dos.close();
                bos.close();
                Globals.getStore().logTxn(
View Full Code Here

                    String dst = (String)cLogDstList.get(i);
                    dos.writeUTF(dst); // Destination
                    SysMessageID sysid = (SysMessageID)cLogMsgList.get(i);
                    sysid.writeID(dos); // SysMessageID
                    ConsumerUID intid = (ConsumerUID)cLogIntList.get(i);
                    dos.writeLong(intid.longValue()); // ConsumerUID
                }
                dos.close();
                bos.close();
                Globals.getStore().logTxn(
                    TransactionLogType.CONSUME_TRANSACTION, bos.toByteArray());
View Full Code Here

                          Globals.getConnectionManager()
                              .getConnection(c.getConnectionUID());
                      ConsumerUID cuid = c.getConsumerUID();
                      ConnectionUID cxuid = c.getConnectionUID();
                      debugHash.put(String.valueOf(
                             (cuid == null ? 0 : cuid.longValue())),
                             (cxn == null ? "none" : cxn.getRemoteConnectionString())
                            + " ["
                            +  String.valueOf( (cxuid == null ? 0 :
                                 cxuid.longValue())) + "]");
                  }
View Full Code Here

        if (err_reason != null)
            hash.put("JMQReason", err_reason);

        if (uid != null) {
            hash.put("JMQConsumerID", new Long(uid.longValue()));
            if (DEBUG || logger.getLevel() <= Logger.DEBUG) {
                if (props.get("JMQOldConsumerID") != null ) {
                logger.log(Logger.INFO, "Consumer "+ uid+ ", JMQOldConsumerID:"+
                                        props.get("JMQOldConsumerID"));
                }
View Full Code Here

            if (msgStore.containsMessage(did, mid)) {
                logger.log(logger.FORCE,
                    BrokerResources.I_UPDATE_INT_STATE_TXNLOG, iid, mid);
                // For Queue, ensure the stored ConsumerUID is 0 otherwise
                // use try using the correct value; see bug 6516160
                if (dst.isQueue() && iid.longValue() != 0) {
                    msgStore.updateInterestState(did, mid, PacketReference.getQueueUID(),
                        Store.INTEREST_STATE_ACKNOWLEDGED, false);
                } else {
                    msgStore.updateInterestState(did, mid, iid,
                        Store.INTEREST_STATE_ACKNOWLEDGED, false);
View Full Code Here

    if (msgStore.containsMessage(did, mid)) {
      logger.log(logger.FORCE, BrokerResources.I_UPDATE_INT_STATE_TXNLOG,
          iid, mid);
      // For Queue, ensure the stored ConsumerUID is 0 otherwise
      // use try using the correct value; see bug 6516160
      if (dst.isQueue() && iid.longValue() != 0) {
        msgStore.updateInterestState(did, mid, PacketReference
            .getQueueUID(), Store.INTEREST_STATE_ACKNOWLEDGED,
            false);
      } else {
        msgStore.updateInterestState(did, mid, iid,
View Full Code Here

              .log(logger.FORCE,
                  BrokerResources.I_UPDATE_INT_STATE_TXNLOG,
                  iid, mid);
          // For Queue, ensure the stored ConsumerUID is 0 otherwise
          // use try using the correct value; see bug 6516160
          if (dest.isQueue() && iid.longValue() != 0) {
            msgStore.updateInterestState(destId, mid, PacketReference
                .getQueueUID(),
                Store.INTEREST_STATE_ACKNOWLEDGED, false);
          } else {
            msgStore.updateInterestState(destId, mid, iid,
View Full Code Here

                    br.getKString( BrokerResources.E_INTEREST_EXISTS_IN_STORE,
                    consumerUID ) );
            }

            pstmt = conn.prepareStatement( insertSQL );
            pstmt.setLong( 1, consumerUID.longValue() );
            Util.setObject( pstmt, 2, consumer );
            Util.setString( pstmt, 3, durableName );
            Util.setString( pstmt, 4, clientID );
            pstmt.setLong( 5, createdTS );
            pstmt.executeUpdate();
View Full Code Here

                conn = DBManager.getDBManager().getConnection( true );
                myConn = true;
            }

            pstmt = conn.prepareStatement( deleteSQL );
            pstmt.setLong( 1, consumerUID.longValue() );
            if ( pstmt.executeUpdate() > 0 ) {
                deleted = true;
            }
        } catch ( Exception e ) {
            myex = e;
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.