Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EPP » Usage of UDC in 3rd party Eclipse plugins and distributions
Usage of UDC in 3rd party Eclipse plugins and distributions [message #11207] Thu, 07 May 2009 04:57 Go to next message
Eclipse User
Originally posted by: max.andersen.redhat.com

Hi,

I'm looking into how best to use UDC from our plugins (JBoss Tools) and
our distribution (JBoss Developer Studio) and I bumped into some
challenges :)

1) Where is the server side part of UDC ? I can only find the client
side code.

2) Can UDC upload the collected data based on what plugins the usage is
for ? (since I don't want to mess with users default UDC upload location
when I'm "just" a 3rd party installed plugin)

3) Or alternatively can 3rd party *plugins* get access to the data
collected by Eclipse.org ?

4) Has UDC exposed some public API's for Galileo ?

/max
Re: Usage of UDC in 3rd party Eclipse plugins and distributions [message #11240 is a reply to message #11207] Thu, 07 May 2009 08:34 Go to previous messageGo to next message
Eclipse User
Originally posted by: jacek.pospychala.pl.ibm.com

Hi Max,
while am not UDC dev, I have looked at it too and have some similar
concerns.

Max Rydahl Andersen pisze:
> 1) Where is the server side part of UDC ? I can only find the client
> side code.

I have not found that in WWW cvs, or technology cvs repo.
However it's fairly easy to create your own - just expose a page that
logs somehow the HTTP POST requests.

> 2) Can UDC upload the collected data based on what plugins the usage is
> for ? (since I don't want to mess with users default UDC upload location
> when I'm "just" a 3rd party installed plugin)

Not really. It's fairly simple to redirect UDC to upload data to a
different host. And IMHO it's reasonable to do so in your own product
(JBoss Developer Studio case), however you may need to update some of
the privacy statements accordingly.

>
> 3) Or alternatively can 3rd party *plugins* get access to the data
> collected by Eclipse.org ?

what do you want to achieve here?

>
> 4) Has UDC exposed some public API's for Galileo ?

UDC has no APIs.
Re: Usage of UDC in 3rd party Eclipse plugins and distributions [message #11275 is a reply to message #11240] Thu, 07 May 2009 16:58 Go to previous messageGo to next message
Eclipse User
Originally posted by: max.andersen.redhat.com

> Max Rydahl Andersen pisze:
>> 1) Where is the server side part of UDC ? I can only find the client
>> side code.
>
> I have not found that in WWW cvs, or technology cvs repo.
> However it's fairly easy to create your own - just expose a page that
> logs somehow the HTTP POST requests.

Okey - I guess I just have to "reverse engineer" it.

>> 2) Can UDC upload the collected data based on what plugins the usage
>> is for ? (since I don't want to mess with users default UDC upload
>> location when I'm "just" a 3rd party installed plugin)
>
> Not really. It's fairly simple to redirect UDC to upload data to a
> different host. And IMHO it's reasonable to do so in your own product
> (JBoss Developer Studio case), however you may need to update some of
> the privacy statements accordingly.

hmm - I would like to avoid having to change "base eclipse plugins" but
I guess I can be forced to.

>> 3) Or alternatively can 3rd party *plugins* get access to the data
>> collected by Eclipse.org ?
>
> what do you want to achieve here?

JBoss Tools plugins has about 30 to 50k downloads a month from our
update and download site which means there is *alot* of users which
runs the plugins on a base eclipse - which I can't get the stats for.
but eclipse.org have them.

I would like to see more than just *** in the reports ;)

>> 4) Has UDC exposed some public API's for Galileo ?
>
> UDC has no APIs.

bummer.

/max
Re: Usage of UDC in 3rd party Eclipse plugins and distributions [message #11312 is a reply to message #11275] Fri, 08 May 2009 05:30 Go to previous messageGo to next message
Eclipse User
Originally posted by: jacek.pospychala.pl.ibm.com

Max Rydahl Andersen pisze:
>
>> Max Rydahl Andersen pisze:
>>> 1) Where is the server side part of UDC ? I can only find the client
>>> side code.
>>
>> I have not found that in WWW cvs, or technology cvs repo.
>> However it's fairly easy to create your own - just expose a page that
>> logs somehow the HTTP POST requests.
>
> Okey - I guess I just have to "reverse engineer" it.

