2 * Autogenerated by Thrift Compiler (0.11.0)
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
7 #ifndef BaggageRestrictionManager_H
8 #define BaggageRestrictionManager_H
10 #include <thrift/TDispatchProcessor.h>
11 #include <thrift/async/TConcurrentClientSyncInfo.h>
12 #include "baggage_types.h"
14 namespace jaegertracing
{ namespace thrift
{
17 #pragma warning( push )
18 #pragma warning (disable : 4250 ) //inheriting methods via dominance
21 class BaggageRestrictionManagerIf
{
23 virtual ~BaggageRestrictionManagerIf() {}
26 * getBaggageRestrictions retrieves the baggage restrictions for a specific service.
27 * Usually, baggageRestrictions apply to all services however there may be situations
28 * where a baggageKey might only be allowed to be set by a specific service.
32 virtual void getBaggageRestrictions(std::vector
<BaggageRestriction
> & _return
, const std::string
& serviceName
) = 0;
35 class BaggageRestrictionManagerIfFactory
{
37 typedef BaggageRestrictionManagerIf Handler
;
39 virtual ~BaggageRestrictionManagerIfFactory() {}
41 virtual BaggageRestrictionManagerIf
* getHandler(const ::apache::thrift::TConnectionInfo
& connInfo
) = 0;
42 virtual void releaseHandler(BaggageRestrictionManagerIf
* /* handler */) = 0;
45 class BaggageRestrictionManagerIfSingletonFactory
: virtual public BaggageRestrictionManagerIfFactory
{
47 BaggageRestrictionManagerIfSingletonFactory(const ::std::shared_ptr
<BaggageRestrictionManagerIf
>& iface
) : iface_(iface
) {}
48 virtual ~BaggageRestrictionManagerIfSingletonFactory() {}
50 virtual BaggageRestrictionManagerIf
* getHandler(const ::apache::thrift::TConnectionInfo
&) {
53 virtual void releaseHandler(BaggageRestrictionManagerIf
* /* handler */) {}
56 ::std::shared_ptr
<BaggageRestrictionManagerIf
> iface_
;
59 class BaggageRestrictionManagerNull
: virtual public BaggageRestrictionManagerIf
{
61 virtual ~BaggageRestrictionManagerNull() {}
62 void getBaggageRestrictions(std::vector
<BaggageRestriction
> & /* _return */, const std::string
& /* serviceName */) {
67 typedef struct _BaggageRestrictionManager_getBaggageRestrictions_args__isset
{
68 _BaggageRestrictionManager_getBaggageRestrictions_args__isset() : serviceName(false) {}
70 } _BaggageRestrictionManager_getBaggageRestrictions_args__isset
;
72 class BaggageRestrictionManager_getBaggageRestrictions_args
{
75 BaggageRestrictionManager_getBaggageRestrictions_args(const BaggageRestrictionManager_getBaggageRestrictions_args
&);
76 BaggageRestrictionManager_getBaggageRestrictions_args
& operator=(const BaggageRestrictionManager_getBaggageRestrictions_args
&);
77 BaggageRestrictionManager_getBaggageRestrictions_args() : serviceName() {
80 virtual ~BaggageRestrictionManager_getBaggageRestrictions_args() throw();
81 std::string serviceName
;
83 _BaggageRestrictionManager_getBaggageRestrictions_args__isset __isset
;
85 void __set_serviceName(const std::string
& val
);
87 bool operator == (const BaggageRestrictionManager_getBaggageRestrictions_args
& rhs
) const
89 if (!(serviceName
== rhs
.serviceName
))
93 bool operator != (const BaggageRestrictionManager_getBaggageRestrictions_args
&rhs
) const {
94 return !(*this == rhs
);
97 bool operator < (const BaggageRestrictionManager_getBaggageRestrictions_args
& ) const;
99 uint32_t read(::apache::thrift::protocol::TProtocol
* iprot
);
100 uint32_t write(::apache::thrift::protocol::TProtocol
* oprot
) const;
105 class BaggageRestrictionManager_getBaggageRestrictions_pargs
{
109 virtual ~BaggageRestrictionManager_getBaggageRestrictions_pargs() throw();
110 const std::string
* serviceName
;
112 uint32_t write(::apache::thrift::protocol::TProtocol
* oprot
) const;
116 typedef struct _BaggageRestrictionManager_getBaggageRestrictions_result__isset
{
117 _BaggageRestrictionManager_getBaggageRestrictions_result__isset() : success(false) {}
119 } _BaggageRestrictionManager_getBaggageRestrictions_result__isset
;
121 class BaggageRestrictionManager_getBaggageRestrictions_result
{
124 BaggageRestrictionManager_getBaggageRestrictions_result(const BaggageRestrictionManager_getBaggageRestrictions_result
&);
125 BaggageRestrictionManager_getBaggageRestrictions_result
& operator=(const BaggageRestrictionManager_getBaggageRestrictions_result
&);
126 BaggageRestrictionManager_getBaggageRestrictions_result() {
129 virtual ~BaggageRestrictionManager_getBaggageRestrictions_result() throw();
130 std::vector
<BaggageRestriction
> success
;
132 _BaggageRestrictionManager_getBaggageRestrictions_result__isset __isset
;
134 void __set_success(const std::vector
<BaggageRestriction
> & val
);
136 bool operator == (const BaggageRestrictionManager_getBaggageRestrictions_result
& rhs
) const
138 if (!(success
== rhs
.success
))
142 bool operator != (const BaggageRestrictionManager_getBaggageRestrictions_result
&rhs
) const {
143 return !(*this == rhs
);
146 bool operator < (const BaggageRestrictionManager_getBaggageRestrictions_result
& ) const;
148 uint32_t read(::apache::thrift::protocol::TProtocol
* iprot
);
149 uint32_t write(::apache::thrift::protocol::TProtocol
* oprot
) const;
153 typedef struct _BaggageRestrictionManager_getBaggageRestrictions_presult__isset
{
154 _BaggageRestrictionManager_getBaggageRestrictions_presult__isset() : success(false) {}
156 } _BaggageRestrictionManager_getBaggageRestrictions_presult__isset
;
158 class BaggageRestrictionManager_getBaggageRestrictions_presult
{
162 virtual ~BaggageRestrictionManager_getBaggageRestrictions_presult() throw();
163 std::vector
<BaggageRestriction
> * success
;
165 _BaggageRestrictionManager_getBaggageRestrictions_presult__isset __isset
;
167 uint32_t read(::apache::thrift::protocol::TProtocol
* iprot
);
171 class BaggageRestrictionManagerClient
: virtual public BaggageRestrictionManagerIf
{
173 BaggageRestrictionManagerClient(std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> prot
) {
176 BaggageRestrictionManagerClient(std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> iprot
, std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> oprot
) {
177 setProtocol(iprot
,oprot
);
180 void setProtocol(std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> prot
) {
181 setProtocol(prot
,prot
);
183 void setProtocol(std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> iprot
, std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> oprot
) {
186 iprot_
= iprot
.get();
187 oprot_
= oprot
.get();
190 std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> getInputProtocol() {
193 std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> getOutputProtocol() {
196 void getBaggageRestrictions(std::vector
<BaggageRestriction
> & _return
, const std::string
& serviceName
);
197 void send_getBaggageRestrictions(const std::string
& serviceName
);
198 void recv_getBaggageRestrictions(std::vector
<BaggageRestriction
> & _return
);
200 std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> piprot_
;
201 std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> poprot_
;
202 ::apache::thrift::protocol::TProtocol
* iprot_
;
203 ::apache::thrift::protocol::TProtocol
* oprot_
;
206 class BaggageRestrictionManagerProcessor
: public ::apache::thrift::TDispatchProcessor
{
208 ::std::shared_ptr
<BaggageRestrictionManagerIf
> iface_
;
209 virtual bool dispatchCall(::apache::thrift::protocol::TProtocol
* iprot
, ::apache::thrift::protocol::TProtocol
* oprot
, const std::string
& fname
, int32_t seqid
, void* callContext
);
211 typedef void (BaggageRestrictionManagerProcessor::*ProcessFunction
)(int32_t, ::apache::thrift::protocol::TProtocol
*, ::apache::thrift::protocol::TProtocol
*, void*);
212 typedef std::map
<std::string
, ProcessFunction
> ProcessMap
;
213 ProcessMap processMap_
;
214 void process_getBaggageRestrictions(int32_t seqid
, ::apache::thrift::protocol::TProtocol
* iprot
, ::apache::thrift::protocol::TProtocol
* oprot
, void* callContext
);
216 BaggageRestrictionManagerProcessor(::std::shared_ptr
<BaggageRestrictionManagerIf
> iface
) :
218 processMap_
["getBaggageRestrictions"] = &BaggageRestrictionManagerProcessor::process_getBaggageRestrictions
;
221 virtual ~BaggageRestrictionManagerProcessor() {}
224 class BaggageRestrictionManagerProcessorFactory
: public ::apache::thrift::TProcessorFactory
{
226 BaggageRestrictionManagerProcessorFactory(const ::std::shared_ptr
< BaggageRestrictionManagerIfFactory
>& handlerFactory
) :
227 handlerFactory_(handlerFactory
) {}
229 ::std::shared_ptr
< ::apache::thrift::TProcessor
> getProcessor(const ::apache::thrift::TConnectionInfo
& connInfo
);
232 ::std::shared_ptr
< BaggageRestrictionManagerIfFactory
> handlerFactory_
;
235 class BaggageRestrictionManagerMultiface
: virtual public BaggageRestrictionManagerIf
{
237 BaggageRestrictionManagerMultiface(std::vector
<std::shared_ptr
<BaggageRestrictionManagerIf
> >& ifaces
) : ifaces_(ifaces
) {
239 virtual ~BaggageRestrictionManagerMultiface() {}
241 std::vector
<std::shared_ptr
<BaggageRestrictionManagerIf
> > ifaces_
;
242 BaggageRestrictionManagerMultiface() {}
243 void add(::std::shared_ptr
<BaggageRestrictionManagerIf
> iface
) {
244 ifaces_
.push_back(iface
);
247 void getBaggageRestrictions(std::vector
<BaggageRestriction
> & _return
, const std::string
& serviceName
) {
248 size_t sz
= ifaces_
.size();
250 for (; i
< (sz
- 1); ++i
) {
251 ifaces_
[i
]->getBaggageRestrictions(_return
, serviceName
);
253 ifaces_
[i
]->getBaggageRestrictions(_return
, serviceName
);
259 // The 'concurrent' client is a thread safe client that correctly handles
260 // out of order responses. It is slower than the regular client, so should
261 // only be used when you need to share a connection among multiple threads
262 class BaggageRestrictionManagerConcurrentClient
: virtual public BaggageRestrictionManagerIf
{
264 BaggageRestrictionManagerConcurrentClient(std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> prot
) {
267 BaggageRestrictionManagerConcurrentClient(std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> iprot
, std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> oprot
) {
268 setProtocol(iprot
,oprot
);
271 void setProtocol(std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> prot
) {
272 setProtocol(prot
,prot
);
274 void setProtocol(std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> iprot
, std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> oprot
) {
277 iprot_
= iprot
.get();
278 oprot_
= oprot
.get();
281 std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> getInputProtocol() {
284 std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> getOutputProtocol() {
287 void getBaggageRestrictions(std::vector
<BaggageRestriction
> & _return
, const std::string
& serviceName
);
288 int32_t send_getBaggageRestrictions(const std::string
& serviceName
);
289 void recv_getBaggageRestrictions(std::vector
<BaggageRestriction
> & _return
, const int32_t seqid
);
291 std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> piprot_
;
292 std::shared_ptr
< ::apache::thrift::protocol::TProtocol
> poprot_
;
293 ::apache::thrift::protocol::TProtocol
* iprot_
;
294 ::apache::thrift::protocol::TProtocol
* oprot_
;
295 ::apache::thrift::async::TConcurrentClientSyncInfo sync_
;
299 #pragma warning( pop )