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

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


    public static Destination createDestination(String name, int type,
            boolean store, boolean autocreated, Object from)
                throws BrokerException, IOException
    {
        ConnectionUID uid = null;
        boolean remote = false;
        if (from instanceof ConnectionUID) {
            uid = (ConnectionUID) from;
        }
        if (from instanceof BrokerAddress) {
View Full Code Here


    }

    public static ConnectionUID getConnectionUID(ConsumerUID cid)  {
  Consumer con = Consumer.getConsumer(cid);
  ConnectionUID cxnId = null;

  if (isDurable(cid))  {
      if (!isDurableActive(cid))  {
    /*
     * Return null if this is an inactive durable
View Full Code Here

        return (con.getClientID());
    }

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

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

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

        return (new Boolean(con.getIsFlowPaused()));
    }

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

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

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

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

        return (con.getSelectorStr());
    }

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

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

  String serviceName = ConnectionUtil.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 = ConnectionUtil.getConnectionInfo(cxnId.longValue());

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

            }
        }
        if (list == null) return;
        Iterator itr = list.iterator();
        while (itr.hasNext()) {
            ConnectionUID uid = (ConnectionUID)itr.next();
            IMQConnection con = (IMQConnection)Globals.getConnectionManager()
                                .getConnection(uid);
            String reason = null;
            try {
                reason = (String)reasonlist.removeFirst();
View Full Code Here

        return (con.getClientID());
    }

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

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

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

    }

    public static ConnectionUID getConnectionUID(ConsumerUID cid)  {
  Consumer con = Consumer.getConsumer(cid);
  ConnectionUID cxnId = null;

  if (isDurable(cid))  {
      if (!isDurableActive(cid))  {
    /*
     * Return null if this is an inactive durable
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

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.