IBM Streams 4.2

Creating Apache Edgent projects

You can create an Apache Edgent project or an Apache Edgent sample project in Streams Studio.

Before you begin

The Apache Edgent plug-in must be installed.

About this task

To create an Apache Edgent project, complete the following steps:

Procedure

  1. From the toolbar, select File > New > Project.
  2. In the New Project window, select one of these options: .
    • Apache Edgent > Edgent Project

      Create a new Java project that is preconfigured with all Apache Edgent dependencies.

    • Apache Edgent > Sample Edgent Project

      Create a ready-to-run Apache Edgent application by using the sample applications that are provided with the product.

  3. Click Next.
  4. In the New Edgent Project window or the New Sample Edgent Project, complete the following steps.
    1. In the Project name field, specify a name for your project.
    2. Optional: To create your project in another location that the default location, clear the Use default location option and specify the location where you want to create the project. If Streams Studio is installed on a Linux system, by default, the project is created in the current Eclipse workspace. If Streams Studio is installed on a Windows system, by default, the project is created in the local workspace, which is local to Windows system where Streams Studio is installed.
    3. When you create a sample Edgent project, click Next to advance to the Edgent Samples window, where you can select the sample application that you want to use to create your application.
    4. Click Finish to accept the default project configuration, or click Next and continue with Step 5.
  5. In the Edgent Dependencies window, select further Apache Edgent libraries to add to your project. A subset of the libraries required to run your Apache Edgent application are already selected. You can add further libraries as required by your application.
  6. Click Finish.

Results

A Java project is created, and a classpath container named Edgent Dependencies is added to the project. This classpath container contains the list of the selected Apache Edgent libraries. You can edit this list of libraries in the Properties view of the classpath container or when you configure the Java Build Path of the project.

Typically, a sample Edgent application is ready to run. However, some applications require you to provide some input parameters.