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

Class AGNodeServiceIW

SOAPIWrapper --+
               |
              AGNodeServiceIW


SOAP interface for an AGNodeService
Method Summary
  __init__(self, url)
  AddService(self, serviceDesc, serviceManagerUri, resourceToAssign, serviceConfig)
Add a service to a service manager.
  AddServiceManager(self, serviceManager)
Add a service manager to the node service.
  AddStream(self, streamDescription)
Add a stream.
[Types.Capability] GetCapabilities(self)
Get the list of capabilities for this node
[string] GetConfigurations(self)
Get node configurations
string GetDefaultConfiguration(self)
Get default node configuration.
[Descriptions.AGServiceManagerDescription] GetServiceManagers(self)
Get all service managers
[Descriptions.AGServiceDescription] GetServices(self)
Get list of installed services
  LoadConfiguration(self, configName)
Load named node configuration
  MigrateNodeConfig(self, configFile)
Update node configuration.
int NeedMigrateNodeConfig(self, configFile)
Check to see if we need to update node configuration.
  RemoveServiceManager(self, serviceManagerToRemove)
Remove a service manager
  RemoveStream(self, streamDescription)
Remove a stream
  SetDefaultConfiguration(self, configName)
Set default node configuration.
  SetIdentity(self, profile)
Set your identity so services can identify who is running the service.
  SetServiceEnabled(self, serviceUri, enabled)
Enable or disable a service.
  SetServiceEnabledByMediaType(self, mediaType, enableFlag)
Enable/disable services by media type
  SetStreams(self, streamDescriptionList)
Set streams according to stream descriptions.
  StopServices(self)
Stop all services
  StoreConfiguration(self, configName)
Save node configuration.
    Inherited from SOAPIWrapper
  _IsValid(self)
Method to provide interface verification.
  IsValid(self)
Method to provide interface verification.

Method Details

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

Add a service to a service manager.
Parameters:
serviceDesc - Description of service to add
           (type=Descriptions.AGServiceDescription)
serviceManagerUri - The URI of the service manager to which the service should be added
           (type=string)
resourceToAssign - Resource to assign to the service
           (type=Types.AGResource)
serviceConfig - Service configuration to apply after adding the service.
           (type=[AGParameter])

AddServiceManager(self, serviceManager)

Add a service manager to the node service.
Parameters:
serviceManager - A description of the service manager
           (type=Descriptions.AGServiceManagerDescription)

AddStream(self, streamDescription)

Add a stream.
Parameters:
streamDescription - Description of stream to add
           (type=Descriptions.StreamDescription)

GetCapabilities(self)

Get the list of capabilities for this node
Returns:
A list of all node capabilities
           (type=[Types.Capability])

GetConfigurations(self)

Get node configurations
Returns:
List of node configurations
           (type=[string])

GetDefaultConfiguration(self)

Get default node configuration.
Returns:
Name of default configuration file
           (type=string)

GetServiceManagers(self)

Get all service managers
Returns:
[Descriptions.AGServiceManagerDescription]

GetServices(self)

Get list of installed services
Returns:
list of services
           (type=[Descriptions.AGServiceDescription])

LoadConfiguration(self, configName)

Load named node configuration
Parameters:
configName - Name of configuration to load
           (type=string)

MigrateNodeConfig(self, configFile)

Update node configuration.
Parameters:
configFile - Name of config file
           (type=string)

NeedMigrateNodeConfig(self, configFile)

Check to see if we need to update node configuration.
Parameters:
configFile - Name of config file
           (type=string)
Returns:
1 if we need to migrate, otherwise 0
           (type=int)

RemoveServiceManager(self, serviceManagerToRemove)

Remove a service manager
Parameters:
serviceManagerToRemove - Service manager to remove
           (type=Descriptions.AGServiceManagerDescription)

RemoveStream(self, streamDescription)

Remove a stream
Parameters:
streamDescription - Description of stream to remove
           (type=Descriptions.StreamDescription)

SetDefaultConfiguration(self, configName)

Set default node configuration. The default node configuration will always load first.
Parameters:
configName - Name of default configuration file
           (type=string)

SetIdentity(self, profile)

Set your identity so services can identify who is running the service.
Parameters:
profile - Profile of client
           (type=ClientProfile.ClientProfile)

SetServiceEnabled(self, serviceUri, enabled)

Enable or disable a service.
Parameters:
serviceUri - url to the service
           (type=string)
enabled - 1 for enabled, otherwise 0
           (type=int)

SetServiceEnabledByMediaType(self, mediaType, enableFlag)

Enable/disable services by media type
Parameters:
mediaType - Media type of services to enable/disable
           (type=string)
enableFlag - Flag whether to enable/disable
           (type=int)

SetStreams(self, streamDescriptionList)

Set streams according to stream descriptions. The stream descriptions are applied to the installed services according to matching capabilities
Parameters:
streamDescriptionList - list of stream descriptions
           (type=[Descriptions.AGServiceDescription])

StopServices(self)

Stop all services

StoreConfiguration(self, configName)

Save node configuration.
Parameters:
configName - Name of configuration
           (type=string)

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