Пример #1
0
 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
Пример #2
0
    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
Пример #3
0
 def addOutputStream(self, id, streamId, output_fields, direct=False):
     self._commons[id].streams[streamId] = StreamInfo(output_fields, direct=direct)