cancel
Showing results for 
Search instead for 
Did you mean: 

file sender adapter polling

vinaymittal
Contributor
0 Kudos

  Hi ,

I wanted to understand how the polling at file sender adapter works

FTP/NFS  has 3 files

file1.xml file2.xml file3.xml

we pick files by file*.xml

polling interval is 30Seconds suppose

if all the three files are placed at the same time.....in the FTP location

1) will the Sender channel pick all three files at the same time?

2)by "at the same time" do we mean that the interface will be called three times?

3)will the channel use same instance to pick three files or three different instances will be used to pick the files

4)what will be the gap between the files can we control it

If answer is different for NFS/FTP please specify the same for both.

Accepted Solutions (1)

Accepted Solutions (1)

vadimklimov
Active Contributor
0 Kudos

Hi Vinay,

  1. Yes, the sender channel will pick up all three files. File/FTP sender channel lists the directory, constructs a list of files in that directory that match file name filter and polls matching files in one run;
  2. Polling run will be single, but it will produce three XI messages;
  3. Same polling thread will be used to poll all three files, different threads will be used to process generated three XI messages;
  4. There will be no gap between polling these three files within one polling run since they are all polled within same thread call - still, there may be a very minor time delay between actual creation of an XI message for each polled file (since creation of an XI message is done in a loop for polled files, so it may be a matter of milliseconds between XI messages are created for several polled files). Delays in further processing of generated XI messages may be caused by performance reasons. This is to wide topic since performance issue / bottleneck may happen in quite variety of places - a good starting  point then would be to go through PI performance check guide ().

Regards,

Vadim

Answers (1)

Answers (1)

vishnu_pallamreddy
Contributor
0 Kudos

Hi Vinay,

As per my knowledge, it will pick all the files at a time with small time gap which is in milli seconds.