BasicConfigurationConstants.CONFIG_SOURCES_PREFIX);
if (cnck != null) {
// it is a source
String name = cnck.getComponentName();
Context srcConf = sourceContextMap.get(name);
if (srcConf == null) {
srcConf = new Context();
sourceContextMap.put(name, srcConf);
}
srcConf.put(cnck.getConfigKey(), value);
return true;
}
cnck = parseConfigKey(key,
BasicConfigurationConstants.CONFIG_CHANNELS_PREFIX);
if (cnck != null) {
// it is a channel
String name = cnck.getComponentName();
Context channelConf = channelContextMap.get(name);
if (channelConf == null) {
channelConf = new Context();
channelContextMap.put(name, channelConf);
}
channelConf.put(cnck.getConfigKey(), value);
return true;
}
cnck = parseConfigKey(key,
BasicConfigurationConstants.CONFIG_SINKS_PREFIX);
if (cnck != null) {
// it is a sink
String name = cnck.getComponentName().trim();
logger.info("Processing:" + name);
Context sinkConf = sinkContextMap.get(name);
if (sinkConf == null) {
logger.debug("Created context for " + name + ": "
+ cnck.getConfigKey());
sinkConf = new Context();
sinkContextMap.put(name, sinkConf);
}
sinkConf.put(cnck.getConfigKey(), value);
return true;
}
cnck = parseConfigKey(key,
BasicConfigurationConstants.CONFIG_SINKGROUPS_PREFIX);
if (cnck != null) {
String name = cnck.getComponentName();
Context groupConf = sinkGroupContextMap.get(name);
if (groupConf == null) {
groupConf = new Context();
sinkGroupContextMap.put(name, groupConf);
}
groupConf.put(cnck.getConfigKey(), value);
return true;
}
logger.warn("Invalid property specified: " + key);