Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328218

Summary: [hudson][build] make discovery independent of mDNS and domain
Product: z_Archived Reporter: Markus Kuppe <bugs.eclipse.org>
Component: MylynAssignee: Torkild Resheim <torkildr>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P3 CC: torkildr
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Markus Kuppe CLA 2010-10-20 04:44:54 EDT
- Make it discovey provider agnostic (hudson.ui should not care if the service
gets discovered by mDNS, SLP, DNS-SD...)
- Do not match "local" domains (a Hudson instance might be located in a
different network/subnet)
- Use ECF 3.4 whiteboard IServiceListener registration to simplify impl
Comment 1 Steffen Pingel CLA 2010-10-20 14:33:24 EDT
Thanks. That makes sense to me. Is ECF 3.4 going to work on Galileo?

A patch that implements this is on bug 317890.
Comment 2 Markus Kuppe CLA 2010-10-20 15:20:35 EDT
(In reply to comment #1)
> Thanks. That makes sense to me. Is ECF 3.4 going to work on Galileo?

ECF does not test backward compatibility with Galileo. But out of my head I cannot think of a reason why ECF should not run on Galileo.
Comment 3 Torkild Resheim CLA 2011-08-05 04:45:58 EDT
Hi Markus,
I'm finally having a look at this and I'm hoping you could clear up something for me.
* I cannot find a whiteboard IServiceListener, could you point me to that?
* From what I can see the discovery provider is agnostic already (although Hudson/Jenkins appear to only use mDNS):

bc. final IContainer container = getContainer();
    final IDiscoveryLocator adapter = (IDiscoveryLocator) getContainer().getAdapter(IDiscoveryLocator.class);
      adapter.addServiceListener(new IServiceListener() {
      public void serviceDiscovered(IServiceEvent anEvent) { ...
    
* I don't understand what you mean by not matching "local" domains and why we should not do that.
Comment 4 Markus Kuppe CLA 2011-08-09 06:27:28 EDT
(In reply to comment #3)

> * I cannot find a whiteboard IServiceListener, could you point me to that?

Register a service of type org.eclipse.ecf.discovery.IServiceListener. The properties accepted for ISL, can be found in org.eclipse.ecf.internal.discovery.DiscoveryServiceListener.getIServiceTypeID(ServiceReference) or as part of an older patch (https://bugs.eclipse.org/bugs/attachment.cgi?id=181065&action=edit).
The ISL will be called by ECF discovery when a mDNS, SLP, DNS-SD, ... service gets found.

> * I don't understand what you mean by not matching "local" domains and why we
> should not do that.

.local is specific to mDNS. But a user might choose to use e.g. wide-area based DNS-SD discovery, which does not use a protocol specific ".local" domain, but a real domain like e.g. ".eclipse.org".
Comment 5 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn