Subversion Repositories SmartDukaan

Rev

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

Rev 3499 Rev 3530
Line 396... Line 396...
396
    }
396
    }
397
 
397
 
398
    public void processCODTxn(long transactionId) throws org.apache.thrift.TException
398
    public void processCODTxn(long transactionId) throws org.apache.thrift.TException
399
    {
399
    {
400
      send_processCODTxn(transactionId);
400
      send_processCODTxn(transactionId);
401
      recv_processCODTxn();
-
 
402
    }
401
    }
403
 
402
 
404
    public void send_processCODTxn(long transactionId) throws org.apache.thrift.TException
403
    public void send_processCODTxn(long transactionId) throws org.apache.thrift.TException
405
    {
404
    {
406
      processCODTxn_args args = new processCODTxn_args();
405
      processCODTxn_args args = new processCODTxn_args();
407
      args.setTransactionId(transactionId);
406
      args.setTransactionId(transactionId);
408
      sendBase("processCODTxn", args);
407
      sendBase("processCODTxn", args);
409
    }
408
    }
410
 
409
 
411
    public void recv_processCODTxn() throws org.apache.thrift.TException
-
 
412
    {
-
 
413
      processCODTxn_result result = new processCODTxn_result();
-
 
414
      receiveBase(result, "processCODTxn");
-
 
415
      return;
-
 
416
    }
-
 
417
 
-
 
418
  }
410
  }
419
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
411
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
420
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
412
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
421
      private org.apache.thrift.async.TAsyncClientManager clientManager;
413
      private org.apache.thrift.async.TAsyncClientManager clientManager;
422
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
414
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 863... Line 855...
863
    }
855
    }
864
 
856
 
865
    public static class processCODTxn_call extends org.apache.thrift.async.TAsyncMethodCall {
857
    public static class processCODTxn_call extends org.apache.thrift.async.TAsyncMethodCall {
866
      private long transactionId;
858
      private long transactionId;
867
      public processCODTxn_call(long transactionId, org.apache.thrift.async.AsyncMethodCallback<processCODTxn_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 {
859
      public processCODTxn_call(long transactionId, org.apache.thrift.async.AsyncMethodCallback<processCODTxn_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 {
868
        super(client, protocolFactory, transport, resultHandler, false);
860
        super(client, protocolFactory, transport, resultHandler, true);
869
        this.transactionId = transactionId;
861
        this.transactionId = transactionId;
870
      }
862
      }
871
 
863
 
872
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
864
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
873
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("processCODTxn", org.apache.thrift.protocol.TMessageType.CALL, 0));
865
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("processCODTxn", org.apache.thrift.protocol.TMessageType.CALL, 0));
Line 881... Line 873...
881
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
873
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
882
          throw new IllegalStateException("Method call not finished!");
874
          throw new IllegalStateException("Method call not finished!");
883
        }
875
        }
884
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
876
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
885
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
877
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
886
        (new Client(prot)).recv_processCODTxn();
-
 
887
      }
878
      }
888
    }
879
    }
889
 
880
 
890
  }
881
  }
891
 
882
 
Line 1135... Line 1126...
1135
 
1126
 
1136
      protected processCODTxn_args getEmptyArgsInstance() {
1127
      protected processCODTxn_args getEmptyArgsInstance() {
1137
        return new processCODTxn_args();
1128
        return new processCODTxn_args();
1138
      }
1129
      }
1139
 
1130
 
1140
      protected processCODTxn_result getResult(I iface, processCODTxn_args args) throws org.apache.thrift.TException {
1131
      protected org.apache.thrift.TBase getResult(I iface, processCODTxn_args args) throws org.apache.thrift.TException {
1141
        processCODTxn_result result = new processCODTxn_result();
-
 
1142
        iface.processCODTxn(args.transactionId);
1132
        iface.processCODTxn(args.transactionId);
1143
        return result;
1133
        return null;
1144
      }
1134
      }
1145
    }
1135
    }
1146
 
1136
 
1147
  }
1137
  }
1148
 
1138
 
Line 9083... Line 9073...
9083
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9073
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9084
      } catch (org.apache.thrift.TException te) {
9074
      } catch (org.apache.thrift.TException te) {
9085
        throw new java.io.IOException(te);
9075
        throw new java.io.IOException(te);
9086
      }
9076
      }
9087
    }
9077
    }
9088
 
-
 
9089
  }
-
 
9090
 
-
 
9091
  public static class processCODTxn_result implements org.apache.thrift.TBase<processCODTxn_result, processCODTxn_result._Fields>, java.io.Serializable, Cloneable   {
-
 
9092
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processCODTxn_result");
-
 
9093
 
-
 
9094
 
-
 
9095
 
-
 
9096
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9097
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
9098
;
-
 
9099
 
-
 
9100
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9101
 
-
 
9102
      static {
-
 
9103
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9104
          byName.put(field.getFieldName(), field);
-
 
9105
        }
-
 
9106
      }
-
 
9107
 
-
 
9108
      /**
-
 
9109
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9110
       */
-
 
9111
      public static _Fields findByThriftId(int fieldId) {
-
 
9112
        switch(fieldId) {
-
 
9113
          default:
-
 
9114
            return null;
-
 
9115
        }
-
 
9116
      }
-
 
9117
 
-
 
9118
      /**
-
 
9119
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9120
       * if it is not found.
-
 
9121
       */
-
 
9122
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9123
        _Fields fields = findByThriftId(fieldId);
-
 
9124
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9125
        return fields;
-
 
9126
      }
-
 
9127
 
-
 
9128
      /**
-
 
9129
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9130
       */
