Local Files Adapter
The Local Files data adapter watches local directories for new files and publishes them as file blobs into the DDB topic structure. It uses filesystem event monitoring to detect new files and stream them as they arrive.
Overview
This adapter is designed for scenarios where files are continuously generated and need to be ingested into the Digital Data Backbone as blob data. It monitors configured directories for new files, buffers them, and publishes each file’s content as a blob under the blob topic family.
Property |
Value |
|---|---|
Data Source |
Local filesystem (file watching) |
Recommended Topic Family |
|
Self-Update |
Yes (filesystem event-based via watchdog) |
Configuration Parameters
Parameter |
Description |
|---|---|
|
List of directories to watch for new files. |
|
Maximum number of files to buffer before streaming. |
|
Time in seconds to wait before reading a new file. |
|
System information including trial ID, name, and other attributes. |
|
Trial ID for the system. No spaces or special characters allowed. |
|
Name of the system. |
Example Configuration
adapter_name: my_local_files_adapter
watch_dir:
- "/path/to/watch/dir"
buffer_size: 10
wait_before_read: 2
system:
name: "local_files_system"
trial_id: "trial_001"
description: "Local files data adapter system"
manufacturer: "Example Corp"
model: "LocalFilesModel"