]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/jaeger-client-cpp/src/jaegertracing/thrift-gen/Dependency.h
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / jaeger-client-cpp / src / jaegertracing / thrift-gen / Dependency.h
1 /**
2 * Autogenerated by Thrift Compiler (0.11.0)
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 * @generated
6 */
7 #ifndef Dependency_H
8 #define Dependency_H
9
10 #include <thrift/TDispatchProcessor.h>
11 #include <thrift/async/TConcurrentClientSyncInfo.h>
12 #include "dependency_types.h"
13
14 namespace jaegertracing { namespace thrift {
15
16 #ifdef _MSC_VER
17 #pragma warning( push )
18 #pragma warning (disable : 4250 ) //inheriting methods via dominance
19 #endif
20
21 class DependencyIf {
22 public:
23 virtual ~DependencyIf() {}
24 virtual void getDependenciesForTrace(Dependencies& _return, const std::string& traceId) = 0;
25 virtual void saveDependencies(const Dependencies& dependencies) = 0;
26 };
27
28 class DependencyIfFactory {
29 public:
30 typedef DependencyIf Handler;
31
32 virtual ~DependencyIfFactory() {}
33
34 virtual DependencyIf* getHandler(const ::apache::thrift::TConnectionInfo& connInfo) = 0;
35 virtual void releaseHandler(DependencyIf* /* handler */) = 0;
36 };
37
38 class DependencyIfSingletonFactory : virtual public DependencyIfFactory {
39 public:
40 DependencyIfSingletonFactory(const ::std::shared_ptr<DependencyIf>& iface) : iface_(iface) {}
41 virtual ~DependencyIfSingletonFactory() {}
42
43 virtual DependencyIf* getHandler(const ::apache::thrift::TConnectionInfo&) {
44 return iface_.get();
45 }
46 virtual void releaseHandler(DependencyIf* /* handler */) {}
47
48 protected:
49 ::std::shared_ptr<DependencyIf> iface_;
50 };
51
52 class DependencyNull : virtual public DependencyIf {
53 public:
54 virtual ~DependencyNull() {}
55 void getDependenciesForTrace(Dependencies& /* _return */, const std::string& /* traceId */) {
56 return;
57 }
58 void saveDependencies(const Dependencies& /* dependencies */) {
59 return;
60 }
61 };
62
63
64 class Dependency_getDependenciesForTrace_args {
65 public:
66
67 Dependency_getDependenciesForTrace_args(const Dependency_getDependenciesForTrace_args&);
68 Dependency_getDependenciesForTrace_args& operator=(const Dependency_getDependenciesForTrace_args&);
69 Dependency_getDependenciesForTrace_args() : traceId() {
70 }
71
72 virtual ~Dependency_getDependenciesForTrace_args() throw();
73 std::string traceId;
74
75 void __set_traceId(const std::string& val);
76
77 bool operator == (const Dependency_getDependenciesForTrace_args & rhs) const
78 {
79 if (!(traceId == rhs.traceId))
80 return false;
81 return true;
82 }
83 bool operator != (const Dependency_getDependenciesForTrace_args &rhs) const {
84 return !(*this == rhs);
85 }
86
87 bool operator < (const Dependency_getDependenciesForTrace_args & ) const;
88
89 uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
90 uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
91
92 };
93
94
95 class Dependency_getDependenciesForTrace_pargs {
96 public:
97
98
99 virtual ~Dependency_getDependenciesForTrace_pargs() throw();
100 const std::string* traceId;
101
102 uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
103
104 };
105
106 typedef struct _Dependency_getDependenciesForTrace_result__isset {
107 _Dependency_getDependenciesForTrace_result__isset() : success(false) {}
108 bool success :1;
109 } _Dependency_getDependenciesForTrace_result__isset;
110
111 class Dependency_getDependenciesForTrace_result {
112 public:
113
114 Dependency_getDependenciesForTrace_result(const Dependency_getDependenciesForTrace_result&);
115 Dependency_getDependenciesForTrace_result& operator=(const Dependency_getDependenciesForTrace_result&);
116 Dependency_getDependenciesForTrace_result() {
117 }
118
119 virtual ~Dependency_getDependenciesForTrace_result() throw();
120 Dependencies success;
121
122 _Dependency_getDependenciesForTrace_result__isset __isset;
123
124 void __set_success(const Dependencies& val);
125
126 bool operator == (const Dependency_getDependenciesForTrace_result & rhs) const
127 {
128 if (!(success == rhs.success))
129 return false;
130 return true;
131 }
132 bool operator != (const Dependency_getDependenciesForTrace_result &rhs) const {
133 return !(*this == rhs);
134 }
135
136 bool operator < (const Dependency_getDependenciesForTrace_result & ) const;
137
138 uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
139 uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
140
141 };
142
143 typedef struct _Dependency_getDependenciesForTrace_presult__isset {
144 _Dependency_getDependenciesForTrace_presult__isset() : success(false) {}
145 bool success :1;
146 } _Dependency_getDependenciesForTrace_presult__isset;
147
148 class Dependency_getDependenciesForTrace_presult {
149 public:
150
151
152 virtual ~Dependency_getDependenciesForTrace_presult() throw();
153 Dependencies* success;
154
155 _Dependency_getDependenciesForTrace_presult__isset __isset;
156
157 uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
158
159 };
160
161 typedef struct _Dependency_saveDependencies_args__isset {
162 _Dependency_saveDependencies_args__isset() : dependencies(false) {}
163 bool dependencies :1;
164 } _Dependency_saveDependencies_args__isset;
165
166 class Dependency_saveDependencies_args {
167 public:
168
169 Dependency_saveDependencies_args(const Dependency_saveDependencies_args&);
170 Dependency_saveDependencies_args& operator=(const Dependency_saveDependencies_args&);
171 Dependency_saveDependencies_args() {
172 }
173
174 virtual ~Dependency_saveDependencies_args() throw();
175 Dependencies dependencies;
176
177 _Dependency_saveDependencies_args__isset __isset;
178
179 void __set_dependencies(const Dependencies& val);
180
181 bool operator == (const Dependency_saveDependencies_args & rhs) const
182 {
183 if (!(dependencies == rhs.dependencies))
184 return false;
185 return true;
186 }
187 bool operator != (const Dependency_saveDependencies_args &rhs) const {
188 return !(*this == rhs);
189 }
190
191 bool operator < (const Dependency_saveDependencies_args & ) const;
192
193 uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
194 uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
195
196 };
197
198
199 class Dependency_saveDependencies_pargs {
200 public:
201
202
203 virtual ~Dependency_saveDependencies_pargs() throw();
204 const Dependencies* dependencies;
205
206 uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
207
208 };
209
210 class DependencyClient : virtual public DependencyIf {
211 public:
212 DependencyClient(std::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) {
213 setProtocol(prot);
214 }
215 DependencyClient(std::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, std::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) {
216 setProtocol(iprot,oprot);
217 }
218 private:
219 void setProtocol(std::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) {
220 setProtocol(prot,prot);
221 }
222 void setProtocol(std::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, std::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) {
223 piprot_=iprot;
224 poprot_=oprot;
225 iprot_ = iprot.get();
226 oprot_ = oprot.get();
227 }
228 public:
229 std::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() {
230 return piprot_;
231 }
232 std::shared_ptr< ::apache::thrift::protocol::TProtocol> getOutputProtocol() {
233 return poprot_;
234 }
235 void getDependenciesForTrace(Dependencies& _return, const std::string& traceId);
236 void send_getDependenciesForTrace(const std::string& traceId);
237 void recv_getDependenciesForTrace(Dependencies& _return);
238 void saveDependencies(const Dependencies& dependencies);
239 void send_saveDependencies(const Dependencies& dependencies);
240 protected:
241 std::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot_;
242 std::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot_;
243 ::apache::thrift::protocol::TProtocol* iprot_;
244 ::apache::thrift::protocol::TProtocol* oprot_;
245 };
246
247 class DependencyProcessor : public ::apache::thrift::TDispatchProcessor {
248 protected:
249 ::std::shared_ptr<DependencyIf> iface_;
250 virtual bool dispatchCall(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, const std::string& fname, int32_t seqid, void* callContext);
251 private:
252 typedef void (DependencyProcessor::*ProcessFunction)(int32_t, ::apache::thrift::protocol::TProtocol*, ::apache::thrift::protocol::TProtocol*, void*);
253 typedef std::map<std::string, ProcessFunction> ProcessMap;
254 ProcessMap processMap_;
255 void process_getDependenciesForTrace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
256 void process_saveDependencies(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
257 public:
258 DependencyProcessor(::std::shared_ptr<DependencyIf> iface) :
259 iface_(iface) {
260 processMap_["getDependenciesForTrace"] = &DependencyProcessor::process_getDependenciesForTrace;
261 processMap_["saveDependencies"] = &DependencyProcessor::process_saveDependencies;
262 }
263
264 virtual ~DependencyProcessor() {}
265 };
266
267 class DependencyProcessorFactory : public ::apache::thrift::TProcessorFactory {
268 public:
269 DependencyProcessorFactory(const ::std::shared_ptr< DependencyIfFactory >& handlerFactory) :
270 handlerFactory_(handlerFactory) {}
271
272 ::std::shared_ptr< ::apache::thrift::TProcessor > getProcessor(const ::apache::thrift::TConnectionInfo& connInfo);
273
274 protected:
275 ::std::shared_ptr< DependencyIfFactory > handlerFactory_;
276 };
277
278 class DependencyMultiface : virtual public DependencyIf {
279 public:
280 DependencyMultiface(std::vector<std::shared_ptr<DependencyIf> >& ifaces) : ifaces_(ifaces) {
281 }
282 virtual ~DependencyMultiface() {}
283 protected:
284 std::vector<std::shared_ptr<DependencyIf> > ifaces_;
285 DependencyMultiface() {}
286 void add(::std::shared_ptr<DependencyIf> iface) {
287 ifaces_.push_back(iface);
288 }
289 public:
290 void getDependenciesForTrace(Dependencies& _return, const std::string& traceId) {
291 size_t sz = ifaces_.size();
292 size_t i = 0;
293 for (; i < (sz - 1); ++i) {
294 ifaces_[i]->getDependenciesForTrace(_return, traceId);
295 }
296 ifaces_[i]->getDependenciesForTrace(_return, traceId);
297 return;
298 }
299
300 void saveDependencies(const Dependencies& dependencies) {
301 size_t sz = ifaces_.size();
302 size_t i = 0;
303 for (; i < (sz - 1); ++i) {
304 ifaces_[i]->saveDependencies(dependencies);
305 }
306 ifaces_[i]->saveDependencies(dependencies);
307 }
308
309 };
310
311 // The 'concurrent' client is a thread safe client that correctly handles
312 // out of order responses. It is slower than the regular client, so should
313 // only be used when you need to share a connection among multiple threads
314 class DependencyConcurrentClient : virtual public DependencyIf {
315 public:
316 DependencyConcurrentClient(std::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) {
317 setProtocol(prot);
318 }
319 DependencyConcurrentClient(std::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, std::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) {
320 setProtocol(iprot,oprot);
321 }
322 private:
323 void setProtocol(std::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) {
324 setProtocol(prot,prot);
325 }
326 void setProtocol(std::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, std::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) {
327 piprot_=iprot;
328 poprot_=oprot;
329 iprot_ = iprot.get();
330 oprot_ = oprot.get();
331 }
332 public:
333 std::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() {
334 return piprot_;
335 }
336 std::shared_ptr< ::apache::thrift::protocol::TProtocol> getOutputProtocol() {
337 return poprot_;
338 }
339 void getDependenciesForTrace(Dependencies& _return, const std::string& traceId);
340 int32_t send_getDependenciesForTrace(const std::string& traceId);
341 void recv_getDependenciesForTrace(Dependencies& _return, const int32_t seqid);
342 void saveDependencies(const Dependencies& dependencies);
343 void send_saveDependencies(const Dependencies& dependencies);
344 protected:
345 std::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot_;
346 std::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot_;
347 ::apache::thrift::protocol::TProtocol* iprot_;
348 ::apache::thrift::protocol::TProtocol* oprot_;
349 ::apache::thrift::async::TConcurrentClientSyncInfo sync_;
350 };
351
352 #ifdef _MSC_VER
353 #pragma warning( pop )
354 #endif
355
356 }} // namespace
357
358 #endif