コード例 #1
0
 def send_data_to_client(self):
     zone = services.get_zone(self._zone_id, allow_uninstantiated_zones=True)
     if zone is None:
         logger.error('Trying to send the business data to client but the business manager {} has an invalid zone id.', self)
         return
     business_data_msg = Business_pb2.SetBusinessData()
     self.construct_business_message(business_data_msg)
     business_data_op = GenericProtocolBufferOp(DistributorOps_pb2.Operation.SET_BUSINESS_DATA, business_data_msg)
     Distributor.instance().add_op_with_no_owner(business_data_op)
コード例 #2
0
 def _add_business_data(self):
     self._report_msg.business_data = Business_pb2.SetBusinessData()
     self._business_manager.construct_business_message(
         self._report_msg.business_data)