The simplest approach for me was a servlet with doPost() method looking
like:

HttpServletRequest req = ...
ServletFileUpload upload = new ServletFileUpload(new DiskFileItemFactory());
List items = upload.parseRequest(req);
for (Iterator i = items.iterator(); i.hasNext(); ) {
FileItem item = (FileItem) i.next();
System.out.println(item.getFileName()+" = "+item.getString());
}

using Apache commons fileupload. You get CSV files, with header in first
line followed by rows of comma-separated data.

Anyway, it'd be good if UDC project had provided some, even simple, server.

>
>>> 3) Or alternatively can 3rd party *plugins* get access to the data
>>> collected by Eclipse.org ?
>>
>> what do you want to achieve here?
>
> JBoss Tools plugins has about 30 to 50k downloads a month from our
> update and download site which means there is *alot* of users which
> runs the plugins on a base eclipse - which I can't get the stats for.
> but eclipse.org have them.
>
> I would like to see more than just *** in the reports ;)

Woudln't that violate the UDC Terms of Use? (It says only Foundation is
collecting that data). Technically that should be doable, however a bit
hackish - accessing other plug-in files
(workspace\.metadata\.plugins\org.eclipse.epp.usagedata.reco rding\*).
Have you tried contact Foundation directly to get more detailed report?
Re: Usage of UDC in 3rd party Eclipse plugins and distributions [message #11348 is a reply to message #11312] Sun, 10 May 2009 06:11 Go to previous messageGo to next message
Eclipse User
Originally posted by: max.andersen.redhat.com

>>>> 1) Where is the server side part of UDC ? I can only find the client
>>>> side code.
>>>
>>> I have not found that in WWW cvs, or technology cvs repo.
>>> However it's fairly easy to create your own - just expose a page that
>>> logs somehow the HTTP POST requests.
>>
>> Okey - I guess I just have to "reverse engineer" it.
>
> The simplest approach for me was a servlet with doPost() method looking
> like:
>
> HttpServletRequest req = ...
> ServletFileUpload upload = new ServletFileUpload(new
> DiskFileItemFactory());
> List items = upload.parseRequest(req);
> for (Iterator i = items.iterator(); i.hasNext(); ) {
> FileItem item = (FileItem) i.next();
> System.out.println(item.getFileName()+" = "+item.getString());
> }
>
> using Apache commons fileupload. You get CSV files, with header in first
> line followed by rows of comma-separated data.

thanks!

>>>> 3) Or alternatively can 3rd party *plugins* get access to the data
>>>> collected by Eclipse.org ?
>>>
>>> what do you want to achieve here?
>>
>> JBoss Tools plugins has about 30 to 50k downloads a month from our
>> update and download site which means there is *alot* of users which
>> runs the plugins on a base eclipse - which I can't get the stats for.
>> but eclipse.org have them.
>>
>> I would like to see more than just *** in the reports ;)
>
> Woudln't that violate the UDC Terms of Use?

Yes, it probably woul.

(It says only Foundation is
> collecting that data). Technically that should be doable, however a bit
> hackish - accessing other plug-in files
> (workspace\.metadata\.plugins\org.eclipse.epp.usagedata.reco rding\*).
> Have you tried contact Foundation directly to get more detailed report?

Yes, and the answer have been that "We are looking into it.." - which is
now over a year ago I believe. Hence why i'm trying to start collecting
the items on my own.

