A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pdb::SimpleRequestHandler< RequestType > Class Template Reference

#include <SimpleRequestHandler.h>

+ Inheritance diagram for pdb::SimpleRequestHandler< RequestType >:
+ Collaboration diagram for pdb::SimpleRequestHandler< RequestType >:

Public Member Functions

 SimpleRequestHandler (std::function< std::pair< bool, std::string >(Handle< RequestType >, PDBCommunicatorPtr)> useMe)
 
PDBCommWorkPtr clone ()
 
void execute (PDBBuzzerPtr callerBuzzer)
 
- Public Member Functions inherited from pdb::PDBCommWork
PDBCommunicatorPtr getCommunicator ()
 
void setGuts (PDBCommunicatorPtr toMe)
 
- Public Member Functions inherited from pdb::PDBWork
virtual PDBBuzzerPtr getLinkedBuzzer ()
 
void execute (PDBWorkerQueue *parent, PDBBuzzerPtr callerBuzzer)
 
PDBWorkerPtr getWorker ()
 
PDBLoggerPtr getLogger ()
 

Private Attributes

function< pair< bool,
std::string >Handle
< RequestType >
, PDBCommunicatorPtr)> 
processRequest
 

Detailed Description

template<class RequestType>
class pdb::SimpleRequestHandler< RequestType >

Definition at line 36 of file SimpleRequestHandler.h.

Constructor & Destructor Documentation

template<class RequestType >
pdb::SimpleRequestHandler< RequestType >::SimpleRequestHandler ( std::function< std::pair< bool, std::string >(Handle< RequestType >, PDBCommunicatorPtr)>  useMe)
inline

Definition at line 40 of file SimpleRequestHandler.h.

Member Function Documentation

template<class RequestType >
PDBCommWorkPtr pdb::SimpleRequestHandler< RequestType >::clone ( )
inlinevirtual

Implements pdb::PDBCommWork.

Definition at line 45 of file SimpleRequestHandler.h.

template<class RequestType >
void pdb::SimpleRequestHandler< RequestType >::execute ( PDBBuzzerPtr  callerBuzzer)
inlinevirtual

JiaNote: we need free memory and return here

JiaNote: we need free memory here

Implements pdb::PDBWork.

Definition at line 49 of file SimpleRequestHandler.h.

+ Here is the call graph for this function:

Member Data Documentation

template<class RequestType >
function<pair<bool, std::string>Handle<RequestType>, PDBCommunicatorPtr)> pdb::SimpleRequestHandler< RequestType >::processRequest
private

Definition at line 97 of file SimpleRequestHandler.h.


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