Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this tutorial you will learn elementary steps in using Odysseus.

Step 1: Install/Start Nexmark

As sources we will use the Nexmark examples source. See Getting Started with Nexmark for the installation of the nexmark server.

Step 2: Install/Start Odysseus

For this example you should use the standard Odysseus Studio (Odysseus Server + Odysseus Studio Client) (See How to install Odysseus).

Step 3: Create a new project

Create a new project: FirstSteps

...

The new project is shown in the project explorer (hint if you do not see the project explorer, use Window/Show View/Other ... and choose General/Project Explorer).

Step 4: Describe sources

The queries will access sources that deliver events. In our example we will connect to the already started nexmark server. In this examples we will use PQL to create the sources. For detailed information about source definitions see The Odysseus Access Operator Frameworkframework

There are different ways to created sources/queries in Odysseus. We will use the Odysseus Script way.

...

There are two types of parameters here. The first part is the physical connection to the server (We will not describe all parameters here (see The Odysseus Access Operator Frameworkframework for further information).If you have started the nexmark server on another machine change 'host' and if you started the person server on another port change 'port'.) and the seconds part describes the information this souces delivers.

...

There are different build in datatypes available in Odysseus (see The Odysseus Access Operator Frameworkframework for further information). If the sources provides application time (as the nexmark server does), the datatype STARTTIMESTAMP can be used to state that a LONG value should be used as timestamp for this event.

...

If you choose show data again, the source will be beginning from start(but only if no other connection to the nexmark-server is open, e.g. via bids).

Step 5: Formulating Queries

Now we are ready to formulate queries over the nexmark sources. For this, create a new Odysseus Script file named query1 the same way as above.

...