/max
Re: Usage of UDC in 3rd party Eclipse plugins and distributions [message #11532 is a reply to message #11348] Mon, 15 June 2009 06:40 Go to previous message
Eclipse User
Originally posted by: jacek.pospychala.pl.ibm.com

Max Rydahl Andersen pisze:
> (It says only Foundation is
>> collecting that data). Technically that should be doable, however a bit
>> hackish - accessing other plug-in files
>> (workspace\.metadata\.plugins\org.eclipse.epp.usagedata.reco rding\*).
>> Have you tried contact Foundation directly to get more detailed report?
>
> Yes, and the answer have been that "We are looking into it.." - which is
> now over a year ago I believe. Hence why i'm trying to start collecting
> the items on my own.

Hi Max,

still interested in UDC?
I'm also trying to get some more reports from foundation/EPP, but with
no response so far. Have a look at bug "More reports from UDC" -
https://bugs.eclipse.org/bugs/show_bug.cgi?id=279210
Re: Usage of UDC in 3rd party Eclipse plugins and distributions [message #578683 is a reply to message #11207] Thu, 07 May 2009 08:34 Go to previous message
Jacek Pospychala is currently offline Jacek Pospychala
Messages: 159
Registered: July 2009
Senior Member
Hi Max,
while am not UDC dev, I have looked at it too and have some similar
concerns.

Max Rydahl Andersen pisze:
> 1) Where is the server side part of UDC ? I can only find the client
> side code.

I have not found that in WWW cvs, or technology cvs repo.
However it's fairly easy to create your own - just expose a page that
logs somehow the HTTP POST requests.

> 2) Can UDC upload the collected data based on what plugins the usage is
> for ? (since I don't want to mess with users default UDC upload location
> when I'm "just" a 3rd party installed plugin)

Not really. It's fairly simple to redirect UDC to upload data to a
different host. And IMHO it's reasonable to do so in your own product
(JBoss Developer Studio case), however you may need to update some of
the privacy statements accordingly.

>
> 3) Or alternatively can 3rd party *plugins* get access to the data
> collected by Eclipse.org ?

what do you want to achieve here?

>
> 4) Has UDC exposed some public API's for Galileo ?

UDC has no APIs.
Re: Usage of UDC in 3rd party Eclipse plugins and distributions [message #578752 is a reply to message #11240] Thu, 07 May 2009 16:58 Go to previous message
Max Rydahl Andersen is currently offline Max Rydahl Andersen
Messages: 23
Registered: July 2009
Junior Member
> Max Rydahl Andersen pisze:
>> 1) Where is the server side part of UDC ? I can only find the client
>> side code.
>
> I have not found that in WWW cvs, or technology cvs repo.
> However it's fairly easy to create your own - just expose a page that
> logs somehow the HTTP POST requests.

Okey - I guess I just have to "reverse engineer" it.

>> 2) Can UDC upload the collected data based on what plugins the usage
>> is for ? (since I don't want to mess with users default UDC upload
>> location when I'm "just" a 3rd party installed plugin)
>
> Not really. It's fairly simple to redirect UDC to upload data to a
> different host. And IMHO it's reasonable to do so in your own product
> (JBoss Developer Studio case), however you may need to update some of
> the privacy statements accordingly.

hmm - I would like to avoid having to change "base eclipse plugins" but
I guess I can be forced to.

>> 3) Or alternatively can 3rd party *plugins* get access to the data
>> collected by Eclipse.org ?
>
> what do you want to achieve here?

JBoss Tools plugins has about 30 to 50k downloads a month from our
update and download site which means there is *alot* of users which
runs the plugins on a base eclipse - which I can't get the stats for.
but eclipse.org have them.

I would like to see more than just *** in the reports ;)

>> 4) Has UDC exposed some public API's for Galileo ?
>
> UDC has no APIs.

bummer.

/max
Re: Usage of UDC in 3rd party Eclipse plugins and distributions [message #578813 is a reply to message #11275] Fri, 08 May 2009 05:30 Go to previous message
Jacek Pospychala is currently offline Jacek Pospychala
Messages: 159
Registered: July 2009
Senior Member
Max Rydahl Andersen pisze:
>
>> Max Rydahl Andersen pisze:
>>> 1) Where is the server side part of UDC ? I can only find the client
>>> side code.
>>
>> I have not found that in WWW cvs, or technology cvs repo.
>> However it's fairly easy to create your own - just expose a page that
>> logs somehow the HTTP POST requests.
>
> Okey - I guess I just have to "reverse engineer" it.

The simplest approach for me was a servlet with doPost() method looking
like:

HttpServletRequest req = ...
ServletFileUpload upload = new ServletFileUpload(new DiskFileItemFactory());
List items = upload.parseRequest(req);
for (Iterator i = items.iterator(); i.hasNext(); ) {
FileItem item = (FileItem) i.next();
System.out.println(item.getFileName()+" = "+item.getString());
}

using Apache commons fileupload. You get CSV files, with header in first
line followed by rows of comma-separated data.

