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

Bug 82677

Summary: Need notification of parsing of single CBE within a stream
Product: z_Archived Reporter: Paul Slauenwhite <paulslau>
Component: TPTPAssignee: Paul Slauenwhite <paulslau>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P1 CC: abdis, labadie, rochwer
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: All   
OS: All   
URL: http://www.eclipse.org/tptp/groups/Architecture/documents/features/hf_82677.html
Whiteboard:
Deadline: 2006-02-13   
Attachments:
Description Flags
SaxEventHandler with Observable delegate to handle notifications to Observers
none
EventFormatter with capability of registering Observers
none
Updated SAXEventHandler.java
none
Updated EventFormatter.java none

Description Paul Slauenwhite CLA 2005-01-12 11:03:23 EST
When parsing a stream of CBEs I need to be able to start working on the CBEs
before all the stream is processed.  To achieve this I need to be notified
wherever the parser has finished with each CBE.
Comment 1 Paul Slauenwhite CLA 2005-01-12 11:03:53 EST
Created attachment 17105 [details]
SaxEventHandler with Observable delegate to handle notifications to Observers
Comment 2 Paul Slauenwhite CLA 2005-01-12 11:04:16 EST
Created attachment 17106 [details]
EventFormatter with capability of registering Observers
Comment 3 Paul Slauenwhite CLA 2005-01-12 11:04:45 EST
*** Bug 82128 has been marked as a duplicate of this bug. ***
Comment 4 Paul Slauenwhite CLA 2005-01-19 10:01:21 EST
Rough workload estimate for design/code/test/doc/ship in person weeks: 1 

Requirement summary
Provide a notification mechanism for parsed Common Base Event objects when of 
de-serializing a stream of multiple Common Base Event XML fragments. 

When de-serializing a stream of multiple Common Base Event XML fragments, 
application code may want to start processing de-serialized Common Base Event 
objects before the complete stream of multiple Common Base Event XML fragments 
have been processed. 

Notification is required whenever a single Common Base Event XML fragment from 
the stream is de-serialized into a Common Base Event object. 

User interactions
Providing notification of parsed Common Base Event objects when de-serializing 
a stream of multiple Common Base Event XML fragments permits application code 
to achieve a high level of parallelism and improved efficiency. 

Design summary
The notification of parsed Common Base Event objects when of de-serializing a 
stream of multiple Common Base Event XML fragments is achieved using Java's 
Observable design pattern in the Common Base Event implementation 
(EventFormatter.java). The Event Formatter would provide an API to register 
Observers. The underlying SAX-based XML parser used to de-serialize Common Base 
Event XML fragments would implement the java.util.Observable interface and 
broadcast notification of parsed Common Base Event objects to all registered 
Observers. 
Comment 5 Paul Slauenwhite CLA 2005-01-25 09:50:11 EST
Theme(s) for this enhancement:

-Scaling Up
-Simple to Use 
Comment 6 Ruth Lee CLA 2005-07-12 11:12:16 EDT
Deferring from 4.1 as per the official 4.1 enhancement plan.
http://eclipse.org/tptp/home/project_info/featureplans/features.php?source=All&project=All&release=4.1&file=TPTPFeatures_4.1.xml
Comment 7 Ruth Lee CLA 2005-07-12 11:14:08 EDT
Deferring from 4.1 as per the official 4.1 enhancement plan.
http://eclipse.org/tptp/home/project_info/featureplans/features.php?source=All&project=All&release=4.1&file=TPTPFeatures_4.1.xml
Comment 8 Ruth Lee CLA 2005-07-12 11:14:55 EDT
Deferring from 4.1 as per the official 4.1 enhancement plan.
http://eclipse.org/tptp/home/project_info/featureplans/features.php?source=All&project=All&release=4.1&file=TPTPFeatures_4.1.xml
Comment 9 Paul Slauenwhite CLA 2005-09-14 12:58:01 EDT
Increasing the priority as per the request of the original reporter since these 
function is required by a consuming product.
Comment 10 Paul Slauenwhite CLA 2005-09-15 10:06:17 EDT
Highly desirable and planned for this release, but not stop ship
Comment 11 Paul Slauenwhite CLA 2005-09-15 10:16:50 EDT
(In reply to comment #10)
> Highly desirable and planned for this release, but not stop ship

Increasing the priority as per the request of the original reporter since these 
function is required by a consuming product.

CORRECTION:

P1 Cannot ship without this enhancement 
Comment 12 Paul Slauenwhite CLA 2005-09-21 10:17:03 EDT
Created attachment 27333 [details]
Updated SAXEventHandler.java
Comment 13 Paul Slauenwhite CLA 2005-09-21 10:17:23 EDT
Created attachment 27334 [details]
Updated EventFormatter.java
Comment 14 Paul Slauenwhite CLA 2006-02-06 15:28:08 EST
Updating time estimates.
Comment 15 Paul Slauenwhite CLA 2006-02-13 15:48:37 EST
The following classes and JUnit tests updated/created including JavaDoc API documentation checked-in to CVS (HEAD):

org.eclipse.hyades.logging.core.tests\src\org\eclipse\hyades\logging\core\tests\junit\cbe\util\EventFormatterTest.java
org.eclipse.hyades.logging.core.tests\junit\cbe\util\EventFormatterTest.testsuite

org.eclipse.hyades.logging.core.tests\src\org\eclipse\hyades\logging\core\tests\junit\cbe\emf\util\EventFormatterTest.java
org.eclipse.hyades.logging.core.tests\junit\cbe\emf\util\EventFormatterTest.testsuite

org.eclipse.hyades.logging.core.tests\src\org\eclipse\hyades\logging\core\tests\junit\AllTests.java
org.eclipse.hyades.logging.core.tests\junit\AllTests.testsuite

org.eclipse.hyades.logging.core.tests\src\org\eclipse\hyades\logging\core\tests\junit\utilities\TestingUtilities.java

org.eclipse.hyades.logging.core\src.cbe101\org\eclipse\hyades\logging\events\cbe\util\EventListener.java
org.eclipse.hyades.logging.core\src.events\org\eclipse\tptp\logging\events\cbe\util\EventListener.java

org.eclipse.hyades.logging.core\src.events\org\eclipse\tptp\logging\events\cbe\internal\util\EventListenerImpl.java
org.eclipse.hyades.logging.core\src.cbe101\org\eclipse\hyades\logging\events\cbe\internal\util\EventListenerImpl.java

org.eclipse.hyades.logging.core\src.events\org\eclipse\tptp\logging\events\cbe\internal\util\EventHandler.java
org.eclipse.hyades.logging.core\src.cbe101\org\eclipse\hyades\logging\events\cbe\internal\util\EventHandler.java

org.eclipse.hyades.logging.core\src.events\org\eclipse\tptp\logging\events\cbe\util\SAXEventHandler.java
org.eclipse.hyades.logging.core\src.cbe101\org\eclipse\hyades\logging\events\cbe\util\SAXEventHandler.java

org.eclipse.hyades.logging.core\src.events\org\eclipse\tptp\logging\events\cbe\util\EventFormatter.java
org.eclipse.hyades.logging.core\src.cbe101\org\eclipse\hyades\logging\events\cbe\util\EventFormatter.java
Comment 16 Paul Slauenwhite CLA 2006-03-06 10:59:20 EST
Verified in the TPTP-4.2.0-200602281515 driver.