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

Class AGNodeService


AGNodeService is the central engine of an Access Grid node. It is the contact point for clients to access underlying Service Managers and AGServices, for control and configuration of the node.


Method Summary
  __init__(self, app)
  AddService(self, serviceDesc, serviceManagerUri, resourceToAssign, serviceConfig)
Add a service package to the service manager.
  AddServiceManager(self, serviceManager)
Add a service manager
  AddStream(self, streamDescription)
  GetCapabilities(self)
Get list of capabilities
  GetConfigurations(self)
Get list of available configurations
  GetDefaultConfiguration(self)
Get the name of the default configuration
  GetServiceManagers(self)
Get list of service managers
  GetServices(self)
Get list of installed services
  LoadConfiguration(self, configName)
Load named node configuration
  LoadDefaultConfig(self)
Load default node configuration (service managers and services)
  MigrateNodeConfig(self, configName)
  NeedMigrateNodeConfig(self, configName)
  RemoveServiceManager(self, serviceManagerToRemove)
Remove a service manager
  RemoveStream(self, streamDescription)
  SetDefaultConfiguration(self, configName)
Set the name of the default configuration
  SetIdentity(self, profile)
Push this identity out to the services, so they can identify the user running the node (e.g., rat)
  SetServiceEnabled(self, serviceUri, enabled)
Enable the service, and send it a stream configuration if we have one
  SetServiceEnabledByMediaType(self, mediaType, enableFlag)
Enable/disable services that handle the given media type
  SetStreams(self, streamDescriptionList)
Set streams according to stream descriptions.
  Stop(self)
  StopServices(self)
Stop all services
  StoreConfiguration(self, configName)
Store node configuration with specified name
  __ReadConfigFile(self)
Read the node service configuration file
  __SendStreamsToService(self, serviceUri)
Send stream description(s) to service
  __WriteConfigFile(self)
Write the node service configuration file

Class Variable Summary
str defaultNodeConfigurationOption = 'Node Configuration.def...
str NodeConfigFile = 'AGNodeService.cfg'

Method Details

AddService(self, serviceDesc, serviceManagerUri, resourceToAssign, serviceConfig)

Add a service package to the service manager.

AddServiceManager(self, serviceManager)

Add a service manager

GetCapabilities(self)

Get list of capabilities

GetConfigurations(self)

Get list of available configurations

GetDefaultConfiguration(self)

Get the name of the default configuration

GetServiceManagers(self)

Get list of service managers

GetServices(self)

Get list of installed services

LoadConfiguration(self, configName)

Load named node configuration

LoadDefaultConfig(self)

Load default node configuration (service managers and services)

RemoveServiceManager(self, serviceManagerToRemove)

Remove a service manager

SetDefaultConfiguration(self, configName)

Set the name of the default configuration

SetIdentity(self, profile)

Push this identity out to the services, so they can identify the user running the node (e.g., rat)

SetServiceEnabled(self, serviceUri, enabled)

Enable the service, and send it a stream configuration if we have one

SetServiceEnabledByMediaType(self, mediaType, enableFlag)

Enable/disable services that handle the given media type

SetStreams(self, streamDescriptionList)

Set streams according to stream descriptions. The stream descriptions are applied to the installed services according to matching capabilities

StopServices(self)

Stop all services

StoreConfiguration(self, configName)

Store node configuration with specified name

__ReadConfigFile(self)

Read the node service configuration file

Note: it is read from the user config dir if it exists,
then from the system config dir

__SendStreamsToService(self, serviceUri)

Send stream description(s) to service

__WriteConfigFile(self)

Write the node service configuration file

It is always written to the user's config directory


Class Variable Details

defaultNodeConfigurationOption

Type:
str
Value:
'Node Configuration.defaultNodeConfiguration'                          

NodeConfigFile

Type:
str
Value:
'AGNodeService.cfg'                                                    

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