This class serves as the connection handler factory. More...
#include <ConnectionHandlerFactory.h>
Public Member Functions | |
ConnectionHandlerFactory (Comm *comm, ApplicationQueuePtr &app_queue, BrokerPtr &broker) | |
Constructor. More... | |
virtual void | get_instance (DispatchHandlerPtr &dhp) |
Returns a newly constructed FsBroker::connection_handler object. More... | |
Public Member Functions inherited from Hypertable::ConnectionHandlerFactory | |
virtual | ~ConnectionHandlerFactory () |
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... | |
This class serves as the connection handler factory.
An object of this class is registered with the AsyncComm system by passing it as a parameter to the Listen method. When a connection request arrives, the newInstance method of this class is called which creates an FsBroker::connection_handler that will be used to service the connection.
Definition at line 48 of file ConnectionHandlerFactory.h.
|
inline |
Constructor.
Saves a copy of the pointers to the Comm, ApplicationQueue, and Broker objects which are required in the FsBroker::connection_handler constructor.
comm | pointer to the AsyncComm object |
app_queue | pointer to the application work queue |
broker | abstract pointer to the broker object |
Definition at line 60 of file ConnectionHandlerFactory.h.
|
inlinevirtual |
Returns a newly constructed FsBroker::connection_handler object.
Implements Hypertable::ConnectionHandlerFactory.
Definition at line 67 of file ConnectionHandlerFactory.h.
|
private |
Application queue.
Definition at line 76 of file ConnectionHandlerFactory.h.
|
private |
Pointer to file system broker object.
Definition at line 79 of file ConnectionHandlerFactory.h.
|
private |
Pointer to comm layer.
Definition at line 73 of file ConnectionHandlerFactory.h.