You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.4 KiB
42 lines
1.4 KiB
#ifndef __KERNEL_RSERVER_MODULE_HEADERS__
|
|
#define __KERNEL_RSERVER_MODULE_HEADERS__
|
|
|
|
#include "../components/base/basicEventHeap.h"
|
|
#include "../components/base/basicThread.h"
|
|
#include "../data/protocol/protocolREST.h"
|
|
#include "kernelModule.h"
|
|
|
|
class kernelModuleRemoteServer : public kernelModule, public basicThread
|
|
{
|
|
private:
|
|
|
|
// KAFKA_SETTINGS *m_pSettings;
|
|
protocolREST * m_pProtocol;
|
|
bool m_bConsumerEnabled;
|
|
basicEventHeap * m_pEventHeap;
|
|
// KAFKA_TEMPLATE ***m_pEvtTemplates;
|
|
|
|
int32_t partition;
|
|
int64_t start_offset;
|
|
char m_sServerIP[48];
|
|
char m_sServerName[48];
|
|
unsigned long long m_llTicks;
|
|
CSTR buildTemplate(CSTR tpl, uint32_t source_id, CSTR ts, CSTR uuid = NULL, CSTR az = NULL, CSTR range = NULL, CSTR width = NULL, CSTR el = NULL, CSTR lat = NULL, CSTR lon = NULL, CSTR alt = NULL, CSTR extID = NULL, CSTR src_Name = NULL,
|
|
CSTR src_IP = NULL, CSTR src_lat = NULL, CSTR src_lon = NULL, CSTR src_alt = NULL, CSTR src_rot_x = NULL, CSTR src_rot_y = NULL, CSTR src_rot_z = NULL);
|
|
|
|
protected:
|
|
|
|
virtual void m_fThreadProc(void);
|
|
|
|
public:
|
|
|
|
explicit kernelModuleRemoteServer(uint32_t ModuleID);
|
|
virtual ~kernelModuleRemoteServer();
|
|
|
|
virtual bool reloadSettings();
|
|
virtual bool startService();
|
|
virtual bool stopService(bool force = false);
|
|
virtual bool dispatchEvent(EVENT_CONTAINER * Evt);
|
|
};
|
|
|
|
#endif
|