File Adapter

Architecture

File Step Processor

Batch File Step Processor

File Create Step Processor

File Merge Step Processor

File Splitter Step Processor

Functionality

The file adapter is utilized for accessing and manipulating file data through the FTP/SFTP channel. To access the channel, basic information is passed through the step path, and the appropriate adapter is selected depending on the requirement. Function-wise, the file adapter is separated into five different adapters. Each adapter inherits the file handler, which includes the business logic for accessing and manipulating files such as counting, reading, moving, splitting, merging, uploading, and creating files.

For instance, in the file step processor adapter, the first step is to retrieve the parameters from the step path for channel connection. These parameters include Host, port, Username, Password, BaseDir, NewDir, InprocessDir, and ProcessedDir. The adapter attempts to establish a connection to the channel and counts the number of files in the relevant folder using the file handler. If the count value does not exceed the specified count, the file is read using the file handler.readFile() method, which returns a list of file names. If the response list is not empty or null, the file names are returned.

Capabilities

  • TYPE OF PROTOCOLS: FTP / SFTP / S3

  • TYPE OF FILES: CSV/EXCEL/TXT

  • SIZE OF A FILE: Less than 12MB

  • ALLOWED DELIMITERS: |, Tab

  • REQUIRED PARAMETERS: Host, Port, UserName, Password, BaseDirectory, NewDirectory, ProcessedDirectory, InProcessedDirectory

File Handlers

FTP HANDLER

SFTP HANDLER

EXCEL FTP/SFTP HANDLER

Last updated