private void setPropertyNoOverride(ProtocolConfiguration protocol, org.jgroups.conf.ProtocolConfiguration config, String name, String value) { boolean overridden = false ; String propertyValue = null ; // check if the property has been overridden by the user and log a message try { if (overridden = config.getOriginalProperties().containsKey(name)) propertyValue = config.getOriginalProperties().get(name); } catch(Exception e) { ROOT_LOGGER.unableToAccessProtocolPropertyValue(e, name, protocol.getName()); } // log a warning if property tries to override if (overridden) { ROOT_LOGGER.unableToOverrideSocketBindingValue(name, protocol.getName(), value, propertyValue); } setProperty(protocol, config, name, value); }
private static void setSocketBindingProperty(Introspector introspector, org.jgroups.conf.ProtocolConfiguration config, String name, String value) { try { Map<String, String> properties = config.getOriginalProperties(); if (properties.containsKey(name)) { ROOT_LOGGER.unableToOverrideSocketBindingValue(name, config.getProtocolName(), value, properties.get(name)); } setProperty(introspector, config, name, value); } catch (Exception e) { ROOT_LOGGER.unableToAccessProtocolPropertyValue(e, name, config.getProtocolName()); } }