15 #ifndef ENGINE_CLIENT_C_H
16 #define ENGINE_CLIENT_C_H
20 #include <AP_Platform.h>
22 #ifndef ENGINE_CLIENT_CPP_HPP
24 #warning The Apama Client C-API is deprecated. Please use the C++ API located in engine_client_cpp.hpp instead
26 #pragma message("engine_client_c.h(0) Warning: The Apama Client C-API is deprecated. Please use the C++ API located in engine_client_cpp.hpp instead")
54 struct AP_Event_Stubs;
55 struct AP_EventSupplier_Stubs;
56 struct AP_EventConsumer_Stubs;
57 struct AP_DisconnectableEventConsumer_Stubs;
58 struct AP_MonitorScript_Stubs;
59 struct AP_EngineStatus_Stubs;
60 struct AP_NameInfo_Stubs;
61 struct AP_NamedMonitorInfo_Stubs;
62 struct AP_NamedJavaApplicationInfo_Stubs;
63 struct AP_NamedEventTypeInfo_Stubs;
64 struct AP_NamedTimerInfo_Stubs;
65 struct AP_NamedContextInfo_Stubs;
66 struct AP_NamedAggregateInfo_Stubs;
67 struct AP_NamedReceiverInfo_Stubs;
68 struct AP_NamedPluginReceiverInfo_Stubs;
69 struct AP_EngineInfo_Stubs;
70 struct AP_EngineManagement_Stubs;
296 struct AP_Event_Stubs
301 const AP_char8* getText() {
305 const AP_char8* getChannel() {
346 struct AP_EventSupplier_Stubs {
389 struct AP_EventConsumer_Stubs
394 void sendEvents(
AP_Event** events) {
430 struct AP_DisconnectableEventConsumer_Stubs
435 void disconnect(
const AP_char8* reason) {
439 void sendEvents(
AP_Event** events) {
473 struct AP_MonitorScript_Stubs
478 const AP_char8* getText() {
660 AP_uint32 (AP_ENGINE_CLIENT_CALL* getNextStatusItem)(
AP_EngineStatus* status,
const char **name,
const char **value,
void **opaque_state);
696 void (AP_ENGINE_CLIENT_CALL* disposeIterator)(
AP_EngineStatus* status,
void *opaque_state);
781 struct AP_EngineStatus_Stubs
786 AP_bool print(AP_char8* buf, AP_uint32 size) {
787 return api.
functions->print(
this,buf,size);
790 AP_uint64 getUptime() {
794 AP_uint32 getNumMonitors() {
795 return api.
functions->getNumMonitors(
this);
798 AP_uint32 getNumProcesses() {
799 return api.
functions->getNumProcesses(
this);
802 AP_uint32 getNumJavaApplications() {
803 return api.
functions->getNumJavaApplications(
this);
806 AP_uint32 getNumListeners() {
807 return api.
functions->getNumListeners(
this);
810 AP_uint32 getNumEventTypes() {
811 return api.
functions->getNumEventTypes(
this);
814 AP_uint32 getNumQueuedFastTrack() {
815 return api.
functions->getNumQueuedFastTrack(
this);
818 AP_uint32 getNumQueuedInput() {
819 return api.
functions->getNumQueuedInput(
this);
822 AP_uint64 getNumReceived() {
823 return api.
functions->getNumReceived(
this);
826 AP_uint64 getNumFastTracked() {
827 return api.
functions->getNumFastTracked(
this);
830 AP_uint32 getNumConsumers() {
831 return api.
functions->getNumConsumers(
this);
834 AP_uint32 getNumOutputEventsQueued() {
835 return api.
functions->getNumOutputEventsQueued(
this);
838 AP_uint64 getNumOutputEventsCreated() {
839 return api.
functions->getNumOutputEventsCreated(
this);
842 AP_uint64 getNumOutputEventsSent() {
843 return api.
functions->getNumOutputEventsSent(
this);
846 AP_uint64 getNumProcessed() {
847 return api.
functions->getNumProcessed(
this);
850 AP_uint32 getNumSubListeners() {
851 return api.
functions->getNumSubListeners(
this);
854 AP_uint32 getNumContexts() {
855 return api.
functions->getNumContexts(
this);
858 AP_uint32 getNextStatusItem(
const char **name,
const char **value,
void **opaque_state) {
859 return api.
functions->getNextStatusItem(
this, name, value, opaque_state);
862 AP_int64 getUserInt(
const char* key) {
863 return api.
functions->getUserInt(
this, key);
865 AP_int64 getUserIntOr(
const char* key, AP_int64 alt) {
866 return api.
functions->getUserIntOr(
this, key, alt);
869 AP_float64 getUserFloat(
const char* key) {
870 return api.
functions->getUserFloat(
this, key);
872 AP_float64 getUserFloatOr(
const char* key, AP_float64 alt) {
873 return api.
functions->getUserFloatOr(
this, key, alt);
877 return api.
functions->getUserBool(
this, key);
879 AP_bool getUserBoolOr(
AP_EngineStatus* status,
const char* key, AP_bool alt) {
880 return api.
functions->getUserBoolOr(
this, key, alt);
883 const AP_char8* getUserString(
AP_EngineStatus* status,
const char* key) {
886 const AP_char8* getUserStringOr(
AP_EngineStatus* status,
const char* key,
const AP_char8* alt) {
890 void disposeIterator(
void *opaque_state) {
891 api.
functions->disposeIterator(
this, opaque_state);
893 const AP_char8* getMostBackedUpInput() {
896 AP_uint32 getMostBackedUpQueueSize() {
897 return api.
functions->getMostBackedUpQueueSize(
this);
900 const AP_char8* getSlowestReceiver() {
904 AP_uint32 getSlowestReceiverQueueSize() {
905 return api.
functions->getSlowestReceiverQueueSize(
this);
949 struct AP_NameInfo_Stubs
954 const AP_char8* getName() {
958 const AP_char8* getPackage() {
962 const AP_char8* getFullyQualifiedName() {
995 struct AP_NamedMonitorInfo_Stubs
1000 AP_uint32 getNumSubMonitors() {
1001 return api.
functions->getNumSubMonitors(
this);
1004 const AP_char8* getName() {
1008 const AP_char8* getPackage() {
1012 const AP_char8* getFullyQualifiedName() {
1045 struct AP_NamedJavaApplicationInfo_Stubs
1050 AP_uint32 getNumListeners() {
1051 return api.
functions->getNumListeners(
this);
1054 const AP_char8* getName() {
1058 const AP_char8* getPackage() {
1062 const AP_char8* getFullyQualifiedName() {
1095 struct AP_NamedEventTypeInfo_Stubs
1100 AP_uint32 getNumEventTemplates() {
1101 return api.
functions->getNumEventTemplates(
this);
1104 const AP_char8* getName() {
1108 const AP_char8* getPackage() {
1112 const AP_char8* getFullyQualifiedName() {
1145 struct AP_NamedTimerInfo_Stubs
1150 AP_uint32 getNumTimers() {
1151 return api.
functions->getNumTimers(
this);
1154 const AP_char8* getName() {
1158 const AP_char8* getPackage() {
1162 const AP_char8* getFullyQualifiedName() {
1206 struct AP_NamedContextInfo_Stubs
1211 const AP_char8* getName() {
1215 AP_uint32 getNumSubMonitors() {
1216 return api.
functions->getNumSubMonitors(
this);
1219 AP_uint32 getQueueSize() {
1220 return api.
functions->getQueueSize(
this);
1223 char const *
const *getChannels() {
1252 struct AP_NamedAggregateInfo_Stubs
1257 const AP_char8* getName() {
1261 const AP_char8* getPackage() {
1265 const AP_char8* getFullyQualifiedName() {
1309 struct AP_NamedReceiverInfo_Stubs
1314 const AP_char8 *getName() {
1318 const AP_char8 *getAddress() {
1322 AP_uint32 getQueueSize() {
1323 return api.
functions->getQueueSize(
this);
1326 char const *
const *getChannels() {
1365 struct AP_NamedPluginReceiverInfo_Stubs
1370 const AP_char8 *getName() {
1374 AP_uint32 getQueueSize() {
1375 return api.
functions->getQueueSize(
this);
1378 char const *
const *getChannels() {
1531 struct AP_EngineInfo_Stubs
1536 AP_uint32 getNumMonitors() {
1537 return api.
functions->getNumMonitors(
this);
1540 AP_uint32 getNumEventTypes() {
1541 return api.
functions->getNumEventTypes(
this);
1544 AP_uint32 getNumTimers() {
1545 return api.
functions->getNumTimers(
this);
1560 AP_uint32 getNumJavaApplications() {
1561 return api.
functions->getNumJavaApplications(
this);
1568 AP_uint32 getNumContexts() {
1569 return api.
functions->getNumContexts(
this);
1576 AP_uint32 getNumAggregates() {
1577 return api.
functions->getNumAggregates(
this);
1584 AP_uint32 getNumReceivers() {
1585 return api.
functions->getNumReceivers(
this);
1592 AP_uint32 getNumPluginReceivers() {
1593 return api.
functions->getNumPluginReceivers(
this);
1642 void (AP_ENGINE_CLIENT_CALL* injectJava)(
AP_EngineManagement* engine,
const AP_uint8* jarbytes, AP_uint32 size);
1654 void (AP_ENGINE_CLIENT_CALL* injectCDP)(
AP_EngineManagement* engine,
const AP_uint8* cdpbytes, AP_uint32 size,
const char*filename);
1792 AP_bool (AP_ENGINE_CLIENT_CALL* attachAsEventConsumerToHost)(
AP_EngineManagement* engine,
const AP_char8* hostname, AP_uint16 port,
const AP_char8*
const* channels,
AP_bool disconnectSlow, AP_EngineManagement_ConnectMode mode);
1821 void (AP_ENGINE_CLIENT_CALL* detachAsEventConsumerFromHost)(
AP_EngineManagement* engine,
const AP_char8* hostname, AP_uint16 port,
const AP_char8*
const* channels, AP_EngineManagement_ConnectMode mode);
2002 struct AP_EngineManagement_Stubs
2008 api.
functions->injectMonitorScript(
this, script);
2011 void injectJava(
const AP_uint8* jarbytes, AP_uint32 size) {
2012 api.
functions->injectJava(
this, jarbytes, size);
2015 void injectCDP(
const AP_uint8* cdpbytes, AP_uint32 size,
const char* filename) {
2016 api.
functions->injectCDP(
this, cdpbytes, size, filename);
2019 const AP_char8*
const* injectMonitorScriptWithWarnings(
AP_MonitorScript* script) {
2023 const AP_char8*
const* injectMonitorScriptWithWarningsFilename(
AP_MonitorScript* script,
const char *filename) {
2027 const AP_char8*
const* injectJavaWithWarnings(
const AP_uint8* jarbytes, AP_uint32 size) {
2031 const AP_char8*
const* injectJavaWithWarningsFilename(
const AP_uint8* jarbytes, AP_uint32 size,
const char *filename) {
2035 const AP_char8*
const* injectCDPWithWarnings(
const AP_uint8* cdpbytes, AP_uint32 size) {
2039 const AP_char8*
const* injectCDPWithWarningsFilename(
const AP_uint8* cdpbytes, AP_uint32 size,
const char *filename) {
2042 void deleteName(
const AP_char8* name) {
2046 void forceDeleteName(
const AP_char8* name) {
2047 api.
functions->forceDeleteName(
this, name);
2050 void killName(
const AP_char8* name) {
2074 AP_bool attachAsEventConsumerTo(
AP_EngineManagement* target,
const AP_char8*
const* channels, AP_bool disconnectSlow, AP_EngineManagement_ConnectMode mode) {
2075 return api.
functions->attachAsEventConsumerTo(
this, target, channels, disconnectSlow, mode);
2078 AP_bool attachAsEventConsumerToHost(
const AP_char8* hostname, AP_uint16 port,
const AP_char8*
const* channels, AP_bool disconnectSlow, AP_EngineManagement_ConnectMode mode) {
2079 return api.
functions->attachAsEventConsumerToHost(
this, hostname, port, channels, disconnectSlow, mode);
2082 void detachAsEventConsumerFrom(
AP_EngineManagement* target,
const AP_char8*
const* channels, AP_EngineManagement_ConnectMode mode) {
2083 api.
functions->detachAsEventConsumerFrom(
this, target, channels, mode);
2086 void detachAsEventConsumerFromHost(
const AP_char8* hostname, AP_uint16 port,
const AP_char8*
const* channels, AP_EngineManagement_ConnectMode mode) {
2087 api.
functions->detachAsEventConsumerFromHost(
this, hostname, port, channels, mode);
2098 AP_bool isConnected() {
2099 return api.
functions->isConnected(
this);
2102 void sendEvents(
AP_Event** events) {
2103 api.
functions->sendEvents(
this, events);
2105 void sendEventsNoBatching(
AP_Event** events) {
2106 api.
functions->sendEventsNoBatching(
this, events);
2108 void flushEvents(
AP_Event** events) {
2124 AP_ENGINE_CLIENT_API
void AP_ENGINE_CLIENT_CALL
AP_EngineInit(
const char *processName);
2188 AP_ENGINE_CLIENT_API
AP_EngineStatus* AP_ENGINE_CLIENT_CALL engineManagement_getStatusOpaque(
void *opaque_EngineManagement,
char **errmsg);
2228 AP_ENGINE_CLIENT_API
AP_Event* AP_ENGINE_CLIENT_CALL
AP_CreateEvent(
const AP_char8* text,
const AP_char8* channel);
2275 AP_ENGINE_CLIENT_API
void AP_ENGINE_CLIENT_CALL
AP_DeleteWarnings(
const AP_char8*
const* warnings);
2320 AP_ENGINE_CLIENT_API
void AP_ENGINE_CLIENT_CALL
AP_SetLogFile(
const AP_char8* filename,
int truncate);
2334 AP_ENGINE_CLIENT_API
void AP_ENGINE_CLIENT_CALL
AP_SetLogFileUTF8(
const AP_char8* filename,
int truncate);
2342 AP_ENGINE_CLIENT_API
void AP_ENGINE_CLIENT_CALL
AP_SetLogFD(
int fd);
2349 AP_ENGINE_CLIENT_API
void AP_ENGINE_CLIENT_CALL
AP_SetLogMutex(
void *);
2356 AP_ENGINE_CLIENT_API
void AP_ENGINE_CLIENT_CALL
AP_ReOpenLog();
2359 AP_ENGINE_CLIENT_API AP_char8* AP_ENGINE_CLIENT_CALL AP_ConvertToUTF8(
const AP_char8* s);
2362 AP_ENGINE_CLIENT_API AP_char8* AP_ENGINE_CLIENT_CALL AP_ConvertFromUTF8(
const AP_char8* s);
2429 AP_ENGINE_CLIENT_API
void AP_ENGINE_CLIENT_CALL
AP_SetEngineParams(
const AP_char8* params);
2438 AP_ENGINE_CLIENT_API
int AP_ENGINE_CLIENT_CALL AP_IsOutOfBandEvent(
const AP_char8* eventName);
2444 AP_ENGINE_CLIENT_API
void AP_ENGINE_CLIENT_CALL
AP_char8free(
char *
string);
const AP_char8 *AP_ENGINE_CLIENT_CALL * getChannel(AP_Event *event)
Retrieve the event's channel.
AP_EventConsumer * s_EventConsumer
Pointer to this object with an EventConsumer facade.
Definition: engine_client_c.h:1999
AP_uint32(AP_ENGINE_CLIENT_CALL *getNumMonitors)(AP_EngineStatus *status)
Get the number of monitors defined in the Engine.
AP_ENGINE_CLIENT_API AP_bool AP_ENGINE_CLIENT_CALL AP_CheckException()
Checks if an exeption was thrown and saved by the library.
NamedMonitorInfo function API.
Definition: engine_client_c.h:973
AP_EngineStatus *AP_ENGINE_CLIENT_CALL * copyStatus(AP_EngineStatus *status)
Copy the supplied AP_EngineStatus (returned from a previous call to AP_EngineManagement->getStatus())...
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_DeleteEvent(AP_Event *event)
This function allows deletion of an AP_Event instance.
AP_bool(AP_ENGINE_CLIENT_CALL *print)(AP_EngineStatus *status
Format the status into the given buffer.
AP_EngineClientExceptionType
Definition: engine_client_c.h:2367
NamedMonitorInfo facade for NamedInfo object.
Definition: engine_client_c.h:986
EngineStatus function API.
Definition: engine_client_c.h:489
const AP_char8 *AP_ENGINE_CLIENT_CALL * getSlowestReceiver(AP_EngineStatus *status)
Get the name of the slowest receiver.
NamedJavaApplicationInfo facade for NamedInfo object.
Definition: engine_client_c.h:1036
struct AP_NamedReceiverInfo_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:1304
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_DeleteWarnings(const AP_char8 *const *warnings)
This function allows deletion of warnings.
AP_NamedTimerInfo **AP_ENGINE_CLIENT_CALL * getTimers(AP_EngineInfo *info)
Returns information about the timers in the engine, in the form of a NULL terminated array of pointer...
Critical messages.
Definition: engine_client_c.h:2287
AP_NamedMonitorInfo **AP_ENGINE_CLIENT_CALL * getMonitors(AP_EngineInfo *info)
Returns information about the monitors in the engine, in the form of a NULL terminated array of point...
double(AP_ENGINE_CLIENT_CALL *getTime)(AP_Event *event)
Retrieve the event's timestamp.
EventConsumer.
Definition: engine_client_c.h:382
const AP_char8 *AP_ENGINE_CLIENT_CALL * getAddress(AP_NamedReceiverInfo *info)
Get the address of this receiver.
struct AP_NamedAggregateInfo_Stubs AP_NamedAggregateInfo
Information about an aggregate function returned by an engine inspection.
Definition: engine_client_c.h:180
struct AP_NamedJavaApplicationInfo_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:1040
struct AP_MonitorScript_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:470
struct AP_NameInfo_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:946
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_SetEngineParams(const AP_char8 *params)
Set custom parameters for this instance of the client library.
void(AP_ENGINE_CLIENT_CALL *sendEvents)(AP_EventConsumer *consumer
This function must be defined by the client to enable receiving of events.
struct AP_NamedAggregateInfo_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:1247
const AP_char8 *AP_ENGINE_CLIENT_CALL * getMostBackedUpInput(AP_EngineStatus *status)
Get the name of the most backed up (slowest) context.
AP_ENGINE_CLIENT_API const AP_char8 *AP_ENGINE_CLIENT_CALL AP_GetExceptionMessage()
Retrieve the message enclosed within the exception.
AP_NameInfo * s_NameInfo
Pointer to NameInfo facade for this object.
Definition: engine_client_c.h:1249
AP_uint32(AP_ENGINE_CLIENT_CALL *getNumSubMonitors)(AP_NamedContextInfo *info)
Gets the number of sub-monitors belonging to this context.
Event functions API.
Definition: engine_client_c.h:251
DisconnectableEventConsumer function API.
Definition: engine_client_c.h:404
struct AP_EngineStatus_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:778
AP_NameInfo * s_NameInfo
Pointer to NameInfo facade for this object.
Definition: engine_client_c.h:1042
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_ClearException()
Clears the pending exception.
struct AP_NamedTimerInfo_Stubs AP_NamedTimerInfo
Information about a timer type returned by an engine inspection.
Definition: engine_client_c.h:165
const AP_char8 *const *AP_ENGINE_CLIENT_CALL * injectMonitorScriptWithWarningsFilename(AP_EngineManagement *engine, AP_MonitorScript *script, const char *filename)
Inject MonitorScript text into the Engine, supplying the filename it was injected from and returning ...
Fatal messages.
Definition: engine_client_c.h:2289
struct AP_EngineInfo_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:1528
void(AP_ENGINE_CLIENT_CALL *deleteStatus)(AP_EngineStatus *status)
Delete the supplied AP_EngineStatus (returned from a previous call to AP_EngineManagement->getStatus(...
NamedContextInfo facade for NamedInfo object.
Definition: engine_client_c.h:1197
Event supplier.
Definition: engine_client_c.h:339
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_EngineInitNoMessaging(const char *processName)
This function (or engineInit) must be called once per process first before any other Engine operation...
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_EngineShutdown()
This function must be called once per process before the application closes down. ...
AP_EventSupplier *AP_ENGINE_CLIENT_CALL * connectDisconnectableEventConsumer(AP_EngineManagement *engine, AP_DisconnectableEventConsumer *consumer, const AP_char8 *const *channels)
Connect a disconnectable event receiver to the Engine.
void(AP_ENGINE_CLIENT_CALL *disconnect)(AP_DisconnectableEventConsumer *consumer
Used to inform the consumer that it is not going to be sent any more events.
const AP_char8 *AP_ENGINE_CLIENT_CALL * getUserString(AP_EngineStatus *status, const char *key)
Get a user value of type AP_char8*.
struct AP_NamedEventTypeInfo_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:1090
const AP_char8 *AP_ENGINE_CLIENT_CALL * getFullyQualifiedName(AP_NameInfo *info)
Fully qualified name, for example "com.apamax.MyEvent".
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_DeleteEngineInfo(AP_EngineInfo *info)
This function allows deletion of an AP_EngineInfo instance.
EngineManagement function API.
Definition: engine_client_c.h:1622
An exception in the client library.
Definition: engine_client_c.h:2369
struct AP_MonitorScript_Stubs AP_MonitorScript
A AP_MonitorScript allows MonitorScript code fragment, containing package, event and monitor definiti...
Definition: engine_client_c.h:122
struct AP_NamedContextInfo_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:1201
struct AP_NamedPluginReceiverInfo_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:1360
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_SetLogMutex(void *)
Sets the mutex which the client library logger should use.
const AP_char8 *AP_ENGINE_CLIENT_CALL * getName(AP_NameInfo *info)
Name, excluding package, for example "MyEvent".
struct AP_NameInfo_Stubs AP_NameInfo
Allows access to a named object (i.e.
Definition: engine_client_c.h:137
Allow parallel connections on multiple channels.
Definition: engine_client_c.h:1612
AP_uint32(AP_ENGINE_CLIENT_CALL *getNumTimers)(AP_NamedTimerInfo *info)
Gets the number of timers for this timer type.
AP_EventConsumer * s_EventConsumer
Pointer to EventConsumer facade for this object.
Definition: engine_client_c.h:427
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_DeleteMonitorScript(AP_MonitorScript *script)
This function allows deletion of AP_MonitorScript instances.
const AP_char8 *AP_ENGINE_CLIENT_CALL * getText(AP_Event *event)
Retrieve the event's type and its contents as a string.
NamedAggregateInfo function API.
Definition: engine_client_c.h:1234
EventSupplier function API.
Definition: engine_client_c.h:320
For backwards compatibility, single serial connection.
Definition: engine_client_c.h:1610
char const *const *AP_ENGINE_CLIENT_CALL * getChannels(AP_NamedContextInfo *info)
Gets the channels to which this context is subscribed.
AP_EventSupplier *AP_ENGINE_CLIENT_CALL * connectDisconnectableSlowEventConsumer(AP_EngineManagement *engine, AP_DisconnectableEventConsumer *consumer, const AP_char8 *const *channels, AP_bool disconnectIfSlow)
Connect a disconnectable event receiver to the Engine.
EngineStatus.
Definition: engine_client_c.h:774
AP_float64(AP_ENGINE_CLIENT_CALL *getUserFloat)(AP_EngineStatus *status
Get a user value of type AP_float64.
void(AP_ENGINE_CLIENT_CALL *injectMonitorScript)(AP_EngineManagement *engine
Inject MonitorScript text into the Engine.
const AP_char8 *AP_ENGINE_CLIENT_CALL * getText(AP_MonitorScript *script)
Retrieve the text of a MonitorScript fragment as a string.
EventConsumer function API.
Definition: engine_client_c.h:360
struct AP_EventConsumer_Stubs AP_EventConsumer
An AP_EventConsumer allows to connect to the Engine through an AP_EventSupplier and register to recei...
Definition: engine_client_c.h:99
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_DeleteEngineStatus(AP_EngineStatus *status)
This function allows deletion of an AP_EngineStatus instance.
struct AP_NamedContextInfo_Stubs AP_NamedContextInfo
Information about a context returned by an engine inspection.
Definition: engine_client_c.h:172
AP_uint32(AP_ENGINE_CLIENT_CALL *getNumSubMonitors)(AP_NamedMonitorInfo *info)
Gets the number of sub-monitors belonging to this monitor.
struct AP_NamedReceiverInfo_Stubs AP_NamedReceiverInfo
Information about a receiver returned by an engine inspection.
Definition: engine_client_c.h:188
EngineInfo function API.
Definition: engine_client_c.h:1389
NamedPluginReceiverInfo function API.
Definition: engine_client_c.h:1337
AP_uint32(AP_ENGINE_CLIENT_CALL *getQueueSize)(AP_NamedPluginReceiverInfo *info)
Gets the queue size of this receiver.
const AP_char8 *AP_ENGINE_CLIENT_CALL * getPackage(AP_NameInfo *info)
Package name, for example "com.apamax", or an empty string if in the default package.
AP_ENGINE_CLIENT_API AP_Event *AP_ENGINE_CLIENT_CALL AP_CreateEvent(const AP_char8 *text, const AP_char8 *channel)
This function allows creation of an AP_Event instance.
struct AP_EventSupplier_Stubs AP_EventSupplier
An AP_EventSupplier represents the resources created by the Engine to service a connection to an exte...
Definition: engine_client_c.h:88
EngineManagement.
Definition: engine_client_c.h:1993
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_DisconnectFromEngine(AP_EngineManagement *engine)
This function allows disconnection from an Engine.
NamedPluginReceiverInfo facade for NamedInfo object.
Definition: engine_client_c.h:1356
AP_uint32(AP_ENGINE_CLIENT_CALL *getNumListeners)(AP_NamedJavaApplicationInfo *info)
Gets the number of listeners belonging to this application.
struct AP_Event_Stubs AP_Event
An Event represents an event instance.
Definition: engine_client_c.h:76
MonitorScript function API.
Definition: engine_client_c.h:449
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_DeleteEventSupplier(AP_EventSupplier *supplier)
This function disconnects and deletes an AP_EventSupplier instance.
struct AP_EngineInfo_Stubs AP_EngineInfo
Information about the monitors and types currently in an engine.
Definition: engine_client_c.h:212
NameInfo.
Definition: engine_client_c.h:942
AP_NameInfo * s_NameInfo
Pointer to NameInfo facade for this object.
Definition: engine_client_c.h:1306
struct AP_NamedMonitorInfo_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:990
const AP_char8 *const *AP_ENGINE_CLIENT_CALL * injectMonitorScriptWithWarnings(AP_EngineManagement *engine, AP_MonitorScript *script)
Inject MonitorScript text into the Engine, returning any warnings produced by the MonitorScript compi...
Monitorscript.
Definition: engine_client_c.h:466
Nothing logged.
Definition: engine_client_c.h:2283
struct AP_NamedTimerInfo_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:1140
AP_NamedContextInfo **AP_ENGINE_CLIENT_CALL * getContexts(AP_EngineInfo *info)
Returns information about the contexts in the engine, in the form of a NULL terminated array of point...
NamedAggregateInfo facade for NamedInfo object.
Definition: engine_client_c.h:1243
NamedJavaApplicationInfo function API.
Definition: engine_client_c.h:1023
AP_ENGINE_CLIENT_API AP_EngineManagement *AP_ENGINE_CLIENT_CALL AP_connectToEngineMonitorOnly(const AP_char8 *hostname, AP_uint16 port)
Attempt to establish a monitor-only connection to an Engine listening on the named host and port...
NamedReceiverInfo function API.
Definition: engine_client_c.h:1275
Information messages (default)
Definition: engine_client_c.h:2295
struct AP_DisconnectableEventConsumer_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:425
const AP_char8 *AP_ENGINE_CLIENT_CALL * getUserStringOr(AP_EngineStatus *status, const char *key, const AP_char8 *alt)
Get a user value of type AP_char8* or the alt value if it cannot be found.
AP_EngineStatus *AP_ENGINE_CLIENT_CALL * getStatus(AP_EngineManagement *engine)
Get the Engine's current operational status.
const AP_char8 *const *AP_ENGINE_CLIENT_CALL * injectJavaWithWarningsFilename(AP_EngineManagement *engine, const AP_uint8 *jarbytes, AP_uint32 size, const char *filename)
Injects a Java application (a jar) into the engine.
struct AP_NamedJavaApplicationInfo_Stubs AP_NamedJavaApplicationInfo
Information about a java application returned by an engine inspection.
Definition: engine_client_c.h:151
DisconnectableEventConsumer.
Definition: engine_client_c.h:421
void *AP_ENGINE_CLIENT_CALL * copyIterator(AP_EngineStatus *status, void *opaque_state)
Copy an opaque_state as returned by getNextStatusItem.
struct AP_EngineManagement_Stubs AP_EngineManagement
The AP_EngineManagement structure allows access to the Engine.
Definition: engine_client_c.h:224
AP_NamedEventTypeInfo **AP_ENGINE_CLIENT_CALL * getEventTypes(AP_EngineInfo *info)
Returns information about the event types in the engine, in the form of a NULL terminated array of po...
EngineInfo.
Definition: engine_client_c.h:1524
AP_uint64(AP_ENGINE_CLIENT_CALL *getUptime)(AP_EngineStatus *status)
Get the time in ms that the Engine has been running for.
More-verbose debug messages.
Definition: engine_client_c.h:2299
AP_uint32(AP_ENGINE_CLIENT_CALL *getNumEventTemplates)(AP_NamedEventTypeInfo *info)
Gets the number of event templates for this event type.
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_SetLogLevel(AP_EngineClientLogLevel level)
Sets the level at which the client library will log information.
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_EngineInit(const char *processName)
This function must be called once per process first before any other Engine operations are carried ou...
AP_bool(AP_ENGINE_CLIENT_CALL *attachAsEventConsumerTo)(AP_EngineManagement *engine
Connect this Engine as an event receiver to another Engine.
struct AP_Event_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:293
Debugging messages.
Definition: engine_client_c.h:2297
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_SetLogFD(int fd)
Sets the file descriptor to which the client library should log information.
AP_int64(AP_ENGINE_CLIENT_CALL *getUserInt)(AP_EngineStatus *status
Get a user value of type AP_int64.
AP_EngineClientLogLevel
Available logging levels.
Definition: engine_client_c.h:2281
AP_NamedJavaApplicationInfo **AP_ENGINE_CLIENT_CALL * getJavaApplications(AP_EngineInfo *info)
Returns information about the Java applications in the engine, in the form of a NULL terminated array...
struct AP_EngineStatus_Stubs AP_EngineStatus
AP_EngineStatus allows access to the operational status of the Engine.
Definition: engine_client_c.h:128
struct AP_EventConsumer_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:386
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_SetLogFile(const AP_char8 *filename, int truncate)
Sets the file to which the client library should log information.
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_char8free(char *string)
Free any char* string returned from the client API.
NamedEventTypeInfo facade for NamedInfo object.
Definition: engine_client_c.h:1086
const AP_char8 *const *AP_ENGINE_CLIENT_CALL * injectJavaWithWarnings(AP_EngineManagement *engine, const AP_uint8 *jarbytes, AP_uint32 size)
Injects a Java application (a jar) into the engine; maintained for compatibility only, please use injectJavaWithWarningsFilename instead of this function.
AP_NameInfo * s_NameInfo
Pointer to NameInfo facade for this object.
Definition: engine_client_c.h:1362
void(AP_ENGINE_CLIENT_CALL *disconnect)(AP_EventSupplier *supplier)
Disconnect the EventSupplier from its consumer.
const AP_char8 *const *AP_ENGINE_CLIENT_CALL * injectCDPWithWarnings(AP_EngineManagement *engine, const AP_uint8 *cdpbytes, AP_uint32 size)
Injects a CDP (Correlator Deployment Package file) into the engine; maintained for compatibility only...
struct AP_EventSupplier_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:343
NamedReceiverInfo facade for NamedInfo object.
Definition: engine_client_c.h:1300
AP_NamedPluginReceiverInfo **AP_ENGINE_CLIENT_CALL * getPluginReceivers(AP_EngineInfo *info)
Returns information about the plugin receivers in the engine, in the form of a NULL terminated array ...
AP_NameInfo * s_NameInfo
Pointer to NameInfo facade for this object.
Definition: engine_client_c.h:992
AP_NameInfo * s_NameInfo
Pointer to NameInfo facade for this object.
Definition: engine_client_c.h:1092
AP_ENGINE_CLIENT_API AP_MonitorScript *AP_ENGINE_CLIENT_CALL AP_CreateMonitorScript(const AP_char8 *text)
This function allows creation of AP_MonitorScript instances.
AP_EngineManagement_ConnectMode
The mode that attachAsEventConsumerTo and detachAsEventConsumerFrom operate in.
Definition: engine_client_c.h:1608
AP_ENGINE_CLIENT_API AP_EngineManagement *AP_ENGINE_CLIENT_CALL AP_connectToEngineReceiveOnly(const AP_char8 *hostname, AP_uint16 port)
Attempt to establish a receive-only connection to an Engine listening on the named host and port...
AP_NamedReceiverInfo **AP_ENGINE_CLIENT_CALL * getReceivers(AP_EngineInfo *info)
Returns information about the receivers connected to the engine, in the form of a NULL terminated arr...
struct AP_EngineManagement_Functions * functions
Pointer to function API.
Definition: engine_client_c.h:1997
AP_ENGINE_CLIENT_API AP_EngineManagement *AP_ENGINE_CLIENT_CALL AP_ConnectToEngine(const AP_char8 *hostname, AP_uint16 port)
This function attempts to establish a connection to an Engine.
AP_uint32(AP_ENGINE_CLIENT_CALL *getNumMonitors)(AP_EngineInfo *info)
Gets the number of monitors in the engine.
Event.
Definition: engine_client_c.h:289
char const *const *AP_ENGINE_CLIENT_CALL * getChannels(AP_NamedReceiverInfo *info)
Gets the channels to which this context is subscribed.
struct AP_NamedMonitorInfo_Stubs AP_NamedMonitorInfo
Information about a monitor returned by an engine inspection.
Definition: engine_client_c.h:144
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_SetLogFileUTF8(const AP_char8 *filename, int truncate)
Sets the file to which the client library should log information.
AP_NamedAggregateInfo **AP_ENGINE_CLIENT_CALL * getAggregates(AP_EngineInfo *info)
Returns information about the aggregate functions in the engine, in the form of a NULL terminated arr...
NamedTimerInfoInfo facade for NamedInfo object.
Definition: engine_client_c.h:1136
struct AP_NamedEventTypeInfo_Stubs AP_NamedEventTypeInfo
Information about a event type returned by an engine inspection.
Definition: engine_client_c.h:158
AP_EventSupplier *AP_ENGINE_CLIENT_CALL * connectEventConsumer(AP_EngineManagement *engine, AP_EventConsumer *consumer, const AP_char8 *const *channels)
Connect an event receiver to the Engine.
AP_EngineInfo *AP_ENGINE_CLIENT_CALL * inspectEngine(AP_EngineManagement *engine)
Returns information about the monitors, event types and container types which exist in the engine...
Error messages.
Definition: engine_client_c.h:2291
const AP_char8 *AP_ENGINE_CLIENT_CALL * getStatusValue(AP_EngineStatus *status, const char *key)
Get the status value with the specified key.
AP_ENGINE_CLIENT_API const AP_char8 *const *AP_ENGINE_CLIENT_CALL AP_GetExceptionWarnings()
Retrieve the set of warnings associated with the exception.
struct AP_DisconnectableEventConsumer_Stubs AP_DisconnectableEventConsumer
An AP_DisconnectableEventConsumer allows to connect to the Engine through an AP_EventSupplier and reg...
Definition: engine_client_c.h:114
AP_uint32(AP_ENGINE_CLIENT_CALL *getQueueSize)(AP_NamedReceiverInfo *info)
Gets the queue size of this receiver.
AP_NameInfo * s_NameInfo
Pointer to NameInfo facade for this object.
Definition: engine_client_c.h:1142
NameInfo function API.
Definition: engine_client_c.h:916
AP_NameInfo * s_NameInfo
Pointer to NameInfo facade for this object.
Definition: engine_client_c.h:1203
AP_ENGINE_CLIENT_API void AP_ENGINE_CLIENT_CALL AP_ReOpenLog()
Re-opens the log file.
char const *const *AP_ENGINE_CLIENT_CALL * getChannels(AP_NamedPluginReceiverInfo *info)
Gets the channels to which this context is subscribed.
AP_ENGINE_CLIENT_API AP_EngineClientExceptionType AP_ENGINE_CLIENT_CALL AP_GetExceptionType()
Returns the type of the pending exception.
Warning messages.
Definition: engine_client_c.h:2293
const AP_char8 *const *AP_ENGINE_CLIENT_CALL * injectCDPWithWarningsFilename(AP_EngineManagement *engine, const AP_uint8 *cdpbytes, AP_uint32 size, const char *filename)
Injects a CDP (Correlator Deployment Package file) into the engine.
NamedEventTypeInfo function API.
Definition: engine_client_c.h:1073
Startup and other important messages.
Definition: engine_client_c.h:2285
struct AP_NamedPluginReceiverInfo_Stubs AP_NamedPluginReceiverInfo
Information about a plugin receiver returned by an engine inspection.
Definition: engine_client_c.h:196
NamedContextInfo function API.
Definition: engine_client_c.h:1173
NamedTimerInfoInfo function API.
Definition: engine_client_c.h:1123