Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "COSMOS Design 208595"

Line 1: Line 1:
----
+
== Overview ==
Bugzilla 208595 - Register Queries with Visualization - programming model
+
 
 +
 
 +
'''Design page for Bugzilla 208595 - Register Queries with Visualization - programming model'''
 
[https://bugs.eclipse.org/bugs/show_bug.cgi?id=208595]
 
[https://bugs.eclipse.org/bugs/show_bug.cgi?id=208595]
----
+
 
[[CosmosDataReportingComponent10_209226]]
+
This ER specifies the following Data Visualization Outputters, which conform to the Data Visualization programming model [[CosmosDataReportingComponent10_209226]]
 +
 
 +
 
 +
 
 +
== Domain Outputter ==
 +
 
 +
 
 +
The COSMOS Navigator defines the Domain Outputter as the root node of the tree in its view.jprop definition:
 +
 
 +
{
 +
  clazz: "org.eclipse.cosmos.provisional.dr.ps.components.widget.Navigator",
 +
  query: {nodeClass:'*'},
 +
  id:"myTree",
 +
  initQueryHandler: "json?service=org/eclipse/cosmos/internal/dr/drs/service/outputter/DomainOutputter&query=init",
 +
  publish: ['properties', 'detail']
 +
}
 +
 +
 +
The initial query handler specifies a query parameter value of "init" to indicate initialization of the Domain root node. The initialization of the Domain Outputter uses the EPR of the Management Domain, which is configured in the deployment descriptor file (web.xml) as follows:
 +
 
 +
<context-param>
 +
  <param-name>MANAGEMENT_DOMAIN_EPR</param-name>
 +
  <param-value>http://localhost:8080/domain/services/managementDomain</param-value>
 +
</context-param>
 +
 +
The root node JSON specifies the nodeClass, title, epr and query used to expand the node. For example:
 +
 
 +
{ identifier: "object",  label: "title", 
 +
  items:[ { nodeClass:"domain", title:"Domain", 
 +
            expandQuery:"domain", object:"0", 
 +
            epr:"http://130.200.134.172:8080/domain/services/managementDomain"}
 +
        ]
 +
}
 +
 +
When the user expands the node, the Domain Outputter uses the domain client interface to obtain the list of Brokers. It transforms the Broker list into JSON, which is rendered by the visualization. For example:
 +
 +
{ identifier: "object",  label: "title", 
 +
  items:[ { nodeClass:"broker", title:"Broker", expandQuery:"broker",
 +
            object:"Broker", epr:"http://localhost:8080/broker/services/broker" }
 +
        ]
 +
}
 +
 
 +
 
 +
== Broker Outputter ==
 +
 
 +
 
 +
 
 +
== CBE Outputter ==
 +
 
 +
 
 +
 
 +
== Statistical Outputter ==
  
  
  
WIP
+
== CMDBf Outputter ==
  
  
 
----
 
----
 
[[Category:COSMOS_Bugzilla_Designs]]
 
[[Category:COSMOS_Bugzilla_Designs]]

Revision as of 17:36, 7 December 2007

Overview

Design page for Bugzilla 208595 - Register Queries with Visualization - programming model [1]

This ER specifies the following Data Visualization Outputters, which conform to the Data Visualization programming model CosmosDataReportingComponent10_209226


Domain Outputter

The COSMOS Navigator defines the Domain Outputter as the root node of the tree in its view.jprop definition:

{
  clazz: "org.eclipse.cosmos.provisional.dr.ps.components.widget.Navigator",
  query: {nodeClass:'*'},
  id:"myTree",
  initQueryHandler: "json?service=org/eclipse/cosmos/internal/dr/drs/service/outputter/DomainOutputter&query=init",
  publish: ['properties', 'detail']
}


The initial query handler specifies a query parameter value of "init" to indicate initialization of the Domain root node. The initialization of the Domain Outputter uses the EPR of the Management Domain, which is configured in the deployment descriptor file (web.xml) as follows:

<context-param>
  <param-name>MANAGEMENT_DOMAIN_EPR</param-name>
  <param-value>http://localhost:8080/domain/services/managementDomain</param-value>		
</context-param>	

The root node JSON specifies the nodeClass, title, epr and query used to expand the node. For example:

{ identifier: "object",  label: "title",  
 items:[ { nodeClass:"domain", title:"Domain",  
           expandQuery:"domain", object:"0",  
           epr:"http://130.200.134.172:8080/domain/services/managementDomain"} 
       ]
}

When the user expands the node, the Domain Outputter uses the domain client interface to obtain the list of Brokers. It transforms the Broker list into JSON, which is rendered by the visualization. For example:

{ identifier: "object",  label: "title",  
 items:[ { nodeClass:"broker", title:"Broker", expandQuery:"broker", 
           object:"Broker", epr:"http://localhost:8080/broker/services/broker" }
       ]
}


Broker Outputter

CBE Outputter

Statistical Outputter

CMDBf Outputter


Back to the top