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.
[AccessGrid.Descriptions.AGNetworkServiceDescription] GetServices(self)
Returns descriptions of all available network services.
  RegisterService(self, networkServiceDescription)
Registers a network service with the manager.
[(AccessGrid.Descriptions.StreamDescription, string)] 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:
a list of AGNetworkServiceDescriptions.
           (type=[AccessGrid.Descriptions.AGNetworkServiceDescription])

RegisterService(self, networkServiceDescription)

Registers a network service with the manager.
Parameters:
networkServiceDescription - a description of the network service to add
           (type=AccessGrid.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.
Parameters:
streamList - a list of mismatched streams.
           (type=[AccessGrid.Descriptions.StreamDescription])
nodeCapabilities - capabilities of a node.
           (type=[AccessGrid.Types.Capability])
Returns:
a list of new streams that matches given node capabilities.
           (type=[(AccessGrid.Descriptions.StreamDescription, string)])

UnRegisterService(self, networkServiceDescription)

Removes a network service from the manager.
Parameters:
networkServiceDescription - a description of the network service to add
           (type=AccessGrid.AGNetworkServiceDescription)

Generated by Epydoc 2.1 on Mon Jan 09 13:23:50 2006 http://epydoc.sf.net