Package com.sun.messaging.jmq.util.admin

Examples of com.sun.messaging.jmq.util.admin.ConnectionInfo


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

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

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


        return (con.getSelectorStr());
    }

    public static String getServiceOfConnection(long id)  {
  ConnectionInfo cxnInfo = getConnectionInfo(id);

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

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

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

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

  return (host);
    }

    public Integer getNumConsumers()  {
  ConnectionInfo cxnInfo = ConnectionUtil.getConnectionInfo(id);

  return (new Integer(cxnInfo.nconsumers));
    }
View Full Code Here

  return (new Integer(cxnInfo.nconsumers));
    }

    public Integer getNumProducers()  {
  ConnectionInfo cxnInfo = ConnectionUtil.getConnectionInfo(id);

  return (new Integer(cxnInfo.nproducers));
    }
View Full Code Here

  return (new Integer(cxnInfo.nproducers));
    }

    public Integer getPort()  {
  ConnectionInfo cxnInfo = ConnectionUtil.getConnectionInfo(id);

  return (new Integer(cxnInfo.remPort));
    }
View Full Code Here

  return (serviceName);
    }

    public String getUser()  {
  ConnectionInfo cxnInfo = ConnectionUtil.getConnectionInfo(id);

  return (cxnInfo.user);
    }
View Full Code Here

     */
    public static List getConnectionInfoList(String service)  {
  ConnectionManager cm = Globals.getConnectionManager();
  List connections, connectionInfoList = new ArrayList();
  IMQConnection  cxn;
  ConnectionInfo cxnInfo;

  try  {
      Service s = null;

      if (service != null)  {
View Full Code Here

    /**
     * Returns the ConnectionInfo for the passed connection ID.
     */
    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)  {
View Full Code Here

  return (cxnInfo);
    }

    public static String getServiceOfConnection(long id)  {
  ConnectionInfo cxnInfo = getConnectionInfo(id);

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

TOP

Related Classes of com.sun.messaging.jmq.util.admin.ConnectionInfo

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.