@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);
}