Adding the MemoryStore bundle to your project
To use the MemoryStore, you need only add the MemoryStore bundle to your project as follows. (Note, to use the distributed MemoryStore, you add the Distributed MemoryStore adapter instead. The procedure for this is different and is described in
Adding distributed MemoryStore support to a project.)
1. In Apama Studio, to add a bundle to your project, open the project in the Apama Developer perspective.
2. In the Project Explorer, right-click the project name and select Apama > Add Bundle from the pop-up context menu. The Add Bundle dialog is displayed.
3. In the Add Bundle dialog, select The MemoryStore bundle and click OK.
Adding the MemoryStore bundle to your project makes the MemoryStore.mon file available to the monitors in your project. When you run your project, Apama Studio automatically injects MemoryStore.mon. If you want to examine this file, it is in the monitors/data_storage directory of your Apama installation directory. MemoryStore.mon is the interface between the monitors in your application and the MemoryStore plug-in. Your application creates events of the types defined in that file and calls actions on those events to use the MemoryStore's facilities. There is never any need to import or call the plug-in directly.
Note: If you use the engine_inject utility to manually inject your EPL, instead of using Apama Studio, and you want to expose MemoryStore tables to dashboards, you need to inject the MemoryStoreScenarioImpl.mon monitor, which is in the same directory as the MemoryStore.mon file.