/** * {@inheritDoc} * * This method makes the change to this objects {@link Configuration} * and calls reconfigurePropertyImpl to update internal data structures. * This method cannot be overridden, subclasses should instead override * reconfigurePropertyImpl. */ @Override public final void reconfigureProperty(String property, String newVal) throws ReconfigurationException { if (isPropertyReconfigurable(property)) { LOG.info("changing property " + property + " to " + newVal); synchronized(getConf()) { getConf().get(property); String effectiveValue = reconfigurePropertyImpl(property, newVal); if (newVal != null) { getConf().set(property, effectiveValue); } else { getConf().unset(property); } } } else { throw new ReconfigurationException(property, newVal, getConf().get(property)); } }
String oldValRedacted = oldRedactor.redact(change.prop, change.oldVal); String newValRedacted = newRedactor.redact(change.prop, change.newVal); if (!parent.isPropertyReconfigurable(change.prop)) { LOG.info(String.format( "Property %s is not configurable: old value: %s, new value: %s",
for (PropertyChange change : changes) { String errorMessage = null; if (!this.parent.isPropertyReconfigurable(change.prop)) { errorMessage = "Property " + change.prop + " is not reconfigurable";
String oldValRedacted = oldRedactor.redact(change.prop, change.oldVal); String newValRedacted = newRedactor.redact(change.prop, change.newVal); if (!this.parent.isPropertyReconfigurable(change.prop)) { errorMessage = "Property " + change.prop + " is not reconfigurable";
String oldValRedacted = oldRedactor.redact(change.prop, change.oldVal); String newValRedacted = newRedactor.redact(change.prop, change.newVal); if (!parent.isPropertyReconfigurable(change.prop)) { LOG.info(String.format( "Property %s is not configurable: old value: %s, new value: %s",
/** * {@inheritDoc} * * This method makes the change to this objects {@link Configuration} * and calls reconfigurePropertyImpl to update internal data structures. * This method cannot be overridden, subclasses should instead override * reconfigureProperty. */ @Override public final String reconfigureProperty(String property, String newVal) throws ReconfigurationException { if (isPropertyReconfigurable(property)) { LOG.info("changing property " + property + " to " + newVal); String oldVal; synchronized(getConf()) { oldVal = getConf().get(property); reconfigurePropertyImpl(property, newVal); if (newVal != null) { getConf().set(property, newVal); } else { getConf().unset(property); } } return oldVal; } else { throw new ReconfigurationException(property, newVal, getConf().get(property)); } }
/** * {@inheritDoc} * * This method makes the change to this objects {@link Configuration} * and calls reconfigurePropertyImpl to update internal data structures. * This method cannot be overridden, subclasses should instead override * reconfigureProperty. */ @Override public final void reconfigureProperty(String property, String newVal) throws ReconfigurationException { if (isPropertyReconfigurable(property)) { LOG.info("changing property " + property + " to " + newVal); synchronized(getConf()) { getConf().get(property); String effectiveValue = reconfigurePropertyImpl(property, newVal); if (newVal != null) { getConf().set(property, effectiveValue); } else { getConf().unset(property); } } } else { throw new ReconfigurationException(property, newVal, getConf().get(property)); } }
/** * {@inheritDoc} * * This method makes the change to this objects {@link Configuration} * and calls reconfigurePropertyImpl to update internal data structures. * This method cannot be overridden, subclasses should instead override * reconfigureProperty. */ @Override public final String reconfigureProperty(String property, String newVal) throws ReconfigurationException { if (isPropertyReconfigurable(property)) { LOG.info("changing property " + property + " to " + newVal); String oldVal; synchronized(getConf()) { oldVal = getConf().get(property); reconfigurePropertyImpl(property, newVal); if (newVal != null) { getConf().set(property, newVal); } else { getConf().unset(property); } } return oldVal; } else { throw new ReconfigurationException(property, newVal, getConf().get(property)); } }
/** * {@inheritDoc} * * This method makes the change to this objects {@link Configuration} * and calls reconfigurePropertyImpl to update internal data structures. * This method cannot be overridden, subclasses should instead override * reconfigureProperty. */ @Override public final String reconfigureProperty(String property, String newVal) throws ReconfigurationException { if (isPropertyReconfigurable(property)) { LOG.info("changing property " + property + " to " + newVal); String oldVal; synchronized(getConf()) { oldVal = getConf().get(property); reconfigurePropertyImpl(property, newVal); if (newVal != null) { getConf().set(property, newVal); } else { getConf().unset(property); } } return oldVal; } else { throw new ReconfigurationException(property, newVal, getConf().get(property)); } }
/** * {@inheritDoc} * * This method makes the change to this objects {@link Configuration} * and calls reconfigurePropertyImpl to update internal data structures. * This method cannot be overridden, subclasses should instead override * reconfigureProperty. */ @Override public final String reconfigureProperty(String property, String newVal) throws ReconfigurationException { if (isPropertyReconfigurable(property)) { LOG.info("changing property " + property + " to " + newVal); String oldVal; synchronized(getConf()) { oldVal = getConf().get(property); reconfigurePropertyImpl(property, newVal); if (newVal != null) { getConf().set(property, newVal); } else { getConf().unset(property); } } return oldVal; } else { throw new ReconfigurationException(property, newVal, getConf().get(property)); } }
String oldValRedacted = oldRedactor.redact(change.prop, change.oldVal); String newValRedacted = newRedactor.redact(change.prop, change.newVal); if (!this.parent.isPropertyReconfigurable(change.prop)) { errorMessage = "Property " + change.prop + " is not reconfigurable";