Striim 3.9.4 / 3.9.5 documentation

CREATE APPLICATION ... END APPLICATION

CREATE APPLICATION <application name>
[ WITH ENCRYPTION ]
[ RECOVERY time INTERVAL ]
[ EXCEPTIONHANDLER () ];
...
END APPLICATION <application name>;

CREATE APPLICATION application_name; creates an application in the current namespace. All subsequent CREATE statements until the END APPLICATION statement create components in that application.

The following illustrates typical usage in an application (see Writing a simple TQL application):

CREATE APPLICATION simple;

CREATE source SimpleSource USING FileReader (
directory:'Samples',
wildcard:'simple.csv',
positionByEOF:false
)
PARSE USING DSVParser (
trimquote:false
) OUTPUT TO RawDataStream;

CREATE TARGET SimpleOutput
USING SysOut(name:simple)
INPUT FROM RawDataStream;

END APPLICATION simple;

For a more complete example, see the PosApp sample application.

See Recovering applications for discussion of the RECOVERY option.

When the WITH ENCRYPTION option is specified, all sources in the application will encrypt their output streams using AES-128 to make them less vulnerable to network sniffers. The typical use cases for this option are when a source resides outside the Striim cluster or outside your private network. This option may also be specified at the flow level.

See Handling exceptions for discussion of the EXCEPTIONHANDLER option.