#include <ServerKeepaliveHandler.h>
Public Member Functions | |
ServerKeepaliveHandler (Comm *comm, Master *master, ApplicationQueuePtr &app_queue_ptr) | |
void | start () |
virtual void | handle (Hypertable::EventPtr &event_ptr) |
Callback method. More... | |
void | deliver_event_notifications (uint64_t session_id) |
void | shutdown () |
Public Member Functions inherited from Hypertable::DispatchHandler | |
virtual | ~DispatchHandler () |
Destructor. More... | |
Private Attributes | |
Comm * | m_comm |
Master * | m_master |
struct sockaddr_in | m_send_addr |
ApplicationQueuePtr | m_app_queue_ptr |
std::mutex | m_mutex |
bool | m_shutdown {} |
Definition at line 39 of file ServerKeepaliveHandler.h.
ServerKeepaliveHandler::ServerKeepaliveHandler | ( | Comm * | comm, |
Master * | master, | ||
ApplicationQueuePtr & | app_queue_ptr | ||
) |
Definition at line 41 of file ServerKeepaliveHandler.cc.
void ServerKeepaliveHandler::deliver_event_notifications | ( | uint64_t | session_id | ) |
Definition at line 131 of file ServerKeepaliveHandler.cc.
|
virtual |
Callback method.
When the Comm layer needs to deliver an event to the application, this method is called to do so. The set of event types include, CONNECTION_ESTABLISHED, DISCONNECT, MESSAGE, ERROR, and TIMER.
event_ptr | smart pointer to Event object |
Implements Hypertable::DispatchHandler.
Definition at line 63 of file ServerKeepaliveHandler.cc.
void ServerKeepaliveHandler::shutdown | ( | ) |
Definition at line 161 of file ServerKeepaliveHandler.cc.
void ServerKeepaliveHandler::start | ( | ) |
Definition at line 50 of file ServerKeepaliveHandler.cc.
|
private |
Definition at line 52 of file ServerKeepaliveHandler.h.
|
private |
Definition at line 49 of file ServerKeepaliveHandler.h.
|
private |
Definition at line 50 of file ServerKeepaliveHandler.h.
|
private |
Definition at line 53 of file ServerKeepaliveHandler.h.
|
private |
Definition at line 51 of file ServerKeepaliveHandler.h.
|
private |
Definition at line 54 of file ServerKeepaliveHandler.h.