Package AccessGrid :: Module NetworkServicesManager :: Class NetworkServicesManager
[show private | hide private]
[frames | no frames]

Class NetworkServicesManager


A manager class for available network services in a venue. This class also includes a network service matcher that can select a chain of services to use for streams that do not match capabilities of a node.
Method Summary
  __init__(self)
Initiates the class.
  GetServices(self)
Returns descriptions of all available network services.
  RegisterService(self, networkServiceDescription)
Registers a network service with the manager.
  ResolveMismatch(self, streamList, nodeCapabilities)
Matches streams to available network services.
  UnRegisterService(self, networkServiceDescription)
Removes a network service from the manager.

Method Details

__init__(self)
(Constructor)

Initiates the class. Creates a network service matcher and a dictionary to keep track of available network services.

GetServices(self)

Returns descriptions of all available network services.

** Returns **

*services* a list of AGNetworkServiceDescriptions.

RegisterService(self, networkServiceDescription)

Registers a network service with the manager.

** Arguments **

* networkServiceDescription * a description of the network service to add (AGNetworkServiceDescription).

ResolveMismatch(self, streamList, nodeCapabilities)

Matches streams to available network services. Uses network services to resolve mismatch between stream capabilities and capabilities of a node.

** Arguments **

* streamList * a list of mismatched streams.

* nodeCapabilities * capabilities of a node.

** Returns **

* matchedStreams * a list of new streams that matches given node capabilities.

UnRegisterService(self, networkServiceDescription)

Removes a network service from the manager.

** Arguments **

* networkServiceDescription * a description of the network service to add (AGNetworkServiceDescription).

Generated by Epydoc 2.1 on Thu Apr 14 16:39:26 2005 http://epydoc.sf.net