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

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


  return (cxnInfo);
    }

    private static String getHost(ConsumerUID cid)  {
  ConnectionUID cxnId = getConnectionUID(cid);

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

  ConnectionInfo cxnInfo = getConnectionInfo(cxnId.longValue());

  if (cxnInfo == null)  {
      return (null);
  }
View Full Code Here


  return(cxnInfo.service);
    }

    private static String getServiceName(ConsumerUID cid)  {
  ConnectionUID cxnId = getConnectionUID(cid);

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

  String serviceName = getServiceOfConnection(cxnId.longValue());

  return (serviceName);
    }
View Full Code Here

  return (serviceName);
    }

    private static String getUser(ConsumerUID cid)  {
  ConnectionUID cxnId = getConnectionUID(cid);

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

  ConnectionInfo cxnInfo = getConnectionInfo(cxnId.longValue());

  if (cxnInfo == null)  {
      return (null);
  }
View Full Code Here

    public static ConsumerUID readConsumerUID(DataInputStream dis)
          throws IOException
    {
        long id = dis.readLong(); // UID write
        ConnectionUID conuid = new ConnectionUID(dis.readLong());
        BrokerAddress tempaddr = Globals.getMyAddress();
        BrokerAddress brokeraddr = (BrokerAddress)tempaddr.clone();
        brokeraddr.readBrokerAddress(dis); // UID write
        ConsumerUID cuid = new ConsumerUID(id);
        cuid.setConnectionUID(conuid);
View Full Code Here

               gp.putProp("shareccUUID", cri.getUUID());
               gp.putProp("shareccResetUUID", cri.getResetUUID());
           }

           if (DestType.isTemporary(d.getType())) {
               ConnectionUID cuid = d.getConnectionUID();
               if (cuid != null) {
                   gp.putProp("connectionUID", new Long(cuid.longValue()));
               }
           }

           HashMap props = d.getDestinationProperties();
           if (props == null) props = new HashMap();
View Full Code Here

    public static ConnectionInfo getConnectionInfo(long id)  {
  ConnectionManager cm = Globals.getConnectionManager();
  ConnectionInfo cxnInfo = null;
  IMQConnection  cxn = null;

  cxn = (IMQConnection)cm.getConnection(new ConnectionUID(id));

  if (cxn == null)  {
      return (null);
  }
View Full Code Here

  return(cxnInfo.service);
    }

    public static Long getCreationTime(long cxnId)  {
  long currentTime = System.currentTimeMillis();
  ConnectionUID cxnUID = new ConnectionUID(cxnId);

  return (new Long(currentTime - cxnUID.age(currentTime)));
    }
View Full Code Here

  ConnectionManager  cm = Globals.getConnectionManager();
  ConnectionInfo    cxnInfo = null;
  IMQConnection    cxn = null;
  List      consumerIDs;

  cxn = (IMQConnection)cm.getConnection(new ConnectionUID(cxnId));
  consumerIDs = cxn.getConsumersIDs();

  return (consumerIDs);
    }
View Full Code Here

  ConnectionManager  cm = Globals.getConnectionManager();
  ConnectionInfo    cxnInfo = null;
  IMQConnection    cxn = null;
  List      producerIDs;

  cxn = (IMQConnection)cm.getConnection(new ConnectionUID(cxnId));
  producerIDs = cxn.getProducerIDs();

  return (producerIDs);
    }
View Full Code Here

    public static void destroyConnection(long cxnId, String reasonString)  {
  ConnectionManager  cm = Globals.getConnectionManager();
  IMQConnection    cxn = null;

  cxn = (IMQConnection)cm.getConnection(new ConnectionUID(cxnId));

  if (cxn != null)  {
      cxn.destroyConnection(true, GoodbyeReason.ADMIN_KILLED_CON,
            reasonString);
  }
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.