Examples of Enabled


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

        WebServiceEndpointInfo wsInfo = AMXUtil.getWebServiceEndpointInfo(webServiceKey);
        boolean disableTest = false;
        if (wsInfo.isSecure()) {
            disableTest = true;
        } else {
            Enabled app = null;
            if (!wsInfo.isAppStandaloneModule()) {
                app = AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().get(wsInfo.getAppID());
            } else {
                if (wsInfo.getServiceImplType().equals(WebServiceEndpointInfo.SERVLET_IMPL)) {
                    app = AMXUtil.getDomainConfig().getWebModuleConfigMap().get(wsInfo.getAppID());
View Full Code Here

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

        List result = new ArrayList();
        for(String target:  targetList){
            HashMap oneRow = new HashMap();
            oneRow.put("selected", false);
            oneRow.put("targetName",target);
            Enabled resourceConfig = getEnabledConfig(jndiName, resourceType);
            oneRow.put("enabled", Boolean.toString(TargetUtil.isResourceEnabled(resourceConfig, target)));
            result.add(oneRow);
        }
        handlerCtx.setOutputValue("result", result);
    }
View Full Code Here

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

        List selectedRows = (List) obj;
        try{
            for(int i=0; i< selectedRows.size(); i++){
                Map oneRow = (Map) selectedRows.get(i);
                String resourceName = (String) oneRow.get("name");
                Enabled resourceConfig = getEnabledConfig(resourceName, resourceType);
                if (resourceConfig == null){
                    //Can't find the deployed app, don't do anything.
                    //when the page refresh after the processing, it will be fine.
                }else{
                    List<String> targetList = TargetUtil.getDeployedTargets((AMX)resourceConfig, false);
View Full Code Here

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

       
    public static void changeResourceTargetStatus(HandlerContext handlerCtx) {
       
        String resourceType = (String)handlerCtx.getInputValue("resourceType");
        String jndiName = (String)handlerCtx.getInputValue("jndiName");
        Enabled resConfig = getEnabledConfig(jndiName, resourceType);
        if(resConfig == null){
            //Can't find the resource, don't do anything, except maybe log it in server.log
            return;
        }
       
View Full Code Here

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

    }
   
   
   
    static private Enabled getEnabledConfig(String resourceName, String resourceType){
        Enabled config = null;
        if("jdbcResource".equals(resourceType)){
            config = AMXUtil.getDomainConfig().getJDBCResourceConfigMap().get(resourceName);
        }else
        if("adminObjectResource".equals(resourceType)){
            config = AMXUtil.getDomainConfig().getAdminObjectResourceConfigMap().get(resourceName);
View Full Code Here

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

        List selectedRows = (List) obj;
        try{
            for(int i=0; i< selectedRows.size(); i++){
                Map oneRow = (Map) selectedRows.get(i);
                String appName = (String) oneRow.get("name");
                Enabled appConfig = getModuleConfig(appName, appType);
                if (appConfig == null){
                    //Can't find the deployed app, don't do anything, except maybe log it in server.log
                }else{
                    List<String> targetList = TargetUtil.getDeployedTargets((AMX)appConfig, true);
                    for(String target: targetList){
View Full Code Here

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

        for(String target:  targetList){
            HashMap oneRow = new HashMap();
            oneRow.put("selected", false);
            oneRow.put("name", appName);
            oneRow.put("targetName",target);
            Enabled module = getModuleConfig(appName, appType);
            if(module != null){  //appclients do not have enabled/lb-enabled attribute
                oneRow.put("enabled", Boolean.toString(TargetUtil.isApplicationEnabled(module, target, false)));
                oneRow.put("lbEnabled", Boolean.toString(TargetUtil.isApplicationEnabled(module, target, true)));
                oneRow.put("vsLinkArgs", "?appName="+appName+"&targetName="+target);
            }
View Full Code Here

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

        try{
            List<String>targetList = TargetUtil.getDeployedTargets(appName, forApp.booleanValue());
            for(String target : targetList){
                HashMap oneRow = new HashMap();
                StandaloneServerConfig server = AMXUtil.getDomainConfig().getStandaloneServerConfigMap().get(target);
                Enabled module = getModuleConfig(appName, appType);
                oneRow.put("selected", false);
                oneRow.put("enabled", Boolean.toString(TargetUtil.isApplicationEnabled(module, target)));
                if (server != null){
                    oneRow.put("targetName", target);
                    oneRow.put("image", AMXUtil.getStatusForDisplay(
View Full Code Here

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

    public static void changeTargetStatus(HandlerContext handlerCtx) {
       
        //appType can be one of the following: application,webApp,ejbModule,connector
        String appType = (String)handlerCtx.getInputValue("appType");
        String appName = (String)handlerCtx.getInputValue("appName");
        Enabled appConfig = getModuleConfig(appName, appType);
        if(appConfig == null){
            //Can't find the deployed app, don't do anything, except maybe log it in server.log
            return;
        }
       
View Full Code Here

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

            ctxRoot = "/" + contextRoot;
        return ctxRoot;
    }
   
    private static Enabled getModuleConfig(String appName, String appType){
        Enabled module=null;
        if ("application".equals(appType)){
      module = AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().get(appName);
        }else
        if ("ejbModule".equals(appType)){
            module = AMXUtil.getDomainConfig().getEJBModuleConfigMap().get(appName);
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.