Hi All,
I have an fsprovider set up with a configured input directory which is on a network share say /mnt/mhanda1 (Suppose mhanda1 is shared using smb on 192.168.1.10)
I have specified an input suffix as .txt.
So whenever i put a file in /mnt/mhanda1 directory, my service action reads that file and prints out the contents of the file to the stdout.
Now the problem is, if for some reasons 192.168.1.10 or the smb server running on that machine goes down, I want to use a backup server, which say is running on 192.168.1.99 and is mounted on my file system on /mnt/mhanda2
Whenever i unmount /mnt/mhanda1 I get the following error in my server logs
Now I do not understand how I can catch this IOException in my fs-listener code, because it is being caught and dealt with in a layer which I think is beyond my control. So I do not understand how I would know when to use /mnt/mhanda2.
Any suggestions will be appreciated.