public ConfigurationWithLogging(Configuration conf) { super(conf); log = LOG; redactor = new ConfigRedactor(conf); }
dumpGenerator.writeStartArray(); dumpGenerator.flush(); ConfigRedactor redactor = new ConfigRedactor(config); synchronized (config) { for (Map.Entry<Object,Object> item: config.getProps().entrySet()) {
dumpGenerator.writeFieldName("property"); appendJSONProperty(dumpGenerator, config, propertyName, new ConfigRedactor(config)); dumpGenerator.writeEndObject(); dumpGenerator.flush();
parent.getChangedProperties(newConf, oldConf); Map<PropertyChange, Optional<String>> results = Maps.newHashMap(); ConfigRedactor oldRedactor = new ConfigRedactor(oldConf); ConfigRedactor newRedactor = new ConfigRedactor(newConf); for (PropertyChange change : changes) { String errorMessage = null;
dumpGenerator.writeFieldName("property"); appendJSONProperty(dumpGenerator, config, propertyName, new ConfigRedactor(config)); dumpGenerator.writeEndObject(); dumpGenerator.flush();
dumpGenerator.writeStartArray(); dumpGenerator.flush(); ConfigRedactor redactor = new ConfigRedactor(config); synchronized (config) { for (Map.Entry<Object,Object> item: config.getProps().entrySet()) {
this.parent.getChangedProperties(newConf, oldConf); Map<PropertyChange, Optional<String>> results = Maps.newHashMap(); ConfigRedactor oldRedactor = new ConfigRedactor(oldConf); ConfigRedactor newRedactor = new ConfigRedactor(newConf); for (PropertyChange change : changes) { String errorMessage = null;
ConfigRedactor redactor = new ConfigRedactor(config); for (String name : System.getProperties().stringPropertyNames()) { String value = System.getProperty(name);
parent.getChangedProperties(newConf, oldConf); Map<PropertyChange, Optional<String>> results = Maps.newHashMap(); ConfigRedactor oldRedactor = new ConfigRedactor(oldConf); ConfigRedactor newRedactor = new ConfigRedactor(newConf); for (PropertyChange change : changes) { String errorMessage = null;
this.parent.getChangedProperties(newConf, oldConf); Map<PropertyChange, Optional<String>> results = Maps.newHashMap(); ConfigRedactor oldRedactor = new ConfigRedactor(oldConf); ConfigRedactor newRedactor = new ConfigRedactor(newConf); for (PropertyChange change : changes) { String errorMessage = null;
@Test public void redact() throws Exception { Configuration conf = new Configuration(); ConfigRedactor redactor = new ConfigRedactor(conf); String processedText;