proxygen
ProxyBackendHandler Class Reference
Inheritance diagram for ProxyBackendHandler:
wangle::InboundHandler< Rin, Rout > wangle::HandlerBase< InboundHandlerContext< Rout > >

Public Member Functions

 ProxyBackendHandler (DefaultPipeline *frontendPipeline)
 
void read (Context *, IOBufQueue &q) override
 
void readEOF (Context *) override
 
void readException (Context *, exception_wrapper e) override
 
- Public Member Functions inherited from wangle::InboundHandler< Rin, Rout >
 ~InboundHandler () override=default
 
virtual void read (Context *ctx, Rin msg)=0
 
virtual void transportActive (Context *ctx)
 
virtual void transportInactive (Context *ctx)
 
- Public Member Functions inherited from wangle::HandlerBase< InboundHandlerContext< Rout > >
virtual ~HandlerBase ()=default
 
virtual void attachPipeline (InboundHandlerContext< Rout > *)
 
virtual void detachPipeline (InboundHandlerContext< Rout > *)
 
InboundHandlerContext< Rout > * getContext ()
 

Private Attributes

DefaultPipelinefrontendPipeline_
 

Additional Inherited Members

- Public Types inherited from wangle::InboundHandler< Rin, Rout >
typedef Rin rin
 
typedef Rout rout
 
typedef folly::Unit win
 
typedef folly::Unit wout
 
typedef InboundHandlerContext< Rout > Context
 
- Static Public Attributes inherited from wangle::InboundHandler< Rin, Rout >
static const HandlerDir dir = HandlerDir::IN
 

Detailed Description

Definition at line 31 of file Proxy.cpp.

Constructor & Destructor Documentation

ProxyBackendHandler::ProxyBackendHandler ( DefaultPipeline frontendPipeline)
inlineexplicit

Definition at line 33 of file Proxy.cpp.

33  :
34  frontendPipeline_(frontendPipeline) {}
DefaultPipeline * frontendPipeline_
Definition: Proxy.cpp:51

Member Function Documentation

void ProxyBackendHandler::read ( Context ,
IOBufQueue q 
)
inlineoverride

Definition at line 36 of file Proxy.cpp.

References folly::IOBufQueue::move().

36  {
38  }
std::unique_ptr< folly::IOBuf > move()
Definition: IOBufQueue.h:459
DefaultPipeline * frontendPipeline_
Definition: Proxy.cpp:51
std::enable_if<!std::is_same< T, folly::Unit >::value, folly::Future< folly::Unit > >::type write(W msg)
Definition: Pipeline-inl.h:235
void ProxyBackendHandler::readEOF ( Context )
inlineoverridevirtual

Reimplemented from wangle::InboundHandler< Rin, Rout >.

Definition at line 40 of file Proxy.cpp.

References folly::INFO.

40  {
41  LOG(INFO) << "Connection closed by remote host";
43  }
std::enable_if<!std::is_same< T, folly::Unit >::value, folly::Future< folly::Unit > >::type close()
Definition: Pipeline-inl.h:258
DefaultPipeline * frontendPipeline_
Definition: Proxy.cpp:51
void ProxyBackendHandler::readException ( Context ,
exception_wrapper  e 
)
inlineoverridevirtual

Reimplemented from wangle::InboundHandler< Rin, Rout >.

Definition at line 45 of file Proxy.cpp.

References folly::exceptionStr().

45  {
46  LOG(ERROR) << "Remote error: " << exceptionStr(e);
48  }
std::enable_if<!std::is_same< T, folly::Unit >::value, folly::Future< folly::Unit > >::type close()
Definition: Pipeline-inl.h:258
fbstring exceptionStr(const std::exception &e)
DefaultPipeline * frontendPipeline_
Definition: Proxy.cpp:51

Member Data Documentation

DefaultPipeline* ProxyBackendHandler::frontendPipeline_
private

Definition at line 51 of file Proxy.cpp.


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