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.
 
 
 
 
 
 

57 lines
2.6 KiB

#ifndef __KERNEL_KAFKA_MODULE_HEADERS__
#define __KERNEL_KAFKA_MODULE_HEADERS__
#include "kernelModule.h"
#include "../components/base/basicThread.h"
#include "../components/base/basicEventHeap.h"
#include "../data/protocol/protocolREST.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 kernelModuleKafka( uint32_t ModuleID );
virtual ~kernelModuleKafka();
virtual bool reloadSettings();
virtual bool startService();
virtual bool stopService( bool force = false );
virtual bool dispatchEvent(EVENT_CONTAINER *Evt);
};
#endif