This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 193420 - Create simple stand alone example of the data collection framework
Summary: Create simple stand alone example of the data collection framework
Status: RESOLVED DUPLICATE of bug 212189
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Martin D Simmonds CLA
QA Contact:
URL: http://wiki.eclipse.org/COSMOS_Design...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-19 18:28 EDT by Mark Weitzel CLA
Modified: 2012-01-03 13:53 EST (History)
2 users (show)

See Also:


Attachments
Ant startup scipt to execute DC standalone (4.25 KB, text/xml)
2007-08-03 14:11 EDT, Joel Hawkins CLA
no flags Details
config.ini template used by startup script (225 bytes, application/octet-stream)
2007-08-03 14:13 EDT, Joel Hawkins CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Weitzel CLA 2007-06-19 18:28:56 EDT
The e2e example uses JMX and reporting.  We would like to have a more simplistic example that does not require anything else other than the DC framework. 

The input (datasource) can be an simple random or sequential number generator.
The output (sink) can be directed to the console.

There are some existing exmaples that can be mined to serve as a basis.
The code can be in org.eclipse.cosmos.examples.dc.simple
Comment 1 Joel Hawkins CLA 2007-08-03 14:11:56 EDT
Created attachment 75347 [details]
Ant startup scipt to execute DC standalone

This script constructs an OSGi environment for executing the COSMOS DC and starts the runtime. The script depends on the following paths being set:

    <target name="init">
        <basename property="NAME" file="${basedir}"/>
        <property name="COSMOS_HOME" value="./COSMOS/plugins"/>
        <property name="CONFIG_TEMPLATE_HOME" value="./"/>
        <property name="ECLIPSE_HOME" value="C:\sbin\eclipse\europa\eclipse\plugins"/>
        <property name="PLUGINS_DIR" value="${basedir}/plugins"/>

    </target>

The COSMOS_HOME variable contains the set of COSMOS bundles exported from your Eclipse environment (using Export->Plug-in Development->Deployable plug-ins and features option). 

The ECLIPSE_HOME variable should point to your Eclipse install location. The script expects that your Eclipse install is properly configured to build and run COSMOS (i.e. that you are currently using this Eclipse install to develop COSMOS).

The CONFIG_TEMPLATE_HOME is the location of the config.ini template that the script will use to create an appropriate config.ini to launch your environment. This template is provided in a subsequent attachement.
Comment 2 Joel Hawkins CLA 2007-08-03 14:13:16 EDT
Created attachment 75348 [details]
config.ini template used by startup script

This attachement contains the config.ini template that the previous build.xml attachement requires in order to create an OSGi environment for executing the COSMOS DC runtime.
Comment 3 Martin D Simmonds CLA 2007-08-23 14:37:37 EDT
This simple example was to be based on the CBE example.  That example is not working.  It is still a work in progress.
Comment 4 Jimmy Mohsin CLA 2007-12-20 06:29:51 EST
This has been open for a long time... Life has changed some over the past six months... Closing this and marking as a dup of 212189; we should ensure that this ER gets done in i8.

*** This bug has been marked as a duplicate of bug 212189 ***
Comment 5 Don Ebright CLA 2008-04-30 17:58:13 EDT
Correcting erroneous "future" milestone.