-
 
9131
      public static _Fields findByName(String name) {
-
 
9132
        return byName.get(name);
-
 
9133
      }
-
 
9134
 
-
 
9135
      private final short _thriftId;
-
 
9136
      private final String _fieldName;
-
 
9137
 
-
 
9138
      _Fields(short thriftId, String fieldName) {
-
 
9139
        _thriftId = thriftId;
-
 
9140
        _fieldName = fieldName;
-
 
9141
      }
-
 
9142
 
-
 
9143
      public short getThriftFieldId() {
-
 
9144
        return _thriftId;
-
 
9145
      }
-
 
9146
 
-
 
9147
      public String getFieldName() {
-
 
9148
        return _fieldName;
-
 
9149
      }
-
 
9150
    }
-
 
9151
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
9152
    static {
-
 
9153
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9154
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
9155
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processCODTxn_result.class, metaDataMap);
-
 
9156
    }
-
 
9157
 
-
 
9158
    public processCODTxn_result() {
-
 
9159
    }
-
 
9160
 
-
 
9161
    /**
-
 
9162
     * Performs a deep copy on <i>other</i>.
-
 
9163
     */
-
 
9164
    public processCODTxn_result(processCODTxn_result other) {
-
 
9165
    }
-
 
9166
 
-
 
9167
    public processCODTxn_result deepCopy() {
-
 
9168
      return new processCODTxn_result(this);
-
 
9169
    }
-
 
9170
 
-
 
9171
    @Override
-
 
9172
    public void clear() {
-
 
9173
    }
-
 
9174
 
-
 
9175
    public void setFieldValue(_Fields field, Object value) {
-
 
9176
      switch (field) {
-
 
9177
      }
-
 
9178
    }
-
 
9179
 
-
 
9180
    public Object getFieldValue(_Fields field) {
-
 
9181
      switch (field) {
-
 
9182
      }
-
 
9183
      throw new IllegalStateException();
-
 
9184
    }
-
 
9185
 
-
 
9186
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
9187
    public boolean isSet(_Fields field) {
-
 
9188
      if (field == null) {
-
 
9189
        throw new IllegalArgumentException();
-
 
9190
      }
-
 
9191
 
-
 
9192
      switch (field) {
-
 
9193
      }
-
 
9194
      throw new IllegalStateException();
-
 
9195
    }
-
 
9196
 
-
 
9197
    @Override
-
 
9198
    public boolean equals(Object that) {
-
 
9199
      if (that == null)
-
 
9200
        return false;
-
 
9201
      if (that instanceof processCODTxn_result)
-
 
9202
        return this.equals((processCODTxn_result)that);
-
 
9203
      return false;
-
 
9204
    }
-
 
9205
 
-
 
9206
    public boolean equals(processCODTxn_result that) {
-
 
9207
      if (that == null)
-
 
9208
        return false;
-
 
9209
 
-
 
9210
      return true;
-
 
9211
    }
-
 
9212
 
-
 
9213
    @Override
-
 
9214
    public int hashCode() {
-
 
9215
      return 0;
-
 
9216
    }
-
 
9217
 
-
 
9218
    public int compareTo(processCODTxn_result other) {
-
 
9219
      if (!getClass().equals(other.getClass())) {
-
 
9220
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9221
      }
-
 
9222
 
-
 
9223
      int lastComparison = 0;
-
 
9224
      processCODTxn_result typedOther = (processCODTxn_result)other;
-
 
9225
 
-
 
9226
      return 0;
-
 
9227
    }
-
 
9228
 
-
 
9229
    public _Fields fieldForId(int fieldId) {
-
 
9230
      return _Fields.findByThriftId(fieldId);
-
 
9231
    }
-
 
9232
 
-
 
9233
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9234
      org.apache.thrift.protocol.TField field;
-
 
9235
      iprot.readStructBegin();
-
 
9236
      while (true)
-
 
9237
      {
-
 
9238
        field = iprot.readFieldBegin();
-
 
9239
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
9240
          break;
-
 
9241
        }
-
 
9242
        switch (field.id) {
-
 
9243
          default:
-
 
9244
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9245
        }
-
 
9246
        iprot.readFieldEnd();
-
 
9247
      }
-
 
9248
      iprot.readStructEnd();
-
 
9249
      validate();
-
 
9250
    }
-
 
9251
 
-
 
9252
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
9253
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9254
 
-
 
9255
      oprot.writeFieldStop();
-
 
9256
      oprot.writeStructEnd();
-
 
9257
    }
-
 
9258
 
-
 
9259
    @Override
-
 
9260
    public String toString() {
-
 
9261
      StringBuilder sb = new StringBuilder("processCODTxn_result(");
-
 
9262
      boolean first = true;
-
 
9263
 
-
 
9264
      sb.append(")");
-
 
9265
      return sb.toString();
-
 
9266
    }
-
 
9267
 
-
 
9268
    public void validate() throws org.apache.thrift.TException {
-
 
9269
      // check for required fields
-
 
9270
    }
-
 
9271
 
-
 
9272
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9273
      try {
-
 
9274
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9275
      } catch (org.apache.thrift.TException te) {
-
 
9276
        throw new java.io.IOException(te);
-
 
9277
      }
-
 
9278
    }
-
 
9279
 
-
 
9280
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9281
      try {
-
 
9282
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9283
      } catch (org.apache.thrift.TException te) {
-
 
9284
        throw new java.io.IOException(te);
-
 
9285
      }
-
 
9286
    }
-
 
9287
 
9078
 
9288
  }
9079
  }
9289
 
9080
 
9290
}
9081
}