Striim 3.9.4 / 3.9.5 documentation

Setting up packages and classes

The next step is to set up the following in your Java IDE:

  • A package to contain your custom abstract classes.

  • Import statements for required classes.

  • Abstract classes that will contain your custom functions.

  • A logger (recommended).

The following template will help you get started:

// You will need your own package name:
package com.mycompany.custom.packagename;  

// You'll need to reference this is a Striim class in your own code if you
// define an Aggregate Window function:
import com.webaction.runtime.compiler.custom.AggHandlerDesc;

// Logging classes required by Striim  
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
// Any other classes you may need for your development
import java.lang.Math;
import java.util.LinkedList;
import org.joda.time.DateTime;

// Abstract class needed to contain your custom functions
public abstract class MyCustomFunctions {

  // Required logger
  private static Logger logger = Logger.getLogger( MyCustomFunctions.class );