1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 """interfaces used by flumotion
23 """
24
25 from zope.interface import Attribute, Interface
26
27 __version__ = "$Rev: 7038 $"
28
29
30
32 """I am a base interface for PB client-side mediums interfacing with
33 manager-side avatars.
34 """
36 """Set the RemoteReference to the manager-side avatar.
37 @param remoteReference: L{twisted.spread.pb.RemoteReference}
38 """
39
41 """Check if we have a remote reference to the PB server's avatar.
42 @returns: True if we have a remote reference
43 """
44
46 """Call a method through the remote reference to the manager-side avatar.
47 @param name: name of remote method
48 """
49
50
52 """I am an interface for component-side mediums interfacing with server-side
53 avatars.
54 """
55
56
58 """An interface for streaming components, for plugs that require a streaming
59 component of some sort to use.
60 """
62 """Return a URL that the streaming component is streaming.
63 """
64
66 """Return a description of the stream from this component.
67 """
68
69
71 """I am an interface for admin-side mediums interfacing with manager-side
72 avatars.
73 """
74
75
77 """I am an interface for worker-side mediums interfacing with manager-side
78 avatars.
79 """
80
81
83 """I am an interface for porter client mediums interfacing with the porter.
84 """
85
86
88 """I am an interface for job-side mediums interfacing with worker-side
89 avatars.
90 """
91
92
94 """I am an interface for mediums in a job or manager interfacing with feed
95 avatars.
96 """
97
98
100 """My implementors manage avatars logging in to the manager.
101 """
103 """Creates a new avatar matching the type of heaven.
104 @param avatarId:
105 @type avatarId: string
106 @returns: the avatar from the matching heaven for a new object.
107 """
108
110 """Remove the avatar with the given Id from the heaven.
111 """
112
113
115 """I am an interface for objects that manage a FeedServer, allowing the
116 FeedServer to hand off file descriptors to eaters and feeders managed
117 by the parent.
118 """
119 - def feedToFD(componentId, feedName, fd):
120 """Make the component feed the given feed to the fd.
121 @param componentId:
122 @param feedName: a feed name
123 @param fd: a file descriptor
124 """
125
126
128 """I am an interface representing a file and it's metadata.
129 """
130 filename = Attribute('the name of the file')
131 iconNames = Attribute("""icon names that should be used to represent
132 this file in a graphical interface""")
133
135 """Returns the complete path to the file, including
136 the filename itself.
137 @returns: the complete path to the file
138 @rtype: str
139 """
140
141
143 """I am an interface representing a directory and it's metadata.
144 I extend the IFile interface.
145 To list files of a certain directory you first need to call
146 L{flumotion.common.vfs.listDirectory}, which will return
147 an object implementing this interface.
148 """
149
151 """Fetches all the files in the directory specified.
152 @returns: list of files
153 @rtype: a deferred firing a list of objects implementing L{IFile}.
154 """
155