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
Hypertable::FsBroker::Lib::ConnectionHandlerFactory Class Reference

This class serves as the connection handler factory. More...

#include <ConnectionHandlerFactory.h>

Inheritance diagram for Hypertable::FsBroker::Lib::ConnectionHandlerFactory:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::FsBroker::Lib::ConnectionHandlerFactory:
Collaboration graph
[legend]

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

Commm_comm
 Pointer to comm layer. More...
 
ApplicationQueuePtr m_app_queue
 Application queue. More...
 
BrokerPtr m_broker
 Pointer to file system broker object. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

Hypertable::FsBroker::Lib::ConnectionHandlerFactory::ConnectionHandlerFactory ( Comm comm,
ApplicationQueuePtr app_queue,
BrokerPtr broker 
)
inline

Constructor.

Saves a copy of the pointers to the Comm, ApplicationQueue, and Broker objects which are required in the FsBroker::connection_handler constructor.

Parameters
commpointer to the AsyncComm object
app_queuepointer to the application work queue
brokerabstract pointer to the broker object

Definition at line 60 of file ConnectionHandlerFactory.h.

Member Function Documentation

virtual void Hypertable::FsBroker::Lib::ConnectionHandlerFactory::get_instance ( DispatchHandlerPtr dhp)
inlinevirtual

Returns a newly constructed FsBroker::connection_handler object.

Implements Hypertable::ConnectionHandlerFactory.

Definition at line 67 of file ConnectionHandlerFactory.h.

Member Data Documentation

ApplicationQueuePtr Hypertable::FsBroker::Lib::ConnectionHandlerFactory::m_app_queue
private

Application queue.

Definition at line 76 of file ConnectionHandlerFactory.h.

BrokerPtr Hypertable::FsBroker::Lib::ConnectionHandlerFactory::m_broker
private

Pointer to file system broker object.

Definition at line 79 of file ConnectionHandlerFactory.h.

Comm* Hypertable::FsBroker::Lib::ConnectionHandlerFactory::m_comm
private

Pointer to comm layer.

Definition at line 73 of file ConnectionHandlerFactory.h.


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