1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 """
36 Event handler support
37
38 EventHandler's derived classes may implement ev_* methods to listen on
39 worker's events.
40 """
41
43 """
44 Base class EventHandler.
45 """
47 """
48 Invoke a specific event handler.
49 """
50 ev_handler = getattr(self, ev_type)
51 ev_handler(*args)
52
54 """
55 Called to indicate that a worker has just started.
56 """
57
59 """
60 Called to indicate that a worker has data to read.
61 """
62
64 """
65 Called to indicate that a worker has error to read (on stderr).
66 """
67
69 """
70 Called to indicate that writing has been done.
71 """
72
74 """
75 Called to indicate that a worker's connection has been closed.
76 """
77
79 """
80 Called to indicate that a worker has timed out (worker timeout only).
81 """
82
84 """
85 Called to indicate that a worker has just finished (it may already
86 have failed on timeout).
87 """
88
90 """
91 Handle port message.
92
93 @port: The port object on which a message is available.
94 """
95
97 """
98 Handle firing timer.
99
100 @timer: The timer that is firing.
101 """
102