Package com.sun.appserv.management.config

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


        @HandlerOutput(name="HttpSessionStore",         type=String.class),
        @HandlerOutput(name="PersistenceHealthCheck",   type=Boolean.class)})
       
        public static void getDefaultWebAvailabilitySettings(HandlerContext handlerCtx) {
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        WebContainerAvailabilityConfig webConfig = config.getAvailabilityServiceConfig().getWebContainerAvailabilityConfig();
        boolean availEnabled = Boolean.valueOf(webConfig.getDefaultValue("AvailabilityEnabled")).booleanValue();
        String persistenceType = webConfig.getDefaultValue("PersistenceType");        
        String persistenceFreq = webConfig.getDefaultValue("PersistenceFrequency");       
        String persistenceScope = webConfig.getDefaultValue("PersistenceScope");       
        boolean singleSignOn = Boolean.valueOf(webConfig.getDefaultValue("SSOFailoverEnabled")).booleanValue();
        String httpSessionStore = webConfig.getDefaultValue("HTTPSessionStorePoolName");       
        boolean persistenceHealthChk = Boolean.valueOf(webConfig.getDefaultValue("PersistenceStoreHealthCheckEnabled")).booleanValue();
               
        handlerCtx.setOutputValue("AvailabilityEnabled", availEnabled);
        handlerCtx.setOutputValue("PersistenceType", persistenceType);
        handlerCtx.setOutputValue("PersistenceFrequency", persistenceFreq);
        handlerCtx.setOutputValue("PersistenceScope", persistenceScope);
View Full Code Here


        @HandlerOutput(name="PersistenceHealthCheck",   type=Boolean.class),
        @HandlerOutput(name="Properties",               type=Map.class)})
       
        public static void getWebAvailabilitySettings(HandlerContext handlerCtx) {
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        WebContainerAvailabilityConfig webConfig = config.getAvailabilityServiceConfig().getWebContainerAvailabilityConfig();
        boolean availEnabled = webConfig.getAvailabilityEnabled();
        String persistenceType = webConfig.getPersistenceType();
        String persistenceFreq = webConfig.getPersistenceFrequency();
        String persistenceScope = webConfig.getPersistenceScope();
        boolean singleSignOn = webConfig.getSSOFailoverEnabled();
        String httpSessionStore = webConfig.getHTTPSessionStorePoolName();
        boolean persistenceHealthChk = webConfig.getPersistenceStoreHealthCheckEnabled();
        Map<String, String> props = webConfig.getProperties();
        handlerCtx.setOutputValue("AvailabilityEnabled", availEnabled);
        handlerCtx.setOutputValue("PersistenceType", persistenceType);
        handlerCtx.setOutputValue("PersistenceFrequency", persistenceFreq);
        handlerCtx.setOutputValue("PersistenceScope", persistenceScope);
        handlerCtx.setOutputValue("SingleSignOn", singleSignOn);     
View Full Code Here

        @HandlerInput(name="RemoveProps",              type=ArrayList.class)})
       
        public static void saveWebAvailabilitySettings(HandlerContext handlerCtx) {
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        try{
            WebContainerAvailabilityConfig webConfig = config.getAvailabilityServiceConfig().getWebContainerAvailabilityConfig();
            webConfig.setAvailabilityEnabled(((Boolean)handlerCtx.getInputValue("AvailabilityEnabled")).booleanValue());
            webConfig.setPersistenceType(((String)handlerCtx.getInputValue("PersistenceType")));
            webConfig.setPersistenceFrequency(((String)handlerCtx.getInputValue("PersistenceFrequency")));
            webConfig.setPersistenceScope(((String)handlerCtx.getInputValue("PersistenceScope")));
            webConfig.setSSOFailoverEnabled(((Boolean)handlerCtx.getInputValue("SingleSignOn")).booleanValue());
            webConfig.setHTTPSessionStorePoolName(((String)handlerCtx.getInputValue("HttpSessionStore")));
            webConfig.setPersistenceStoreHealthCheckEnabled(((Boolean)handlerCtx.getInputValue("PersistenceHealthCheck")));
            AMXUtil.editProperties(handlerCtx, webConfig);
        }catch(Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
    }
View Full Code Here

TOP

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

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.