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

Examples of com.sun.messaging.jmq.jmsserver.core.Consumer


                            }
                        }
                    }
                   
            } else {
                    Consumer c = Consumer.getConsumer(intid);
                    if (c == null || !c.isValid()) {
// do we want to add a debug level message here
                            // got it while cleaning up
                            // this can only happen on topics and is a
                            // non-fatal error
                            // fixing the timing problem through synchronization
View Full Code Here


        DestinationUID duid_t = new DestinationUID("test", false);
        ConsumerUID uid1 = new ConsumerUID(1);
        ConsumerUID uid2 = new ConsumerUID(2);
        ConsumerUID[] uids = {uid1,uid2};

        Consumer consumer1 = new Consumer(duid,null, false,queueUID);
        ArrayList queues = new ArrayList();
        queues.add(consumer1);

        Consumer tconsumer1 = new Consumer(duid_t,null, false,uid1);
        Consumer tconsumer2 = new Consumer(duid_t,null, false,uid2);
        // simple Non-persistent

        ArrayList topics = new ArrayList();
        topics.add(tconsumer1);
        topics.add(tconsumer2);
View Full Code Here

     * @throws BrokerException
     */
    public Consumer getConsumer( Connection conn, ConsumerUID consumerUID )
        throws BrokerException {

        Consumer consumer = null;

        boolean myConn = false;
        PreparedStatement pstmt = null;
        ResultSet rs = null;
        Exception myex = null;
View Full Code Here

            pstmt = conn.prepareStatement( selectAllSQL );
            rs = pstmt.executeQuery();

            while ( rs.next() ) {
                try {
                    Consumer consumer = (Consumer)Util.readObject( rs, 1 );
                    list.add( consumer );
                } catch ( IOException e ) {
                    // fail to parse consumer object; just log it
                    logger.logStack( Logger.ERROR,
                        BrokerResources.X_PARSE_INTEREST_FAILED, e );
View Full Code Here

      }
  }
    }

    private static Boolean getFlowPaused(ConsumerUID cid)  {
  Consumer con = Consumer.getConsumer(cid);

  if (con == null)  {
      return (null);
  }

        return (new Boolean(con.getIsFlowPaused()));
    }
View Full Code Here

  return (host);
    }

    private static Long getLastAckTime(ConsumerUID cid)  {
  Consumer con = Consumer.getConsumer(cid);

  if (con == null)  {
      return (null);
  }

  return (new Long(con.getLastAckTime()));
    }
View Full Code Here

  return (new Long(con.getLastAckTime()));
    }

    private static Long getNumMsgs(ConsumerUID cid)  {
  Consumer con = Consumer.getConsumer(cid);

  if (con == null)  {
      return (null);
  }

        return (new Long(con.totalMsgsDelivered()));
    }
View Full Code Here

        return (new Long(con.totalMsgsDelivered()));
    }

    private static Long getNumMsgsPendingAcks(ConsumerUID cid)  {
  Consumer con = Consumer.getConsumer(cid);

  if (con == null)  {
      return (null);
  }

        return (new Long(con.numPendingAcks()));
    }
View Full Code Here

        return (new Long(con.numPendingAcks()));
    }

    private static Long getNumPendingMsgs(ConsumerUID cid) {
        Consumer con = Consumer.getConsumer(cid);
        if (con == null) return null;
        return (new Long(con.numInProcessMsgs()));
    }
View Full Code Here

        if (con == null) return null;
        return (new Long(con.numInProcessMsgs()));
    }

    private static String getSelector(ConsumerUID cid)  {
  Consumer con = Consumer.getConsumer(cid);

  if (con == null)  {
      return (null);
  }

        return (con.getSelectorStr());
    }
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.jmsserver.core.Consumer

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.