0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
Hyperspace::ServerKeepaliveHandler Class Reference

#include <ServerKeepaliveHandler.h>

Inheritance diagram for Hyperspace::ServerKeepaliveHandler:
Inheritance graph
[legend]
Collaboration diagram for Hyperspace::ServerKeepaliveHandler:
Collaboration graph
[legend]

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

Commm_comm
 
Masterm_master
 
struct sockaddr_in m_send_addr
 
ApplicationQueuePtr m_app_queue_ptr
 
std::mutex m_mutex
 
bool m_shutdown {}
 

Detailed Description

Definition at line 39 of file ServerKeepaliveHandler.h.

Constructor & Destructor Documentation

ServerKeepaliveHandler::ServerKeepaliveHandler ( Comm comm,
Master master,
ApplicationQueuePtr app_queue_ptr 
)

Definition at line 41 of file ServerKeepaliveHandler.cc.

Member Function Documentation

void ServerKeepaliveHandler::deliver_event_notifications ( uint64_t  session_id)

Definition at line 131 of file ServerKeepaliveHandler.cc.

void ServerKeepaliveHandler::handle ( Hypertable::EventPtr event_ptr)
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.

Parameters
event_ptrsmart 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.

Member Data Documentation

ApplicationQueuePtr Hyperspace::ServerKeepaliveHandler::m_app_queue_ptr
private

Definition at line 52 of file ServerKeepaliveHandler.h.

Comm* Hyperspace::ServerKeepaliveHandler::m_comm
private

Definition at line 49 of file ServerKeepaliveHandler.h.

Master* Hyperspace::ServerKeepaliveHandler::m_master
private

Definition at line 50 of file ServerKeepaliveHandler.h.

std::mutex Hyperspace::ServerKeepaliveHandler::m_mutex
private

Definition at line 53 of file ServerKeepaliveHandler.h.

struct sockaddr_in Hyperspace::ServerKeepaliveHandler::m_send_addr
private

Definition at line 51 of file ServerKeepaliveHandler.h.

bool Hyperspace::ServerKeepaliveHandler::m_shutdown {}
private

Definition at line 54 of file ServerKeepaliveHandler.h.


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