StreamBase Recording Tool — Records data enqueued onto all Input Streams
sbrecord records data enqueued onto all
Input Streams in a running StreamBase application. For example, the sbrecord --name june28feedproc command records the
data enqueued onto all Input Streams and creates several files that can be played
back with the sbfeedsim command. The generated files are based on the
--name parameter. Examples:
june28feedproc.sbrec, which contains the recording's configuration
properties (pointers to one or more
data files, one for each Input Stream, such as
If authentication is enabled for this application, the sbrecord command requires
Displays help for the specified command, then exits. For example,
sbrecord -hshows a usage message for the sbrecord command.
Sets the URI of the StreamBase Server. The default is
sb://localhost:10000/. The URI can also be set using the STREAMBASE_SERVER environment variable. See the sburi page of the Reference Guide (or see sburi(5) at the UNIX shell prompt) for a discussion of the URI format and its shortcuts.
Sets the port number only for the StreamBase Server. Useful when the server is
localhostand you only need to specify a non-default port, instead of specifying the full URI with the
-uoption. The default port is
-poption is not supported for applications that have StreamBase authentication enabled (because there is no way to specify a username and password) or in conjunction with the multiple URI syntax.
Specifies a system property setting or other JVM argument to be passed to the JVM that runs this sbrecord command. Use this option to specify temporary settings that affect only the current invocation of sbrecord. You must specify multiple
-Joptions to specify multiple JVM arguments.
There must be no space after the
-J. For example, specify
-J-Xmx2G. Use the full option syntax for
jvm-optionthat you would use at the Java command line, including the initial hyphen. For example, specify
-J-Dstreambase.log-level=2to increase the log level for this invocation of sbrecord.
jvm-optionargument might require surrounding quotes, depending on the characters it contains and the shell you are using. However, do not use quotes to escape the spaces between separate JVM arguments; instead use separate
-Joptions. For example:
Required. A name used to identify the recording session. Files generated by the sbrecord command are based on the
june28feedproc.sbrec, which contains the recording's configuration properties (pointers to one or more
*.csvgenerated data files, one for each Input Stream, such as
Optional. Sets the location of recorded data. The path must exist and be writeable. Default to the current working directory.
Prints version information and exits.
The sbrecord command generates a
configuration file, using the value from the
parameter, and uses the
sbrec file extension. For
example, the sbrecord --name marketfeed
command results in a configuration file named
marketfeed.sbrec, which contains pointers to one or more CSV data
files (one for each Input Stream in the running StreamBase application). In this
example, each CSV file would be named
marketfeed-. There is one configuration
*.sbrec) for each recording.
Optional. Contains the URI for a StreamBase Server instance. Use this variable to set a default StreamBase URI for certain StreamBase commands that take the
-uoption. For example, sbc status honors the variable, but sbc list does not. If set, commands use the URI in this variable
.If this variable is set, you must use the
-uoption to communicate with any server other than the one specified in this variable. You can set a comma-separated list of URIs in the variable, and commands such as sbc status returns status for all listed servers. However, sbc list returns information only for the first listed server. See the sburi(5) page in the Reference Guide for more on StreamBase URIs.
Optional. If set to any value, StreamBase programs assign a terminal window title to match the name of the executable being run. By default, terminal titles are not affected.