1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 from flumotion.common import log
23
24 __version__ = "$Rev: 6125 $"
25
26
27 -class Plug(log.Loggable):
28 """
29 Base class for plugs. Provides an __init__ method that receives the
30 plug args and sets them to the 'args' attribute.
31 """
33 """
34 @param args: The plug args
35 @type args: dict with keys 'socket', 'type', and 'properties'.
36 'properties' has the same format as component
37 properties.
38 """
39 self.args = args
40
42 """
43 Base class for plugs that live in a component. Subclasses can
44 implement the start and stop vmethods, which will be called with the
45 component as an argument.
46 """
47 - def start(self, component):
49
50 - def stop(self, component):
52
56
58 """
59 Base class for plugs that live in the manager. Subclasses can
60 implement the start and stop vmethods, which will be called with the
61 manager vishnu as an argument.
62 """
65
66 - def stop(self, vishnu):
68
72