Anyway, it'd be good if UDC project had provided some, even simple, server.

>
>>> 3) Or alternatively can 3rd party *plugins* get access to the data
>>> collected by Eclipse.org ?
>>
>> what do you want to achieve here?
>
> JBoss Tools plugins has about 30 to 50k downloads a month from our
> update and download site which means there is *alot* of users which
> runs the plugins on a base eclipse - which I can't get the stats for.
> but eclipse.org have them.
>
> I would like to see more than just *** in the reports ;)

Woudln't that violate the UDC Terms of Use? (It says only Foundation is
collecting that data). Technically that should be doable, however a bit
hackish - accessing other plug-in files
(workspace\.metadata\.plugins\org.eclipse.epp.usagedata.reco rding\*).
Have you tried contact Foundation directly to get more detailed report?
Re: Usage of UDC in 3rd party Eclipse plugins and distributions [message #578871 is a reply to message #11312] Sun, 10 May 2009 06:11 Go to previous message
Max Rydahl Andersen is currently offline Max Rydahl Andersen
Messages: 23
Registered: July 2009
Junior Member
>>>> 1) Where is the server side part of UDC ? I can only find the client
>>>> side code.
>>>
>>> I have not found that in WWW cvs, or technology cvs repo.
>>> However it's fairly easy to create your own - just expose a page that
>>> logs somehow the HTTP POST requests.
>>
>> Okey - I guess I just have to "reverse engineer" it.
>
> The simplest approach for me was a servlet with doPost() method looking
> like:
>
> HttpServletRequest req = ...
> ServletFileUpload upload = new ServletFileUpload(new
> DiskFileItemFactory());
> List items = upload.parseRequest(req);
> for (Iterator i = items.iterator(); i.hasNext(); ) {
> FileItem item = (FileItem) i.next();
> System.out.println(item.getFileName()+" = "+item.getString());
> }
>
> using Apache commons fileupload. You get CSV files, with header in first
> line followed by rows of comma-separated data.

thanks!

>>>> 3) Or alternatively can 3rd party *plugins* get access to the data
>>>> collected by Eclipse.org ?
>>>
>>> what do you want to achieve here?
>>
>> JBoss Tools plugins has about 30 to 50k downloads a month from our
>> update and download site which means there is *alot* of users which
>> runs the plugins on a base eclipse - which I can't get the stats for.
>> but eclipse.org have them.
>>
>> I would like to see more than just *** in the reports ;)
>
> Woudln't that violate the UDC Terms of Use?

Yes, it probably woul.

(It says only Foundation is
> collecting that data). Technically that should be doable, however a bit
> hackish - accessing other plug-in files
> (workspace\.metadata\.plugins\org.eclipse.epp.usagedata.reco rding\*).
> Have you tried contact Foundation directly to get more detailed report?

Yes, and the answer have been that "We are looking into it.." - which is
now over a year ago I believe. Hence why i'm trying to start collecting
the items on my own.

/max
Re: Usage of UDC in 3rd party Eclipse plugins and distributions [message #579027 is a reply to message #11348] Mon, 15 June 2009 06:40 Go to previous message
Jacek Pospychala is currently offline Jacek Pospychala
Messages: 159
Registered: July 2009
Senior Member
Max Rydahl Andersen pisze:
> (It says only Foundation is
>> collecting that data). Technically that should be doable, however a bit
>> hackish - accessing other plug-in files
>> (workspace\.metadata\.plugins\org.eclipse.epp.usagedata.reco rding\*).
>> Have you tried contact Foundation directly to get more detailed report?
>
> Yes, and the answer have been that "We are looking into it.." - which is
> now over a year ago I believe. Hence why i'm trying to start collecting
> the items on my own.

Hi Max,

still interested in UDC?
I'm also trying to get some more reports from foundation/EPP, but with
no response so far. Have a look at bug "More reports from UDC" -
https://bugs.eclipse.org/bugs/show_bug.cgi?id=279210
Previous Topic:Downloading an update site to a local mirror programmatically
Next Topic:Galileo Packages Cocoa 64 Bit
Goto Forum:
  


Current Time: Fri Jul 25 09:44:47 EDT 2014

Powered by FUDForum. Page generated in 0.03138 seconds