Skip to main content

CREATE APPLICATION ... END APPLICATION

CREATE APPLICATION <application name>
[ WITH ENCRYPTION ]
[ RECOVERY <##> SECOND INTERVAL ]
[ EXCEPTIONHANDLER () ]
[ USE EXCEPTIONSTORE [ TTL <interval> ]
[ AUTORESUME [ MAXRETRIES <#> ] [ RETRYINTERVAL <##> ]; 

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:

CREATE APPLICATION simple;

CREATE source SimpleSource USING FileReader (
  directory:'Samples',
  wildcard:'simple.csv',
  positionByEOF:false
)
PARSE USING DSVParser (
  header:Yes,
  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, Striim will encrypt all streams that move data between Striim servers, or from a Forwarding Agent or HP NonStop source to a Striim server, to make them less vulnerable to network sniffers. Common 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, which may be useful to avoid the performance impact of encryption on streams not carrying sensitive data. If you are using Oracle JDK 8 or OpenJDK 8 version 1.8.0_161 or later, encryption will be AES-256. With earlier versions, encryption will be AES-128. In this release, encryption between Striim and HP NonStop sources is always AES-128.

See Handling exceptions for discussion of the EXCEPTIONHANDLER option.

See CREATE EXCEPTIONSTORE for discussion of the USE EXCEPTIONSTORE option.

See Automatically restarting an application for discussion of the AUTORESUME option.