String compId = entry.getKey(); if (!Utils.isSystemId(compId)) { Component comp = new Component(ComponentType.SPOUT, compId, componentToExecs(compId)); ret.put(compId, comp); String compId = entry.getKey(); if (!Utils.isSystemId(compId)) { Component comp = new Component(ComponentType.BOLT, compId, componentToExecs(compId)); ret.put(compId, comp);
if (all_comp.containsKey(spoutEntry.getKey())) { newComp = all_comp.get(spoutEntry.getKey()); newComp.execs = componentToExecs(newComp.id); } else { newComp = new Component(spoutEntry.getKey()); newComp.execs = componentToExecs(newComp.id); all_comp.put(spoutEntry.getKey(), newComp); if (all_comp.containsKey(boltEntry.getKey())) { newComp = all_comp.get(boltEntry.getKey()); newComp.execs = componentToExecs(newComp.id); } else { newComp = new Component(boltEntry.getKey()); newComp.execs = componentToExecs(newComp.id); all_comp.put(boltEntry.getKey(), newComp);