Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 177946 - [prov] console support for listing available transports
Summary: [prov] console support for listing available transports
Status: RESOLVED WONTFIX
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Incubator (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: equinox.incubator-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-18 13:26 EDT by Chris Aniszczyk CLA
Modified: 2007-10-05 15:38 EDT (History)
2 users (show)

See Also:


Attachments
org.eclipse.equinox.prov.console.patch (12.08 KB, patch)
2007-03-18 13:28 EDT, Chris Aniszczyk CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Aniszczyk CLA 2007-03-18 13:26:44 EDT
In ECF, it's possible to get at the list of supported transports. Consider adding a console command 'provlt' to list transports. A patch is provided.
Comment 1 Chris Aniszczyk CLA 2007-03-18 13:28:02 EDT
Created attachment 61214 [details]
org.eclipse.equinox.prov.console.patch
Comment 2 John Arthorne CLA 2007-03-19 12:13:51 EDT
It seems a bit odd to add this to the provisioning console, since it doesn't even touch or involve provisioning code. To me the fact that certain parts of the provisioning code make use of ECF is just an implementation detail.
Comment 3 Chris Aniszczyk CLA 2007-03-19 12:27:21 EDT
What is the plan in provisioning to support pluggable transport? Right now I only see a RequestHandler in the provisioning code for transporting. Do we need to create an API in provisioning to allow pluggable transports (and a way to query for support transports) and have ECF plug-in?

If so, open a separate bug and maybe we can prototype something.
Comment 4 John Arthorne CLA 2007-03-19 13:24:46 EDT
Currently, RequestHandler is the main transport API.  Repository implementations can implement this directly if they want to take care of transport themselves.  There is a subclass, ECFHandler, that implements transfer using ECF.  So, clients currently have the option of providing their own RequestHandler, or plugging into ECF and providing a transport at that level.

I'm sure the transport story will need some more fleshing out, so ideas are welcome. ECF is great, but there will be repositories that don't want to be tied to ECF.
Comment 5 Scott Lewis CLA 2007-03-19 13:36:52 EDT
I would suggest that before a new API for pluggable transports is designed, that
people consider just using and/or modifying/enhancing the ECF 'identity' plugin
(org.eclipse.ecf.core.identity).  One of the main purposes of the Namespace
class and associated extension point, for example, is to support the adding of
transports programmatically or declaratively and the querying of supported
transports as demonstrated by Chris' patch
 https://bugs.eclipse.org/bugs/attachment.cgi?id=61214.

The existing ECF API may not be perfect for all requirements implied by
provisioning/pluggable transports, but it is mutable to meet other expressed
needs, small in code size, no dependencies other than on
JRE 1.4, EE/CDC 1.0, org.eclipse.equinox.common, and has been working well for
the rest of ECF for some time.  And, we don't yet have backward compatibility requirements.
Comment 6 Chris Aniszczyk CLA 2007-03-19 14:45:29 EDT
should requesthandler's be tied directly to repositories, or should there be a pluggable way for repositories to query for handlers? 

ECF has a supported way to add handlers via the urlStreamHandlerService extension point. So you can effectively add handlers via specialized urls.
Comment 7 John Arthorne CLA 2007-10-05 15:38:18 EDT
Closing. It doesn't make sense to add ECF console support to the p2 console.