def _getComponentCommon(self, id, component): common = self._commons[id] stream_info = StreamInfo() stream_info.output_fields = component.declareOutputFields() stream_info.direct = False # Appears to be unused by Storm common.streams['default'] = stream_info return common
def addOutputStream(self, id, streamId, output_fields, direct=False): self._commons[id].streams[streamId] = StreamInfo(output_fields, direct=direct)