/** * Creates a populated Flume Configuration object. */ public FlumeConfiguration(Map<String, String> properties) { agentConfigMap = new HashMap<>(); errors = new LinkedList<>(); // Construct the in-memory component hierarchy for (Entry<String, String> entry : properties.entrySet()) { if (!addRawProperty(entry.getKey(), entry.getValue())) { LOGGER.warn("Configuration property ignored: {} = {}", entry.getKey(), entry.getValue()); } } // Now iterate thru the agentContext and create agent configs and add them // to agentConfigMap // validate and remove improperly configured components validateConfiguration(); }
/** * Creates a populated Flume Configuration object. * @deprecated please use the other constructor */ @Deprecated public FlumeConfiguration(Properties properties) { agentConfigMap = new HashMap<>(); errors = new LinkedList<>(); // Construct the in-memory component hierarchy for (Entry entry : properties.entrySet()) { if (!addRawProperty(entry.getKey().toString(), entry.getValue().toString())) { LOGGER.warn("Configuration property ignored: {} = {}", entry.getKey(), entry.getValue()); } } // Now iterate thru the agentContext and create agent configs and add them // to agentConfigMap // validate and remove improperly configured components validateConfiguration(); }
/** * Creates a populated Flume Configuration object. */ public FlumeConfiguration(Map<String, String> properties) { agentConfigMap = new HashMap<>(); errors = new LinkedList<>(); // Construct the in-memory component hierarchy for (Entry<String, String> entry : properties.entrySet()) { if (!addRawProperty(entry.getKey(), entry.getValue())) { LOGGER.warn("Configuration property ignored: {} = {}", entry.getKey(), entry.getValue()); } } // Now iterate thru the agentContext and create agent configs and add them // to agentConfigMap // validate and remove improperly configured components validateConfiguration(); }
/** * Creates a populated Flume Configuration object. * @deprecated please use the other constructor */ @Deprecated public FlumeConfiguration(Properties properties) { agentConfigMap = new HashMap<>(); errors = new LinkedList<>(); // Construct the in-memory component hierarchy for (Entry entry : properties.entrySet()) { if (!addRawProperty(entry.getKey().toString(), entry.getValue().toString())) { LOGGER.warn("Configuration property ignored: {} = {}", entry.getKey(), entry.getValue()); } } // Now iterate thru the agentContext and create agent configs and add them // to agentConfigMap // validate and remove improperly configured components validateConfiguration(); }