Package com.sun.messaging.jmq.jmsserver.service

Examples of com.sun.messaging.jmq.jmsserver.service.ConnectionUID


    protected static ConsumerUID readConsumerUID(DataInputStream dis)
          throws IOException
    {
        long id = dis.readLong(); // UID write
        ConnectionUID conuid = new ConnectionUID(dis.readLong());
        BrokerAddress tempaddr = Globals.getMyAddress();
        if (tempaddr == null) {
            // XXX Revisit and cleanup : This method may be called
            // before cluster initialization only during persistent
            // store upgrade. i.e. from -
View Full Code Here


  DestMetricsCounters dmc = d.getMetrics();
  return (new Long(dmc.getAverageMessageBytes()));
    }

    public String getConnectionID()  {
  ConnectionUID cxnId;

  if (!isTemporary().booleanValue())  {
      return (null);
  }

  cxnId = d.getConnectionUID();

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

  return (Long.toString(cxnId.longValue()));
    }
View Full Code Here

  return (ids);
    }

    public ObjectName getConnection() throws MBeanException  {
  ConnectionUID cxnId;
  ObjectName oName = null;

  if (!isTemporary().booleanValue())  {
      return (null);
  }

  cxnId = d.getConnectionUID();

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

  try  {
      oName = MQObjectName.createConnectionMonitor(Long.toString(cxnId.longValue()));
  } catch (Exception e)  {
      handleOperationException(DestinationOperations.GET_CONNECTION, e);
  }

  return (oName);
View Full Code Here

        } else {
            table.put("nacks", new Integer(tl.retrieveNRemoteConsumedMessages(id)));
        }
        table.put("state", new Integer(ts.getState()));

  ConnectionUID cuid = ts.getConnectionUID();
  if (cuid != null)  {
      table.put("connectionid", new Long(cuid.longValue()));
  }

  TransactionBroker homeBroker = tl.getRemoteTransactionHomeBroker(id);
  String homeBrokerStr = "";
  if (homeBroker != null)  {
View Full Code Here

                logger.log(Logger.INFO, BrokerResources.I_DESTROY_CXN,
                       String.valueOf(cxnId.longValue()));
                // Get info for one connection
                cxn = (IMQConnection)cm.getConnection(
                                new ConnectionUID(cxnId.longValue()));
                if (cxn != null) {
                    if (DEBUG) {
                        cxn.dump();
                    }
                    cxn.destroyConnection(true, GoodbyeReason.ADMIN_KILLED_CON,
View Full Code Here

        // otherwise
        // Compare ConsumerUIDs

        HashSet hs = new HashSet();
        Iterator nlitr = matching.iterator();
        ConnectionUID pcuid = msg.getProducingConnectionUID();
        String clientid = msg.getClientID();
        while (nlitr.hasNext()) {
            Consumer c = (Consumer)nlitr.next();
            if (c.getNoLocal()) {
                // fix for 5025241 Durable subscriber with noLocal=true
View Full Code Here

        }

        // deal w/ isLocal
        if (hasNoLocalConsumers) {
            Iterator nlitr = matching.iterator();
            ConnectionUID pcuid = msg.getProducingConnectionUID();
            String clientid = msg.getClientID();
            while (nlitr.hasNext()) {
                Consumer c = (Consumer)nlitr.next();
                if (c.getNoLocal()) {
                    // fix for 5025241 Durable subscriber with noLocal=true
View Full Code Here

    }

    // deal w/ isLocal
    if (hasNoLocalConsumers) {
      Iterator nlitr = matching.iterator();
      ConnectionUID pcuid = msg.getProducingConnectionUID();
      String clientid = msg.getClientID();
      while (nlitr.hasNext()) {
        Consumer c = (Consumer) nlitr.next();
        if (c.getNoLocal()) {
          // fix for 5025241 Durable subscriber with noLocal=true
View Full Code Here

    public void setCreator(String id) {
        creator = id;
    }

    public String getClientID() {
        ConnectionUID cuid = getConnectionUID();
        if (cuid == null) return "<unknown>";

        Connection con = (Connection)Globals.getConnectionManager()
                            .getConnection(cuid);
        return (String)con.getClientData(IMQConnection.CLIENT_ID);
View Full Code Here

                pauseFlowCnt ++;
                flowPaused = true;
            }
        } else if (ref.getMessageDeliveredAck(uid)) {
            HashMap props = null;
            ConnectionUID cuid = getConnectionUID();
            if (cuid != null) {
                IMQConnection con = (IMQConnection)Globals.getConnectionManager().
                                                         getConnection(cuid);
                if (con != null) {
                    props = new HashMap();
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.jmsserver.service.ConnectionUID

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.