pwyckoff | 99b000b | 2008-04-03 19:30:55 +0000 | [diff] [blame^] | 1 | # |
| 2 | # Autogenerated by Thrift |
| 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 |
| 11 | from thrift.protocol import TBinaryProtocol |
| 12 | try: |
| 13 | from thrift.protocol import fastbinary |
| 14 | except: |
| 15 | fastbinary = None |
| 16 | |
| 17 | |
| 18 | class Iface: |
| 19 | def getName(self, ): |
| 20 | pass |
| 21 | |
| 22 | def getVersion(self, ): |
| 23 | pass |
| 24 | |
| 25 | def getStatus(self, ): |
| 26 | pass |
| 27 | |
| 28 | def getStatusDetails(self, ): |
| 29 | pass |
| 30 | |
| 31 | def getCounters(self, ): |
| 32 | pass |
| 33 | |
| 34 | def getCounter(self, key): |
| 35 | pass |
| 36 | |
| 37 | def setOption(self, key, value): |
| 38 | pass |
| 39 | |
| 40 | def getOption(self, key): |
| 41 | pass |
| 42 | |
| 43 | def getOptions(self, ): |
| 44 | pass |
| 45 | |
| 46 | def aliveSince(self, ): |
| 47 | pass |
| 48 | |
| 49 | def getLimitedReflection(self, ): |
| 50 | pass |
| 51 | |
| 52 | def reinitialize(self, ): |
| 53 | pass |
| 54 | |
| 55 | def shutdown(self, ): |
| 56 | pass |
| 57 | |
| 58 | |
| 59 | class Client(Iface): |
| 60 | def __init__(self, iprot, oprot=None): |
| 61 | self._iprot = self._oprot = iprot |
| 62 | if oprot != None: |
| 63 | self._oprot = oprot |
| 64 | self._seqid = 0 |
| 65 | |
| 66 | def getName(self, ): |
| 67 | self.send_getName() |
| 68 | return self.recv_getName() |
| 69 | |
| 70 | def send_getName(self, ): |
| 71 | self._oprot.writeMessageBegin('getName', TMessageType.CALL, self._seqid) |
| 72 | args = getName_args() |
| 73 | args.write(self._oprot) |
| 74 | self._oprot.writeMessageEnd() |
| 75 | self._oprot.trans.flush() |
| 76 | |
| 77 | def recv_getName(self, ): |
| 78 | (fname, mtype, rseqid) = self._iprot.readMessageBegin() |
| 79 | if mtype == TMessageType.EXCEPTION: |
| 80 | x = TApplicationException() |
| 81 | x.read(self._iprot) |
| 82 | self._iprot.readMessageEnd() |
| 83 | raise x |
| 84 | result = getName_result() |
| 85 | result.read(self._iprot) |
| 86 | self._iprot.readMessageEnd() |
| 87 | if result.success != None: |
| 88 | return result.success |
| 89 | raise TApplicationException(TApplicationException.MISSING_RESULT, "getName failed: unknown result"); |
| 90 | |
| 91 | def getVersion(self, ): |
| 92 | self.send_getVersion() |
| 93 | return self.recv_getVersion() |
| 94 | |
| 95 | def send_getVersion(self, ): |
| 96 | self._oprot.writeMessageBegin('getVersion', TMessageType.CALL, self._seqid) |
| 97 | args = getVersion_args() |
| 98 | args.write(self._oprot) |
| 99 | self._oprot.writeMessageEnd() |
| 100 | self._oprot.trans.flush() |
| 101 | |
| 102 | def recv_getVersion(self, ): |
| 103 | (fname, mtype, rseqid) = self._iprot.readMessageBegin() |
| 104 | if mtype == TMessageType.EXCEPTION: |
| 105 | x = TApplicationException() |
| 106 | x.read(self._iprot) |
| 107 | self._iprot.readMessageEnd() |
| 108 | raise x |
| 109 | result = getVersion_result() |
| 110 | result.read(self._iprot) |
| 111 | self._iprot.readMessageEnd() |
| 112 | if result.success != None: |
| 113 | return result.success |
| 114 | raise TApplicationException(TApplicationException.MISSING_RESULT, "getVersion failed: unknown result"); |
| 115 | |
| 116 | def getStatus(self, ): |
| 117 | self.send_getStatus() |
| 118 | return self.recv_getStatus() |
| 119 | |
| 120 | def send_getStatus(self, ): |
| 121 | self._oprot.writeMessageBegin('getStatus', TMessageType.CALL, self._seqid) |
| 122 | args = getStatus_args() |
| 123 | args.write(self._oprot) |
| 124 | self._oprot.writeMessageEnd() |
| 125 | self._oprot.trans.flush() |
| 126 | |
| 127 | def recv_getStatus(self, ): |
| 128 | (fname, mtype, rseqid) = self._iprot.readMessageBegin() |
| 129 | if mtype == TMessageType.EXCEPTION: |
| 130 | x = TApplicationException() |
| 131 | x.read(self._iprot) |
| 132 | self._iprot.readMessageEnd() |
| 133 | raise x |
| 134 | result = getStatus_result() |
| 135 | result.read(self._iprot) |
| 136 | self._iprot.readMessageEnd() |
| 137 | if result.success != None: |
| 138 | return result.success |
| 139 | raise TApplicationException(TApplicationException.MISSING_RESULT, "getStatus failed: unknown result"); |
| 140 | |
| 141 | def getStatusDetails(self, ): |
| 142 | self.send_getStatusDetails() |
| 143 | return self.recv_getStatusDetails() |
| 144 | |
| 145 | def send_getStatusDetails(self, ): |
| 146 | self._oprot.writeMessageBegin('getStatusDetails', TMessageType.CALL, self._seqid) |
| 147 | args = getStatusDetails_args() |
| 148 | args.write(self._oprot) |
| 149 | self._oprot.writeMessageEnd() |
| 150 | self._oprot.trans.flush() |
| 151 | |
| 152 | def recv_getStatusDetails(self, ): |
| 153 | (fname, mtype, rseqid) = self._iprot.readMessageBegin() |
| 154 | if mtype == TMessageType.EXCEPTION: |
| 155 | x = TApplicationException() |
| 156 | x.read(self._iprot) |
| 157 | self._iprot.readMessageEnd() |
| 158 | raise x |
| 159 | result = getStatusDetails_result() |
| 160 | result.read(self._iprot) |
| 161 | self._iprot.readMessageEnd() |
| 162 | if result.success != None: |
| 163 | return result.success |
| 164 | raise TApplicationException(TApplicationException.MISSING_RESULT, "getStatusDetails failed: unknown result"); |
| 165 | |
| 166 | def getCounters(self, ): |
| 167 | self.send_getCounters() |
| 168 | return self.recv_getCounters() |
| 169 | |
| 170 | def send_getCounters(self, ): |
| 171 | self._oprot.writeMessageBegin('getCounters', TMessageType.CALL, self._seqid) |
| 172 | args = getCounters_args() |
| 173 | args.write(self._oprot) |
| 174 | self._oprot.writeMessageEnd() |
| 175 | self._oprot.trans.flush() |
| 176 | |
| 177 | def recv_getCounters(self, ): |
| 178 | (fname, mtype, rseqid) = self._iprot.readMessageBegin() |
| 179 | if mtype == TMessageType.EXCEPTION: |
| 180 | x = TApplicationException() |
| 181 | x.read(self._iprot) |
| 182 | self._iprot.readMessageEnd() |
| 183 | raise x |
| 184 | result = getCounters_result() |
| 185 | result.read(self._iprot) |
| 186 | self._iprot.readMessageEnd() |
| 187 | if result.success != None: |
| 188 | return result.success |
| 189 | raise TApplicationException(TApplicationException.MISSING_RESULT, "getCounters failed: unknown result"); |
| 190 | |
| 191 | def getCounter(self, key): |
| 192 | self.send_getCounter(key) |
| 193 | return self.recv_getCounter() |
| 194 | |
| 195 | def send_getCounter(self, key): |
| 196 | self._oprot.writeMessageBegin('getCounter', TMessageType.CALL, self._seqid) |
| 197 | args = getCounter_args() |
| 198 | args.key = key |
| 199 | args.write(self._oprot) |
| 200 | self._oprot.writeMessageEnd() |
| 201 | self._oprot.trans.flush() |
| 202 | |
| 203 | def recv_getCounter(self, ): |
| 204 | (fname, mtype, rseqid) = self._iprot.readMessageBegin() |
| 205 | if mtype == TMessageType.EXCEPTION: |
| 206 | x = TApplicationException() |
| 207 | x.read(self._iprot) |
| 208 | self._iprot.readMessageEnd() |
| 209 | raise x |
| 210 | result = getCounter_result() |
| 211 | result.read(self._iprot) |
| 212 | self._iprot.readMessageEnd() |
| 213 | if result.success != None: |
| 214 | return result.success |
| 215 | raise TApplicationException(TApplicationException.MISSING_RESULT, "getCounter failed: unknown result"); |
| 216 | |
| 217 | def setOption(self, key, value): |
| 218 | self.send_setOption(key, value) |
| 219 | self.recv_setOption() |
| 220 | |
| 221 | def send_setOption(self, key, value): |
| 222 | self._oprot.writeMessageBegin('setOption', TMessageType.CALL, self._seqid) |
| 223 | args = setOption_args() |
| 224 | args.key = key |
| 225 | args.value = value |
| 226 | args.write(self._oprot) |
| 227 | self._oprot.writeMessageEnd() |
| 228 | self._oprot.trans.flush() |
| 229 | |
| 230 | def recv_setOption(self, ): |
| 231 | (fname, mtype, rseqid) = self._iprot.readMessageBegin() |
| 232 | if mtype == TMessageType.EXCEPTION: |
| 233 | x = TApplicationException() |
| 234 | x.read(self._iprot) |
| 235 | self._iprot.readMessageEnd() |
| 236 | raise x |
| 237 | result = setOption_result() |
| 238 | result.read(self._iprot) |
| 239 | self._iprot.readMessageEnd() |
| 240 | return |
| 241 | |
| 242 | def getOption(self, key): |
| 243 | self.send_getOption(key) |
| 244 | return self.recv_getOption() |
| 245 | |
| 246 | def send_getOption(self, key): |
| 247 | self._oprot.writeMessageBegin('getOption', TMessageType.CALL, self._seqid) |
| 248 | args = getOption_args() |
| 249 | args.key = key |
| 250 | args.write(self._oprot) |
| 251 | self._oprot.writeMessageEnd() |
| 252 | self._oprot.trans.flush() |
| 253 | |
| 254 | def recv_getOption(self, ): |
| 255 | (fname, mtype, rseqid) = self._iprot.readMessageBegin() |
| 256 | if mtype == TMessageType.EXCEPTION: |
| 257 | x = TApplicationException() |
| 258 | x.read(self._iprot) |
| 259 | self._iprot.readMessageEnd() |
| 260 | raise x |
| 261 | result = getOption_result() |
| 262 | result.read(self._iprot) |
| 263 | self._iprot.readMessageEnd() |
| 264 | if result.success != None: |
| 265 | return result.success |
| 266 | raise TApplicationException(TApplicationException.MISSING_RESULT, "getOption failed: unknown result"); |
| 267 | |
| 268 | def getOptions(self, ): |
| 269 | self.send_getOptions() |
| 270 | return self.recv_getOptions() |
| 271 | |
| 272 | def send_getOptions(self, ): |
| 273 | self._oprot.writeMessageBegin('getOptions', TMessageType.CALL, self._seqid) |
| 274 | args = getOptions_args() |
| 275 | args.write(self._oprot) |
| 276 | self._oprot.writeMessageEnd() |
| 277 | self._oprot.trans.flush() |
| 278 | |
| 279 | def recv_getOptions(self, ): |
| 280 | (fname, mtype, rseqid) = self._iprot.readMessageBegin() |
| 281 | if mtype == TMessageType.EXCEPTION: |
| 282 | x = TApplicationException() |
| 283 | x.read(self._iprot) |
| 284 | self._iprot.readMessageEnd() |
| 285 | raise x |
| 286 | result = getOptions_result() |
| 287 | result.read(self._iprot) |
| 288 | self._iprot.readMessageEnd() |
| 289 | if result.success != None: |
| 290 | return result.success |
| 291 | raise TApplicationException(TApplicationException.MISSING_RESULT, "getOptions failed: unknown result"); |
| 292 | |
| 293 | def aliveSince(self, ): |
| 294 | self.send_aliveSince() |
| 295 | return self.recv_aliveSince() |
| 296 | |
| 297 | def send_aliveSince(self, ): |
| 298 | self._oprot.writeMessageBegin('aliveSince', TMessageType.CALL, self._seqid) |
| 299 | args = aliveSince_args() |
| 300 | args.write(self._oprot) |
| 301 | self._oprot.writeMessageEnd() |
| 302 | self._oprot.trans.flush() |
| 303 | |
| 304 | def recv_aliveSince(self, ): |
| 305 | (fname, mtype, rseqid) = self._iprot.readMessageBegin() |
| 306 | if mtype == TMessageType.EXCEPTION: |
| 307 | x = TApplicationException() |
| 308 | x.read(self._iprot) |
| 309 | self._iprot.readMessageEnd() |
| 310 | raise x |
| 311 | result = aliveSince_result() |
| 312 | result.read(self._iprot) |
| 313 | self._iprot.readMessageEnd() |
| 314 | if result.success != None: |
| 315 | return result.success |
| 316 | raise TApplicationException(TApplicationException.MISSING_RESULT, "aliveSince failed: unknown result"); |
| 317 | |
| 318 | def getLimitedReflection(self, ): |
| 319 | self.send_getLimitedReflection() |
| 320 | return self.recv_getLimitedReflection() |
| 321 | |
| 322 | def send_getLimitedReflection(self, ): |
| 323 | self._oprot.writeMessageBegin('getLimitedReflection', TMessageType.CALL, self._seqid) |
| 324 | args = getLimitedReflection_args() |
| 325 | args.write(self._oprot) |
| 326 | self._oprot.writeMessageEnd() |
| 327 | self._oprot.trans.flush() |
| 328 | |
| 329 | def recv_getLimitedReflection(self, ): |
| 330 | (fname, mtype, rseqid) = self._iprot.readMessageBegin() |
| 331 | if mtype == TMessageType.EXCEPTION: |
| 332 | x = TApplicationException() |
| 333 | x.read(self._iprot) |
| 334 | self._iprot.readMessageEnd() |
| 335 | raise x |
| 336 | result = getLimitedReflection_result() |
| 337 | result.read(self._iprot) |
| 338 | self._iprot.readMessageEnd() |
| 339 | if result.success != None: |
| 340 | return result.success |
| 341 | raise TApplicationException(TApplicationException.MISSING_RESULT, "getLimitedReflection failed: unknown result"); |
| 342 | |
| 343 | def reinitialize(self, ): |
| 344 | self.send_reinitialize() |
| 345 | |
| 346 | def send_reinitialize(self, ): |
| 347 | self._oprot.writeMessageBegin('reinitialize', TMessageType.CALL, self._seqid) |
| 348 | args = reinitialize_args() |
| 349 | args.write(self._oprot) |
| 350 | self._oprot.writeMessageEnd() |
| 351 | self._oprot.trans.flush() |
| 352 | def shutdown(self, ): |
| 353 | self.send_shutdown() |
| 354 | |
| 355 | def send_shutdown(self, ): |
| 356 | self._oprot.writeMessageBegin('shutdown', TMessageType.CALL, self._seqid) |
| 357 | args = shutdown_args() |
| 358 | args.write(self._oprot) |
| 359 | self._oprot.writeMessageEnd() |
| 360 | self._oprot.trans.flush() |
| 361 | |
| 362 | class Processor(Iface, TProcessor): |
| 363 | def __init__(self, handler): |
| 364 | self._handler = handler |
| 365 | self._processMap = {} |
| 366 | self._processMap["getName"] = Processor.process_getName |
| 367 | self._processMap["getVersion"] = Processor.process_getVersion |
| 368 | self._processMap["getStatus"] = Processor.process_getStatus |
| 369 | self._processMap["getStatusDetails"] = Processor.process_getStatusDetails |
| 370 | self._processMap["getCounters"] = Processor.process_getCounters |
| 371 | self._processMap["getCounter"] = Processor.process_getCounter |
| 372 | self._processMap["setOption"] = Processor.process_setOption |
| 373 | self._processMap["getOption"] = Processor.process_getOption |
| 374 | self._processMap["getOptions"] = Processor.process_getOptions |
| 375 | self._processMap["aliveSince"] = Processor.process_aliveSince |
| 376 | self._processMap["getLimitedReflection"] = Processor.process_getLimitedReflection |
| 377 | self._processMap["reinitialize"] = Processor.process_reinitialize |
| 378 | self._processMap["shutdown"] = Processor.process_shutdown |
| 379 | |
| 380 | def process(self, iprot, oprot): |
| 381 | (name, type, seqid) = iprot.readMessageBegin() |
| 382 | if name not in self._processMap: |
| 383 | iprot.skip(TType.STRUCT) |
| 384 | iprot.readMessageEnd() |
| 385 | x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name)) |
| 386 | oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid) |
| 387 | x.write(oprot) |
| 388 | oprot.writeMessageEnd() |
| 389 | oprot.trans.flush() |
| 390 | return |
| 391 | else: |
| 392 | self._processMap[name](self, seqid, iprot, oprot) |
| 393 | return True |
| 394 | |
| 395 | def process_getName(self, seqid, iprot, oprot): |
| 396 | args = getName_args() |
| 397 | args.read(iprot) |
| 398 | iprot.readMessageEnd() |
| 399 | result = getName_result() |
| 400 | result.success = self._handler.getName() |
| 401 | oprot.writeMessageBegin("getName", TMessageType.REPLY, seqid) |
| 402 | result.write(oprot) |
| 403 | oprot.writeMessageEnd() |
| 404 | oprot.trans.flush() |
| 405 | |
| 406 | def process_getVersion(self, seqid, iprot, oprot): |
| 407 | args = getVersion_args() |
| 408 | args.read(iprot) |
| 409 | iprot.readMessageEnd() |
| 410 | result = getVersion_result() |
| 411 | result.success = self._handler.getVersion() |
| 412 | oprot.writeMessageBegin("getVersion", TMessageType.REPLY, seqid) |
| 413 | result.write(oprot) |
| 414 | oprot.writeMessageEnd() |
| 415 | oprot.trans.flush() |
| 416 | |
| 417 | def process_getStatus(self, seqid, iprot, oprot): |
| 418 | args = getStatus_args() |
| 419 | args.read(iprot) |
| 420 | iprot.readMessageEnd() |
| 421 | result = getStatus_result() |
| 422 | result.success = self._handler.getStatus() |
| 423 | oprot.writeMessageBegin("getStatus", TMessageType.REPLY, seqid) |
| 424 | result.write(oprot) |
| 425 | oprot.writeMessageEnd() |
| 426 | oprot.trans.flush() |
| 427 | |
| 428 | def process_getStatusDetails(self, seqid, iprot, oprot): |
| 429 | args = getStatusDetails_args() |
| 430 | args.read(iprot) |
| 431 | iprot.readMessageEnd() |
| 432 | result = getStatusDetails_result() |
| 433 | result.success = self._handler.getStatusDetails() |
| 434 | oprot.writeMessageBegin("getStatusDetails", TMessageType.REPLY, seqid) |
| 435 | result.write(oprot) |
| 436 | oprot.writeMessageEnd() |
| 437 | oprot.trans.flush() |
| 438 | |
| 439 | def process_getCounters(self, seqid, iprot, oprot): |
| 440 | args = getCounters_args() |
| 441 | args.read(iprot) |
| 442 | iprot.readMessageEnd() |
| 443 | result = getCounters_result() |
| 444 | result.success = self._handler.getCounters() |
| 445 | oprot.writeMessageBegin("getCounters", TMessageType.REPLY, seqid) |
| 446 | result.write(oprot) |
| 447 | oprot.writeMessageEnd() |
| 448 | oprot.trans.flush() |
| 449 | |
| 450 | def process_getCounter(self, seqid, iprot, oprot): |
| 451 | args = getCounter_args() |
| 452 | args.read(iprot) |
| 453 | iprot.readMessageEnd() |
| 454 | result = getCounter_result() |
| 455 | result.success = self._handler.getCounter(args.key) |
| 456 | oprot.writeMessageBegin("getCounter", TMessageType.REPLY, seqid) |
| 457 | result.write(oprot) |
| 458 | oprot.writeMessageEnd() |
| 459 | oprot.trans.flush() |
| 460 | |
| 461 | def process_setOption(self, seqid, iprot, oprot): |
| 462 | args = setOption_args() |
| 463 | args.read(iprot) |
| 464 | iprot.readMessageEnd() |
| 465 | result = setOption_result() |
| 466 | self._handler.setOption(args.key, args.value) |
| 467 | oprot.writeMessageBegin("setOption", TMessageType.REPLY, seqid) |
| 468 | result.write(oprot) |
| 469 | oprot.writeMessageEnd() |
| 470 | oprot.trans.flush() |
| 471 | |
| 472 | def process_getOption(self, seqid, iprot, oprot): |
| 473 | args = getOption_args() |
| 474 | args.read(iprot) |
| 475 | iprot.readMessageEnd() |
| 476 | result = getOption_result() |
| 477 | result.success = self._handler.getOption(args.key) |
| 478 | oprot.writeMessageBegin("getOption", TMessageType.REPLY, seqid) |
| 479 | result.write(oprot) |
| 480 | oprot.writeMessageEnd() |
| 481 | oprot.trans.flush() |
| 482 | |
| 483 | def process_getOptions(self, seqid, iprot, oprot): |
| 484 | args = getOptions_args() |
| 485 | args.read(iprot) |
| 486 | iprot.readMessageEnd() |
| 487 | result = getOptions_result() |
| 488 | result.success = self._handler.getOptions() |
| 489 | oprot.writeMessageBegin("getOptions", TMessageType.REPLY, seqid) |
| 490 | result.write(oprot) |
| 491 | oprot.writeMessageEnd() |
| 492 | oprot.trans.flush() |
| 493 | |
| 494 | def process_aliveSince(self, seqid, iprot, oprot): |
| 495 | args = aliveSince_args() |
| 496 | args.read(iprot) |
| 497 | iprot.readMessageEnd() |
| 498 | result = aliveSince_result() |
| 499 | result.success = self._handler.aliveSince() |
| 500 | oprot.writeMessageBegin("aliveSince", TMessageType.REPLY, seqid) |
| 501 | result.write(oprot) |
| 502 | oprot.writeMessageEnd() |
| 503 | oprot.trans.flush() |
| 504 | |
| 505 | def process_getLimitedReflection(self, seqid, iprot, oprot): |
| 506 | args = getLimitedReflection_args() |
| 507 | args.read(iprot) |
| 508 | iprot.readMessageEnd() |
| 509 | result = getLimitedReflection_result() |
| 510 | result.success = self._handler.getLimitedReflection() |
| 511 | oprot.writeMessageBegin("getLimitedReflection", TMessageType.REPLY, seqid) |
| 512 | result.write(oprot) |
| 513 | oprot.writeMessageEnd() |
| 514 | oprot.trans.flush() |
| 515 | |
| 516 | def process_reinitialize(self, seqid, iprot, oprot): |
| 517 | args = reinitialize_args() |
| 518 | args.read(iprot) |
| 519 | iprot.readMessageEnd() |
| 520 | self._handler.reinitialize() |
| 521 | return |
| 522 | |
| 523 | def process_shutdown(self, seqid, iprot, oprot): |
| 524 | args = shutdown_args() |
| 525 | args.read(iprot) |
| 526 | iprot.readMessageEnd() |
| 527 | self._handler.shutdown() |
| 528 | return |
| 529 | |
| 530 | |
| 531 | # HELPER FUNCTIONS AND STRUCTURES |
| 532 | |
| 533 | class getName_args: |
| 534 | |
| 535 | thrift_spec = ( |
| 536 | ) |
| 537 | |
| 538 | def __init__(self, d=None): |
| 539 | pass |
| 540 | |
| 541 | def read(self, iprot): |
| 542 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 543 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 544 | return |
| 545 | iprot.readStructBegin() |
| 546 | while True: |
| 547 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 548 | if ftype == TType.STOP: |
| 549 | break |
| 550 | else: |
| 551 | iprot.skip(ftype) |
| 552 | iprot.readFieldEnd() |
| 553 | iprot.readStructEnd() |
| 554 | |
| 555 | def write(self, oprot): |
| 556 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 557 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 558 | return |
| 559 | oprot.writeStructBegin('getName_args') |
| 560 | oprot.writeFieldStop() |
| 561 | oprot.writeStructEnd() |
| 562 | |
| 563 | def __str__(self): |
| 564 | return str(self.__dict__) |
| 565 | |
| 566 | def __repr__(self): |
| 567 | return repr(self.__dict__) |
| 568 | |
| 569 | def __eq__(self, other): |
| 570 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 571 | |
| 572 | def __ne__(self, other): |
| 573 | return not (self == other) |
| 574 | |
| 575 | class getName_result: |
| 576 | |
| 577 | thrift_spec = ( |
| 578 | (0, TType.STRING, 'success', None, None, ), # 0 |
| 579 | ) |
| 580 | |
| 581 | def __init__(self, d=None): |
| 582 | self.success = None |
| 583 | if isinstance(d, dict): |
| 584 | if 'success' in d: |
| 585 | self.success = d['success'] |
| 586 | |
| 587 | def read(self, iprot): |
| 588 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 589 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 590 | return |
| 591 | iprot.readStructBegin() |
| 592 | while True: |
| 593 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 594 | if ftype == TType.STOP: |
| 595 | break |
| 596 | if fid == 0: |
| 597 | if ftype == TType.STRING: |
| 598 | self.success = iprot.readString(); |
| 599 | else: |
| 600 | iprot.skip(ftype) |
| 601 | else: |
| 602 | iprot.skip(ftype) |
| 603 | iprot.readFieldEnd() |
| 604 | iprot.readStructEnd() |
| 605 | |
| 606 | def write(self, oprot): |
| 607 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 608 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 609 | return |
| 610 | oprot.writeStructBegin('getName_result') |
| 611 | if self.success != None: |
| 612 | oprot.writeFieldBegin('success', TType.STRING, 0) |
| 613 | oprot.writeString(self.success) |
| 614 | oprot.writeFieldEnd() |
| 615 | oprot.writeFieldStop() |
| 616 | oprot.writeStructEnd() |
| 617 | |
| 618 | def __str__(self): |
| 619 | return str(self.__dict__) |
| 620 | |
| 621 | def __repr__(self): |
| 622 | return repr(self.__dict__) |
| 623 | |
| 624 | def __eq__(self, other): |
| 625 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 626 | |
| 627 | def __ne__(self, other): |
| 628 | return not (self == other) |
| 629 | |
| 630 | class getVersion_args: |
| 631 | |
| 632 | thrift_spec = ( |
| 633 | ) |
| 634 | |
| 635 | def __init__(self, d=None): |
| 636 | pass |
| 637 | |
| 638 | def read(self, iprot): |
| 639 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 640 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 641 | return |
| 642 | iprot.readStructBegin() |
| 643 | while True: |
| 644 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 645 | if ftype == TType.STOP: |
| 646 | break |
| 647 | else: |
| 648 | iprot.skip(ftype) |
| 649 | iprot.readFieldEnd() |
| 650 | iprot.readStructEnd() |
| 651 | |
| 652 | def write(self, oprot): |
| 653 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 654 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 655 | return |
| 656 | oprot.writeStructBegin('getVersion_args') |
| 657 | oprot.writeFieldStop() |
| 658 | oprot.writeStructEnd() |
| 659 | |
| 660 | def __str__(self): |
| 661 | return str(self.__dict__) |
| 662 | |
| 663 | def __repr__(self): |
| 664 | return repr(self.__dict__) |
| 665 | |
| 666 | def __eq__(self, other): |
| 667 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 668 | |
| 669 | def __ne__(self, other): |
| 670 | return not (self == other) |
| 671 | |
| 672 | class getVersion_result: |
| 673 | |
| 674 | thrift_spec = ( |
| 675 | (0, TType.STRING, 'success', None, None, ), # 0 |
| 676 | ) |
| 677 | |
| 678 | def __init__(self, d=None): |
| 679 | self.success = None |
| 680 | if isinstance(d, dict): |
| 681 | if 'success' in d: |
| 682 | self.success = d['success'] |
| 683 | |
| 684 | def read(self, iprot): |
| 685 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 686 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 687 | return |
| 688 | iprot.readStructBegin() |
| 689 | while True: |
| 690 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 691 | if ftype == TType.STOP: |
| 692 | break |
| 693 | if fid == 0: |
| 694 | if ftype == TType.STRING: |
| 695 | self.success = iprot.readString(); |
| 696 | else: |
| 697 | iprot.skip(ftype) |
| 698 | else: |
| 699 | iprot.skip(ftype) |
| 700 | iprot.readFieldEnd() |
| 701 | iprot.readStructEnd() |
| 702 | |
| 703 | def write(self, oprot): |
| 704 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 705 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 706 | return |
| 707 | oprot.writeStructBegin('getVersion_result') |
| 708 | if self.success != None: |
| 709 | oprot.writeFieldBegin('success', TType.STRING, 0) |
| 710 | oprot.writeString(self.success) |
| 711 | oprot.writeFieldEnd() |
| 712 | oprot.writeFieldStop() |
| 713 | oprot.writeStructEnd() |
| 714 | |
| 715 | def __str__(self): |
| 716 | return str(self.__dict__) |
| 717 | |
| 718 | def __repr__(self): |
| 719 | return repr(self.__dict__) |
| 720 | |
| 721 | def __eq__(self, other): |
| 722 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 723 | |
| 724 | def __ne__(self, other): |
| 725 | return not (self == other) |
| 726 | |
| 727 | class getStatus_args: |
| 728 | |
| 729 | thrift_spec = ( |
| 730 | ) |
| 731 | |
| 732 | def __init__(self, d=None): |
| 733 | pass |
| 734 | |
| 735 | def read(self, iprot): |
| 736 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 737 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 738 | return |
| 739 | iprot.readStructBegin() |
| 740 | while True: |
| 741 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 742 | if ftype == TType.STOP: |
| 743 | break |
| 744 | else: |
| 745 | iprot.skip(ftype) |
| 746 | iprot.readFieldEnd() |
| 747 | iprot.readStructEnd() |
| 748 | |
| 749 | def write(self, oprot): |
| 750 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 751 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 752 | return |
| 753 | oprot.writeStructBegin('getStatus_args') |
| 754 | oprot.writeFieldStop() |
| 755 | oprot.writeStructEnd() |
| 756 | |
| 757 | def __str__(self): |
| 758 | return str(self.__dict__) |
| 759 | |
| 760 | def __repr__(self): |
| 761 | return repr(self.__dict__) |
| 762 | |
| 763 | def __eq__(self, other): |
| 764 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 765 | |
| 766 | def __ne__(self, other): |
| 767 | return not (self == other) |
| 768 | |
| 769 | class getStatus_result: |
| 770 | |
| 771 | thrift_spec = ( |
| 772 | (0, TType.I32, 'success', None, None, ), # 0 |
| 773 | ) |
| 774 | |
| 775 | def __init__(self, d=None): |
| 776 | self.success = None |
| 777 | if isinstance(d, dict): |
| 778 | if 'success' in d: |
| 779 | self.success = d['success'] |
| 780 | |
| 781 | def read(self, iprot): |
| 782 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 783 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 784 | return |
| 785 | iprot.readStructBegin() |
| 786 | while True: |
| 787 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 788 | if ftype == TType.STOP: |
| 789 | break |
| 790 | if fid == 0: |
| 791 | if ftype == TType.I32: |
| 792 | self.success = iprot.readI32(); |
| 793 | else: |
| 794 | iprot.skip(ftype) |
| 795 | else: |
| 796 | iprot.skip(ftype) |
| 797 | iprot.readFieldEnd() |
| 798 | iprot.readStructEnd() |
| 799 | |
| 800 | def write(self, oprot): |
| 801 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 802 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 803 | return |
| 804 | oprot.writeStructBegin('getStatus_result') |
| 805 | if self.success != None: |
| 806 | oprot.writeFieldBegin('success', TType.I32, 0) |
| 807 | oprot.writeI32(self.success) |
| 808 | oprot.writeFieldEnd() |
| 809 | oprot.writeFieldStop() |
| 810 | oprot.writeStructEnd() |
| 811 | |
| 812 | def __str__(self): |
| 813 | return str(self.__dict__) |
| 814 | |
| 815 | def __repr__(self): |
| 816 | return repr(self.__dict__) |
| 817 | |
| 818 | def __eq__(self, other): |
| 819 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 820 | |
| 821 | def __ne__(self, other): |
| 822 | return not (self == other) |
| 823 | |
| 824 | class getStatusDetails_args: |
| 825 | |
| 826 | thrift_spec = ( |
| 827 | ) |
| 828 | |
| 829 | def __init__(self, d=None): |
| 830 | pass |
| 831 | |
| 832 | def read(self, iprot): |
| 833 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 834 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 835 | return |
| 836 | iprot.readStructBegin() |
| 837 | while True: |
| 838 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 839 | if ftype == TType.STOP: |
| 840 | break |
| 841 | else: |
| 842 | iprot.skip(ftype) |
| 843 | iprot.readFieldEnd() |
| 844 | iprot.readStructEnd() |
| 845 | |
| 846 | def write(self, oprot): |
| 847 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 848 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 849 | return |
| 850 | oprot.writeStructBegin('getStatusDetails_args') |
| 851 | oprot.writeFieldStop() |
| 852 | oprot.writeStructEnd() |
| 853 | |
| 854 | def __str__(self): |
| 855 | return str(self.__dict__) |
| 856 | |
| 857 | def __repr__(self): |
| 858 | return repr(self.__dict__) |
| 859 | |
| 860 | def __eq__(self, other): |
| 861 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 862 | |
| 863 | def __ne__(self, other): |
| 864 | return not (self == other) |
| 865 | |
| 866 | class getStatusDetails_result: |
| 867 | |
| 868 | thrift_spec = ( |
| 869 | (0, TType.STRING, 'success', None, None, ), # 0 |
| 870 | ) |
| 871 | |
| 872 | def __init__(self, d=None): |
| 873 | self.success = None |
| 874 | if isinstance(d, dict): |
| 875 | if 'success' in d: |
| 876 | self.success = d['success'] |
| 877 | |
| 878 | def read(self, iprot): |
| 879 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 880 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 881 | return |
| 882 | iprot.readStructBegin() |
| 883 | while True: |
| 884 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 885 | if ftype == TType.STOP: |
| 886 | break |
| 887 | if fid == 0: |
| 888 | if ftype == TType.STRING: |
| 889 | self.success = iprot.readString(); |
| 890 | else: |
| 891 | iprot.skip(ftype) |
| 892 | else: |
| 893 | iprot.skip(ftype) |
| 894 | iprot.readFieldEnd() |
| 895 | iprot.readStructEnd() |
| 896 | |
| 897 | def write(self, oprot): |
| 898 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 899 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 900 | return |
| 901 | oprot.writeStructBegin('getStatusDetails_result') |
| 902 | if self.success != None: |
| 903 | oprot.writeFieldBegin('success', TType.STRING, 0) |
| 904 | oprot.writeString(self.success) |
| 905 | oprot.writeFieldEnd() |
| 906 | oprot.writeFieldStop() |
| 907 | oprot.writeStructEnd() |
| 908 | |
| 909 | def __str__(self): |
| 910 | return str(self.__dict__) |
| 911 | |
| 912 | def __repr__(self): |
| 913 | return repr(self.__dict__) |
| 914 | |
| 915 | def __eq__(self, other): |
| 916 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 917 | |
| 918 | def __ne__(self, other): |
| 919 | return not (self == other) |
| 920 | |
| 921 | class getCounters_args: |
| 922 | |
| 923 | thrift_spec = ( |
| 924 | ) |
| 925 | |
| 926 | def __init__(self, d=None): |
| 927 | pass |
| 928 | |
| 929 | def read(self, iprot): |
| 930 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 931 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 932 | return |
| 933 | iprot.readStructBegin() |
| 934 | while True: |
| 935 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 936 | if ftype == TType.STOP: |
| 937 | break |
| 938 | else: |
| 939 | iprot.skip(ftype) |
| 940 | iprot.readFieldEnd() |
| 941 | iprot.readStructEnd() |
| 942 | |
| 943 | def write(self, oprot): |
| 944 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 945 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 946 | return |
| 947 | oprot.writeStructBegin('getCounters_args') |
| 948 | oprot.writeFieldStop() |
| 949 | oprot.writeStructEnd() |
| 950 | |
| 951 | def __str__(self): |
| 952 | return str(self.__dict__) |
| 953 | |
| 954 | def __repr__(self): |
| 955 | return repr(self.__dict__) |
| 956 | |
| 957 | def __eq__(self, other): |
| 958 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 959 | |
| 960 | def __ne__(self, other): |
| 961 | return not (self == other) |
| 962 | |
| 963 | class getCounters_result: |
| 964 | |
| 965 | thrift_spec = ( |
| 966 | (0, TType.MAP, 'success', (TType.STRING,None,TType.I64,None), None, ), # 0 |
| 967 | ) |
| 968 | |
| 969 | def __init__(self, d=None): |
| 970 | self.success = None |
| 971 | if isinstance(d, dict): |
| 972 | if 'success' in d: |
| 973 | self.success = d['success'] |
| 974 | |
| 975 | def read(self, iprot): |
| 976 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 977 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 978 | return |
| 979 | iprot.readStructBegin() |
| 980 | while True: |
| 981 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 982 | if ftype == TType.STOP: |
| 983 | break |
| 984 | if fid == 0: |
| 985 | if ftype == TType.MAP: |
| 986 | self.success = {} |
| 987 | (_ktype1, _vtype2, _size0 ) = iprot.readMapBegin() |
| 988 | for _i4 in xrange(_size0): |
| 989 | _key5 = iprot.readString(); |
| 990 | _val6 = iprot.readI64(); |
| 991 | self.success[_key5] = _val6 |
| 992 | iprot.readMapEnd() |
| 993 | else: |
| 994 | iprot.skip(ftype) |
| 995 | else: |
| 996 | iprot.skip(ftype) |
| 997 | iprot.readFieldEnd() |
| 998 | iprot.readStructEnd() |
| 999 | |
| 1000 | def write(self, oprot): |
| 1001 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1002 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1003 | return |
| 1004 | oprot.writeStructBegin('getCounters_result') |
| 1005 | if self.success != None: |
| 1006 | oprot.writeFieldBegin('success', TType.MAP, 0) |
| 1007 | oprot.writeMapBegin(TType.STRING, TType.I64, len(self.success)) |
| 1008 | for kiter7,viter8 in self.success.items(): |
| 1009 | oprot.writeString(kiter7) |
| 1010 | oprot.writeI64(viter8) |
| 1011 | oprot.writeMapEnd() |
| 1012 | oprot.writeFieldEnd() |
| 1013 | oprot.writeFieldStop() |
| 1014 | oprot.writeStructEnd() |
| 1015 | |
| 1016 | def __str__(self): |
| 1017 | return str(self.__dict__) |
| 1018 | |
| 1019 | def __repr__(self): |
| 1020 | return repr(self.__dict__) |
| 1021 | |
| 1022 | def __eq__(self, other): |
| 1023 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1024 | |
| 1025 | def __ne__(self, other): |
| 1026 | return not (self == other) |
| 1027 | |
| 1028 | class getCounter_args: |
| 1029 | |
| 1030 | thrift_spec = ( |
| 1031 | None, # 0 |
| 1032 | (1, TType.STRING, 'key', None, None, ), # 1 |
| 1033 | ) |
| 1034 | |
| 1035 | def __init__(self, d=None): |
| 1036 | self.key = None |
| 1037 | if isinstance(d, dict): |
| 1038 | if 'key' in d: |
| 1039 | self.key = d['key'] |
| 1040 | |
| 1041 | def read(self, iprot): |
| 1042 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1043 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1044 | return |
| 1045 | iprot.readStructBegin() |
| 1046 | while True: |
| 1047 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1048 | if ftype == TType.STOP: |
| 1049 | break |
| 1050 | if fid == 1: |
| 1051 | if ftype == TType.STRING: |
| 1052 | self.key = iprot.readString(); |
| 1053 | else: |
| 1054 | iprot.skip(ftype) |
| 1055 | else: |
| 1056 | iprot.skip(ftype) |
| 1057 | iprot.readFieldEnd() |
| 1058 | iprot.readStructEnd() |
| 1059 | |
| 1060 | def write(self, oprot): |
| 1061 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1062 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1063 | return |
| 1064 | oprot.writeStructBegin('getCounter_args') |
| 1065 | if self.key != None: |
| 1066 | oprot.writeFieldBegin('key', TType.STRING, 1) |
| 1067 | oprot.writeString(self.key) |
| 1068 | oprot.writeFieldEnd() |
| 1069 | oprot.writeFieldStop() |
| 1070 | oprot.writeStructEnd() |
| 1071 | |
| 1072 | def __str__(self): |
| 1073 | return str(self.__dict__) |
| 1074 | |
| 1075 | def __repr__(self): |
| 1076 | return repr(self.__dict__) |
| 1077 | |
| 1078 | def __eq__(self, other): |
| 1079 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1080 | |
| 1081 | def __ne__(self, other): |
| 1082 | return not (self == other) |
| 1083 | |
| 1084 | class getCounter_result: |
| 1085 | |
| 1086 | thrift_spec = ( |
| 1087 | (0, TType.I64, 'success', None, None, ), # 0 |
| 1088 | ) |
| 1089 | |
| 1090 | def __init__(self, d=None): |
| 1091 | self.success = None |
| 1092 | if isinstance(d, dict): |
| 1093 | if 'success' in d: |
| 1094 | self.success = d['success'] |
| 1095 | |
| 1096 | def read(self, iprot): |
| 1097 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1098 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1099 | return |
| 1100 | iprot.readStructBegin() |
| 1101 | while True: |
| 1102 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1103 | if ftype == TType.STOP: |
| 1104 | break |
| 1105 | if fid == 0: |
| 1106 | if ftype == TType.I64: |
| 1107 | self.success = iprot.readI64(); |
| 1108 | else: |
| 1109 | iprot.skip(ftype) |
| 1110 | else: |
| 1111 | iprot.skip(ftype) |
| 1112 | iprot.readFieldEnd() |
| 1113 | iprot.readStructEnd() |
| 1114 | |
| 1115 | def write(self, oprot): |
| 1116 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1117 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1118 | return |
| 1119 | oprot.writeStructBegin('getCounter_result') |
| 1120 | if self.success != None: |
| 1121 | oprot.writeFieldBegin('success', TType.I64, 0) |
| 1122 | oprot.writeI64(self.success) |
| 1123 | oprot.writeFieldEnd() |
| 1124 | oprot.writeFieldStop() |
| 1125 | oprot.writeStructEnd() |
| 1126 | |
| 1127 | def __str__(self): |
| 1128 | return str(self.__dict__) |
| 1129 | |
| 1130 | def __repr__(self): |
| 1131 | return repr(self.__dict__) |
| 1132 | |
| 1133 | def __eq__(self, other): |
| 1134 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1135 | |
| 1136 | def __ne__(self, other): |
| 1137 | return not (self == other) |
| 1138 | |
| 1139 | class setOption_args: |
| 1140 | |
| 1141 | thrift_spec = ( |
| 1142 | None, # 0 |
| 1143 | (1, TType.STRING, 'key', None, None, ), # 1 |
| 1144 | (2, TType.STRING, 'value', None, None, ), # 2 |
| 1145 | ) |
| 1146 | |
| 1147 | def __init__(self, d=None): |
| 1148 | self.key = None |
| 1149 | self.value = None |
| 1150 | if isinstance(d, dict): |
| 1151 | if 'key' in d: |
| 1152 | self.key = d['key'] |
| 1153 | if 'value' in d: |
| 1154 | self.value = d['value'] |
| 1155 | |
| 1156 | def read(self, iprot): |
| 1157 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1158 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1159 | return |
| 1160 | iprot.readStructBegin() |
| 1161 | while True: |
| 1162 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1163 | if ftype == TType.STOP: |
| 1164 | break |
| 1165 | if fid == 1: |
| 1166 | if ftype == TType.STRING: |
| 1167 | self.key = iprot.readString(); |
| 1168 | else: |
| 1169 | iprot.skip(ftype) |
| 1170 | elif fid == 2: |
| 1171 | if ftype == TType.STRING: |
| 1172 | self.value = iprot.readString(); |
| 1173 | else: |
| 1174 | iprot.skip(ftype) |
| 1175 | else: |
| 1176 | iprot.skip(ftype) |
| 1177 | iprot.readFieldEnd() |
| 1178 | iprot.readStructEnd() |
| 1179 | |
| 1180 | def write(self, oprot): |
| 1181 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1182 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1183 | return |
| 1184 | oprot.writeStructBegin('setOption_args') |
| 1185 | if self.key != None: |
| 1186 | oprot.writeFieldBegin('key', TType.STRING, 1) |
| 1187 | oprot.writeString(self.key) |
| 1188 | oprot.writeFieldEnd() |
| 1189 | if self.value != None: |
| 1190 | oprot.writeFieldBegin('value', TType.STRING, 2) |
| 1191 | oprot.writeString(self.value) |
| 1192 | oprot.writeFieldEnd() |
| 1193 | oprot.writeFieldStop() |
| 1194 | oprot.writeStructEnd() |
| 1195 | |
| 1196 | def __str__(self): |
| 1197 | return str(self.__dict__) |
| 1198 | |
| 1199 | def __repr__(self): |
| 1200 | return repr(self.__dict__) |
| 1201 | |
| 1202 | def __eq__(self, other): |
| 1203 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1204 | |
| 1205 | def __ne__(self, other): |
| 1206 | return not (self == other) |
| 1207 | |
| 1208 | class setOption_result: |
| 1209 | |
| 1210 | thrift_spec = ( |
| 1211 | ) |
| 1212 | |
| 1213 | def __init__(self, d=None): |
| 1214 | pass |
| 1215 | |
| 1216 | def read(self, iprot): |
| 1217 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1218 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1219 | return |
| 1220 | iprot.readStructBegin() |
| 1221 | while True: |
| 1222 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1223 | if ftype == TType.STOP: |
| 1224 | break |
| 1225 | else: |
| 1226 | iprot.skip(ftype) |
| 1227 | iprot.readFieldEnd() |
| 1228 | iprot.readStructEnd() |
| 1229 | |
| 1230 | def write(self, oprot): |
| 1231 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1232 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1233 | return |
| 1234 | oprot.writeStructBegin('setOption_result') |
| 1235 | oprot.writeFieldStop() |
| 1236 | oprot.writeStructEnd() |
| 1237 | |
| 1238 | def __str__(self): |
| 1239 | return str(self.__dict__) |
| 1240 | |
| 1241 | def __repr__(self): |
| 1242 | return repr(self.__dict__) |
| 1243 | |
| 1244 | def __eq__(self, other): |
| 1245 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1246 | |
| 1247 | def __ne__(self, other): |
| 1248 | return not (self == other) |
| 1249 | |
| 1250 | class getOption_args: |
| 1251 | |
| 1252 | thrift_spec = ( |
| 1253 | None, # 0 |
| 1254 | (1, TType.STRING, 'key', None, None, ), # 1 |
| 1255 | ) |
| 1256 | |
| 1257 | def __init__(self, d=None): |
| 1258 | self.key = None |
| 1259 | if isinstance(d, dict): |
| 1260 | if 'key' in d: |
| 1261 | self.key = d['key'] |
| 1262 | |
| 1263 | def read(self, iprot): |
| 1264 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1265 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1266 | return |
| 1267 | iprot.readStructBegin() |
| 1268 | while True: |
| 1269 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1270 | if ftype == TType.STOP: |
| 1271 | break |
| 1272 | if fid == 1: |
| 1273 | if ftype == TType.STRING: |
| 1274 | self.key = iprot.readString(); |
| 1275 | else: |
| 1276 | iprot.skip(ftype) |
| 1277 | else: |
| 1278 | iprot.skip(ftype) |
| 1279 | iprot.readFieldEnd() |
| 1280 | iprot.readStructEnd() |
| 1281 | |
| 1282 | def write(self, oprot): |
| 1283 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1284 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1285 | return |
| 1286 | oprot.writeStructBegin('getOption_args') |
| 1287 | if self.key != None: |
| 1288 | oprot.writeFieldBegin('key', TType.STRING, 1) |
| 1289 | oprot.writeString(self.key) |
| 1290 | oprot.writeFieldEnd() |
| 1291 | oprot.writeFieldStop() |
| 1292 | oprot.writeStructEnd() |
| 1293 | |
| 1294 | def __str__(self): |
| 1295 | return str(self.__dict__) |
| 1296 | |
| 1297 | def __repr__(self): |
| 1298 | return repr(self.__dict__) |
| 1299 | |
| 1300 | def __eq__(self, other): |
| 1301 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1302 | |
| 1303 | def __ne__(self, other): |
| 1304 | return not (self == other) |
| 1305 | |
| 1306 | class getOption_result: |
| 1307 | |
| 1308 | thrift_spec = ( |
| 1309 | (0, TType.STRING, 'success', None, None, ), # 0 |
| 1310 | ) |
| 1311 | |
| 1312 | def __init__(self, d=None): |
| 1313 | self.success = None |
| 1314 | if isinstance(d, dict): |
| 1315 | if 'success' in d: |
| 1316 | self.success = d['success'] |
| 1317 | |
| 1318 | def read(self, iprot): |
| 1319 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1320 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1321 | return |
| 1322 | iprot.readStructBegin() |
| 1323 | while True: |
| 1324 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1325 | if ftype == TType.STOP: |
| 1326 | break |
| 1327 | if fid == 0: |
| 1328 | if ftype == TType.STRING: |
| 1329 | self.success = iprot.readString(); |
| 1330 | else: |
| 1331 | iprot.skip(ftype) |
| 1332 | else: |
| 1333 | iprot.skip(ftype) |
| 1334 | iprot.readFieldEnd() |
| 1335 | iprot.readStructEnd() |
| 1336 | |
| 1337 | def write(self, oprot): |
| 1338 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1339 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1340 | return |
| 1341 | oprot.writeStructBegin('getOption_result') |
| 1342 | if self.success != None: |
| 1343 | oprot.writeFieldBegin('success', TType.STRING, 0) |
| 1344 | oprot.writeString(self.success) |
| 1345 | oprot.writeFieldEnd() |
| 1346 | oprot.writeFieldStop() |
| 1347 | oprot.writeStructEnd() |
| 1348 | |
| 1349 | def __str__(self): |
| 1350 | return str(self.__dict__) |
| 1351 | |
| 1352 | def __repr__(self): |
| 1353 | return repr(self.__dict__) |
| 1354 | |
| 1355 | def __eq__(self, other): |
| 1356 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1357 | |
| 1358 | def __ne__(self, other): |
| 1359 | return not (self == other) |
| 1360 | |
| 1361 | class getOptions_args: |
| 1362 | |
| 1363 | thrift_spec = ( |
| 1364 | ) |
| 1365 | |
| 1366 | def __init__(self, d=None): |
| 1367 | pass |
| 1368 | |
| 1369 | def read(self, iprot): |
| 1370 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1371 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1372 | return |
| 1373 | iprot.readStructBegin() |
| 1374 | while True: |
| 1375 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1376 | if ftype == TType.STOP: |
| 1377 | break |
| 1378 | else: |
| 1379 | iprot.skip(ftype) |
| 1380 | iprot.readFieldEnd() |
| 1381 | iprot.readStructEnd() |
| 1382 | |
| 1383 | def write(self, oprot): |
| 1384 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1385 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1386 | return |
| 1387 | oprot.writeStructBegin('getOptions_args') |
| 1388 | oprot.writeFieldStop() |
| 1389 | oprot.writeStructEnd() |
| 1390 | |
| 1391 | def __str__(self): |
| 1392 | return str(self.__dict__) |
| 1393 | |
| 1394 | def __repr__(self): |
| 1395 | return repr(self.__dict__) |
| 1396 | |
| 1397 | def __eq__(self, other): |
| 1398 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1399 | |
| 1400 | def __ne__(self, other): |
| 1401 | return not (self == other) |
| 1402 | |
| 1403 | class getOptions_result: |
| 1404 | |
| 1405 | thrift_spec = ( |
| 1406 | (0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0 |
| 1407 | ) |
| 1408 | |
| 1409 | def __init__(self, d=None): |
| 1410 | self.success = None |
| 1411 | if isinstance(d, dict): |
| 1412 | if 'success' in d: |
| 1413 | self.success = d['success'] |
| 1414 | |
| 1415 | def read(self, iprot): |
| 1416 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1417 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1418 | return |
| 1419 | iprot.readStructBegin() |
| 1420 | while True: |
| 1421 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1422 | if ftype == TType.STOP: |
| 1423 | break |
| 1424 | if fid == 0: |
| 1425 | if ftype == TType.MAP: |
| 1426 | self.success = {} |
| 1427 | (_ktype10, _vtype11, _size9 ) = iprot.readMapBegin() |
| 1428 | for _i13 in xrange(_size9): |
| 1429 | _key14 = iprot.readString(); |
| 1430 | _val15 = iprot.readString(); |
| 1431 | self.success[_key14] = _val15 |
| 1432 | iprot.readMapEnd() |
| 1433 | else: |
| 1434 | iprot.skip(ftype) |
| 1435 | else: |
| 1436 | iprot.skip(ftype) |
| 1437 | iprot.readFieldEnd() |
| 1438 | iprot.readStructEnd() |
| 1439 | |
| 1440 | def write(self, oprot): |
| 1441 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1442 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1443 | return |
| 1444 | oprot.writeStructBegin('getOptions_result') |
| 1445 | if self.success != None: |
| 1446 | oprot.writeFieldBegin('success', TType.MAP, 0) |
| 1447 | oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) |
| 1448 | for kiter16,viter17 in self.success.items(): |
| 1449 | oprot.writeString(kiter16) |
| 1450 | oprot.writeString(viter17) |
| 1451 | oprot.writeMapEnd() |
| 1452 | oprot.writeFieldEnd() |
| 1453 | oprot.writeFieldStop() |
| 1454 | oprot.writeStructEnd() |
| 1455 | |
| 1456 | def __str__(self): |
| 1457 | return str(self.__dict__) |
| 1458 | |
| 1459 | def __repr__(self): |
| 1460 | return repr(self.__dict__) |
| 1461 | |
| 1462 | def __eq__(self, other): |
| 1463 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1464 | |
| 1465 | def __ne__(self, other): |
| 1466 | return not (self == other) |
| 1467 | |
| 1468 | class aliveSince_args: |
| 1469 | |
| 1470 | thrift_spec = ( |
| 1471 | ) |
| 1472 | |
| 1473 | def __init__(self, d=None): |
| 1474 | pass |
| 1475 | |
| 1476 | def read(self, iprot): |
| 1477 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1478 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1479 | return |
| 1480 | iprot.readStructBegin() |
| 1481 | while True: |
| 1482 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1483 | if ftype == TType.STOP: |
| 1484 | break |
| 1485 | else: |
| 1486 | iprot.skip(ftype) |
| 1487 | iprot.readFieldEnd() |
| 1488 | iprot.readStructEnd() |
| 1489 | |
| 1490 | def write(self, oprot): |
| 1491 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1492 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1493 | return |
| 1494 | oprot.writeStructBegin('aliveSince_args') |
| 1495 | oprot.writeFieldStop() |
| 1496 | oprot.writeStructEnd() |
| 1497 | |
| 1498 | def __str__(self): |
| 1499 | return str(self.__dict__) |
| 1500 | |
| 1501 | def __repr__(self): |
| 1502 | return repr(self.__dict__) |
| 1503 | |
| 1504 | def __eq__(self, other): |
| 1505 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1506 | |
| 1507 | def __ne__(self, other): |
| 1508 | return not (self == other) |
| 1509 | |
| 1510 | class aliveSince_result: |
| 1511 | |
| 1512 | thrift_spec = ( |
| 1513 | (0, TType.I64, 'success', None, None, ), # 0 |
| 1514 | ) |
| 1515 | |
| 1516 | def __init__(self, d=None): |
| 1517 | self.success = None |
| 1518 | if isinstance(d, dict): |
| 1519 | if 'success' in d: |
| 1520 | self.success = d['success'] |
| 1521 | |
| 1522 | def read(self, iprot): |
| 1523 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1524 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1525 | return |
| 1526 | iprot.readStructBegin() |
| 1527 | while True: |
| 1528 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1529 | if ftype == TType.STOP: |
| 1530 | break |
| 1531 | if fid == 0: |
| 1532 | if ftype == TType.I64: |
| 1533 | self.success = iprot.readI64(); |
| 1534 | else: |
| 1535 | iprot.skip(ftype) |
| 1536 | else: |
| 1537 | iprot.skip(ftype) |
| 1538 | iprot.readFieldEnd() |
| 1539 | iprot.readStructEnd() |
| 1540 | |
| 1541 | def write(self, oprot): |
| 1542 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1543 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1544 | return |
| 1545 | oprot.writeStructBegin('aliveSince_result') |
| 1546 | if self.success != None: |
| 1547 | oprot.writeFieldBegin('success', TType.I64, 0) |
| 1548 | oprot.writeI64(self.success) |
| 1549 | oprot.writeFieldEnd() |
| 1550 | oprot.writeFieldStop() |
| 1551 | oprot.writeStructEnd() |
| 1552 | |
| 1553 | def __str__(self): |
| 1554 | return str(self.__dict__) |
| 1555 | |
| 1556 | def __repr__(self): |
| 1557 | return repr(self.__dict__) |
| 1558 | |
| 1559 | def __eq__(self, other): |
| 1560 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1561 | |
| 1562 | def __ne__(self, other): |
| 1563 | return not (self == other) |
| 1564 | |
| 1565 | class getLimitedReflection_args: |
| 1566 | |
| 1567 | thrift_spec = ( |
| 1568 | ) |
| 1569 | |
| 1570 | def __init__(self, d=None): |
| 1571 | pass |
| 1572 | |
| 1573 | def read(self, iprot): |
| 1574 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1575 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1576 | return |
| 1577 | iprot.readStructBegin() |
| 1578 | while True: |
| 1579 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1580 | if ftype == TType.STOP: |
| 1581 | break |
| 1582 | else: |
| 1583 | iprot.skip(ftype) |
| 1584 | iprot.readFieldEnd() |
| 1585 | iprot.readStructEnd() |
| 1586 | |
| 1587 | def write(self, oprot): |
| 1588 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1589 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1590 | return |
| 1591 | oprot.writeStructBegin('getLimitedReflection_args') |
| 1592 | oprot.writeFieldStop() |
| 1593 | oprot.writeStructEnd() |
| 1594 | |
| 1595 | def __str__(self): |
| 1596 | return str(self.__dict__) |
| 1597 | |
| 1598 | def __repr__(self): |
| 1599 | return repr(self.__dict__) |
| 1600 | |
| 1601 | def __eq__(self, other): |
| 1602 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1603 | |
| 1604 | def __ne__(self, other): |
| 1605 | return not (self == other) |
| 1606 | |
| 1607 | class getLimitedReflection_result: |
| 1608 | |
| 1609 | thrift_spec = ( |
| 1610 | (0, TType.STRUCT, 'success', (thrift.reflection.limited.ttypes.Service, thrift.reflection.limited.ttypes.Service.thrift_spec), None, ), # 0 |
| 1611 | ) |
| 1612 | |
| 1613 | def __init__(self, d=None): |
| 1614 | self.success = None |
| 1615 | if isinstance(d, dict): |
| 1616 | if 'success' in d: |
| 1617 | self.success = d['success'] |
| 1618 | |
| 1619 | def read(self, iprot): |
| 1620 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1621 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1622 | return |
| 1623 | iprot.readStructBegin() |
| 1624 | while True: |
| 1625 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1626 | if ftype == TType.STOP: |
| 1627 | break |
| 1628 | if fid == 0: |
| 1629 | if ftype == TType.STRUCT: |
| 1630 | self.success = thrift.reflection.limited.ttypes.Service() |
| 1631 | self.success.read(iprot) |
| 1632 | else: |
| 1633 | iprot.skip(ftype) |
| 1634 | else: |
| 1635 | iprot.skip(ftype) |
| 1636 | iprot.readFieldEnd() |
| 1637 | iprot.readStructEnd() |
| 1638 | |
| 1639 | def write(self, oprot): |
| 1640 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1641 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1642 | return |
| 1643 | oprot.writeStructBegin('getLimitedReflection_result') |
| 1644 | if self.success != None: |
| 1645 | oprot.writeFieldBegin('success', TType.STRUCT, 0) |
| 1646 | self.success.write(oprot) |
| 1647 | oprot.writeFieldEnd() |
| 1648 | oprot.writeFieldStop() |
| 1649 | oprot.writeStructEnd() |
| 1650 | |
| 1651 | def __str__(self): |
| 1652 | return str(self.__dict__) |
| 1653 | |
| 1654 | def __repr__(self): |
| 1655 | return repr(self.__dict__) |
| 1656 | |
| 1657 | def __eq__(self, other): |
| 1658 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1659 | |
| 1660 | def __ne__(self, other): |
| 1661 | return not (self == other) |
| 1662 | |
| 1663 | class reinitialize_args: |
| 1664 | |
| 1665 | thrift_spec = ( |
| 1666 | ) |
| 1667 | |
| 1668 | def __init__(self, d=None): |
| 1669 | pass |
| 1670 | |
| 1671 | def read(self, iprot): |
| 1672 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1673 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1674 | return |
| 1675 | iprot.readStructBegin() |
| 1676 | while True: |
| 1677 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1678 | if ftype == TType.STOP: |
| 1679 | break |
| 1680 | else: |
| 1681 | iprot.skip(ftype) |
| 1682 | iprot.readFieldEnd() |
| 1683 | iprot.readStructEnd() |
| 1684 | |
| 1685 | def write(self, oprot): |
| 1686 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1687 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1688 | return |
| 1689 | oprot.writeStructBegin('reinitialize_args') |
| 1690 | oprot.writeFieldStop() |
| 1691 | oprot.writeStructEnd() |
| 1692 | |
| 1693 | def __str__(self): |
| 1694 | return str(self.__dict__) |
| 1695 | |
| 1696 | def __repr__(self): |
| 1697 | return repr(self.__dict__) |
| 1698 | |
| 1699 | def __eq__(self, other): |
| 1700 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1701 | |
| 1702 | def __ne__(self, other): |
| 1703 | return not (self == other) |
| 1704 | |
| 1705 | class reinitialize_result: |
| 1706 | |
| 1707 | thrift_spec = ( |
| 1708 | ) |
| 1709 | |
| 1710 | def __init__(self, d=None): |
| 1711 | pass |
| 1712 | |
| 1713 | def read(self, iprot): |
| 1714 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1715 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1716 | return |
| 1717 | iprot.readStructBegin() |
| 1718 | while True: |
| 1719 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1720 | if ftype == TType.STOP: |
| 1721 | break |
| 1722 | else: |
| 1723 | iprot.skip(ftype) |
| 1724 | iprot.readFieldEnd() |
| 1725 | iprot.readStructEnd() |
| 1726 | |
| 1727 | def write(self, oprot): |
| 1728 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1729 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1730 | return |
| 1731 | oprot.writeStructBegin('reinitialize_result') |
| 1732 | oprot.writeFieldStop() |
| 1733 | oprot.writeStructEnd() |
| 1734 | |
| 1735 | def __str__(self): |
| 1736 | return str(self.__dict__) |
| 1737 | |
| 1738 | def __repr__(self): |
| 1739 | return repr(self.__dict__) |
| 1740 | |
| 1741 | def __eq__(self, other): |
| 1742 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1743 | |
| 1744 | def __ne__(self, other): |
| 1745 | return not (self == other) |
| 1746 | |
| 1747 | class shutdown_args: |
| 1748 | |
| 1749 | thrift_spec = ( |
| 1750 | ) |
| 1751 | |
| 1752 | def __init__(self, d=None): |
| 1753 | pass |
| 1754 | |
| 1755 | def read(self, iprot): |
| 1756 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1757 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1758 | return |
| 1759 | iprot.readStructBegin() |
| 1760 | while True: |
| 1761 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1762 | if ftype == TType.STOP: |
| 1763 | break |
| 1764 | else: |
| 1765 | iprot.skip(ftype) |
| 1766 | iprot.readFieldEnd() |
| 1767 | iprot.readStructEnd() |
| 1768 | |
| 1769 | def write(self, oprot): |
| 1770 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1771 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1772 | return |
| 1773 | oprot.writeStructBegin('shutdown_args') |
| 1774 | oprot.writeFieldStop() |
| 1775 | oprot.writeStructEnd() |
| 1776 | |
| 1777 | def __str__(self): |
| 1778 | return str(self.__dict__) |
| 1779 | |
| 1780 | def __repr__(self): |
| 1781 | return repr(self.__dict__) |
| 1782 | |
| 1783 | def __eq__(self, other): |
| 1784 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1785 | |
| 1786 | def __ne__(self, other): |
| 1787 | return not (self == other) |
| 1788 | |
| 1789 | class shutdown_result: |
| 1790 | |
| 1791 | thrift_spec = ( |
| 1792 | ) |
| 1793 | |
| 1794 | def __init__(self, d=None): |
| 1795 | pass |
| 1796 | |
| 1797 | def read(self, iprot): |
| 1798 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: |
| 1799 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) |
| 1800 | return |
| 1801 | iprot.readStructBegin() |
| 1802 | while True: |
| 1803 | (fname, ftype, fid) = iprot.readFieldBegin() |
| 1804 | if ftype == TType.STOP: |
| 1805 | break |
| 1806 | else: |
| 1807 | iprot.skip(ftype) |
| 1808 | iprot.readFieldEnd() |
| 1809 | iprot.readStructEnd() |
| 1810 | |
| 1811 | def write(self, oprot): |
| 1812 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: |
| 1813 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) |
| 1814 | return |
| 1815 | oprot.writeStructBegin('shutdown_result') |
| 1816 | oprot.writeFieldStop() |
| 1817 | oprot.writeStructEnd() |
| 1818 | |
| 1819 | def __str__(self): |
| 1820 | return str(self.__dict__) |
| 1821 | |
| 1822 | def __repr__(self): |
| 1823 | return repr(self.__dict__) |
| 1824 | |
| 1825 | def __eq__(self, other): |
| 1826 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ |
| 1827 | |
| 1828 | def __ne__(self, other): |
| 1829 | return not (self == other) |
| 1830 | |
| 1831 | |