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

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


  int count = 0;

  if (numConsumers > 0)  {
      Iterator consumers = d.getConsumers();
      while (consumers.hasNext()) {
          Consumer oneCon = (Consumer)consumers.next();

          if (oneCon.isWildcard())  {
        ++count;
          }
      }
  }
View Full Code Here


      return (new Integer(0));
  }

  int count = 0;
  while (consumers.hasNext()) {
      Consumer oneCon = (Consumer)consumers.next();

      if (oneCon.isWildcard())  {
    /*
     * If wildcard param is not null, check for matches
     * If it is null, return total count of wildcards
     */
    if (wildcard != null)  {
        DestinationUID id = oneCon.getDestinationUID();
        if (id.getName().equals(wildcard))  {
            count++;
        }
    } else  {
        count++;
View Full Code Here

  if (numConsumers > 0)  {
      Iterator consumers = d.getConsumers();

      while (consumers.hasNext()) {
          Consumer oneCon = (Consumer)consumers.next();
   
          if (oneCon.isWildcard())  {
        DestinationUID id = oneCon.getDestinationUID();
              al.add(id.getName());
          }
      }
  }
View Full Code Here

  }

  consumers = d.getConsumers();

  while (consumers.hasNext()) {
      Consumer oneCon = (Consumer)consumers.next();

      if (oneCon.isWildcard())  {
    DestinationUID id = oneCon.getDestinationUID();
          al.add(id.getName());
      }
  }

  if (al.size() > 0)  {
View Full Code Here

  ids = new String [ numConsumers ];

  int i = 0;
  while (consumers.hasNext()) {
      Consumer oneCon = (Consumer)consumers.next();
      long conID = oneCon.getConsumerUID().longValue();
      String id;

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

  ids = new String [ numConsumers ];

  int i = 0;
  while (consumers.hasNext()) {
      Consumer oneCon = (Consumer)consumers.next();
      long conID = oneCon.getConsumerUID().longValue();
      String id;

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

  ids = new String [ numConsumers ];

  int i = 0;
  while (consumers.hasNext()) {
      Consumer oneCon = (Consumer)consumers.next();
      long conID = oneCon.getConsumerUID().longValue();
      String id;

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

  }

  int count = 0;
  while (consumers.hasNext()) {
      ConsumerUID cid = (ConsumerUID)consumers.next();
      Consumer oneCon = Consumer.getConsumer(cid);

      /*
       * If wildcard param is not null, check for matches
       * If it is null, return total count of wildcards
       */
      if (wildcard != null)  {
          DestinationUID id = oneCon.getDestinationUID();
          if (id.getName().equals(wildcard))  {
              count++;
          }
      } else  {
          count++;
View Full Code Here

      return (null);
  }

  while (consumers.hasNext()) {
      ConsumerUID cid = (ConsumerUID)consumers.next();
      Consumer oneCon = Consumer.getConsumer(cid);

      if (oneCon.isWildcard())  {
    DestinationUID id = oneCon.getDestinationUID();
          al.add(id.getName());
      }
  }

  if (al.size() > 0)  {
View Full Code Here

                                break;
                            }
                            hasconsumer = true;
                            Iterator itrr = d.getAllActiveConsumers().iterator();
                            while (itrr.hasNext()) {
                                Consumer c = (Consumer)itrr.next();
                                IMQConnection conn = (IMQConnection)cm.getConnection(c.getConnectionUID());
                                BrokerAddress ba = c.getConsumerUID().getBrokerAddress();
                                if ((conn != null && conn.isConnectionStarted()) ||
                                     (ba != null && ba != Globals.getMyAddress())) {
                                    notifications.put(d.getDestinationUID(),
                                                      new ConsumerInfoNotification(
                                                      d.getDestinationUID(),
                                                      d.getType(), CONSUMER_READY,
                                                      ((ConsumerInfoRequestEvent)o).infoType, true));
                                    notifyadded = true;
                                    break;
                                }
                            }
                            break;
                        }
                        if (e.duid.isWildcard() && DestinationUID.match(d.getDestinationUID(), e.duid)) {
                            foundmatch = true;
                            if (d.getAllActiveConsumerCount() == 0) {
                                continue;
                            }
                            hasconsumer = true;
                            Iterator itrr = d.getAllActiveConsumers().iterator();
                            while (itrr.hasNext()) {
                                Consumer c = (Consumer)itrr.next();
                                IMQConnection conn = (IMQConnection)cm.getConnection(c.getConnectionUID());
                                BrokerAddress ba = c.getConsumerUID().getBrokerAddress();
                                if ((conn != null && conn.isConnectionStarted()) ||
                                     (ba != null && ba != Globals.getMyAddress())) {
                                    notifications.put(d.getDestinationUID(),
                                                  new ConsumerInfoNotification(
                                                  d.getDestinationUID(),
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.