Apama Documentation : Developing Apama Applications : EPL Reference : Monitors : The import declaration
The import declaration
The import declaration loads a plug-in library and makes it available to an EPL program. Plug-in libraries are shared libraries on Linux and UNIX systems and Dynamic Link Libraries on Windows systems.
On Linux and UNIX systems, the library is loaded from a libPlugInName.so file located in one of the directories listed in the environment variable LD_LIBRARY_PATH. On Windows, the library is loaded from a PlugInName.dll file located in the bin folder.
You can name a plug-in. The plug-in name is a library filename, not a full filepath, and is not allowed to contain any of the characters used as directory or device separators (forward slash, colon, or backslash).
You can also give the plug-in an identifier (an alias name) for use in the EPL program when you call the library's actions.
For example, to call a plug-in action foo() in the plug-in library wffftl.so or wffftl.dll, you would write the following:
monitor m {
   import "wffftl" as fft;
   action onload()
   {
      sequence <float> data := [];
      fft.foo (data);
   }
}
For detailed information, see Using Correlator Plug-ins in EPL.
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback