| 94 |
ashish |
1 |
#
|
| 3431 |
rajveer |
2 |
# Autogenerated by Thrift Compiler (0.7.0)
|
| 94 |
ashish |
3 |
#
|
|
|
4 |
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
#
|
|
|
6 |
|
|
|
7 |
from thrift.Thrift import *
|
|
|
8 |
from ttypes import *
|
|
|
9 |
from thrift.Thrift import TProcessor
|
|
|
10 |
from thrift.transport import TTransport
|
| 3431 |
rajveer |
11 |
from thrift.protocol import TBinaryProtocol, TProtocol
|
| 94 |
ashish |
12 |
try:
|
|
|
13 |
from thrift.protocol import fastbinary
|
|
|
14 |
except:
|
|
|
15 |
fastbinary = None
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
class Iface:
|
|
|
19 |
def getPropetry(self, propertyName):
|
|
|
20 |
"""
|
|
|
21 |
Parameters:
|
|
|
22 |
- propertyName
|
|
|
23 |
"""
|
|
|
24 |
pass
|
|
|
25 |
|
|
|
26 |
def loadProperty(self, propertyName, propertyValue):
|
|
|
27 |
"""
|
|
|
28 |
Parameters:
|
|
|
29 |
- propertyName
|
|
|
30 |
- propertyValue
|
|
|
31 |
"""
|
|
|
32 |
pass
|
|
|
33 |
|
| 2926 |
rajveer |
34 |
def reloadProperties(self, ):
|
|
|
35 |
pass
|
| 94 |
ashish |
36 |
|
| 2926 |
rajveer |
37 |
|
| 94 |
ashish |
38 |
class Client(Iface):
|
|
|
39 |
def __init__(self, iprot, oprot=None):
|
|
|
40 |
self._iprot = self._oprot = iprot
|
| 3431 |
rajveer |
41 |
if oprot is not None:
|
| 94 |
ashish |
42 |
self._oprot = oprot
|
|
|
43 |
self._seqid = 0
|
|
|
44 |
|
|
|
45 |
def getPropetry(self, propertyName):
|
|
|
46 |
"""
|
|
|
47 |
Parameters:
|
|
|
48 |
- propertyName
|
|
|
49 |
"""
|
|
|
50 |
self.send_getPropetry(propertyName)
|
|
|
51 |
return self.recv_getPropetry()
|
|
|
52 |
|
|
|
53 |
def send_getPropetry(self, propertyName):
|
|
|
54 |
self._oprot.writeMessageBegin('getPropetry', TMessageType.CALL, self._seqid)
|
|
|
55 |
args = getPropetry_args()
|
|
|
56 |
args.propertyName = propertyName
|
|
|
57 |
args.write(self._oprot)
|
|
|
58 |
self._oprot.writeMessageEnd()
|
|
|
59 |
self._oprot.trans.flush()
|
|
|
60 |
|
|
|
61 |
def recv_getPropetry(self, ):
|
|
|
62 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
63 |
if mtype == TMessageType.EXCEPTION:
|
|
|
64 |
x = TApplicationException()
|
|
|
65 |
x.read(self._iprot)
|
|
|
66 |
self._iprot.readMessageEnd()
|
|
|
67 |
raise x
|
|
|
68 |
result = getPropetry_result()
|
|
|
69 |
result.read(self._iprot)
|
|
|
70 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
71 |
if result.success is not None:
|
| 94 |
ashish |
72 |
return result.success
|
| 3431 |
rajveer |
73 |
if result.e is not None:
|
| 94 |
ashish |
74 |
raise result.e
|
|
|
75 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPropetry failed: unknown result");
|
|
|
76 |
|
|
|
77 |
def loadProperty(self, propertyName, propertyValue):
|
|
|
78 |
"""
|
|
|
79 |
Parameters:
|
|
|
80 |
- propertyName
|
|
|
81 |
- propertyValue
|
|
|
82 |
"""
|
|
|
83 |
self.send_loadProperty(propertyName, propertyValue)
|
|
|
84 |
self.recv_loadProperty()
|
|
|
85 |
|
|
|
86 |
def send_loadProperty(self, propertyName, propertyValue):
|
|
|
87 |
self._oprot.writeMessageBegin('loadProperty', TMessageType.CALL, self._seqid)
|
|
|
88 |
args = loadProperty_args()
|
|
|
89 |
args.propertyName = propertyName
|
|
|
90 |
args.propertyValue = propertyValue
|
|
|
91 |
args.write(self._oprot)
|
|
|
92 |
self._oprot.writeMessageEnd()
|
|
|
93 |
self._oprot.trans.flush()
|
|
|
94 |
|
|
|
95 |
def recv_loadProperty(self, ):
|
|
|
96 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
97 |
if mtype == TMessageType.EXCEPTION:
|
|
|
98 |
x = TApplicationException()
|
|
|
99 |
x.read(self._iprot)
|
|
|
100 |
self._iprot.readMessageEnd()
|
|
|
101 |
raise x
|
|
|
102 |
result = loadProperty_result()
|
|
|
103 |
result.read(self._iprot)
|
|
|
104 |
self._iprot.readMessageEnd()
|
|
|
105 |
return
|
|
|
106 |
|
| 2926 |
rajveer |
107 |
def reloadProperties(self, ):
|
|
|
108 |
self.send_reloadProperties()
|
|
|
109 |
self.recv_reloadProperties()
|
| 94 |
ashish |
110 |
|
| 2926 |
rajveer |
111 |
def send_reloadProperties(self, ):
|
|
|
112 |
self._oprot.writeMessageBegin('reloadProperties', TMessageType.CALL, self._seqid)
|
|
|
113 |
args = reloadProperties_args()
|
|
|
114 |
args.write(self._oprot)
|
|
|
115 |
self._oprot.writeMessageEnd()
|
|
|
116 |
self._oprot.trans.flush()
|
|
|
117 |
|
|
|
118 |
def recv_reloadProperties(self, ):
|
|
|
119 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
120 |
if mtype == TMessageType.EXCEPTION:
|
|
|
121 |
x = TApplicationException()
|
|
|
122 |
x.read(self._iprot)
|
|
|
123 |
self._iprot.readMessageEnd()
|
|
|
124 |
raise x
|
|
|
125 |
result = reloadProperties_result()
|
|
|
126 |
result.read(self._iprot)
|
|
|
127 |
self._iprot.readMessageEnd()
|
|
|
128 |
return
|
|
|
129 |
|
|
|
130 |
|
| 94 |
ashish |
131 |
class Processor(Iface, TProcessor):
|
|
|
132 |
def __init__(self, handler):
|
|
|
133 |
self._handler = handler
|
|
|
134 |
self._processMap = {}
|
|
|
135 |
self._processMap["getPropetry"] = Processor.process_getPropetry
|
|
|
136 |
self._processMap["loadProperty"] = Processor.process_loadProperty
|
| 2926 |
rajveer |
137 |
self._processMap["reloadProperties"] = Processor.process_reloadProperties
|
| 94 |
ashish |
138 |
|
|
|
139 |
def process(self, iprot, oprot):
|
|
|
140 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
141 |
if name not in self._processMap:
|
|
|
142 |
iprot.skip(TType.STRUCT)
|
|
|
143 |
iprot.readMessageEnd()
|
|
|
144 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
145 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
146 |
x.write(oprot)
|
|
|
147 |
oprot.writeMessageEnd()
|
|
|
148 |
oprot.trans.flush()
|
|
|
149 |
return
|
|
|
150 |
else:
|
|
|
151 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
152 |
return True
|
|
|
153 |
|
|
|
154 |
def process_getPropetry(self, seqid, iprot, oprot):
|
|
|
155 |
args = getPropetry_args()
|
|
|
156 |
args.read(iprot)
|
|
|
157 |
iprot.readMessageEnd()
|
|
|
158 |
result = getPropetry_result()
|
|
|
159 |
try:
|
|
|
160 |
result.success = self._handler.getPropetry(args.propertyName)
|
|
|
161 |
except ConfigException, e:
|
|
|
162 |
result.e = e
|
|
|
163 |
oprot.writeMessageBegin("getPropetry", TMessageType.REPLY, seqid)
|
|
|
164 |
result.write(oprot)
|
|
|
165 |
oprot.writeMessageEnd()
|
|
|
166 |
oprot.trans.flush()
|
|
|
167 |
|
|
|
168 |
def process_loadProperty(self, seqid, iprot, oprot):
|
|
|
169 |
args = loadProperty_args()
|
|
|
170 |
args.read(iprot)
|
|
|
171 |
iprot.readMessageEnd()
|
|
|
172 |
result = loadProperty_result()
|
|
|
173 |
self._handler.loadProperty(args.propertyName, args.propertyValue)
|
|
|
174 |
oprot.writeMessageBegin("loadProperty", TMessageType.REPLY, seqid)
|
|
|
175 |
result.write(oprot)
|
|
|
176 |
oprot.writeMessageEnd()
|
|
|
177 |
oprot.trans.flush()
|
|
|
178 |
|
| 2926 |
rajveer |
179 |
def process_reloadProperties(self, seqid, iprot, oprot):
|
|
|
180 |
args = reloadProperties_args()
|
|
|
181 |
args.read(iprot)
|
|
|
182 |
iprot.readMessageEnd()
|
|
|
183 |
result = reloadProperties_result()
|
|
|
184 |
self._handler.reloadProperties()
|
|
|
185 |
oprot.writeMessageBegin("reloadProperties", TMessageType.REPLY, seqid)
|
|
|
186 |
result.write(oprot)
|
|
|
187 |
oprot.writeMessageEnd()
|
|
|
188 |
oprot.trans.flush()
|
| 94 |
ashish |
189 |
|
| 2926 |
rajveer |
190 |
|
| 94 |
ashish |
191 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
192 |
|
|
|
193 |
class getPropetry_args:
|
|
|
194 |
"""
|
|
|
195 |
Attributes:
|
|
|
196 |
- propertyName
|
|
|
197 |
"""
|
|
|
198 |
|
|
|
199 |
thrift_spec = (
|
|
|
200 |
None, # 0
|
|
|
201 |
(1, TType.STRING, 'propertyName', None, None, ), # 1
|
|
|
202 |
)
|
|
|
203 |
|
|
|
204 |
def __init__(self, propertyName=None,):
|
|
|
205 |
self.propertyName = propertyName
|
|
|
206 |
|
|
|
207 |
def read(self, iprot):
|
|
|
208 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
209 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
210 |
return
|
|
|
211 |
iprot.readStructBegin()
|
|
|
212 |
while True:
|
|
|
213 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
214 |
if ftype == TType.STOP:
|
|
|
215 |
break
|
|
|
216 |
if fid == 1:
|
|
|
217 |
if ftype == TType.STRING:
|
|
|
218 |
self.propertyName = iprot.readString();
|
|
|
219 |
else:
|
|
|
220 |
iprot.skip(ftype)
|
|
|
221 |
else:
|
|
|
222 |
iprot.skip(ftype)
|
|
|
223 |
iprot.readFieldEnd()
|
|
|
224 |
iprot.readStructEnd()
|
|
|
225 |
|
|
|
226 |
def write(self, oprot):
|
|
|
227 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
228 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
229 |
return
|
|
|
230 |
oprot.writeStructBegin('getPropetry_args')
|
| 3431 |
rajveer |
231 |
if self.propertyName is not None:
|
| 94 |
ashish |
232 |
oprot.writeFieldBegin('propertyName', TType.STRING, 1)
|
|
|
233 |
oprot.writeString(self.propertyName)
|
|
|
234 |
oprot.writeFieldEnd()
|
|
|
235 |
oprot.writeFieldStop()
|
|
|
236 |
oprot.writeStructEnd()
|
|
|
237 |
|
| 3431 |
rajveer |
238 |
def validate(self):
|
|
|
239 |
return
|
|
|
240 |
|
|
|
241 |
|
| 94 |
ashish |
242 |
def __repr__(self):
|
|
|
243 |
L = ['%s=%r' % (key, value)
|
|
|
244 |
for key, value in self.__dict__.iteritems()]
|
|
|
245 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
246 |
|
|
|
247 |
def __eq__(self, other):
|
|
|
248 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
249 |
|
|
|
250 |
def __ne__(self, other):
|
|
|
251 |
return not (self == other)
|
|
|
252 |
|
|
|
253 |
class getPropetry_result:
|
|
|
254 |
"""
|
|
|
255 |
Attributes:
|
|
|
256 |
- success
|
|
|
257 |
- e
|
|
|
258 |
"""
|
|
|
259 |
|
|
|
260 |
thrift_spec = (
|
|
|
261 |
(0, TType.STRING, 'success', None, None, ), # 0
|
|
|
262 |
(1, TType.STRUCT, 'e', (ConfigException, ConfigException.thrift_spec), None, ), # 1
|
|
|
263 |
)
|
|
|
264 |
|
|
|
265 |
def __init__(self, success=None, e=None,):
|
|
|
266 |
self.success = success
|
|
|
267 |
self.e = e
|
|
|
268 |
|
|
|
269 |
def read(self, iprot):
|
|
|
270 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
271 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
272 |
return
|
|
|
273 |
iprot.readStructBegin()
|
|
|
274 |
while True:
|
|
|
275 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
276 |
if ftype == TType.STOP:
|
|
|
277 |
break
|
|
|
278 |
if fid == 0:
|
|
|
279 |
if ftype == TType.STRING:
|
|
|
280 |
self.success = iprot.readString();
|
|
|
281 |
else:
|
|
|
282 |
iprot.skip(ftype)
|
|
|
283 |
elif fid == 1:
|
|
|
284 |
if ftype == TType.STRUCT:
|
|
|
285 |
self.e = ConfigException()
|
|
|
286 |
self.e.read(iprot)
|
|
|
287 |
else:
|
|
|
288 |
iprot.skip(ftype)
|
|
|
289 |
else:
|
|
|
290 |
iprot.skip(ftype)
|
|
|
291 |
iprot.readFieldEnd()
|
|
|
292 |
iprot.readStructEnd()
|
|
|
293 |
|
|
|
294 |
def write(self, oprot):
|
|
|
295 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
296 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
297 |
return
|
|
|
298 |
oprot.writeStructBegin('getPropetry_result')
|
| 3431 |
rajveer |
299 |
if self.success is not None:
|
| 94 |
ashish |
300 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
301 |
oprot.writeString(self.success)
|
|
|
302 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
303 |
if self.e is not None:
|
| 94 |
ashish |
304 |
oprot.writeFieldBegin('e', TType.STRUCT, 1)
|
|
|
305 |
self.e.write(oprot)
|
|
|
306 |
oprot.writeFieldEnd()
|
|
|
307 |
oprot.writeFieldStop()
|
|
|
308 |
oprot.writeStructEnd()
|
|
|
309 |
|
| 3431 |
rajveer |
310 |
def validate(self):
|
|
|
311 |
return
|
|
|
312 |
|
|
|
313 |
|
| 94 |
ashish |
314 |
def __repr__(self):
|
|
|
315 |
L = ['%s=%r' % (key, value)
|
|
|
316 |
for key, value in self.__dict__.iteritems()]
|
|
|
317 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
318 |
|
|
|
319 |
def __eq__(self, other):
|
|
|
320 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
321 |
|
|
|
322 |
def __ne__(self, other):
|
|
|
323 |
return not (self == other)
|
|
|
324 |
|
|
|
325 |
class loadProperty_args:
|
|
|
326 |
"""
|
|
|
327 |
Attributes:
|
|
|
328 |
- propertyName
|
|
|
329 |
- propertyValue
|
|
|
330 |
"""
|
|
|
331 |
|
|
|
332 |
thrift_spec = (
|
|
|
333 |
None, # 0
|
|
|
334 |
(1, TType.STRING, 'propertyName', None, None, ), # 1
|
|
|
335 |
(2, TType.STRING, 'propertyValue', None, None, ), # 2
|
|
|
336 |
)
|
|
|
337 |
|
|
|
338 |
def __init__(self, propertyName=None, propertyValue=None,):
|
|
|
339 |
self.propertyName = propertyName
|
|
|
340 |
self.propertyValue = propertyValue
|
|
|
341 |
|
|
|
342 |
def read(self, iprot):
|
|
|
343 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
344 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
345 |
return
|
|
|
346 |
iprot.readStructBegin()
|
|
|
347 |
while True:
|
|
|
348 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
349 |
if ftype == TType.STOP:
|
|
|
350 |
break
|
|
|
351 |
if fid == 1:
|
|
|
352 |
if ftype == TType.STRING:
|
|
|
353 |
self.propertyName = iprot.readString();
|
|
|
354 |
else:
|
|
|
355 |
iprot.skip(ftype)
|
|
|
356 |
elif fid == 2:
|
|
|
357 |
if ftype == TType.STRING:
|
|
|
358 |
self.propertyValue = iprot.readString();
|
|
|
359 |
else:
|
|
|
360 |
iprot.skip(ftype)
|
|
|
361 |
else:
|
|
|
362 |
iprot.skip(ftype)
|
|
|
363 |
iprot.readFieldEnd()
|
|
|
364 |
iprot.readStructEnd()
|
|
|
365 |
|
|
|
366 |
def write(self, oprot):
|
|
|
367 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
368 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
369 |
return
|
|
|
370 |
oprot.writeStructBegin('loadProperty_args')
|
| 3431 |
rajveer |
371 |
if self.propertyName is not None:
|
| 94 |
ashish |
372 |
oprot.writeFieldBegin('propertyName', TType.STRING, 1)
|
|
|
373 |
oprot.writeString(self.propertyName)
|
|
|
374 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
375 |
if self.propertyValue is not None:
|
| 94 |
ashish |
376 |
oprot.writeFieldBegin('propertyValue', TType.STRING, 2)
|
|
|
377 |
oprot.writeString(self.propertyValue)
|
|
|
378 |
oprot.writeFieldEnd()
|
|
|
379 |
oprot.writeFieldStop()
|
|
|
380 |
oprot.writeStructEnd()
|
|
|
381 |
|
| 3431 |
rajveer |
382 |
def validate(self):
|
|
|
383 |
return
|
|
|
384 |
|
|
|
385 |
|
| 94 |
ashish |
386 |
def __repr__(self):
|
|
|
387 |
L = ['%s=%r' % (key, value)
|
|
|
388 |
for key, value in self.__dict__.iteritems()]
|
|
|
389 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
390 |
|
|
|
391 |
def __eq__(self, other):
|
|
|
392 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
393 |
|
|
|
394 |
def __ne__(self, other):
|
|
|
395 |
return not (self == other)
|
|
|
396 |
|
|
|
397 |
class loadProperty_result:
|
|
|
398 |
|
|
|
399 |
thrift_spec = (
|
|
|
400 |
)
|
|
|
401 |
|
|
|
402 |
def read(self, iprot):
|
|
|
403 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
404 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
405 |
return
|
|
|
406 |
iprot.readStructBegin()
|
|
|
407 |
while True:
|
|
|
408 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
409 |
if ftype == TType.STOP:
|
|
|
410 |
break
|
|
|
411 |
else:
|
|
|
412 |
iprot.skip(ftype)
|
|
|
413 |
iprot.readFieldEnd()
|
|
|
414 |
iprot.readStructEnd()
|
|
|
415 |
|
|
|
416 |
def write(self, oprot):
|
|
|
417 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
418 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
419 |
return
|
|
|
420 |
oprot.writeStructBegin('loadProperty_result')
|
|
|
421 |
oprot.writeFieldStop()
|
|
|
422 |
oprot.writeStructEnd()
|
|
|
423 |
|
| 3431 |
rajveer |
424 |
def validate(self):
|
|
|
425 |
return
|
|
|
426 |
|
|
|
427 |
|
| 94 |
ashish |
428 |
def __repr__(self):
|
|
|
429 |
L = ['%s=%r' % (key, value)
|
|
|
430 |
for key, value in self.__dict__.iteritems()]
|
|
|
431 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
432 |
|
|
|
433 |
def __eq__(self, other):
|
|
|
434 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
435 |
|
|
|
436 |
def __ne__(self, other):
|
|
|
437 |
return not (self == other)
|
|
|
438 |
|
| 2926 |
rajveer |
439 |
class reloadProperties_args:
|
| 94 |
ashish |
440 |
|
| 2926 |
rajveer |
441 |
thrift_spec = (
|
|
|
442 |
)
|
|
|
443 |
|
|
|
444 |
def read(self, iprot):
|
|
|
445 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
446 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
447 |
return
|
|
|
448 |
iprot.readStructBegin()
|
|
|
449 |
while True:
|
|
|
450 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
451 |
if ftype == TType.STOP:
|
|
|
452 |
break
|
|
|
453 |
else:
|
|
|
454 |
iprot.skip(ftype)
|
|
|
455 |
iprot.readFieldEnd()
|
|
|
456 |
iprot.readStructEnd()
|
|
|
457 |
|
|
|
458 |
def write(self, oprot):
|
|
|
459 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
460 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
461 |
return
|
|
|
462 |
oprot.writeStructBegin('reloadProperties_args')
|
|
|
463 |
oprot.writeFieldStop()
|
|
|
464 |
oprot.writeStructEnd()
|
|
|
465 |
|
| 3431 |
rajveer |
466 |
def validate(self):
|
|
|
467 |
return
|
|
|
468 |
|
|
|
469 |
|
| 2926 |
rajveer |
470 |
def __repr__(self):
|
|
|
471 |
L = ['%s=%r' % (key, value)
|
|
|
472 |
for key, value in self.__dict__.iteritems()]
|
|
|
473 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
474 |
|
|
|
475 |
def __eq__(self, other):
|
|
|
476 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
477 |
|
|
|
478 |
def __ne__(self, other):
|
|
|
479 |
return not (self == other)
|
|
|
480 |
|
|
|
481 |
class reloadProperties_result:
|
|
|
482 |
|
|
|
483 |
thrift_spec = (
|
|
|
484 |
)
|
|
|
485 |
|
|
|
486 |
def read(self, iprot):
|
|
|
487 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
488 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
489 |
return
|
|
|
490 |
iprot.readStructBegin()
|
|
|
491 |
while True:
|
|
|
492 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
493 |
if ftype == TType.STOP:
|
|
|
494 |
break
|
|
|
495 |
else:
|
|
|
496 |
iprot.skip(ftype)
|
|
|
497 |
iprot.readFieldEnd()
|
|
|
498 |
iprot.readStructEnd()
|
|
|
499 |
|
|
|
500 |
def write(self, oprot):
|
|
|
501 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
502 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
503 |
return
|
|
|
504 |
oprot.writeStructBegin('reloadProperties_result')
|
|
|
505 |
oprot.writeFieldStop()
|
|
|
506 |
oprot.writeStructEnd()
|
|
|
507 |
|
| 3431 |
rajveer |
508 |
def validate(self):
|
|
|
509 |
return
|
|
|
510 |
|
|
|
511 |
|
| 2926 |
rajveer |
512 |
def __repr__(self):
|
|
|
513 |
L = ['%s=%r' % (key, value)
|
|
|
514 |
for key, value in self.__dict__.iteritems()]
|
|
|
515 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
516 |
|
|
|
517 |
def __eq__(self, other):
|
|
|
518 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
519 |
|
|
|
520 |
def __ne__(self, other):
|
|
|
521 |
return not (self == other)
|