Apama
10.2.0.3
|
#include <correlator_plugin.hpp>
Inherits NoContext public AP_Context.
Public Member Functions | |
virtual | ~AP_Context () |
virtual uint32 | version () const =0 |
virtual char8 * | char8alloc (size_t len) const =0 |
virtual char8 * | char8dup (const char8 *s) const =0 |
virtual void | char8free (char8 *s) const =0 |
virtual AP_CorrelatorInterface * | getCorrelator () const =0 |
virtual AP_uint64 | getContextId () const =0 |
virtual void | pluginNowBlocking () const =0 |
Note that the plugin 'execution context' is not the same as the concept of 'contexts' in EPL, which are used to provide parallelism, despite the name being the same. However each AP_Context plugin execution context provides a getContextId() method for getting the EPL context from which the plugin is being invoked.
AP_Context holds per-call Engine-internal data and provides various utility functions to plugins.
Note that the implementation of the AP_Context member functions is internal to the Engine. One consequence of this is that plugins cannot create a useful instance of this class themselves; the only valid AP_Context objects are those passed in to a plugin function by the Engine.
Provides dummy do-nothing methods for all the methods on AP_Context.
|
inlinevirtual |
|
pure virtual |
The memory will be allocated by the Engine and must only be freed using the char8free() function. These functions should be used for any string data that may need to be copied or otherwise manipulated by the Engine; in particular, strings within chunk objects that the Engine may be required to (de)serialise.
len | The length of the string buffer. Must be sufficient to cover any terminators or other special characters to be included in the string. |
|
pure virtual |
This function allocates a memory block of sufficient size and copies the contents of the source string into it. The returned string must only be freed using char8free().
s | The source string to be copied. Must have been created with char8alloc(). |
|
pure virtual |
The source string pointer is invalid after this function returns. This function must not be used to free any object that was not allocated by char8alloc() or char8dup().
s | The source string to be freed. |
|
pure virtual |
|
pure virtual |
|
pure virtual |
This form is slightly more efficient than the call on AP_CorrelatorInterface.
|
pure virtual |