Create a new instance of the FileFlinger with the given options
The name of the instance of the FileFlinger
The options to create the FileFlinger
Readonly
componentThe component identifier
Readonly
nameThe name of the instance of the FileFlinger
Return the status of the file-flinger in a standard format
check object as defined in the draft standard https://datatracker.ietf.org/doc/html/draft-inadarei-api-health-check-05
Return the metrics registry
Overall component status
Add a listener for the error
event, emitted when the component detects an error.
Add a listener for the status event, emitted when the component status changes.
status
event
Status event listener
FileFlinger class Allows to create a file processing service that can be used to watch a folder for new files and send them to a destination (S3, FTP, ...) using pushers. The service can be configured with a pattern to match the file names and generate keys for the destination. Once a file is processed, it can be moved to an archive folder (zipped optionally) or deleted. As a @mdf.js service, it offer prometheus metrics, health checks, and logging.