proxygen
wangle::MockAcceptRoutingHandler Class Reference

#include <Mocks.h>

Inheritance diagram for wangle::MockAcceptRoutingHandler:
wangle::AcceptRoutingHandler< DefaultPipeline, char > wangle::InboundHandler< AcceptPipelineType > wangle::RoutingDataHandler< R >::Callback wangle::HandlerBase< InboundHandlerContext< AcceptPipelineType > >

Public Member Functions

 MockAcceptRoutingHandler (ServerBootstrap< DefaultPipeline > *server, std::shared_ptr< RoutingDataHandlerFactory< char >> routingHandlerFactory, std::shared_ptr< RoutingDataPipelineFactory< DefaultPipeline, char >> childPipelineFactory, DefaultPipeline::Ptr routingPipeline)
 
- Public Member Functions inherited from wangle::AcceptRoutingHandler< DefaultPipeline, char >
 AcceptRoutingHandler (ServerBootstrap< DefaultPipeline > *server, std::shared_ptr< RoutingDataHandlerFactory< char >> routingHandlerFactory, std::shared_ptr< RoutingDataPipelineFactory< DefaultPipeline, char >> childPipelineFactory)
 
void read (Context *ctx, AcceptPipelineType conn) override
 
void readEOF (Context *ctx) override
 
void readException (Context *ctx, folly::exception_wrapper ex) override
 
void onRoutingData (uint64_t connId, typename RoutingDataHandler< char >::RoutingData &routingData) override
 
void onError (uint64_t connId, folly::exception_wrapper ex) override
 
size_t getRoutingPipelineCount () const
 
- Public Member Functions inherited from wangle::InboundHandler< AcceptPipelineType >
 ~InboundHandler () override=default
 
virtual void transportActive (Context *ctx)
 
virtual void transportInactive (Context *ctx)
 
- Public Member Functions inherited from wangle::HandlerBase< InboundHandlerContext< AcceptPipelineType > >
virtual ~HandlerBase ()=default
 
virtual void attachPipeline (InboundHandlerContext< AcceptPipelineType > *)
 
virtual void detachPipeline (InboundHandlerContext< AcceptPipelineType > *)
 
InboundHandlerContext< AcceptPipelineType > * getContext ()
 
- Public Member Functions inherited from wangle::RoutingDataHandler< R >::Callback
virtual ~Callback ()
 
virtual void onRoutingData (uint64_t connId, RoutingData &routingData)=0
 

Protected Member Functions

DefaultPipeline::Ptr newRoutingPipeline () override
 

Protected Attributes

DefaultPipeline::Ptr routingPipeline_
 

Additional Inherited Members

- Public Types inherited from wangle::InboundHandler< AcceptPipelineType >
typedef AcceptPipelineType rin
 
typedef AcceptPipelineType rout
 
typedef folly::Unit win
 
typedef folly::Unit wout
 
typedef InboundHandlerContext< AcceptPipelineTypeContext
 
- Static Public Attributes inherited from wangle::InboundHandler< AcceptPipelineType >
static const HandlerDir dir
 

Detailed Description

An AcceptRoutingHandler that handles a specific routingPipeline.

Definition at line 56 of file Mocks.h.

Constructor & Destructor Documentation

wangle::MockAcceptRoutingHandler::MockAcceptRoutingHandler ( ServerBootstrap< DefaultPipeline > *  server,
std::shared_ptr< RoutingDataHandlerFactory< char >>  routingHandlerFactory,
std::shared_ptr< RoutingDataPipelineFactory< DefaultPipeline, char >>  childPipelineFactory,
DefaultPipeline::Ptr  routingPipeline 
)
inline

Definition at line 59 of file Mocks.h.

66  server,
67  routingHandlerFactory,
68  childPipelineFactory),
69  routingPipeline_(routingPipeline) {}
AcceptRoutingHandler(ServerBootstrap< DefaultPipeline > *server, std::shared_ptr< RoutingDataHandlerFactory< char >> routingHandlerFactory, std::shared_ptr< RoutingDataPipelineFactory< DefaultPipeline, char >> childPipelineFactory)
DefaultPipeline::Ptr routingPipeline_
Definition: Mocks.h:75

Member Function Documentation

DefaultPipeline::Ptr wangle::MockAcceptRoutingHandler::newRoutingPipeline ( )
inlineoverrideprotectedvirtual

Reimplemented from wangle::AcceptRoutingHandler< DefaultPipeline, char >.

Definition at line 72 of file Mocks.h.

72  {
73  return routingPipeline_;
74  }
DefaultPipeline::Ptr routingPipeline_
Definition: Mocks.h:75

Member Data Documentation

DefaultPipeline::Ptr wangle::MockAcceptRoutingHandler::routingPipeline_
protected

Definition at line 75 of file Mocks.h.


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