Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EIG:Topology Management"

(New page: [...] RSA Implementation <source lang="java"> public interface IHostContainerSelector { IRemoteServiceContainer[] selectHostContainers(ServiceReference serviceReference, String[] expo...)
 
 
Line 1: Line 1:
[...] RSA Implementation
+
ECF implements a simple OSGi TopologyManager, the BasicTopologyManager. This is useful for simple RemoteServices, but if you have a more complex service environment with several service providers and comsumers etc. you need to implement your own TopologyManager.
 +
 
 +
Keep oin mind, if you implement your own TopologyManager you should not use the org.eclipse.ecf.osgi.services.distribution bundle anymore, as this is the bundle with the BasicTopologyManager.
  
 
<source lang="java">
 
<source lang="java">
public interface IHostContainerSelector {
+
class MyTopologyManager extends AbstractTopologyManager implements EventHook, EndpointListener {
    IRemoteServiceContainer[] selectHostContainers(ServiceReference serviceReference, String[] exportedInterfaces, String[] exportedConfigs, String[] serviceIntents);
+
}
+
</source>
+
<source lang="java">
+
public interface IConsumerContainerSelector {
+
    public IRemoteServiceContainer selectConsumerContainer(EndpointDescription endpointDescription);
+
 
}
 
}
 
</source>
 
</source>

Latest revision as of 16:18, 22 February 2011

ECF implements a simple OSGi TopologyManager, the BasicTopologyManager. This is useful for simple RemoteServices, but if you have a more complex service environment with several service providers and comsumers etc. you need to implement your own TopologyManager.

Keep oin mind, if you implement your own TopologyManager you should not use the org.eclipse.ecf.osgi.services.distribution bundle anymore, as this is the bundle with the BasicTopologyManager.

class MyTopologyManager extends AbstractTopologyManager implements EventHook, EndpointListener {
}

Back to the top