Home » Archived » EPP » UDC in own RCP applications
UDC in own RCP applications [message #9016] |
Thu, 19 June 2008 07:38  |
Eclipse User |
|
|
|
Hi folks,
I've been told that this is the right place to post my question.
I am really interested in using the Usage Data Collector in own RCP
applications in order to see how user interact with my
application/plugins. Is this basically possible? Is there any "how to"
site where I can read how to include this tool in own applications, how to
set the server destination for usage files and how to generate reports?
It would be really great if someone could give me an advice.
Thanks in advance,
Eugen Reiswich
|
|
| |
Re: UDC in own RCP applications [message #9058 is a reply to message #9016] |
Fri, 20 June 2008 10:55   |
Eclipse User |
|
|
|
The short answer is yes, you can use the UDC in your own RCP
applications. However, the current incarnation of the UDC doesn't expose
any official APIs and while significant parts of the UDC do lend
themselves to reuse--without other use cases to base development
on--reuse has been on our minds, but has not been a particular focus.
This is going to be a focus for after the Ganymede release at the end of
June.
Your involvement in, at least, defining what you need the UDC to do for
you would be helpful.
We can discuss in this forum if you'd like, or you can create bug
reports in Eclipse bugzilla. Or both.
Thanks,
Wayne
On Thu, 2008-06-19 at 11:38 +0000, Eugen Reiswich wrote:
> Hi folks,
>
> I've been told that this is the right place to post my question.
>
> I am really interested in using the Usage Data Collector in own RCP
> applications in order to see how user interact with my
> application/plugins. Is this basically possible? Is there any "how to"
> site where I can read how to include this tool in own applications, how to
> set the server destination for usage files and how to generate reports?
>
> It would be really great if someone could give me an advice.
>
> Thanks in advance,
> Eugen Reiswich
>
|
|
|
Re: UDC in own RCP applications [message #9139 is a reply to message #9058] |
Wed, 25 June 2008 05:05   |
Eclipse User |
|
|
|
Wayne Beaton wrote:
> ...
> Your involvement in, at least, defining what you need the UDC to do for
> you would be helpful.
> We can discuss in this forum if you'd like, or you can create bug
> reports in Eclipse bugzilla. Or both.
> Thanks,
> Wayne
Thanks Markus, thanks Wayne for your help.
I was now able to start UDC from the command line and had a look at the
recorded data. What we are basically trying to track are the items below:
- which bundles, perspectives, views, toolbar, menu commands etc. has a
user used
- how long has a user been working within a view, editor, perspective etc.
- which widgets (buttons, combobox, text field) has the user clicked in an
editor, view in what sequence
- which server side services have been accessed
Most of the items above have been tracked by UDC but the information
provided was sometimes insufficient. So it would be really great to have
the possibility to extend UDC (e.g. using an extension point) and provide
UDC with own tracking information (e.g. UDCtracker.track("this string will
contain my usage data") ).
Regards,
Eugen
|
|
| | | |
Re: UDC in own RCP applications [message #9796 is a reply to message #9773] |
Fri, 11 July 2008 22:24   |
Eclipse User |
|
|
|
On Thu, 2008-07-10 at 10:46 +0000, Eugen Reiswich wrote:
> Hi folks,
>
> I'm still in struggle with Usage Data Collector and try to get it running
> in my RCP application.
>
> 1. First question I have is how to change the upload URL for the recorded
> data? I need to upload the results to our server and not to the eclipse
> server! After spending hours and hours I've found out that there might be
> a way to use the UploadManager and change the System.property
> "org.eclipse.epp.usagedata.recording.upload-url" and set it to an own url.
> However this doesn't work for me because somehow the stored upload files
> are deleted as soon as I start the UploadManager and before the file
> transfer is finished:
> UploadManager uploadManager = new UploadManager();
> uploadManager.startUpload();
>
The system property works. I've been using for testing. In fact, one of
the JUnit tests uses it.
The files should not be deleted until after the upload returns a success
(200) code. I'm not sure how this could be happening. Could it be that
your server is returning a 200 code and the UDC is just doing what it's
supposed to do?
> 2. What sense do the recorded files have? There is one usagedata.cvs and
> several uploadxx.cvs files. But I don't get the sense of these files.
> Sometimes a new upload.cvs file is created when I start my RCP application
> and sometimes not. And even sometimes files are deleted when I quit my
> application.
The usagedata.cvs is the file that data is captured into. Once this file
gets to a particular size, or it is otherwise determined that it is time
to start an upload, the file is renamed to uploadxxx.cvs. The
usagedata.cvs is not created until it is needed. The UDC caches 25 (by
default) events before it creates the file and starts writing. Maybe
this is what you're seeing.
These files should only be deleted after an upload. There's no code in
the UDC that deletes theses files in any other case.
>
> As you can see I'm already desperate and my nerves are row. So any help
> would be really, really appreciated!
I'm sorry for the frustration. I wrestled with how to specify the URL in
a generic way, but couldn't come up with a good answer. Clearly, more
thought is required.
I see the "recording" plug-in as something that is particular to the
Eclipse Foundation's use of the UDC. There are some useful bits in there
that need to be factored out to make them reusable. Perhaps the first
bit of refactorable technology is the BasicUploader class.
Unfortunately, I won't be able to look at this until next week sometime.
Clearly it's time to start thinking about what parts of the UDC should
be API. The BasicUploader is an obvious target.
>
> Regards,
> Eugen
>
|
|
| |
Re: UDC in own RCP applications [message #9906 is a reply to message #9058] |
Fri, 22 August 2008 05:04   |
Eclipse User |
|
|
|
Originally posted by: mario.winterer.gmx.net
Hi!
I think, UDC is a very great thing and very useful for every kind of RCP
application!
I'm currently working on integrating UDC in our RCP application - simply
adding the required UDC plugins and specifying the upload-server-url via
system property seems to work fine!
Unfortunately, I couldn't figure out how to handle the upload request on
the server side. I'v installed tomcat web server and wrote a simple
servlet that dumps the request information into a text file, but the
request body always seems to be empty and the content-length header
field is -1 too.
Does anybody have experience with reading the UDC request using the Java
Servlet API?
Thanks,
Mario
Wayne Beaton schrieb:
> The short answer is yes, you can use the UDC in your own RCP
> applications. However, the current incarnation of the UDC doesn't expose
> any official APIs and while significant parts of the UDC do lend
> themselves to reuse--without other use cases to base development
> on--reuse has been on our minds, but has not been a particular focus.
> This is going to be a focus for after the Ganymede release at the end of
> June.
>
> Your involvement in, at least, defining what you need the UDC to do for
> you would be helpful.
>
> We can discuss in this forum if you'd like, or you can create bug
> reports in Eclipse bugzilla. Or both.
>
> Thanks,
>
> Wayne
>
> On Thu, 2008-06-19 at 11:38 +0000, Eugen Reiswich wrote:
>> Hi folks,
>>
>> I've been told that this is the right place to post my question.
>>
>> I am really interested in using the Usage Data Collector in own RCP
>> applications in order to see how user interact with my
>> application/plugins. Is this basically possible? Is there any "how to"
>> site where I can read how to include this tool in own applications, how to
>> set the server destination for usage files and how to generate reports?
>>
>> It would be really great if someone could give me an advice.
>>
>> Thanks in advance,
>> Eugen Reiswich
>>
>
|
|
| | | |
Re: UDC in own RCP applications [message #577357 is a reply to message #9016] |
Fri, 20 June 2008 04:26  |
Eclipse User |
|
|
|
A good starting point is the main web page of the UDC (client side):
http://www.eclipse.org/epp/usagedata/index.php
There is a technical FAQ (http://www.eclipse.org/epp/usagedata/faq.php) and
a project set file (http://www.eclipse.org/epp/usagedata/UsageData.psf)
that allows you to easily add the code to your workspace.
Feel free to ask more questions, if not everything is answered in the FAQ.
Thanks and regards,
Markus
Eugen Reiswich wrote:
> Hi folks,
>
> I've been told that this is the right place to post my question.
>
> I am really interested in using the Usage Data Collector in own RCP
> applications in order to see how user interact with my
> application/plugins. Is this basically possible? Is there any "how to"
> site where I can read how to include this tool in own applications, how to
> set the server destination for usage files and how to generate reports?
>
> It would be really great if someone could give me an advice.
>
> Thanks in advance,
> Eugen Reiswich
|
|
|
Re: UDC in own RCP applications [message #577378 is a reply to message #9016] |
Fri, 20 June 2008 10:55  |
Eclipse User |
|
|
|
The short answer is yes, you can use the UDC in your own RCP
applications. However, the current incarnation of the UDC doesn't expose
any official APIs and while significant parts of the UDC do lend
themselves to reuse--without other use cases to base development
on--reuse has been on our minds, but has not been a particular focus.
This is going to be a focus for after the Ganymede release at the end of
June.
Your involvement in, at least, defining what you need the UDC to do for
you would be helpful.
We can discuss in this forum if you'd like, or you can create bug
reports in Eclipse bugzilla. Or both.
Thanks,
Wayne
On Thu, 2008-06-19 at 11:38 +0000, Eugen Reiswich wrote:
> Hi folks,
>
> I've been told that this is the right place to post my question.
>
> I am really interested in using the Usage Data Collector in own RCP
> applications in order to see how user interact with my
> application/plugins. Is this basically possible? Is there any "how to"
> site where I can read how to include this tool in own applications, how to
> set the server destination for usage files and how to generate reports?
>
> It would be really great if someone could give me an advice.
>
> Thanks in advance,
> Eugen Reiswich
>
|
|
|
Re: UDC in own RCP applications [message #577460 is a reply to message #9058] |
Wed, 25 June 2008 05:05  |
Eclipse User |
|
|
|
Wayne Beaton wrote:
> ...
> Your involvement in, at least, defining what you need the UDC to do for
> you would be helpful.
> We can discuss in this forum if you'd like, or you can create bug
> reports in Eclipse bugzilla. Or both.
> Thanks,
> Wayne
Thanks Markus, thanks Wayne for your help.
I was now able to start UDC from the command line and had a look at the
recorded data. What we are basically trying to track are the items below:
- which bundles, perspectives, views, toolbar, menu commands etc. has a
user used
- how long has a user been working within a view, editor, perspective etc.
- which widgets (buttons, combobox, text field) has the user clicked in an
editor, view in what sequence
- which server side services have been accessed
Most of the items above have been tracked by UDC but the information
provided was sometimes insufficient. So it would be really great to have
the possibility to extend UDC (e.g. using an extension point) and provide
UDC with own tracking information (e.g. UDCtracker.track("this string will
contain my usage data") ).
Regards,
Eugen
|
|
|
Re: UDC in own RCP applications [message #577473 is a reply to message #9139] |
Wed, 25 June 2008 05:38  |
Eclipse User |
|
|
|
Today I was able to get the UsageDataService and record my own commands.
However I had some "discouraged access warnings" which I ignored. Is this
a proper way to use the service?
this.tracker = new ServiceTracker(Activator.getContext(),
UsageDataService.class.getName(), null);
this.tracker.open();
usageService = (UsageDataService) this.tracker.getService();
Assert.isNotNull(usageService);
this.usageService.startMonitoring();
Regards,
Eugen
|
|
|
Re: UDC in own RCP applications [message #577566 is a reply to message #9159] |
Thu, 03 July 2008 18:43  |
Eclipse User |
|
|
|
Sorry for the delay in responding.
The warnings are due to the fact that none of the UDC is currently
exposed as APIs. The PDE is warning you of this.
You shouldn't have to tell the UsageDataService to start monitoring. It
should already be monitoring if you can obtain it.
Wayne
On Wed, 2008-06-25 at 09:38 +0000, Eugen Reiswich wrote:
> Today I was able to get the UsageDataService and record my own commands.
> However I had some "discouraged access warnings" which I ignored. Is this
> a proper way to use the service?
>
> this.tracker = new ServiceTracker(Activator.getContext(),
> UsageDataService.class.getName(), null);
> this.tracker.open();
>
> usageService = (UsageDataService) this.tracker.getService();
> Assert.isNotNull(usageService);
>
> this.usageService.startMonitoring();
>
> Regards,
> Eugen
>
|
|
|
Re: UDC in own RCP applications [message #577603 is a reply to message #9730] |
Thu, 10 July 2008 06:46  |
Eclipse User |
|
|
|
Hi folks,
I'm still in struggle with Usage Data Collector and try to get it running
in my RCP application.
1. First question I have is how to change the upload URL for the recorded
data? I need to upload the results to our server and not to the eclipse
server! After spending hours and hours I've found out that there might be
a way to use the UploadManager and change the System.property
"org.eclipse.epp.usagedata.recording.upload-url" and set it to an own url.
However this doesn't work for me because somehow the stored upload files
are deleted as soon as I start the UploadManager and before the file
transfer is finished:
UploadManager uploadManager = new UploadManager();
uploadManager.startUpload();
2. What sense do the recorded files have? There is one usagedata.cvs and
several uploadxx.cvs files. But I don't get the sense of these files.
Sometimes a new upload.cvs file is created when I start my RCP application
and sometimes not. And even sometimes files are deleted when I quit my
application.
As you can see I'm already desperate and my nerves are row. So any help
would be really, really appreciated!
Regards,
Eugen
|
|
|
Re: UDC in own RCP applications [message #577619 is a reply to message #9773] |
Fri, 11 July 2008 22:24  |
Eclipse User |
|
|
|
On Thu, 2008-07-10 at 10:46 +0000, Eugen Reiswich wrote:
> Hi folks,
>
> I'm still in struggle with Usage Data Collector and try to get it running
> in my RCP application.
>
> 1. First question I have is how to change the upload URL for the recorded
> data? I need to upload the results to our server and not to the eclipse
> server! After spending hours and hours I've found out that there might be
> a way to use the UploadManager and change the System.property
> "org.eclipse.epp.usagedata.recording.upload-url" and set it to an own url.
> However this doesn't work for me because somehow the stored upload files
> are deleted as soon as I start the UploadManager and before the file
> transfer is finished:
> UploadManager uploadManager = new UploadManager();
> uploadManager.startUpload();
>
The system property works. I've been using for testing. In fact, one of
the JUnit tests uses it.
The files should not be deleted until after the upload returns a success
(200) code. I'm not sure how this could be happening. Could it be that
your server is returning a 200 code and the UDC is just doing what it's
supposed to do?
> 2. What sense do the recorded files have? There is one usagedata.cvs and
> several uploadxx.cvs files. But I don't get the sense of these files.
> Sometimes a new upload.cvs file is created when I start my RCP application
> and sometimes not. And even sometimes files are deleted when I quit my
> application.
The usagedata.cvs is the file that data is captured into. Once this file
gets to a particular size, or it is otherwise determined that it is time
to start an upload, the file is renamed to uploadxxx.cvs. The
usagedata.cvs is not created until it is needed. The UDC caches 25 (by
default) events before it creates the file and starts writing. Maybe
this is what you're seeing.
These files should only be deleted after an upload. There's no code in
the UDC that deletes theses files in any other case.
>
> As you can see I'm already desperate and my nerves are row. So any help
> would be really, really appreciated!
I'm sorry for the frustration. I wrestled with how to specify the URL in
a generic way, but couldn't come up with a good answer. Clearly, more
thought is required.
I see the "recording" plug-in as something that is particular to the
Eclipse Foundation's use of the UDC. There are some useful bits in there
that need to be factored out to make them reusable. Perhaps the first
bit of refactorable technology is the BasicUploader class.
Unfortunately, I won't be able to look at this until next week sometime.
Clearly it's time to start thinking about what parts of the UDC should
be API. The BasicUploader is an obvious target.
>
> Regards,
> Eugen
>
|
|
| |
Re: UDC in own RCP applications [message #577713 is a reply to message #9058] |
Fri, 22 August 2008 05:04  |
Eclipse User |
|
|
|
Hi!
I think, UDC is a very great thing and very useful for every kind of RCP
application!
I'm currently working on integrating UDC in our RCP application - simply
adding the required UDC plugins and specifying the upload-server-url via
system property seems to work fine!
Unfortunately, I couldn't figure out how to handle the upload request on
the server side. I'v installed tomcat web server and wrote a simple
servlet that dumps the request information into a text file, but the
request body always seems to be empty and the content-length header
field is -1 too.
Does anybody have experience with reading the UDC request using the Java
Servlet API?
Thanks,
Mario
Wayne Beaton schrieb:
> The short answer is yes, you can use the UDC in your own RCP
> applications. However, the current incarnation of the UDC doesn't expose
> any official APIs and while significant parts of the UDC do lend
> themselves to reuse--without other use cases to base development
> on--reuse has been on our minds, but has not been a particular focus.
> This is going to be a focus for after the Ganymede release at the end of
> June.
>
> Your involvement in, at least, defining what you need the UDC to do for
> you would be helpful.
>
> We can discuss in this forum if you'd like, or you can create bug
> reports in Eclipse bugzilla. Or both.
>
> Thanks,
>
> Wayne
>
> On Thu, 2008-06-19 at 11:38 +0000, Eugen Reiswich wrote:
>> Hi folks,
>>
>> I've been told that this is the right place to post my question.
>>
>> I am really interested in using the Usage Data Collector in own RCP
>> applications in order to see how user interact with my
>> application/plugins. Is this basically possible? Is there any "how to"
>> site where I can read how to include this tool in own applications, how to
>> set the server destination for usage files and how to generate reports?
>>
>> It would be really great if someone could give me an advice.
>>
>> Thanks in advance,
>> Eugen Reiswich
>>
>
|
|
|
Re: UDC in own RCP applications [message #577725 is a reply to message #9906] |
Tue, 26 August 2008 14:26  |
Eclipse User |
|
|
|
The upload is done via Multi parts (the UDC data is in one or more files
that uploaded as attachments). I don't think that the standard servlet
API handles this well. I believe that the Apache Jakarta project has
code that handles multi parts.
I think this link might help (I found it have only a cursory search).
http://commons.apache.org/fileupload/
Wayne
On Fri, 2008-08-22 at 11:04 +0200, Mario Winterer wrote:
> Hi!
>
> I think, UDC is a very great thing and very useful for every kind of RCP
> application!
> I'm currently working on integrating UDC in our RCP application - simply
> adding the required UDC plugins and specifying the upload-server-url via
> system property seems to work fine!
> Unfortunately, I couldn't figure out how to handle the upload request on
> the server side. I'v installed tomcat web server and wrote a simple
> servlet that dumps the request information into a text file, but the
> request body always seems to be empty and the content-length header
> field is -1 too.
>
> Does anybody have experience with reading the UDC request using the Java
> Servlet API?
>
> Thanks,
> Mario
|
|
|
Re: UDC in own RCP applications [message #577785 is a reply to message #9928] |
Tue, 26 August 2008 14:34  |
Eclipse User |
|
|
|
Wayne,
thanks for your response. I've already tried apache's common fileupload
library - unfortunately it didn't work either. But maybe I did something
wrong, I've just copied the simple tutorial example...
I'll keep trying.
Mario
Wayne Beaton schrieb:
> The upload is done via Multi parts (the UDC data is in one or more files
> that uploaded as attachments). I don't think that the standard servlet
> API handles this well. I believe that the Apache Jakarta project has
> code that handles multi parts.
>
> I think this link might help (I found it have only a cursory search).
>
> http://commons.apache.org/fileupload/
>
> Wayne
>
> On Fri, 2008-08-22 at 11:04 +0200, Mario Winterer wrote:
>> Hi!
>>
>> I think, UDC is a very great thing and very useful for every kind of RCP
>> application!
>> I'm currently working on integrating UDC in our RCP application - simply
>> adding the required UDC plugins and specifying the upload-server-url via
>> system property seems to work fine!
>> Unfortunately, I couldn't figure out how to handle the upload request on
>> the server side. I'v installed tomcat web server and wrote a simple
>> servlet that dumps the request information into a text file, but the
>> request body always seems to be empty and the content-length header
>> field is -1 too.
>>
>> Does anybody have experience with reading the UDC request using the Java
>> Servlet API?
>>
>> Thanks,
>> Mario
>
|
|
| |
Goto Forum:
Current Time: Sat Apr 26 03:24:03 EDT 2025
Powered by FUDForum. Page generated in 0.05646 seconds
|