Package com.sun.messaging.jmq.jmsserver.cluster

Examples of com.sun.messaging.jmq.jmsserver.cluster.ClusterManager


                throw new IllegalAccessException(
                    Globals.getBrokerResources().getKString(
                        BrokerResources.X_ADMIN_CHANGE_MASTER_NOT_FROM_JMSRA));
            }

            ClusterManager cm = Globals.getClusterManager();
            BrokerMQAddress self = (BrokerMQAddress)cm.getMQAddress();
            BrokerMQAddress master = (cm.getMasterBroker() == null ?
                                      null:(BrokerMQAddress)cm.getMasterBroker().getBrokerURL());
            BrokerMQAddress newmba = BrokerMQAddress.createAddress(newmb);
            BrokerMQAddress oldmba = null;
            if (oldmb != null) {
                oldmba = BrokerMQAddress.createAddress(oldmb);
            }
View Full Code Here


            logger.log(Logger.ERROR, msg);
            msg = "BAD REQUEST";

        } else  {
             try {
                 ClusterManager cm = Globals.getClusterManager();
                 MQAddress self = cm.getMQAddress();
                 String brokerlist = (String)cmd_props.get(MessageType.JMQ_CLUSTER_BROKERLIST);
                 Set brokers = ClusterManagerImpl.parseBrokerList(brokerlist);
                 MQAddress master = (cm.getMasterBroker() == null ?
                                     null:cm.getMasterBroker().getBrokerURL());
                 logger.log(logger.INFO, rb.getKString(rb.I_UPDATE_BROKERLIST,
                     self+(master == null ?"]":"("+ClusterManagerImpl.CONFIG_SERVER+"="+master+")"),
                     "["+brokerlist+"]"));
                 if (master != null && !brokers.contains(master)) {
                     msg = rb.getKString(rb.X_REMOVE_MASTERBROKER_NOT_ALLOWED,
View Full Code Here

    * @param brokerSession uid associated with the changed broker
    * @param userData data associated with the state change
    */
    public void brokerStatusChanged(String brokerid,
                  int oldStatus, int newStatus, UID uid, Object userData) {
        ClusterManager clsmgr = Globals.getClusterManager();
        ClusteredBroker cb = clsmgr.getBroker(brokerid);
        if (DEBUG_CLUSTER_TXN) {
            logger.log(logger.INFO, "TransactionList:brokerStatusChanged:broker="+cb+", oldStatus="+
                       BrokerStatus.toString(oldStatus)+", newStatus="+BrokerStatus.toString(newStatus)+
                       ", brokerSession="+uid+", userData="+userData);
        }
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.jmsserver.cluster.ClusterManager

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.