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.