use of com.hortonworks.streamline.common.Config in project streamline by hortonworks.
the class TestTopologyDagCreatingVisitor method visit.
@Override
public void visit(StreamlineSource source) {
String id = source.getId();
String sourceName = source.getName();
if (!testRunSourcesForEachSource.containsKey(sourceName)) {
throw new IllegalStateException("Not all sources have corresponding TestRunSource instance. source name: " + sourceName);
}
Config config = new Config(source.getConfig());
TestRunSource testRunSource = testRunSourcesForEachSource.get(sourceName);
testRunSource.setId(id);
testRunSource.setName(sourceName);
testRunSource.setConfig(config);
testRunSource.setTransformationClass(TestRunSourceSpoutFluxComponent.class.getName());
testTopologyDag.add(testRunSource);
sourceToReplacedTestSourceMap.put(sourceName, testRunSource);
}
Aggregations