Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366154 - Large monitoring reports can not be sent to Jubula client
Summary: Large monitoring reports can not be sent to Jubula client
Status: CLOSED FIXED
Alias: None
Product: Jubula
Classification: Technology
Component: Agent (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: Juno M5   Edit
Assignee: Zeb Ford-Reitz CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-09 04:09 EST by Marc Steffens CLA
Modified: 2012-01-24 05:54 EST (History)
2 users (show)

See Also:
zeb.ford-reitz: juno+


Attachments
This patch allows to stream monitoring reports to the Jubula client (15.19 KB, patch)
2011-12-09 04:09 EST, Marc Steffens CLA
zeb.ford-reitz: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Steffens CLA 2011-12-09 04:09:40 EST
Created attachment 208145 [details]
This patch allows to stream monitoring reports to the Jubula client

Jubula defines a monitoring framework which allows Jubula to calculate monitoring values and to generate monitoring reports. In some cases it is possible that the size of the generated monitoring report is to large to send it via the implemented message and command mechanism. The purpose of this patch is to avoid that the report could not be send to the client. 

The attached patch is implementing a streaming mechanism which will stream the report to client, instead of generating a large byte array which could in some cases not be send to the client. 

To implement this mechanism it was necessary to edit the IMonitoring interface. The buildMonitoring() method has now an argument of an OutputStream instead of generating and returning a byte array. Everything that was written to this OutputStream will be send to the client.
Comment 1 Zeb Ford-Reitz CLA 2011-12-12 09:18:42 EST
patch applied (with small modifications such as local variable names, method names, and javadoc comments): http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/commit/?id=9d0c17465acb01b451b8c8c2a0186fd5b9c0c3e9
Comment 2 Oliver Goetz CLA 2012-01-12 05:03:49 EST
Tested using Windows, Linux and MacOS X machines generating large monitoring reports.