Connection handler for file system brokers. More...
#include <ConnectionHandler.h>
Public Member Functions | |
ConnectionHandler (Comm *comm, ApplicationQueuePtr &app_queue, BrokerPtr &broker) | |
Constructor. More... | |
virtual void | handle (EventPtr &event) |
Handles incoming events from client connections. More... | |
Public Member Functions inherited from Hypertable::DispatchHandler | |
virtual | ~DispatchHandler () |
Destructor. More... | |
Private Attributes | |
Comm * | m_comm |
Pointer to comm layer. More... | |
ApplicationQueuePtr | m_app_queue |
Application queue. More... | |
BrokerPtr | m_broker |
Pointer to file system broker object. More... | |
Connection handler for file system brokers.
Definition at line 43 of file ConnectionHandler.h.
|
inline |
Constructor.
Initializes m_comm with comm
, m_app_queue with app_queue
, and m_broker with broker
.
comm | Pointer to comm layer |
app_queue | Application queue |
broker | Pointer to file system broker object |
Definition at line 52 of file ConnectionHandler.h.
|
virtual |
Handles incoming events from client connections.
For Event::MESSAGE events, this method inspects the command code and creates an appropriate request handler and adds it to the application queue.
event | Comm layer event |
Implements Hypertable::DispatchHandler.
Definition at line 46 of file ConnectionHandler.cc.
|
private |
Application queue.
Definition at line 68 of file ConnectionHandler.h.
|
private |
Pointer to file system broker object.
Definition at line 71 of file ConnectionHandler.h.
|
private |
Pointer to comm layer.
Definition at line 65 of file ConnectionHandler.h.