Apama 10.7.2 | Connecting Apama Applications to External Components | Standard IAF Plug-ins | The File IAF Adapter (JMultiFileTransport) | Sending the read request
 
Sending the read request
After you construct an OpenFileForReading event, emit it to the "FILE" channel. For example:
com.apama.file.OpenFileForReading openFileWeWantToRead :=
new com.apama.file.OpenFileForReading;
 
//populate the openFileWeWantToRead event
//..
//..
emit openFileWeWantToRead to "FILE";
Emitting an OpenFileForReading event from EPL code signals the File adapter to open the file. If the open operation is successful, the File adapter returns a FileHandle event.
The sessionId is the most important field; all communication related to this file references this value.
If the open operation is unsuccessful, the File adapter returns a FileError event.
See the com.apama.file package in the API Reference for EPL (ApamaDoc) for detailed information on the FileHandle and FileError events.