This document explains without details how to implement a service that chooses by itself (or lets the user decide with a GUI) what other services to connect to.
A Service that implements the
SvcSelection Interface (usually by implementing the
PickyService? interface from
Service.idl) receives in its the callback function
foundPartners among other things a list of other services that match its need, together with their attributes.
The service then can use these attributes to decide by itself if it wants to connect to one (or more) of these services.
The
foundPartners method gets called
- any time a new service is available in the network
- when the service terminates a session with another service
Also note that the attributes "minInstances" and "maxInstances" obviously have no meaning when using this interface.
More Information