Package flumotion :: Package component :: Module feedcomponent010 :: Class Feeder
[show private | hide private]
[frames | no frames]

Class Feeder


This class groups feeder-related information as used by a Feed Component.
Method Summary
  __init__(self, feedId)
  clientConnected(self, clientId, fd, cleanup)
The given client has connected on the given file descriptor, and is being added to multifdsink.
  clientDisconnected(self, fd)
The client has been entirely removed from multifdsink, and we may now close its file descriptor.
list of all FeederClients ever seen, including currently disconnected clients getClients(self)

Instance Variable Summary
  feedId: id of the feed this is a feeder for
  uiState: the serializable UI State for this feeder

Method Details

clientConnected(self, clientId, fd, cleanup)

The given client has connected on the given file descriptor, and is being added to multifdsink. This is called solely from the reactor thread.
Parameters:
clientId - id of the client of the feeder
fd - file descriptor representing the client
cleanup - callable to be called when the given fd is removed

clientDisconnected(self, fd)

The client has been entirely removed from multifdsink, and we may now close its file descriptor. The client object stays around so we can track over multiple connections.

Called from GStreamer threads.
Parameters:
fd
           (type=file descriptor)

getClients(self)

Returns:
list of all FeederClients ever seen, including currently disconnected clients

Instance Variable Details

feedId

id of the feed this is a feeder for

uiState

the serializable UI State for this feeder

Generated by Epydoc 2.1 on Fri May 18 09:35:52 2007 http://epydoc.sf.net