Package com.sun.appserv.management.j2ee

Examples of com.sun.appserv.management.j2ee.J2EECluster


        try{
            for(Map oneRow : selectedRows){
                String name = (String)oneRow.get("name");
                // see if the cluster is running...
                boolean running = true;
                J2EECluster j2eeCluster = AMXUtil.getJ2EEDomain().getJ2EEClusterMap().get(name);
                // try to stop the cluster.
                if(j2eeCluster.getstate() == StateManageable.STATE_RUNNING){
                    j2eeCluster.stop();
                }
                // get the list of instances of the cluster
                Map<String,ClusteredServerConfig> serverMap = AMXUtil.getDomainConfig().getClusterConfigMap().get(name).getClusteredServerConfigMap();
                if(serverMap != null){
                    // delete the instances one by one.  Need to use JMX. AMX API not working correctly.
View Full Code Here


            new MBeanServerConnectionSource(mbs));
        final Set proxies = proxyFactory.getDomainRoot().getQueryMgr().
            queryJ2EETypeSet(J2EECluster.J2EE_TYPE);
        final Iterator it = proxies.iterator();
        while (it.hasNext()) {
            J2EECluster cluster = (J2EECluster)it.next();
            if (cluster.getName().equals(clusterName)) {
                on = Util.getObjectName(cluster);
                break;
            }
        }
        try {
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.j2ee.J2EECluster

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.