next up previous contents index
Next: Conclusions Up: Managers Previous: StreamManagers

SessionManagers

  SessionManager objects keep track of the LocalSource, RemoteSource, Session, ProtoSession, and SessionAgent objects of an application. Therefore, the mmstream.session.SessionManager interface lays down methods to register or delete such objects from a SessionManager object's repository. Like the StreamManager interface, the SessionManager interface contains also an importStream() method; however, the parameters and semantics differ: the invoking object does not specify an argument StreamExporter object, but instead a Session object. The SessionManager object is intended to use the next otherwise unused LocalSource object available from the argument Session object.

  The TOMS_SessionManager implementation is also simple. The importStream() method is implemented by determining the ProtocolCoDec object belonging to the specified Session object and invoking the potentially blocking getRemoteSource() method of the codec. The returned RemoteSource is used for an invocation of the StreamManager object's importStream() method.



tspeuker@cip.informatik.uni-erlangen.de