Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be 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 35: Line 35:
 
   items:[ { nodeClass:"domain", title:"Domain",   
 
   items:[ { nodeClass:"domain", title:"Domain",   
 
             expandQuery:"domain", object:"0",   
 
             expandQuery:"domain", object:"0",   
             epr:"http://130.200.134.172:8080/domain/services/managementDomain"}  
+
             epr:"http://localhost: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:  
+
When the user expands the node, the Domain Outputter uses the EPR of the domain with the management domain client interface to obtain the list of Brokers (getBrokers). It transforms the Broker list into JSON, which is rendered by the visualization as the child nodes of the domain. For example:  
 
   
 
   
 
  { identifier: "object",  label: "title",   
 
  { identifier: "object",  label: "title",   
Line 46: Line 46:
 
         ]
 
         ]
 
  }
 
  }
 
+
 +
Note that the expansion query (expandQuery) is configured to use the Broker Outputter, which links the Broker Outputter as the child nodes of the broker node.
 +
  
 
== Broker Outputter ==
 
== Broker Outputter ==

Revision as of 17:52, 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://localhost:8080/domain/services/managementDomain"} 
       ]
}

When the user expands the node, the Domain Outputter uses the EPR of the domain with the management domain client interface to obtain the list of Brokers (getBrokers). It transforms the Broker list into JSON, which is rendered by the visualization as the child nodes of the domain. For example:

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

Note that the expansion query (expandQuery) is configured to use the Broker Outputter, which links the Broker Outputter as the child nodes of the broker node.


Broker Outputter

CBE Outputter

Statistical Outputter

CMDBf Outputter


Back to the top