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

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


  return (d);
    }

    public static DestinationUID getDestinationUID(ConsumerUID cid)  {
        Consumer con = Consumer.getConsumer(cid);
        DestinationUID id = null;

  if (con != null)  {
            id = con.getDestinationUID();
  }

  return (id);
    }
View Full Code Here


  consumers = hs.iterator();

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

      id = Long.toString(conID);

      ids[i] = id;
View Full Code Here

    IllegalArgumentException(rb.getString(rb.X_JMX_INVALID_CONSUMER_ID_SPEC, consumerID));
  }

  tmpcid = new ConsumerUID(longCid);

  Consumer con = Consumer.getConsumer(tmpcid);

  if (con == null)  {
      throw new BrokerException(rb.getString(rb.X_JMX_CONSUMER_NOT_FOUND, consumerID));
  }
    con.load(); // triggers the broker to load messages if necessary

  cid = con.getConsumerUID();

  if (cid == null)  {
      throw new BrokerException(rb.getString(rb.X_JMX_CONSUMER_NOT_FOUND, consumerID));
  }
View Full Code Here

    private static String getAcknowledgeModeLabel(ConsumerUID cid)  {
        return (toExternalAckModeString(cid.getAckType()));
    }

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

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

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

  return(Long.toString(cxnId.longValue()));
    }

    private static String[] getDestinationNames(ConsumerUID cid)  {
        Consumer con = Consumer.getConsumer(cid);
  String[] ret = null;

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

  ArrayList<String> al = new ArrayList<String>();
  Set dests = con.getDestinations();
    if (dests == null) return null;
  Iterator itr = dests.iterator();
  while (itr.hasNext()) {
      Destination dest = (Destination)itr.next();
      al.add(dest.getDestinationName());
View Full Code Here

        return (new Boolean(isDurableActive(cid)));
    }

    private static String getDurableName(ConsumerUID cid)  {
  Consumer con;
  Subscription sub;

  if (!getDurable(cid).booleanValue())  {
      return (null);
  }

  con = Consumer.getConsumer(cid);
  if (con == null)  {
      return (null);
  }

  if (con instanceof Subscription)  {
            return (((Subscription)con).getDurableName());
  } else  {
      sub = con.getSubscription();

      if (sub != null)  {
                return (sub.getDurableName());
      } else  {
                return (null);
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.