Developers: sbinit

Home
Documentation
Library
Sample Code and Applications
FAQs
Articles
Community
Training
Download Center
Contact DevZone

Printer Friendly

Sample Code and Applications

sbinit

Steve Barber, StreamBase Systems

Utility: Windows, Linux 10/6/2006
Download and Install


About sbinit

This script is useful for enqueueing a set of data files to automate the startup of a StreamBase application. It optionally waits for a StreamBase server to start listening, and then enqueues a set of data files to the server's Input Streams.

The data files must have the same name as the target streams. If the data file's names are prefixed with a number plus a dot, the number signifies a priority ordering. File names prefixed with lower numbers are enqueued before files prefixed with higher numbers.

Usage: sbinit [-p] [-u] [-v] [-w] [dir]

-p

Equivalent to "-u sb://localhost:/"

-u

Set URI of the StreamBase server (default: sb://localhost:10000/). May also be set using the STREAMBASE_SERVER environment variable.

-v

Verbose mode (prints names of files just prior to enqueueing)

-w

Wait for the StreamBase server to listen.

dir

Directory in which CSV files reside.

sbinit optionally waits for a StreamBase server to start listening, then enqueues a set of data files to the server's Input Streams. The data files must have the same name as the target streams. If the data file's names are prefixed with a number plus a dot, then the number signifies a priority ordering. File names prefixed with lower numbers are enqueued before files prefixed with higher numbers.

Priority prefixes are not supported on Windows .

One might think that this tool is not really necessary with the advent of the embedded CSV input adapter. However, one can simply add and delete data files without modifying any configuration files and split data files up into multiple files per input stream, which can have operational advantages.

Downloading and Installing sbinit

To use sbinit, you must have Release 3.1 or 3.5 of the Developer or Enterprise Edition of StreamBase Studio installed. Download and Install StreamBase Developer Edition .

There are two versions of the sbinit download:

« More Sample Code and Applications .