for(String key : new TreeSet<String>(properties.keySet())) {
LOGGER.debug(key + " = " + properties.get(key));
}
}
MaterializedConfiguration conf = configurationProvider.get(name,
properties);
Map<String, SourceRunner> sources = conf.getSourceRunners();
if(sources.size() != 1) {
throw new FlumeException("Expected one source and got " +
sources.size());
}
Map<String, Channel> channels = conf.getChannels();
if(channels.size() != 1) {
throw new FlumeException("Expected one channel and got " +
channels.size());
}
Map<String, SinkRunner> sinks = conf.getSinkRunners();
if(sinks.size() != 1) {
throw new FlumeException("Expected one sink group and got " +
sinks.size());
}
this.sourceRunner = sources.values().iterator().next();