Package com.sun.appserv.management.config

Examples of com.sun.appserv.management.config.ServerConfig


     * @return String  null if the instance or cluster doesn't exist.
     */
    public static String getConfigName(String name){
       
        //try to see if its a server, if not, try cluster.
        ServerConfig serverConfig = getDomainConfig().getServerConfigMap().get(name);
        if (serverConfig != null){
            return serverConfig.getReferencedConfigName();
        }
        ClusterConfig clusterConfig = getDomainConfig().getClusterConfigMap().get(name);
        if (clusterConfig != null)
            return clusterConfig.getReferencedConfigName();
        return null;
View Full Code Here


            Map <String, NodeAgentConfig> nodeAgentMap = AMXUtil.getDomainConfig().getNodeAgentConfigMap();
            NodeAgentConfig agentConfig = nodeAgentMap.get(ndAgentName);
            if(nodesInstances != null) {
                for(String key : nodesInstances.keySet()){
                    HashMap oneRow = new HashMap();
                    ServerConfig serverConfig = nodesInstances.get(key);
                    String name = serverConfig.getName();
                    if(serverConfig instanceof ClusteredServerConfig){
                        ClusteredServerConfig conf = (ClusteredServerConfig)serverConfig;
                        String clusterName = EESupportHandlers.getClusterForServer(name);
                        oneRow.put("clusterName", clusterName);
                        oneRow.put("isCluster", true);
                    } else {
                        oneRow.put("clusterName", "");
                        oneRow.put("isCluster", false);
                    }
                    String configuration = serverConfig.getReferencedConfigName();
                    String status = agentConfig.getPropertyValue("rendezvousOccurred");
                    if (status.equalsIgnoreCase("false")) {
                        status = GuiUtil.getMessage("nodeAgent.notRunning");
                    }
                    status = AMXUtil.getStatusForDisplay(
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.config.ServerConfig

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.