def produceData(self):
     # self.produceInventoryDataFromFile(EventBackboneConfig.getInventoryTopicName())
     # self.produceReeferDataFromFile(EventBackboneConfig.getReeferTopicName())
     # self.produceTransportationDataFromFile(EventBackboneConfig.getTransportationTopicName())
     self.produceInventoryData(EventBackboneConfig.getInventoryTopicName())
     self.produceReeferData(EventBackboneConfig.getReeferTopicName())
     self.produceTransportationData(
         EventBackboneConfig.getTransportationTopicName())
 def __init__(self):
     # logging.info("[TransportationConsumer] - Initializing the consumer")
     print("[TransportationConsumer] - Initializing the consumer")
     self.index=0
     self.store = TransportationDataStore()
     self.cloudEvent_schema = avroUtils.getCloudEventSchema()
     self.kafkaconsumer=KafkaAvroConsumer('TransportationConsumer',
                                         json.dumps(self.cloudEvent_schema.to_json()),
                                         EventBackboneConfig.getTransportationTopicName(),
                                         EventBackboneConfig.getConsumerGroup(),
                                         AUTO_COMMIT)