11 #ifndef _AP_SESSION_MANAGERINTERFACE_H 12 #define _AP_SESSION_MANAGERINTERFACE_H 26 #include <EventTransport.h> 28 #if defined(_APBUILD_WIN32_ALL__) || defined(__WIN32__) || defined(WIN32) 37 #ifndef _APBUILD_WIN32_ALL__ 38 #define _APBUILD_WIN32_ALL__ 41 #ifdef AP_SESSION_BACKEND 42 #define AP_SESSION_API __declspec(dllexport) 43 #define AP_SESSION_CALL __stdcall 45 #define AP_SESSION_API __declspec(dllimport) 46 #define AP_SESSION_CALL __stdcall 49 #elif defined(_APBUILD_UNIX_ALL__) || defined(__unix__) 51 #define AP_SESSION_API 52 #define AP_SESSION_CALL 54 #error "Can't determine platform: try #define _APBUILD_WIN32_ALL__ or _APBUILD_UNIX_ALL__" 63 #define STREAMTYPE_BBA ("com.apama.md.BBA") 64 #define STREAMTYPE_TRADE ("com.apama.md.T") 65 #define STREAMTYPE_MBP ("com.apama.md.D") 66 #define STREAMTYPE_MBO ("com.apama.md.O") 67 #define STREAMTYPE_EP ("com.apama.md.EP") 68 #define STREAMTYPE_QUOTEBOOK ("com.apama.md.QB") 69 #define STREAMTYPE_NEWS ("com.apama.md.N") // end of session_capabilities 94 void (*onCorrelatorWatchDogTimedOut)(
void* transportInternals);
111 void (*onSessionRegistrationSuccess)(
void* transportInternals,
const char* sessionName, AP_int64 sourceId, AP_TimestampSet *tss);
127 void (*onSessionRegistrationError)(
void* transportInternals,
const char* sessionName, AP_TimestampSet *tss);
149 void (*onSessionStart)(
void* transportInternals, AP_int64 sourceId, HashMap* configParams, AP_TimestampSet *tss);
173 void (*onSessionStop) (
void* transportInternals, AP_int64 sourceId, AP_TimestampSet *tss);
190 void (*onSessionReconfigure)(
void* transportInternals, AP_int64 sourceId, HashMap* configParams, AP_TimestampSet *tss);
206 void (*onSessionReset)(
void* transportInternals,
const char* transportName, AP_TimestampSet* tss);
242 #if defined( __cplusplus ) 298 const char* transportName,
299 const char* sessionName,
300 const char* channelName,
301 const char* description);
323 const char* sessionName,
324 const char* paramName,
326 const char* defaultValue,
327 const char *
const allowValues[],
329 const char* description,
331 AP_bool referenceOnly);
374 const char* sessionName,
375 const char* streamName,
378 const char* defaultValue,
379 const char*
const allowedValues[],
381 const char* description,
419 const char* streamName,
422 const char* defaultValue,
423 const char*
const allowedValues[],
425 const char* description,
718 #if defined( __cplusplus ) 723 #endif //_AP_SESSION_MANAGERINTERFACE_H AP_SESSION_API AP_bool AP_SESSION_HasCapability(AP_SESSION_Interface *smi, const AP_int64 sourceId, const char *capability)
AP_SESSION_API void AP_SESSION_AddCapabilityParams(AP_SESSION_Interface *smi, const char *sessionName, const char *streamName, const char *key, const char *type, const char *defaultValue, const char *const allowedValues[], size_t allowsize, const char *description, AP_bool required)
AP_SESSION_API const char * AP_SESSION_GetSessionName(AP_SESSION_Interface *smi, AP_int64 sourceId)
AP_SESSION_AdapterInterface * adapterInterface
Definition: SM_SessionInterface.h:220
AP_SESSION_API void AP_SESSION_Init(AP_SESSION_AdapterInterface *adapterInterface, void *transportInternals, AP_SESSION_Interface **smi)
AP_SESSION_API AP_SESSION_State AP_SESSION_GetSessionStateByName(AP_SESSION_Interface *smi, const char *sessionName)
AP_SESSION_API void AP_SESSION_DeleteSessionByName(AP_SESSION_Interface *smi, const char *sessionName)
AP_SESSION_API void AP_SESSION_DeleteSessionById(AP_SESSION_Interface *smi, AP_int64 sourceId)
AP_SESSION_API void AP_SESSION_SessionStartError(AP_SESSION_Interface *smi, AP_int64 sourceId, const char *errMsg, AP_TimestampSet *tss)
AP_SESSION_State
Definition: Connectivity_SessionDefs.h:31
AP_SESSION_API void AP_SESSION_SetDecoder(AP_SESSION_Interface *smi, AP_EventDecoder *decoder)
AP_SESSION_API void AP_SESSION_SetSessionStateById(AP_SESSION_Interface *smi, AP_int64 sourceId, AP_SESSION_State state, bool generateNewId=false)
Definition: SM_SessionInterface.h:233
AP_SESSION_API int AP_SESSION_ProcessEvent(AP_SESSION_Interface *smi, AP_TransportEvent event, AP_TimestampSet *tss)
Definition: SM_SessionInterface.h:218
AP_SESSION_API void AP_SESSION_Stop(AP_SESSION_Interface *smi)
AP_SESSION_API void AP_SESSION_SessionStartSuccess(AP_SESSION_Interface *smi, AP_int64 sourceId, AP_TimestampSet *tss)
AP_SESSION_API void AP_SESSION_Start(AP_SESSION_Interface *smi)
AP_SESSION_API void AP_SESSION_SetSessionStateByName(AP_SESSION_Interface *smi, const char *sessionName, AP_SESSION_State state, bool generateNewId=false)
Definition: SM_SessionInterface.h:235
AP_SESSION_API void AP_SESSION_SessionStopSuccess(AP_SESSION_Interface *smi, AP_int64 sourceId, AP_TimestampSet *tss)
AP_SESSION_API void AP_SESSION_AddSession(AP_SESSION_Interface *smi, const char *transportName, const char *sessionName, const char *channelName, const char *description)
AP_SESSION_State
Definition: SM_SessionInterface.h:229
AP_SESSION_API void AP_SESSION_LogLatency(AP_SESSION_Interface *smi, IAF_TimestampConfig *config)
AP_SESSION_API void AP_SESSION_RegisterSession(AP_SESSION_Interface *smi, const char *sessionName)
Definition: SM_SessionInterface.h:80
Definition: SM_SessionInterface.h:237
AP_SESSION_API void AP_SESSION_SetCorrelatorHBTimeout(AP_SESSION_Interface *smi, int timeoutInterval)
AP_SESSION_API void AP_SESSION_RegisterSessions(AP_SESSION_Interface *smi)
Definition: SM_SessionInterface.h:234
AP_SESSION_API void AP_SESSION_DeInit(AP_SESSION_Interface *smi)
Definition: SM_SessionInterface.h:232
AP_SESSION_API AP_SESSION_State AP_SESSION_GetSessionStateById(AP_SESSION_Interface *smi, AP_int64 sourceId)
AP_SESSION_API void AP_SESSION_Clear(AP_SESSION_Interface *smi)
Definition: SM_SessionInterface.h:236
AP_SESSION_API void AP_SESSION_SessionStopError(AP_SESSION_Interface *smi, AP_int64 sourceId, const char *errMsg, AP_TimestampSet *tss)
void * transportInternals
Definition: SM_SessionInterface.h:221
AP_SESSION_API void AP_SESSION_GenerateIAFStatus(AP_SESSION_Interface *smi, AP_NormalisedEvent *nevent)
AP_SESSION_API AP_int64 AP_SESSION_GetSessionId(AP_SESSION_Interface *smi, const char *sessionName)
AP_SESSION_API void AP_SESSION_SessionReconfigureSuccess(AP_SESSION_Interface *smi, AP_int64 sourceId, AP_TimestampSet *tss)
AP_SESSION_API void AP_SESSION_AddCapabilityParamsById(AP_SESSION_Interface *smi, AP_int64 sourceId, const char *streamName, const char *key, const char *type, const char *defaultValue, const char *const allowedValues[], size_t allowsize, const char *description, AP_bool required)
Definition: SM_SessionInterface.h:238
AP_SESSION_API void AP_SESSION_AddSessionParams(AP_SESSION_Interface *smi, const char *sessionName, const char *paramName, const char *type, const char *defaultValue, const char *const allowValues[], size_t allowsize, const char *description, AP_bool required, AP_bool referenceOnly)
AP_SESSION_API void AP_SESSION_AddCapabilitiesById(AP_SESSION_Interface *smi, AP_int64 sourceId, const char *const capabilities[], size_t capsSize)
AP_SESSION_API void AP_SESSION_AddCapabilities(AP_SESSION_Interface *smi, const char *sessionName, const char *const capabilities[], size_t capsSize)
AP_SESSION_API void AP_SESSION_SessionReconfigureError(AP_SESSION_Interface *smi, AP_int64 sourceId, const char *errMsg, AP_TimestampSet *tss)
AP_SESSION_API HashMap * AP_SESSION_GetAllSessionStates(AP_SESSION_Interface *smi)