Examples of MQAddress


Examples of com.sun.messaging.jmq.io.MQAddress

             if (!local) {
                 throw new UnsupportedOperationException(
                    "Only the local broker can have its url changed");
             }

             MQAddress oldaddress = this.address;
             try {
                 updateEntry(HABrokerInfo.UPDATE_URL, null, address.toString());
                 this.address = address;
             } catch (Exception ex) {
                 logger.logStack(logger.ERROR,
View Full Code Here

Examples of com.sun.messaging.jmq.io.MQAddress

     * @param port  Portmapper port
     * @return    Portmapper address. This MQAddress does not include the
     *      service name. It is of the form mq://host:port.
     */
    public static MQAddress getPortMapperMQAddress(Integer port)  {
  MQAddress  addr = null;

  if (port == null)  {
      if (DEBUG)  {
          Logger logger = Globals.getLogger();
                logger.log(Logger.DEBUG, "Null port passed in to getPortMapperMQAddress()");
View Full Code Here

Examples of com.sun.messaging.jmq.io.MQAddress

     *        e.g. mqtcp://myhost:87635/jms
     * @return    Connection service address.
     */
    public static MQAddress getServiceMQAddress(String svcName, Integer port,
        boolean bypassPortmapper)  {
  MQAddress addr = null;
  String scheme = "mq";
  Logger logger = Globals.getLogger();

  if ((svcName == null) || (svcName.equals("")) || (port == null))  {
      if (DEBUG)  {
View Full Code Here

Examples of com.sun.messaging.jmq.io.MQAddress

    public String getResourceState()  {
  return (Globals.getMemManager().getCurrentLevelName());
    }

    public MQAddress getMQAddress()  {
  MQAddress addr = null;

  try  {
      addr = MQAddressUtil.getPortMapperMQAddress(getPort());
  } catch (Exception e)  {
  }
View Full Code Here

Examples of com.sun.messaging.jmq.io.MQAddress

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

  MQAddress address = cm.getMQAddress();

        String id = null;

        try  {
            id = cm.lookupBrokerID(BrokerMQAddress.createAddress(address.toString()));
        } catch (Exception e)  {
            return (null);
        }

        if ((id == null) || (id.equals("")))  {
View Full Code Here

Examples of com.sun.messaging.jmq.io.MQAddress

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

  MQAddress address = cm.getMQAddress();

        String id = null;

        try  {
            id = cm.lookupBrokerID(BrokerMQAddress.createAddress(address.toString()));
        } catch (Exception e)  {
            handleGetterException(ClusterAttributes.LOCAL_BROKER_INFO, e);
        }

        if ((id == null) || (id.equals("")))  {
View Full Code Here

Examples of com.sun.messaging.jmq.io.MQAddress

            s = new HashSet();
        }

        Iterator itr = s.iterator();
        while (itr.hasNext()) {
            MQAddress addr = (MQAddress)itr.next();
            if (lookupBrokerID(addr) == null) {
                String name = addBroker(addr,false, true, null);
            }
        }

        // OK, we need to clean up the allBroker's list

        List oldBrokers = new ArrayList();
        synchronized (allBrokers) {
            itr = allBrokers.values().iterator();
            while (itr.hasNext()) {
                ClusteredBroker cb = (ClusteredBroker)itr.next();
                ((ClusteredBrokerImpl)cb)
                           .setConfigBroker(true);
                MQAddress addr = cb.getBrokerURL();
                if (s.contains(addr)) {
                    s.remove(addr);
                    continue;
                } else if (!cb.isLocalBroker()) {
                    oldBrokers.add(cb);
View Full Code Here

Examples of com.sun.messaging.jmq.io.MQAddress

       
        ClusteredBroker oldMaster = getMasterBroker();
        masterBroker = null;
        if (mbroker != null) {
            // ok, see if we exist
            MQAddress addr = null;
            try {
                addr = BrokerMQAddress.createAddress(mbroker);

            } catch (Exception ex) {
                logger.log(Logger.ERROR,
View Full Code Here

Examples of com.sun.messaging.jmq.io.MQAddress

     * @param address the new address of the local brokers portmapper
     */
    protected void mqAddressChanged(MQAddress address) throws Exception
    {
        ClusteredBroker cb = getLocalBroker();
        MQAddress oldAddress = cb.getBrokerURL();
        cb.setBrokerURL(address);
        brokerChanged(ClusterReason.ADDRESS_CHANGED,
                cb.getBrokerName(), oldAddress, address,null,  null);
    }
View Full Code Here

Examples of com.sun.messaging.jmq.io.MQAddress

     * Change the portmapper service's host interface
     */
    public synchronized void setHostname(String hostname)
        throws PropertyUpdateException {

        MQAddress mqaddr = null;
        try {
            String h = hostname;
            if (hostname != null &&
                hostname.equals(Globals.HOSTNAME_ALL)) {
                h = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.