Package com.sun.appserv.management.config

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


        @HandlerOutput(name="AvailabilityEnabled",      type=Boolean.class),
        @HandlerOutput(name="StorePoolName",            type=String.class)})
       
        public static void getDefaultJmsAvailabilitySettings(HandlerContext handlerCtx) {
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        JMSAvailabilityConfig jmsConfig = config.getAvailabilityServiceConfig().getJMSAvailabilityConfig();
        boolean availEnabled = Boolean.valueOf(jmsConfig.getDefaultValue("AvailabilityEnabled")).booleanValue();
        String storePoolName = jmsConfig.getDefaultValue("MQStorePoolName");        
              
        handlerCtx.setOutputValue("AvailabilityEnabled", availEnabled);
        handlerCtx.setOutputValue("StorePoolName", storePoolName);
    }   
View Full Code Here


        @HandlerOutput(name="StorePoolName",            type=String.class),
        @HandlerOutput(name="Properties",               type=Map.class)})
       
        public static void getJmsAvailabilitySettings(HandlerContext handlerCtx) {
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        JMSAvailabilityConfig jmsConfig = config.getAvailabilityServiceConfig().getJMSAvailabilityConfig();
        boolean availEnabled = jmsConfig.getAvailabilityEnabled();
        String storePoolName = jmsConfig.getMQStorePoolName();
        Map<String, String> props = jmsConfig.getProperties();
        handlerCtx.setOutputValue("AvailabilityEnabled", availEnabled);
        handlerCtx.setOutputValue("StorePoolName", storePoolName);
        handlerCtx.setOutputValue("Properties", props);      
    }
View Full Code Here

        @HandlerInput(name="RemoveProps",              type=ArrayList.class)})
       
        public static void saveJmsAvailabilitySettings(HandlerContext handlerCtx) {
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        try{
            JMSAvailabilityConfig jmsConfig = config.getAvailabilityServiceConfig().getJMSAvailabilityConfig();
            jmsConfig.setAvailabilityEnabled(((Boolean)handlerCtx.getInputValue("AvailabilityEnabled")).booleanValue());
            jmsConfig.setMQStorePoolName(((String)handlerCtx.getInputValue("StorePoolName")));
            AMXUtil.editProperties(handlerCtx, jmsConfig);
        }catch(Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
    }
View Full Code Here

TOP

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

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.