Definition at line 269 of file GMPBase.py.
◆ __init__()
| def GaudiMP.GMPBase.EventCommunicator.__init__ |
( |
|
self, |
|
|
|
GMPComponent, |
|
|
|
qin, |
|
|
|
qout |
|
) |
| |
Definition at line 273 of file GMPBase.py.
273 def __init__(self, GMPComponent, qin, qout):
274 self._gmpc = GMPComponent
275 self.log = self._gmpc.log
◆ finalize()
| def GaudiMP.GMPBase.EventCommunicator.finalize |
( |
|
self | ) |
|
Definition at line 330 of file GMPBase.py.
332 "Finalize Event Communicator : %s %s" % (self._gmpc, self._gmpc.nodeType)
337 if self._gmpc.nodeType ==
"Reader":
338 downstream = self._gmpc.nWorkers
339 elif self._gmpc.nodeType ==
"Writer":
341 elif self._gmpc.nodeType ==
"Worker":
344 for i
in range(downstream):
345 self.qout.
put(
"FINISHED")
346 if self._gmpc.nodeType !=
"Writer":
◆ receive()
| def GaudiMP.GMPBase.EventCommunicator.receive |
( |
|
self, |
|
|
|
timeout = None |
|
) |
| |
Definition at line 309 of file GMPBase.py.
309 def receive(self, timeout=None):
311 startWait = time.time()
313 itemIn = self.qin.
get(timeout=timeout)
316 self.qinTime += time.time() - startWait
318 if itemIn.__class__.__name__ ==
"tuple":
319 self.sizeRecv += itemIn[1].Length()
325 self._gmpc.log.warning(
326 "TASK_DONE called too often by : %s" % (self._gmpc.nodeType)
◆ send()
| def GaudiMP.GMPBase.EventCommunicator.send |
( |
|
self, |
|
|
|
item |
|
) |
| |
Definition at line 294 of file GMPBase.py.
294 def send(self, item):
297 assert item.__class__.__name__ ==
"tuple"
298 startTransmission = time.time()
302 while self.qout._buffer:
304 self.qoutTime += time.time() - startTransmission
305 self.sizeSent += item[1].Length()
◆ statistics()
| def GaudiMP.GMPBase.EventCommunicator.statistics |
( |
|
self | ) |
|
Definition at line 351 of file GMPBase.py.
351 def statistics(self):
352 self.log.name =
"%s-%i Audit " % (self._gmpc.nodeType, self._gmpc.nodeID)
353 self.log.info(
"Items Sent : %i" % (self.nSent))
354 self.log.info(
"Items Received : %i" % (self.nRecv))
355 self.log.info(
"Data Sent : %i" % (self.sizeSent))
356 self.log.info(
"Data Received : %i" % (self.sizeRecv))
357 self.log.info(
"Q-out Time : %5.2f" % (self.qoutTime))
358 self.log.info(
"Q-in Time : %5.2f" % (self.qinTime))
◆ _gmpc
| GaudiMP.GMPBase.EventCommunicator._gmpc |
|
private |
◆ allrecv
| GaudiMP.GMPBase.EventCommunicator.allrecv |
◆ allsent
| GaudiMP.GMPBase.EventCommunicator.allsent |
◆ log
| GaudiMP.GMPBase.EventCommunicator.log |
◆ maxsize
| GaudiMP.GMPBase.EventCommunicator.maxsize |
◆ nRecv
| GaudiMP.GMPBase.EventCommunicator.nRecv |
◆ nSent
| GaudiMP.GMPBase.EventCommunicator.nSent |
◆ qin
| GaudiMP.GMPBase.EventCommunicator.qin |
◆ qinTime
| GaudiMP.GMPBase.EventCommunicator.qinTime |
◆ qout
| GaudiMP.GMPBase.EventCommunicator.qout |
◆ qoutTime
| GaudiMP.GMPBase.EventCommunicator.qoutTime |
◆ sizeRecv
| GaudiMP.GMPBase.EventCommunicator.sizeRecv |
◆ sizeSent
| GaudiMP.GMPBase.EventCommunicator.sizeSent |
The documentation for this class was generated from the following file: