FTDefaultServiceManagerImpl


Abstract

A generic implementation of the service manager protocol

Methods

-allServicesForGraph:
This method gives information about the availability of services for a particular graph
-allServicesForNode
This method gives information about the availability of services for a particular node
-allServicesForNode:ofGraph:
This method gives information about the availability of services for a particular node
-initWithServer:
-registerServiceWithId
This method is used to register a service.
-registerServiceWithId:withVersion:withServiceLoader:
This method is used to register a service.
-rwLock
sets a read-write-lock.
-rwUnlock
releases the read-write-lock.
-serviceWithId((NSString *), (id ), (id ), (ft_serviceMode_t), (NSString *))
returns the specified service
-serviceWithId((NSString *), (id ), (NSString *), (id ), (id ), (ft_serviceMode_t), (NSString *))
returns the specified service
-serviceWithId:forGraph:
returns the specified service
-serviceWithId:forGraph:forNode:
returns the specified service
-switchAllServicesToMode:
Switches all registered services to the specified mode
-unregisterAllVersionsOfServiceWithId:
removes all versions of the specified service

allServicesForGraph:


This method gives information about the availability of services for a particular graph

- (id <ECIterator>) allServicesForGraph: (id <FTGraph>) aGraph;

allServicesForNode


This method gives information about the availability of services for a particular node

See Also:
allServicesForNode:ofGraph:
- (id <ECIterator>) allServicesForNode: (id <FTNode>) aNode ofGraph: (id <FTGraph>) aGraph;

allServicesForNode:ofGraph:


This method gives information about the availability of services for a particular node

See Also:
allServicesForNode
- (id <ECIterator>) allServicesForNode: (id <FTNode>) aNode ofGraph: (id <FTGraph>) aGraph;

initWithServer:


- initWithServer: (FTServerImpl *) aServer;
Parameter Descriptions
aServer
underlying server
method result
self

registerServiceWithId


This method is used to register a service.

See Also:
registerServiceWithId:withVersion:withServiceLoader:
- registerServiceWithId: (NSString *) serviceId withVersion: (id <FTVersion>) serviceVersion withServiceLoader: (id <FTServiceLoader>) serviceLoader;
Parameter Descriptions
serviceId
identifier for the service
serviceVersion
version of this service
serviceLoader
loader of this service
method result
self
Discussion

The current implementation simply removes older version if newer ones are being registered.


registerServiceWithId:withVersion:withServiceLoader:


This method is used to register a service.

See Also:
registerServiceWithId
- registerServiceWithId: (NSString *) serviceId withVersion: (id <FTVersion>) serviceVersion withServiceLoader: (id <FTServiceLoader>) serviceLoader;
Parameter Descriptions
serviceId
identifier for the service
serviceVersion
version of this service
serviceLoader
loader of this service
Discussion

The current implementation simply removes older version if newer ones are being registered.


rwLock


sets a read-write-lock.

- rwLock;
method result
self;

rwUnlock


releases the read-write-lock.

- rwUnlock;
method result
self;

serviceWithId((NSString *), (id ), (id ), (ft_serviceMode_t), (NSString *))


returns the specified service

See Also:
serviceWithId:forGraph:forNode:
- (id <FTService>) serviceWithId: (NSString *) aServiceId forGraph: (id <FTGraph>) aGraph forNode: (id <FTNode>) aNode;
method result
the specified service

serviceWithId((NSString *), (id ), (NSString *), (id ), (id ), (ft_serviceMode_t), (NSString *))


returns the specified service

See Also:
serviceWithId:forGraph:
- (id <FTService>) serviceWithId: (NSString *) aServiceId forGraph: (id <FTGraph>) aGraph;
method result
the specified service

serviceWithId:forGraph:


returns the specified service

See Also:
serviceWithId
- (id <FTService>) serviceWithId: (NSString *) aServiceId forGraph: (id <FTGraph>) aGraph;

serviceWithId:forGraph:forNode:


returns the specified service

See Also:
serviceWithId
- (id <FTService>) serviceWithId: (NSString *) aServiceId forGraph: (id <FTGraph>) aGraph forNode: (id <FTNode>) aNode;

switchAllServicesToMode:


Switches all registered services to the specified mode

- switchAllServicesToMode: (ft_serviceMode_t) serviceMode;
Parameter Descriptions
serviceMode
mode to switch to
method result
self

unregisterAllVersionsOfServiceWithId:


removes all versions of the specified service

- unregisterAllVersionsOfServiceWithId: (NSString *) serviceId;
method result
self

(Last Updated August 27, 2006)