proxygen
CustomPipelineFactory Class Reference
Inheritance diagram for CustomPipelineFactory:
TestPipelineFactory wangle::ObservingPipelineFactory< std::shared_ptr< folly::IOBuf >, TestRoutingData > wangle::PipelineFactory< BytesPipeline > wangle::PipelineFactory< BytesPipeline > wangle::RoutingDataPipelineFactory< ObservingPipeline< std::shared_ptr< folly::IOBuf > >, TestRoutingData >

Public Member Functions

 CustomPipelineFactory ()
 
TestObsPipeline::Ptr newPipeline (std::shared_ptr< folly::AsyncTransportWrapper > socket, const TestRoutingData &routingData, RoutingDataHandler< TestRoutingData > *, std::shared_ptr< TransportInfo >) override
 
BytesPipeline::Ptr newPipeline (std::shared_ptr< AsyncTransportWrapper > sock) override
 
- Public Member Functions inherited from wangle::PipelineFactory< BytesPipeline >
virtual BytesPipeline::Ptr newPipeline (std::shared_ptr< folly::AsyncUDPSocket >, const folly::SocketAddress &)
 
virtual ~PipelineFactory ()=default
 
- Public Member Functions inherited from wangle::ObservingPipelineFactory< std::shared_ptr< folly::IOBuf >, TestRoutingData >
 ObservingPipelineFactory (std::shared_ptr< ServerPool< TestRoutingData, DefaultPipeline >> serverPool, std::shared_ptr< BroadcastPipelineFactory< std::shared_ptr< folly::IOBuf >, TestRoutingData >> broadcastPipelineFactory)
 
ObservingPipeline< std::shared_ptr< folly::IOBuf > >::Ptr newPipeline (std::shared_ptr< folly::AsyncTransportWrapper > socket, const TestRoutingData &routingData, RoutingDataHandler< TestRoutingData > *, std::shared_ptr< TransportInfo > transportInfo) override
 
virtual BroadcastPool< std::shared_ptr< folly::IOBuf >, TestRoutingData, DefaultPipeline > * broadcastPool (std::shared_ptr< BaseClientBootstrapFactory<>> clientFactory=nullptr)
 
- Public Member Functions inherited from wangle::RoutingDataPipelineFactory< ObservingPipeline< std::shared_ptr< folly::IOBuf > >, TestRoutingData >
virtual ~RoutingDataPipelineFactory ()
 

Public Attributes

TestRoutingData routingData_
 
std::atomic< int > routingPipelines_ {0}
 
- Public Attributes inherited from TestPipelineFactory
std::atomic< int > pipelines {0}
 
std::atomic< int > pipelines_ {0}
 

Additional Inherited Members

- Protected Attributes inherited from wangle::ObservingPipelineFactory< std::shared_ptr< folly::IOBuf >, TestRoutingData >
std::shared_ptr< ServerPool< TestRoutingData, DefaultPipeline > > serverPool_
 
std::shared_ptr< BroadcastPipelineFactory< std::shared_ptr< folly::IOBuf >, TestRoutingData > > broadcastPipelineFactory_
 
folly::ThreadLocalPtr< BroadcastPool< std::shared_ptr< folly::IOBuf >, TestRoutingData, DefaultPipeline > > broadcastPool_
 

Detailed Description

Definition at line 57 of file ObservingClientPipelineTest.cpp.

Constructor & Destructor Documentation

CustomPipelineFactory::CustomPipelineFactory ( )
inline

Member Function Documentation

TestObsPipeline::Ptr CustomPipelineFactory::newPipeline ( std::shared_ptr< folly::AsyncTransportWrapper socket,
const TestRoutingData routingData,
RoutingDataHandler< TestRoutingData > *  ,
std::shared_ptr< TransportInfo  
)
inlineoverridevirtual

Implements wangle::RoutingDataPipelineFactory< ObservingPipeline< std::shared_ptr< folly::IOBuf > >, TestRoutingData >.

Definition at line 67 of file ObservingClientPipelineTest.cpp.

References wangle::Pipeline< R, W >::create().

71  {
72  routingData_ = routingData;
73  auto pipeline = TestObsPipeline::create();
74  pipeline->addBack(AsyncSocketHandler(socket));
75  pipeline->finalize();
77  return pipeline;
78  }
NetworkSocket socket(int af, int type, int protocol)
Definition: NetOps.cpp:412
static Ptr create()
Definition: Pipeline.h:174
BytesPipeline::Ptr CustomPipelineFactory::newPipeline ( std::shared_ptr< AsyncTransportWrapper sock)
inlineoverridevirtual

Reimplemented from TestPipelineFactory.

Definition at line 80 of file ObservingClientPipelineTest.cpp.

References ADD_FAILURE, and TestPipelineFactory::newPipeline().

81  {
82  // Should not be called.
83  ADD_FAILURE() << "Should not be called, "
84  << "this function is typically called from "
85  << "makePipeline that has been overridden in this "
86  << "test to call a different version of newPipeline.";
88  }
BytesPipeline::Ptr newPipeline(std::shared_ptr< AsyncTransportWrapper >) override
#define ADD_FAILURE()
Definition: gtest.h:1808

Member Data Documentation

TestRoutingData CustomPipelineFactory::routingData_

Definition at line 90 of file ObservingClientPipelineTest.cpp.

std::atomic<int> CustomPipelineFactory::routingPipelines_ {0}

Definition at line 91 of file ObservingClientPipelineTest.cpp.


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