Subversion Repositories SmartDukaan

Rev

Rev 11980 | Rev 12696 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11980 Rev 11982
Line 5248... Line 5248...
5248
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5248
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5249
        return (new Client(prot)).recv_getPrivateDealUser();
5249
        return (new Client(prot)).recv_getPrivateDealUser();
5250
      }
5250
      }
5251
    }
5251
    }
5252
 
5252
 
5253
    public void addPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<addPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
5254
      checkReady();
-
 
5255
      addPrivateDealUser_call method_call = new addPrivateDealUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
-
 
5256
      this.___currentMethod = method_call;
-
 
5257
      ___manager.call(method_call);
-
 
5258
    }
-
 
5259
 
-
 
5260
    public static class addPrivateDealUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5261
      private long userId;
-
 
5262
      public addPrivateDealUser_call(long userId, org.apache.thrift.async.AsyncMethodCallback<addPrivateDealUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
5263
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5264
        this.userId = userId;
-
 
5265
      }
-
 
5266
 
-
 
5267
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5268
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPrivateDealUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5269
        addPrivateDealUser_args args = new addPrivateDealUser_args();
-
 
5270
        args.setUserId(userId);
-
 
5271
        args.write(prot);
-
 
5272
        prot.writeMessageEnd();
-
 
5273
      }
-
 
5274
 
-
 
5275
      public boolean getResult() throws org.apache.thrift.TException {
-
 
5276
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5277
          throw new IllegalStateException("Method call not finished!");
-
 
5278
        }
-
 
5279
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5280
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5281
        return (new Client(prot)).recv_addPrivateDealUser();
-
 
5282
      }
-
 
5283
    }
-
 
5284
 
-
 
5285
    public void changePrivateDealUserStatus(long userId, boolean isActive, org.apache.thrift.async.AsyncMethodCallback<changePrivateDealUserStatus_call> resultHandler) throws org.apache.thrift.TException {
-
 
5286
      checkReady();
-
 
5287
      changePrivateDealUserStatus_call method_call = new changePrivateDealUserStatus_call(userId, isActive, resultHandler, this, ___protocolFactory, ___transport);
-
 
5288
      this.___currentMethod = method_call;
-
 
5289
      ___manager.call(method_call);
-
 
5290
    }
-
 
5291
 
-
 
5292
    public static class changePrivateDealUserStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5293
      private long userId;
-
 
5294
      private boolean isActive;
-
 
5295
      public changePrivateDealUserStatus_call(long userId, boolean isActive, org.apache.thrift.async.AsyncMethodCallback<changePrivateDealUserStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
5296
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5297
        this.userId = userId;
-
 
5298
        this.isActive = isActive;
-
 
5299
      }
-
 
5300
 
-
 
5301
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5302
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changePrivateDealUserStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5303
        changePrivateDealUserStatus_args args = new changePrivateDealUserStatus_args();
-
 
5304
        args.setUserId(userId);
-
 
5305
        args.setIsActive(isActive);
-
 
5306
        args.write(prot);
-
 
5307
        prot.writeMessageEnd();
-
 
5308
      }
-
 
5309
 
-
 
5310
      public boolean getResult() throws org.apache.thrift.TException {
-
 
5311
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5312
          throw new IllegalStateException("Method call not finished!");
-
 
5313
        }
-
 
5314
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5315
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5316
        return (new Client(prot)).recv_changePrivateDealUserStatus();
-
 
5317
      }
-
 
5318
    }
-
 
5319
 
-
 
5320
    public void getPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
5321
      checkReady();
-
 
5322
      getPrivateDealUser_call method_call = new getPrivateDealUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
-
 
5323
      this.___currentMethod = method_call;
-
 
5324
      ___manager.call(method_call);
-
 
5325
    }
-
 
5326
 
-
 
5327
    public static class getPrivateDealUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5328
      private long userId;
-
 
5329
      public getPrivateDealUser_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
5330
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5331
        this.userId = userId;
-
 
5332
      }
-
 
5333
 
-
 
5334
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5335
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPrivateDealUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5336
        getPrivateDealUser_args args = new getPrivateDealUser_args();
-
 
5337
        args.setUserId(userId);
-
 
5338
        args.write(prot);
-
 
5339
        prot.writeMessageEnd();
-
 
5340
      }
-
 
5341
 
-
 
5342
      public PrivateDealUser getResult() throws org.apache.thrift.TException {
-
 
5343
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5344
          throw new IllegalStateException("Method call not finished!");
-
 
5345
        }
-
 
5346
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5347
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5348
        return (new Client(prot)).recv_getPrivateDealUser();
-
 
5349
      }
-
 
5350
    }
-
 
5351
 
-
 
5352
  }
5253
  }
5353
 
5254
 
5354
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5255
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5355
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5256
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5356
    public Processor(I iface) {
5257
    public Processor(I iface) {