Apama 10.3 | Apama Documentation | Connecting Apama Applications to External Components | Standard IAF Plug-ins | The File IAF Adapter (JMultiFileTransport) | Requesting data from the file
Requesting data from the file
After your application receives a FileHandle event, it can emit a ReadLines event, which signals the adapter to start reading lines from the file. See the com.apama.file package in the API Reference for EPL (ApamaDoc) for detailed information on the ReadLines event.
The sessionId in the ReadLines event must be the same as the sessionId stored in the FileHandle event that the application received when the file was opened.
The adapter tries to read as many lines as specified in the ReadLines event. If the file does not contain that many lines, what the adapter does depends on whether the original OpenFileToRead event specified a specific file or a wildcard pattern. According to that setting, the adapter either waits until the file contains more data, or tries to open a new file to deliver the balance from.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.