Bug 125782 - Ability to save GLA adapter configuration as multiple files
Summary: Ability to save GLA adapter configuration as multiple files
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP.monitoring (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Eugene Chan CLA
QA Contact:
URL: http://www.eclipse.org/tptp/groups/Ar...
Whiteboard:
Keywords: Documentation, ui
Depends on:
Blocks:
 
Reported: 2006-01-30 18:22 EST by Dave Smith CLA
Modified: 2010-06-03 15:10 EDT (History)
4 users (show)

See Also:


Attachments
zip containing a fragmented adapter configuration using entity references (4.02 KB, application/x-zip-compressed)
2006-01-30 18:32 EST, Dave Smith CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Smith CLA 2006-01-30 18:22:04 EST
There is a requirement from IBM to simplify maintenance and packaging of large numbers of GLA adapter configuration files.  For example, for many log types, the adapter configurations have common components such as Sensor and Outputters.  Another example is an application may want to package several versions of an adapter configuration, the only difference between them being the outputter to send the parsed data to different destinations.

It would be useful to have the ability to fragment the adapter configuration to several files so that multiple files can reference the same configuration components.  For example, the GLA Adapter Configuration Editor could include a check box and file name specification on the details pane of the following elements of the adapter configuration to save them as separate files:

Adapter
Context
Sensor
Extractor
Parser
Formatter
Outputter

Also, file specification for the above elements can be added to the GLA preferences page.  These would be used when creating a new adapter so that configurations can be created from common components.

Note, the Adapter file specification should be an absolute path.  The file specification for the other elements can be a relative path, relative to the Adapter path.  Relative paths can facilitate packaging of the files in a common directory structure.
Comment 1 Dave Smith CLA 2006-01-30 18:29:13 EST
A suggested implementation is to use XML External Entity References in the root adapter configuration xml file to reference the other component files.  I'll attach a sample set of files.  The advantage of that approach is that no GLA schema or run-time changes are required and there are no backward compatability issues.
Comment 2 Dave Smith CLA 2006-01-30 18:32:34 EST
Created attachment 33833 [details]
zip containing a fragmented adapter configuration using entity references
Comment 3 Marius Slavescu CLA 2006-01-31 15:30:32 EST
I discussed with Elena from EMF team about this request and here are some things that makes the implementation really difficult:

 - per XML Infoset specification (http://www.w3.org/TR/xml-infoset/#intro.entities) entities are expanded and are not required to be reported by the processor - therefore serialization is not guaranteed
 - adding this support to EMF or customizing our save mechanism will be hard - similar to CDataSections and Comments, the XMLTypeDocumentRoot interface will need to be changed to support entities, this means a change not only in XMI but in Ecore itself

I would rather suggest a model change that will allow us to achieve the requested behavior in a clean way (like using modeled references to objects stored in other resources).

There is also a way in EMF 2.2 (containment proxies) which should allow us to split the content of a resource in several files, this will need some model changes and the serialized form will not follow the adapter schema (but will work in EMF) because of the why the resources are linked together.
Comment 4 Alex Nan CLA 2007-08-14 17:15:32 EDT
Due to lack of resources this enhancement request is resolved as WONTFIX. Please feel free to reopen if you consider it's a required enhancement.
Comment 5 Alex Nan CLA 2008-06-24 18:01:13 EDT
Closing.
Comment 6 Paul Slauenwhite CLA 2009-06-30 06:47:30 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As such, TPTP is not delivering enhancements. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement is resolved as WONTFIX. For this enhancement to be considered, please re-open with an attached patch including the Description Document (see http://www.eclipse.org/tptp/home/documents/process/development/description_documents.html), code (see http://www.eclipse.org/tptp/home/documents/resources/TPTPDevGuide.htm), and test cases (see http://www.eclipse.org/tptp/home/documents/process/TPTP_Testing_Strategy.html).