| Summary: | Need notification of parsing of single CBE within a stream | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Paul Slauenwhite <paulslau> |
| Component: | TPTP | Assignee: | Paul Slauenwhite <paulslau> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P1 | CC: | abdis, labadie, rochwer |
| Version: | unspecified | Keywords: | 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
Paul Slauenwhite
Created attachment 17105 [details]
SaxEventHandler with Observable delegate to handle notifications to Observers
Created attachment 17106 [details]
EventFormatter with capability of registering Observers
*** Bug 82128 has been marked as a duplicate of this bug. *** 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. Theme(s) for this enhancement: -Scaling Up -Simple to Use 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 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 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 Increasing the priority as per the request of the original reporter since these function is required by a consuming product. Highly desirable and planned for this release, but not stop ship (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 Created attachment 27333 [details]
Updated SAXEventHandler.java
Created attachment 27334 [details]
Updated EventFormatter.java
Updating time estimates. 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 Verified in the TPTP-4.2.0-200602281515 driver. |