Developing Apama Applications > EPL Reference > Monitors > Monitor actions > Simple actions
Simple actions
A simple action has a name and a body consisting of a block. The body contains the executable code of the action. There are no parameters.
The action names given in the table below have special meaning in a monitor. These actions are invoked automatically when certain events in a monitor’s life cycle occur. Apama recommends that you do not use these names in queries.
A block must follow the action name. Note that there are no formal parameters in this form of action definition and the action cannot return a value.
Action
Description
onload()
This action is invoked immediately after a monitor has been loaded. This action must be present in every monitor.
ondie()
If present, this action is invoked by the correlator when a monitor instance terminates.
onunload()
If present, this action is invoked by the correlator after all instances of a monitor have terminated, just before the last monitor instance is unloaded.
onBeginRecovery()
If present, this action is invoked by the correlator during recovery of a persistence-enabled correlator. The correlator executes onBeginRecovery() on monitors and any live events after it reinjects source code and restores state in persistent monitors.
onConcludeRecovery()
If present, this action is invoked by the correlator during recovery of a persistence-enabled correlator. The correlator executes onConcludeRecovery() on monitors and any live events before it begins to send clock ticks.
Copyright © 2013-2015 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.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.