| 12 | from pycgraph import GNode, CStatus |
| 13 | |
| 14 | class MyNode2(GNode): |
| 15 | def init(self): |
| 16 | print("[INIT] [{0}], enter MyNode2 init function.".format(self.getName())) |
| 17 | return CStatus() |
| 18 | |
| 19 | def run(self): |
| 20 | print("[{0}] {1}, enter MyNode2 run function. Sleep for 2 second ... ".format(datetime.now(), self.getName())) |
| 21 | time.sleep(2) |
| 22 | return CStatus() |
| 23 | |
| 24 | def destroy(self): |
| 25 | print("[DESTROY] [{0}], enter MyNode2 destroy function.".format(self.getName())) |
| 26 | return CStatus() |
no outgoing calls
no test coverage detected