Package com.sun.appserv.management.config

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


            @HandlerOutput(name="vsTimeout", type=String.class),
            @HandlerOutput(name="Properties",  type=Map.class)}
    )
    public static void getGmsInfo(HandlerContext handlerCtx) {
       
        GroupManagementServiceConfig gms = null;
        String configName = (String) handlerCtx.getInputValue("configName");
        ConfigConfig config = AMXUtil.getDomainConfig().getConfigConfigMap().get(configName);
        if (config != null){
            gms = config.getGroupManagementServiceConfig();
        }
        if (gms == null){
            handlerCtx.setOutputValue("Properties", new HashMap());
            return;
        }
        handlerCtx.setOutputValue("fdMax", gms.getFDProtocolMaxTries());
        handlerCtx.setOutputValue("fdTimeout", gms.getFDProtocolTimeoutMillis());
        handlerCtx.setOutputValue("mergeMax", gms.getMergeProtocolMaxIntervalMillis());
        handlerCtx.setOutputValue("mergeMin", gms.getMergeProtocolMinIntervalMillis());
        handlerCtx.setOutputValue("pingTimeout", gms.getPingProtocolTimeoutMillis());
        handlerCtx.setOutputValue("vsTimeout", gms.getVSProtocolTimeoutMillis());
        handlerCtx.setOutputValue("Properties", gms.getProperties());
    }
View Full Code Here


            @HandlerInput(name="vsTimeout", type=String.class),
            @HandlerInput(name="AddProps",    type=Map.class),
            @HandlerInput(name="RemoveProps", type=ArrayList.class)
        })
    public static void saveGmsSettings(HandlerContext handlerCtx) {
        GroupManagementServiceConfig gms = null;
        String configName = (String) handlerCtx.getInputValue("configName");
        try{
            ConfigConfig config = AMXUtil.getDomainConfig().getConfigConfigMap().get(configName);
            if (config != null){
                gms = config.getGroupManagementServiceConfig();
            }
            if (gms == null){
                GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.NoAMXGmsSupport"));
                return;
            }
            gms.setFDProtocolMaxTries(getAttrString(handlerCtx, "fdMax"));
            gms.setFDProtocolTimeoutMillis(getAttrString(handlerCtx, "fdTimeout"));
            gms.setMergeProtocolMaxIntervalMillis(getAttrString(handlerCtx, "mergeMax"));
            gms.setMergeProtocolMinIntervalMillis(getAttrString(handlerCtx, "mergeMin"));
            gms.setPingProtocolTimeoutMillis(getAttrString(handlerCtx, "pingTimeout"));
            gms.setVSProtocolTimeoutMillis(getAttrString(handlerCtx, "vsTimeout"));
            AMXUtil.editProperties(handlerCtx, gms);
           
        }catch (Exception ex){
      GuiUtil.handleException(handlerCtx, ex);
        }
View Full Code Here

TOP

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

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.