Binary data file writer¶
Metadata¶
- name:
saturnin.binary.writer
- description:
Binary data writer microservice
- classification:
binary/writer
- OID:
1.3.6.1.4.1.53446.1.1.0.3.2.2
- OID name:
iso.org.dod.internet.private.enterprise.firebird.butler.platform.saturnin.micro.binary.writer
- UUID:
4e606fdf-3fa9-5d18-a714-9448a8085aab
- facilities:
None
- API:
None
Usage¶
This microservice is a DATA CONSUMER that wites binary data from input data pipe (using FBDP protocol) to file (incl. stdout/stderr).
Writing to the file can take place in several modes:
- CREATE:
If the file already exists, it is overwritten.
- APPEND:
If the file already exists, it is appended.
- WRITE:
Normal writing to a file.
- RENAME:
If the file already exists, it is renamed (a numerical extension is added to the file name), and writing takes place to a new file with the original name.
Service supports two types of data files:
- STREAM:
Classic data files where data are written continuously.
- BLOCK:
Each message received is written as single block preceded by data size (as a 4 byte integer).
Configuration¶
- agent:
UUID: Agent identification (service UUID)- logging_id:
str: Logging ID for this component instance, see Context-based logging for details.- stop_on_close:
- pipe:
str: Data Pipe Identification (name). REQUIRED option.- pipe_address:
ZMQAddress: Data Pipe endpoint address. REQUIRED option.- pipe_mode:
SocketMode: Data Pipe Mode (bind/connect). REQUIRED option.- pipe_format:
MIME: Pipe data format specification. REQUIRED for CONNECT pipe mode.- batch_size:
int: Data batch size. See FBDP documentation for details. DEFAULT 50.- ready_schedule_interval:
int: READY message schedule interval in milliseconds. See FBDP documentation for details. DEFAULT 1000.- filename:
str: File specification. Either path to file,stdoutorstderr. REQUIRED option.- file_mode:
FileOpenMode: File I/O mode. DEFAULTWRITE.- file_type:
FileStorageType: File data storage type (streamorblock). REQUIRED option.
Important
Only file_mode
WRITEis allowed forstdoutandstderr.file_mode
READis not supported.