Package flumotion :: Package component :: Module feedcomponent010 :: Class Feeder
[hide private]

Class Feeder

source code

This class groups feeder-related information as used by a Feed Component.

Instance Methods [hide private]
 
__init__(self, feedId) source code
 
clientConnected(self, clientId, fd, cleanup)
The given client has connected on the given file descriptor, and is being added to multifdsink.
source code
 
clientDisconnected(self, fd)
The client has been entirely removed from multifdsink, and we may now close its file descriptor.
source code
list of all FeederClients ever seen, including currently disconnected clients
getClients(self) source code
Instance Variables [hide private]
  feedId
id of the feed this is a feeder for
  uiState
the serializable UI State for this feeder
Method Details [hide private]

clientConnected(self, clientId, fd, cleanup)

source code 

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)

source code 

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 (file descriptor)