sbargen

StreamBase Archive Generator — runs the StreamBase archive generator

SYNOPSIS

sbargen [OPTIONS] [application-file.[sbapp|ssql]] {output.sbar}

DESCRIPTION

Compiles an EventFlow or StreamSQL application file and returns a precompiled application archive file with sbar extension.

When you start a StreamBase Server instance with an EventFlow or StreamSQL application file, the server compiles the application on the fly, then runs the compiled application. By contrast, if you start a server with a precompiled archive file, the server runs the application immediately.

Specify the name of an EventFlow or StreamSQL application file as an sbargen argument. If not specified, sbargen reads the application from standard input. You must specify a file name to contain the precompiled application archive.

StreamBase Server honors precompiled application archives compiled with the exact same release of StreamBase, and refuses to run applications generated with the sbargen commands from another StreamBase release.

OPTIONS

-d

Enables debug mode.

-f conf-file

Specifies an sbd.sbconf configuration file to use when compiling the application.

-h, --help

Displays help, then exits.

-m module-directory

Specifies a directory path in which to search for modules referenced by the specified application.

-n application-name

Specifies a name to give the compiled application.

ENVIRONMENT

STREAMBASE_LOG_LEVEL

Optional. Sets the minimum severity of messages that StreamBase writes to syslog or stderr. Default is 0, which gets NOTICE level messages and higher. Reasonable values are -1 (which disables NOTICE messages and shows only WARN, ERROR and FATAL messages), 1 (which adds INFO messages to the standard messages), and 2 (which adds DEBUG messages).

SEE ALSO

sbadmin