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