Package com.sun.appserv.management.config

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


        @HandlerOutput(name="AutoDeployDirectory", type=String.class),
        @HandlerOutput(name="Properties", type=Map.class)})    
        public static void getServerAppsConfigAttributes(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        DASConfig dConfig = config.getAdminServiceConfig().getDASConfig();
        boolean reload = dConfig.getDynamicReloadEnabled();
        String reloadInterval = dConfig.getDynamicReloadPollIntervalInSeconds();
        boolean autoDeploy = dConfig.getAutodeployEnabled();
        String adminTimeout = dConfig.getAdminSessionTimeoutInMinutes();
        String autoDeployInterval = dConfig.getAutodeployPollingIntervalInSeconds();
        String autoDeployDirectory = dConfig.getAutodeployDir() ;
        boolean precompile = dConfig.getAutodeployJSPPrecompilationEnabled();
        boolean verifier = dConfig.getAutodeployVerifierEnabled();
        Map<String, String> props = dConfig.getProperties();
        handlerCtx.setOutputValue("Reload", reload);
        handlerCtx.setOutputValue("ReloadInterval", reloadInterval);
        handlerCtx.setOutputValue("AutoDeploy", autoDeploy);
        handlerCtx.setOutputValue("AdminTimeout", adminTimeout);
        handlerCtx.setOutputValue("AutoDeployInterval", autoDeployInterval);
View Full Code Here


        @HandlerOutput(name="Precompile", type=Boolean.class),
        @HandlerOutput(name="AutoDeployDirectory", type=String.class)})    
        public static void getServerDefaultAppsConfigAttributes(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        DASConfig dConfig = config.getAdminServiceConfig().getDASConfig();
        String reload = dConfig.getDefaultValue("DynamicReloadEnabled");
        String reloadInterval = dConfig.getDefaultValue("DynamicReloadPollIntervalInSeconds");
        String autoDeploy = dConfig.getDefaultValue("AutodeployEnabled");
        String adminTimeout = dConfig.getDefaultValue("AdminSessionTimeoutInMinutes");
        String autoDeployInterval = dConfig.getDefaultValue("AutodeployPollingIntervalInSeconds");
        String autoDeployDirectory = dConfig.getDefaultValue("AutodeployDir") ;
        String precompile = dConfig.getDefaultValue("AutodeployJSPPrecompilationEnabled");
        String verifier = dConfig.getDefaultValue("AutodeployVerifierEnabled");

        if(reload.equals("true")) {
            handlerCtx.setOutputValue("Reload", true);   
        } else {
            handlerCtx.setOutputValue("Reload", false);
View Full Code Here

        @HandlerInput(name="AddProps", type=Map.class),
        @HandlerInput(name="RemoveProps", type=ArrayList.class)})
        public static void saveServerAppsConfigAttributes(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        DASConfig dConfig = config.getAdminServiceConfig().getDASConfig();
        ArrayList removeProps = (ArrayList)handlerCtx.getInputValue("RemoveProps");
        Map addProps = (Map)handlerCtx.getInputValue("AddProps");
        String[] remove = (String[])removeProps.toArray(new String[ removeProps.size()]);
        for(int i=0; i<remove.length; i++){
            dConfig.removeProperty(remove[i]);
        }
        if(addProps != null ){
            Iterator additer = addProps.keySet().iterator();
            while(additer.hasNext()){
                Object key = additer.next();
                String addvalue = (String)addProps.get(key);
                dConfig.setPropertyValue((String)key, addvalue);
               
            }
        }     
        dConfig.setDynamicReloadEnabled(((Boolean)handlerCtx.getInputValue("Reload")).booleanValue());
        dConfig.setDynamicReloadPollIntervalInSeconds((String)handlerCtx.getInputValue("ReloadInterval"));
        dConfig.setAutodeployEnabled(((Boolean)handlerCtx.getInputValue("AutoDeploy")).booleanValue());
        dConfig.setAdminSessionTimeoutInMinutes((String)handlerCtx.getInputValue("AdminTimeout"));
        dConfig.setAutodeployPollingIntervalInSeconds((String)handlerCtx.getInputValue("AutoDeployInterval"));
        dConfig.setAutodeployDir((String)handlerCtx.getInputValue("AutoDeployDirectory")) ;
        dConfig.setAutodeployJSPPrecompilationEnabled(((Boolean)handlerCtx.getInputValue("Precompile")).booleanValue());
        dConfig.setAutodeployVerifierEnabled(((Boolean)handlerCtx.getInputValue("Verifier")).booleanValue());               
    }
View Full Code Here

        sessionMap.put("reqNum", GuiUtil.getMessage("msg.JS.enterNumericValue"));
        sessionMap.put("reqPort", GuiUtil.getMessage("msg.JS.enterPortValue"));
        sessionMap.put("_SESSION_INITIALIZED","TRUE");
       
        ConfigConfig config = AMXUtil.getConfig("server-config");
        DASConfig dConfig = config.getAdminServiceConfig().getDASConfig();
        String timeOut = dConfig.getAdminSessionTimeoutInMinutes();

    if((timeOut != null) && (!timeOut.equals(""))) {
      try {
        int time = new Integer(timeOut).intValue();
        if (time == 0) {
View Full Code Here

TOP

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

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.