EMANE  1.2.1
EMANE::EventService Class Reference

#include <eventservice.h>

Inheritance diagram for EMANE::EventService:
EMANE::Utils::Singleton< EventService >

Public Member Functions

 ~EventService ()
 
void open (const INETAddr &eventChannelAddress, const std::string &sDevice, int iTTL, bool loopbackEnable, const uuid_t &uuid)
 
void close ()
 
void registerEventServiceUser (BuildId buildId, EventServiceUser *pEventServiceUser, NEMId=0)
 
void registerEvent (BuildId buildId, EventId eventId)
 
void sendEvent (BuildId buildId, NEMId nemId, const Event &event) const
 
void sendEvent (BuildId buildId, NEMId nemId, EventId eventId, const Serialization &serialization) const
 
void processEventMessage (NEMId nemId, EventId eventId, const Serialization &serialization, NEMId ignoreNEM={}) const
 
void setStatEventCountRowLimit (size_t rows)
 

Static Public Member Functions

static EventServiceinstance ()
 
static void destroy ()
 

Protected Member Functions

 EventService ()
 

Detailed Description

Definition at line 57 of file eventservice.h.

Constructor & Destructor Documentation

◆ ~EventService()

EMANE::EventService::~EventService ( )

Definition at line 57 of file eventservice.cc.

◆ EventService()

EMANE::EventService::EventService ( )
protected

Definition at line 48 of file eventservice.cc.

Member Function Documentation

◆ close()

void EMANE::EventService::close ( )

◆ destroy()

static void EMANE::Utils::Singleton< EventService >::destroy ( )
inlinestaticinherited

Destroys the single instance of type T. Once destroyed it cannot be used or recreated. This is not a thread-safe method.

Definition at line 67 of file singleton.h.

◆ instance()

static EventService * EMANE::Utils::Singleton< EventService >::instance ( )
inlinestaticinherited

Provides thread-safe access to a single instance of type T. It does not provide thread-safety for T methods.

Returns
A pointer to T

Definition at line 56 of file singleton.h.

◆ open()

void EMANE::EventService::open ( const INETAddr eventChannelAddress,
const std::string &  sDevice,
int  iTTL,
bool  loopbackEnable,
const uuid_t &  uuid 
)

Definition at line 92 of file eventservice.cc.

◆ processEventMessage()

void EMANE::EventService::processEventMessage ( NEMId  nemId,
EventId  eventId,
const Serialization serialization,
NEMId  ignoreNEM = {} 
) const

Definition at line 274 of file eventservice.cc.

◆ registerEvent()

void EMANE::EventService::registerEvent ( BuildId  buildId,
EventId  eventId 
)

Definition at line 67 of file eventservice.cc.

◆ registerEventServiceUser()

void EMANE::EventService::registerEventServiceUser ( BuildId  buildId,
EventServiceUser pEventServiceUser,
NEMId  nemId = 0 
)

Definition at line 85 of file eventservice.cc.

◆ sendEvent() [1/2]

void EMANE::EventService::sendEvent ( BuildId  buildId,
NEMId  nemId,
const Event event 
) const

Definition at line 152 of file eventservice.cc.

◆ sendEvent() [2/2]

void EMANE::EventService::sendEvent ( BuildId  buildId,
NEMId  nemId,
EventId  eventId,
const Serialization serialization 
) const

Definition at line 160 of file eventservice.cc.

◆ setStatEventCountRowLimit()

void EMANE::EventService::setStatEventCountRowLimit ( size_t  rows)

Definition at line 311 of file eventservice.cc.


The documentation for this class was generated from the following files: