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

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


    public void sendConsumerInfo(int requestType,
                                 DestinationUID duid,
                                 int destType, int infoType,
                                 boolean sendToWildcard) {
        DestinationUID uid = null;
        synchronized(consumerInfoRequests) {
            Iterator itr = consumerInfoRequests.iterator();
            while (itr.hasNext()) {
                uid = (DestinationUID)itr.next();
                if (!uid.isWildcard()) {
                    if (duid.equals(uid)) {
                        sendConsumerInfo(requestType, uid.getName(),
                                         destType, infoType);
                        break;
                    }
                    continue;
                }
                if (duid.isWildcard() &&
                    uid.getName().equals(duid.getName()) &&
                    duid.isQueue() == uid.isQueue()) {
                    sendConsumerInfo(requestType, uid.getName(), destType, infoType);
                    break;
                }
                if (DestinationUID.match(duid, uid)) {
                    if (sendToWildcard) {
                        sendConsumerInfo(requestType, uid.getName(), destType, infoType);
                    } else {
                        Globals.getConnectionManager().getConsumerInfoNotifyManager().
                                 consumerInfoRequested(this, uid, destType, infoType);
                    }
                }
View Full Code Here


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

  while (producers.hasNext()) {
      ProducerUID pid = (ProducerUID)producers.next();
      Producer oneProd = Producer.getProducer(pid);

      DestinationUID id = oneProd.getDestinationUID();
      al.add(id.getName());
  }

  if (al.size() > 0)  {
      list = new String [ al.size() ];
      list = (String[])al.toArray(list);
View Full Code Here

    /*
     * 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 wildcard param is not null, check for matches
     * If it is null, return total count of wildcards
     */
    if (wildcard != null)  {
        DestinationUID id = oneProd.getDestinationUID();
        if (id.getName().equals(wildcard))  {
            count++;
        }
    } else  {
        count++;
    }
View Full Code Here

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

  if (numProducers > 0)  {
      Iterator producers = d.getProducers();

      while (producers.hasNext()) {
          Producer oneProd = (Producer)producers.next();
   
          if (oneProd.isWildcard())  {
        DestinationUID id = oneProd.getDestinationUID();
              al.add(id.getName());
          }
      }
  }

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

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

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

  if (al.size() > 0)  {
      list = new String [ al.size() ];
View Full Code Here

  while (producers.hasNext()) {
      Producer oneProd = (Producer)producers.next();

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

  if (al.size() > 0)  {
      list = new String [ al.size() ];
View Full Code Here

        //if autocreate false, return to normal path
        if (id == PacketType.CREATE_DESTINATION) {
            if (!checkForAutoCreate(destination, destTypeInt)) {
                return;
            }
            DestinationUID duid = DestinationUID.getUID(destination, DestType.isQueue(destTypeInt));
            if (duid == null) {
                throw new BrokerException(Globals.getBrokerResources().getString(
                    BrokerResources.X_INTERNAL_EXCEPTION,
                    "checkPermission() can't get destination uid for " + destination));
            }
View Full Code Here

                Hashtable prop = msg.getProperties();
                String dest = (String)prop.get("JMQDestination");
                int dtype = ((Integer)prop.get("JMQDestType")).intValue();
                if (id == PacketType.CREATE_DESTINATION) {
                    if (!checkForAutoCreate(dest, dtype)) return;
                    DestinationUID duid = DestinationUID.getUID(dest, DestType.isQueue(dtype));
                    Destination d = Destination.getDestination(duid);
                    if (d != null) return;
                    if (DestType.isQueue(dtype) && DestType.isTemporary(dtype)) return;
                    String[] args = {Thread.currentThread().getName(),
                                     dest, service.toString(), sr.toString(true)};
View Full Code Here

TOP

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

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.