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
25 -class Plug(log.Loggable):
26 """
27 Base class for plugs. Provides an __init__ method that receives the
28 plug args and sets them to the 'args' attribute.
29 """
31 """
32 @param args: The plug args
33 @type args: dict with keys 'socket', 'type', and 'properties'.
34 'properties' has the same format as component
35 properties.
36 """
37 self.args = args
38
40 """
41 Base class for plugs that live in a component. Subclasses can
42 implement the start and stop vmethods, which will be called with the
43 component as an argument.
44 """
45 - def start(self, component):
47
48 - def stop(self, component):
50
54
56 """
57 Base class for plugs that live in the manager. Subclasses can
58 implement the start and stop vmethods, which will be called with the
59 manager vishnu as an argument.
60 """
63
64 - def stop(self, vishnu):
66
70