Ejemplo n.º 1
0
 def __init__(self, core_service, work_units_per_cycle=None):
     Activity.__init__(self)
     # Back pointer to core service instance that created this processor.
     self._core_service = core_service
     self._dest_queue = BgpProcessor._DestQueue()
     self._rtdest_queue = BgpProcessor._DestQueue()
     self.dest_que_evt = EventletIOFactory.create_custom_event()
     self.work_units_per_cycle = work_units_per_cycle or BgpProcessor.MAX_DEST_PROCESSED_PER_CYCLE
Ejemplo n.º 2
0
 def __init__(self, core_service, work_units_per_cycle=None):
     Activity.__init__(self)
     # Back pointer to core service instance that created this processor.
     self._core_service = core_service
     self._dest_queue = BgpProcessor._DestQueue()
     self._rtdest_queue = BgpProcessor._DestQueue()
     self.dest_que_evt = EventletIOFactory.create_custom_event()
     self.work_units_per_cycle =\
         work_units_per_cycle or BgpProcessor.MAX_DEST_PROCESSED_PER_CYCLE