This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 180068 - Provide a Data Layer for Data Visualization access to Resource Model Repository
Summary: Provide a Data Layer for Data Visualization access to Resource Model Repository
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: All Linux
: P1 enhancement (vote)
Target Milestone: ---   Edit
Assignee: amehrega CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 179828 180069
  Show dependency tree
 
Reported: 2007-03-29 15:41 EDT by Craig Thomas CLA
Modified: 2012-01-03 13:48 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Thomas CLA 2007-03-29 15:41:35 EDT
Provide a set of APIs for Data Visualization to query the Resource Model Repository.

These are the services Data Visualization (DV) would like:
1. data filtering - ability to show certain data that meet a specific criteria
2. data grouping - organize the data based on a grouping criteria (e.g. create a report that shows available application grouped by host)
3. data sorting - provide apis to sort the data 
4. data counts - provide apis to count a set of data that meets a certain criteria

Sheldon (sleeloy@ca.ibm.com) is the main point of contact for details on these requirements.
Comment 1 Valentina Popescu CLA 2007-04-05 13:37:27 EDT
I am a bit confused by the request description; it seems that the expectation is to provide a set of API for accessing the data .This request should be addressed to the data collection team.

Can you please double check what you need from the RM team. Last time I talked to Sheldon about this request we were referring to SML definitions for the actual data to be used by the generated report.

I have a different request opened by the data collection team to provide an SML model for the collection management and managed entities.  
https://bugs.eclipse.org/bugs/show_bug.cgi?id=178590

I attached to 178590 a zip file containing a first approach on modeling agents; there is a logging agent and statistical agent sample attached to that file. Can you please take a look at these and let me know if it covers at least partially what you need. 


Comment 2 Valentina Popescu CLA 2007-04-12 13:48:27 EDT
I had an offline discussion with Sheldon and had clarified the request.

The data visualization project, as well as any other project processing SML and SMLIF content needs a set of API to navigate the in-memory model once parsed. 
It also requires a set of API’s to navigate the SML repository and retrieve data based on specified queries. 

1. An API example in the context of an SML instance :
If a DOM element is an sml:uri, which means is a reference to another element in a different document, the web UI needs a way to get back the information in a way easy to read.

In the xml snippet below, the web ui would need to parse this structure and retrieve the agent state. The state is defined by an sml:uri reference and the referenced element is located in a different file. The web UI will need an API at the DOM level that reads the uri and gives back the status element.

     <statePropertyRef sml:ref="true">
        <sml:uri>
           /DataCenterSample/dataCollection/TPTPDataController.xml#xpointer(/controller[@name="TPTP Agent Controller"]/agents/agentRef[@name="Apache error 1"]/stateProperty)
        </sml:uri>
     </statePropertyRef>


2. An example of an SML repository API

repository.getReferences(filename) // returns all files referencing the specified file

Sheldon, let me know if I entirely captured our discussion.

Also, I will need from you an initial set of API’s you require for building the UI ( words description of the API works fine )  

Comment 3 Mark Weitzel CLA 2007-04-20 10:10:33 EDT
<<The data visualization project, as well as any other project processing SML and SMLIF content needs a set of API to navigate the in-memory model once parsed. 
It also requires a set of API’s to navigate the SML repository and retrieve data based on specified queries. >>
How distinct are these APIs?  Should this be decomposed into two seperate reqursts, one for the in-memory model and another for the repository API?
Comment 4 Mark Weitzel CLA 2007-04-20 10:14:34 EDT
<<repository.getReferences(filename) // returns all files referencing the specified file>>
Instead of using a "filename" as an argument, can we instead use a URI or an EPR?  I think file://foo/bar/myFile.xml is valid, so this should not preclude using a file based repository.  Using a URIs and/or EPRs has the added advantage of allowing us to have this API be a set of REST services or web services.  It would also hide the location & implementation of the repository.  
Comment 5 amehrega CLA 2007-05-07 14:53:10 EDT
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=179828 for an attached design document.
Comment 6 amehrega CLA 2007-06-15 18:36:19 EDT
Implemented as part of https://bugs.eclipse.org/bugs/show_bug.cgi?id=179828.  Please re-open if other functions are needed.
Comment 7 amehrega CLA 2008-01-02 13:38:39 EST
closing