Subversion Repositories SmartDukaan

Rev

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

Rev 10450 Rev 10485
Line 369... Line 369...
369
 
369
 
370
    public List<FlipkartInventorySnapshot> getFlipkartInventorySnapshot() throws org.apache.thrift.TException;
370
    public List<FlipkartInventorySnapshot> getFlipkartInventorySnapshot() throws org.apache.thrift.TException;
371
 
371
 
372
    public FlipkartInventorySnapshot getFlipkartlInventoryForItem(long item_id) throws org.apache.thrift.TException;
372
    public FlipkartInventorySnapshot getFlipkartlInventoryForItem(long item_id) throws org.apache.thrift.TException;
373
 
373
 
-
 
374
    public Map<Long,String> getStateMaster() throws org.apache.thrift.TException;
-
 
375
 
374
  }
376
  }
375
 
377
 
376
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
378
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
377
 
379
 
378
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
380
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 523... Line 525...
523
 
525
 
524
    public void getFlipkartInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
526
    public void getFlipkartInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
525
 
527
 
526
    public void getFlipkartlInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartlInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
528
    public void getFlipkartlInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartlInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
527
 
529
 
-
 
530
    public void getStateMaster(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStateMaster_call> resultHandler) throws org.apache.thrift.TException;
-
 
531
 
528
  }
532
  }
529
 
533
 
530
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
534
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
531
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
535
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
532
      public Factory() {}
536
      public Factory() {}
Line 2326... Line 2330...
2326
        return result.success;
2330
        return result.success;
2327
      }
2331
      }
2328
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartlInventoryForItem failed: unknown result");
2332
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartlInventoryForItem failed: unknown result");
2329
    }
2333
    }
2330
 
2334
 
-
 
2335
    public Map<Long,String> getStateMaster() throws org.apache.thrift.TException
-
 
2336
    {
-
 
2337
      send_getStateMaster();
-
 
2338
      return recv_getStateMaster();
-
 
2339
    }
-
 
2340
 
-
 
2341
    public void send_getStateMaster() throws org.apache.thrift.TException
-
 
2342
    {
-
 
2343
      getStateMaster_args args = new getStateMaster_args();
-
 
2344
      sendBase("getStateMaster", args);
-
 
2345
    }
-
 
2346
 
-
 
2347
    public Map<Long,String> recv_getStateMaster() throws org.apache.thrift.TException
-
 
2348
    {
-
 
2349
      getStateMaster_result result = new getStateMaster_result();
-
 
2350
      receiveBase(result, "getStateMaster");
-
 
2351
      if (result.isSetSuccess()) {
-
 
2352
        return result.success;
-
 
2353
      }
-
 
2354
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStateMaster failed: unknown result");
-
 
2355
    }
-
 
2356
 
2331
  }
2357
  }
2332
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2358
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2333
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2359
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2334
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2360
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2335
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2361
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4894... Line 4920...
4894
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4920
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4895
        return (new Client(prot)).recv_getFlipkartlInventoryForItem();
4921
        return (new Client(prot)).recv_getFlipkartlInventoryForItem();
4896
      }
4922
      }
4897
    }
4923
    }
4898
 
4924
 
-
 
4925
    public void getStateMaster(org.apache.thrift.async.AsyncMethodCallback<getStateMaster_call> resultHandler) throws org.apache.thrift.TException {
-
 
4926
      checkReady();
-
 
4927
      getStateMaster_call method_call = new getStateMaster_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
4928
      this.___currentMethod = method_call;
-
 
4929
      ___manager.call(method_call);
-
 
4930
    }
-
 
4931
 
-
 
4932
    public static class getStateMaster_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4933
      public getStateMaster_call(org.apache.thrift.async.AsyncMethodCallback<getStateMaster_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 {
-
 
4934
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4935
      }
-
 
4936
 
-
 
4937
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4938
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getStateMaster", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4939
        getStateMaster_args args = new getStateMaster_args();
-
 
4940
        args.write(prot);
-
 
4941
        prot.writeMessageEnd();
-
 
4942
      }
-
 
4943
 
-
 
4944
      public Map<Long,String> getResult() throws org.apache.thrift.TException {
-
 
4945
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4946
          throw new IllegalStateException("Method call not finished!");
-
 
4947
        }
-
 
4948
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4949
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4950
        return (new Client(prot)).recv_getStateMaster();
-
 
4951
      }
-
 
4952
    }
-
 
4953
 
4899
  }
4954
  }
4900
 
4955
 
4901
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4956
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4902
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4957
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4903
    public Processor(I iface) {
4958
    public Processor(I iface) {
Line 4982... Line 5037...
4982
      processMap.put("getSnapdealInventorySnapshot", new getSnapdealInventorySnapshot());
5037
      processMap.put("getSnapdealInventorySnapshot", new getSnapdealInventorySnapshot());
4983
      processMap.put("getHoldInventoryDetails", new getHoldInventoryDetails());
5038
      processMap.put("getHoldInventoryDetails", new getHoldInventoryDetails());
4984
      processMap.put("addOrUpdateFlipkartInventorySnapshot", new addOrUpdateFlipkartInventorySnapshot());
5039
      processMap.put("addOrUpdateFlipkartInventorySnapshot", new addOrUpdateFlipkartInventorySnapshot());
4985
      processMap.put("getFlipkartInventorySnapshot", new getFlipkartInventorySnapshot());
5040
      processMap.put("getFlipkartInventorySnapshot", new getFlipkartInventorySnapshot());
4986
      processMap.put("getFlipkartlInventoryForItem", new getFlipkartlInventoryForItem());
5041
      processMap.put("getFlipkartlInventoryForItem", new getFlipkartlInventoryForItem());
-
 
5042
      processMap.put("getStateMaster", new getStateMaster());
4987
      return processMap;
5043
      return processMap;
4988
    }
5044
    }
4989
 
5045
 
4990
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
5046
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
4991
      public addWarehouse() {
5047
      public addWarehouse() {
Line 6295... Line 6351...
6295
        result.success = iface.getFlipkartlInventoryForItem(args.item_id);
6351
        result.success = iface.getFlipkartlInventoryForItem(args.item_id);
6296
        return result;
6352
        return result;
6297
      }
6353
      }
6298
    }
6354
    }
6299
 
6355
 
-
 
6356
    private static class getStateMaster<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getStateMaster_args> {
-
 
6357
      public getStateMaster() {
-
 
6358
        super("getStateMaster");
-
 
6359
      }
-
 
6360
 
-
 
6361
      protected getStateMaster_args getEmptyArgsInstance() {
-
 
6362
        return new getStateMaster_args();
-
 
6363
      }
-
 
6364
 
-
 
6365
      protected getStateMaster_result getResult(I iface, getStateMaster_args args) throws org.apache.thrift.TException {
-
 
6366
        getStateMaster_result result = new getStateMaster_result();
-
 
6367
        result.success = iface.getStateMaster();
-
 
6368
        return result;
-
 
6369
      }
-
 
6370
    }
-
 
6371
 
6300
  }
6372
  }
6301
 
6373
 
6302
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
6374
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
6303
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
6375
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
6304
 
6376
 
Line 55974... Line 56046...
55974
      boolean first = true;
56046
      boolean first = true;
55975
 
56047
 
55976
      sb.append("success:");
56048
      sb.append("success:");
55977
      if (this.success == null) {
56049
      if (this.success == null) {
55978
        sb.append("null");
56050
        sb.append("null");
-
 
56051
      } else {
-
 
56052
        sb.append(this.success);
-
 
56053
      }
-
 
56054
      first = false;
-
 
56055
      sb.append(")");
-
 
56056
      return sb.toString();
-
 
56057
    }
-
 
56058
 
-
 
56059
    public void validate() throws org.apache.thrift.TException {
-
 
56060
      // check for required fields
-
 
56061
    }
-
 
56062
 
-
 
56063
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
56064
      try {
-
 
56065
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
56066
      } catch (org.apache.thrift.TException te) {
-
 
56067
        throw new java.io.IOException(te);
-
 
56068
      }
-
 
56069
    }
-
 
56070
 
-
 
56071
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
56072
      try {
-
 
56073
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
56074
      } catch (org.apache.thrift.TException te) {
-
 
56075
        throw new java.io.IOException(te);
-
 
56076
      }
-
 
56077
    }
-
 
56078
 
-
 
56079
  }
-
 
56080
 
-
 
56081
  public static class getStateMaster_args implements org.apache.thrift.TBase<getStateMaster_args, getStateMaster_args._Fields>, java.io.Serializable, Cloneable   {
-
 
56082
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStateMaster_args");
-
 
56083
 
-
 
56084
 
-
 
56085
 
-
 
56086
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
56087
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
56088
;
-
 
56089
 
-
 
56090
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
56091
 
-
 
56092
      static {
-
 
56093
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
56094
          byName.put(field.getFieldName(), field);
-
 
56095
        }
-
 
56096
      }
-
 
56097
 
-
 
56098
      /**
-
 
56099
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
56100
       */
-
 
56101
      public static _Fields findByThriftId(int fieldId) {
-
 
56102
        switch(fieldId) {
-
 
56103
          default:
-
 
56104
            return null;
-
 
56105
        }
-
 
56106
      }
-
 
56107
 
-
 
56108
      /**
-
 
56109
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
56110
       * if it is not found.
-
 
56111
       */
-
 
56112
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
56113
        _Fields fields = findByThriftId(fieldId);
-
 
56114
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
56115
        return fields;
-
 
56116
      }
-
 
56117
 
-
 
56118
      /**
-
 
56119
       * Find the _Fields constant that matches name, or null if its not found.
-
 
56120
       */
-
 
56121
      public static _Fields findByName(String name) {
-
 
56122
        return byName.get(name);
-
 
56123
      }
-
 
56124
 
-
 
56125
      private final short _thriftId;
-
 
56126
      private final String _fieldName;
-
 
56127
 
-
 
56128
      _Fields(short thriftId, String fieldName) {
-
 
56129
        _thriftId = thriftId;
-
 
56130
        _fieldName = fieldName;
-
 
56131
      }
-
 
56132
 
-
 
56133
      public short getThriftFieldId() {
-
 
56134
        return _thriftId;
-
 
56135
      }
-
 
56136
 
-
 
56137
      public String getFieldName() {
-
 
56138
        return _fieldName;
-
 
56139
      }
-
 
56140
    }
-
 
56141
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
56142
    static {
-
 
56143
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
56144
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
56145
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStateMaster_args.class, metaDataMap);
-
 
56146
    }
-
 
56147
 
-
 
56148
    public getStateMaster_args() {
-
 
56149
    }
-
 
56150
 
-
 
56151
    /**
-
 
56152
     * Performs a deep copy on <i>other</i>.
-
 
56153
     */
-
 
56154
    public getStateMaster_args(getStateMaster_args other) {
-
 
56155
    }
-
 
56156
 
-
 
56157
    public getStateMaster_args deepCopy() {
-
 
56158
      return new getStateMaster_args(this);
-
 
56159
    }
-
 
56160
 
-
 
56161
    @Override
-
 
56162
    public void clear() {
-
 
56163
    }
-
 
56164
 
-
 
56165
    public void setFieldValue(_Fields field, Object value) {
-
 
56166
      switch (field) {
-
 
56167
      }
-
 
56168
    }
-
 
56169
 
-
 
56170
    public Object getFieldValue(_Fields field) {
-
 
56171
      switch (field) {
-
 
56172
      }
-
 
56173
      throw new IllegalStateException();
-
 
56174
    }
-
 
56175
 
-
 
56176
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
56177
    public boolean isSet(_Fields field) {
-
 
56178
      if (field == null) {
-
 
56179
        throw new IllegalArgumentException();
-
 
56180
      }
-
 
56181
 
-
 
56182
      switch (field) {
-
 
56183
      }
-
 
56184
      throw new IllegalStateException();
-
 
56185
    }
-
 
56186
 
-
 
56187
    @Override
-
 
56188
    public boolean equals(Object that) {
-
 
56189
      if (that == null)
-
 
56190
        return false;
-
 
56191
      if (that instanceof getStateMaster_args)
-
 
56192
        return this.equals((getStateMaster_args)that);
-
 
56193
      return false;
-
 
56194
    }
-
 
56195
 
-
 
56196
    public boolean equals(getStateMaster_args that) {
-
 
56197
      if (that == null)
-
 
56198
        return false;
-
 
56199
 
-
 
56200
      return true;
-
 
56201
    }
-
 
56202
 
-
 
56203
    @Override
-
 
56204
    public int hashCode() {
-
 
56205
      return 0;
-
 
56206
    }
-
 
56207
 
-
 
56208
    public int compareTo(getStateMaster_args other) {
-
 
56209
      if (!getClass().equals(other.getClass())) {
-
 
56210
        return getClass().getName().compareTo(other.getClass().getName());
-
 
56211
      }
-
 
56212
 
-
 
56213
      int lastComparison = 0;
-
 
56214
      getStateMaster_args typedOther = (getStateMaster_args)other;
-
 
56215
 
-
 
56216
      return 0;
-
 
56217
    }
-
 
56218
 
-
 
56219
    public _Fields fieldForId(int fieldId) {
-
 
56220
      return _Fields.findByThriftId(fieldId);
-
 
56221
    }
-
 
56222
 
-
 
56223
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
56224
      org.apache.thrift.protocol.TField field;
-
 
56225
      iprot.readStructBegin();
-
 
56226
      while (true)
-
 
56227
      {
-
 
56228
        field = iprot.readFieldBegin();
-
 
56229
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
56230
          break;
-
 
56231
        }
-
 
56232
        switch (field.id) {
-
 
56233
          default:
-
 
56234
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56235
        }
-
 
56236
        iprot.readFieldEnd();
-
 
56237
      }
-
 
56238
      iprot.readStructEnd();
-
 
56239
      validate();
-
 
56240
    }
-
 
56241
 
-
 
56242
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
56243
      validate();
-
 
56244
 
-
 
56245
      oprot.writeStructBegin(STRUCT_DESC);
-
 
56246
      oprot.writeFieldStop();
-
 
56247
      oprot.writeStructEnd();
-
 
56248
    }
-
 
56249
 
-
 
56250
    @Override
-
 
56251
    public String toString() {
-
 
56252
      StringBuilder sb = new StringBuilder("getStateMaster_args(");
-
 
56253
      boolean first = true;
-
 
56254
 
-
 
56255
      sb.append(")");
-
 
56256
      return sb.toString();
-
 
56257
    }
-
 
56258
 
-
 
56259
    public void validate() throws org.apache.thrift.TException {
-
 
56260
      // check for required fields
-
 
56261
    }
-
 
56262
 
-
 
56263
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
56264
      try {
-
 
56265
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
56266
      } catch (org.apache.thrift.TException te) {
-
 
56267
        throw new java.io.IOException(te);
-
 
56268
      }
-
 
56269
    }
-
 
56270
 
-
 
56271
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
56272
      try {
-
 
56273
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
56274
      } catch (org.apache.thrift.TException te) {
-
 
56275
        throw new java.io.IOException(te);
-
 
56276
      }
-
 
56277
    }
-
 
56278
 
-
 
56279
  }
-
 
56280
 
-
 
56281
  public static class getStateMaster_result implements org.apache.thrift.TBase<getStateMaster_result, getStateMaster_result._Fields>, java.io.Serializable, Cloneable   {
-
 
56282
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStateMaster_result");
-
 
56283
 
-
 
56284
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
56285
 
-
 
56286
    private Map<Long,String> success; // required
-
 
56287
 
-
 
56288
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
56289
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
56290
      SUCCESS((short)0, "success");
-
 
56291
 
-
 
56292
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
56293
 
-
 
56294
      static {
-
 
56295
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
56296
          byName.put(field.getFieldName(), field);
-
 
56297
        }
-
 
56298
      }
-
 
56299
 
-
 
56300
      /**
-
 
56301
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
56302
       */
-
 
56303
      public static _Fields findByThriftId(int fieldId) {
-
 
56304
        switch(fieldId) {
-
 
56305
          case 0: // SUCCESS
-
 
56306
            return SUCCESS;
-
 
56307
          default:
-
 
56308
            return null;
-
 
56309
        }
-
 
56310
      }
-
 
56311
 
-
 
56312
      /**
-
 
56313
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
56314
       * if it is not found.
-
 
56315
       */
-
 
56316
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
56317
        _Fields fields = findByThriftId(fieldId);
-
 
56318
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
56319
        return fields;
-
 
56320
      }
-
 
56321
 
-
 
56322
      /**
-
 
56323
       * Find the _Fields constant that matches name, or null if its not found.
-
 
56324
       */
-
 
56325
      public static _Fields findByName(String name) {
-
 
56326
        return byName.get(name);
-
 
56327
      }
-
 
56328
 
-
 
56329
      private final short _thriftId;
-
 
56330
      private final String _fieldName;
-
 
56331
 
-
 
56332
      _Fields(short thriftId, String fieldName) {
-
 
56333
        _thriftId = thriftId;
-
 
56334
        _fieldName = fieldName;
-
 
56335
      }
-
 
56336
 
-
 
56337
      public short getThriftFieldId() {
-
 
56338
        return _thriftId;
-
 
56339
      }
-
 
56340
 
-
 
56341
      public String getFieldName() {
-
 
56342
        return _fieldName;
-
 
56343
      }
-
 
56344
    }
-
 
56345
 
-
 
56346
    // isset id assignments
-
 
56347
 
-
 
56348
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
56349
    static {
-
 
56350
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
56351
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
56352
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
56353
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
56354
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
56355
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
56356
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStateMaster_result.class, metaDataMap);
-
 
56357
    }
-
 
56358
 
-
 
56359
    public getStateMaster_result() {
-
 
56360
    }
-
 
56361
 
-
 
56362
    public getStateMaster_result(
-
 
56363
      Map<Long,String> success)
-
 
56364
    {
-
 
56365
      this();
-
 
56366
      this.success = success;
-
 
56367
    }
-
 
56368
 
-
 
56369
    /**
-
 
56370
     * Performs a deep copy on <i>other</i>.
-
 
56371
     */
-
 
56372
    public getStateMaster_result(getStateMaster_result other) {
-
 
56373
      if (other.isSetSuccess()) {
-
 
56374
        Map<Long,String> __this__success = new HashMap<Long,String>();
-
 
56375
        for (Map.Entry<Long, String> other_element : other.success.entrySet()) {
-
 
56376
 
-
 
56377
          Long other_element_key = other_element.getKey();
-
 
56378
          String other_element_value = other_element.getValue();
-
 
56379
 
-
 
56380
          Long __this__success_copy_key = other_element_key;
-
 
56381
 
-
 
56382
          String __this__success_copy_value = other_element_value;
-
 
56383
 
-
 
56384
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
56385
        }
-
 
56386
        this.success = __this__success;
-
 
56387
      }
-
 
56388
    }
-
 
56389
 
-
 
56390
    public getStateMaster_result deepCopy() {
-
 
56391
      return new getStateMaster_result(this);
-
 
56392
    }
-
 
56393
 
-
 
56394
    @Override
-
 
56395
    public void clear() {
-
 
56396
      this.success = null;
-
 
56397
    }
-
 
56398
 
-
 
56399
    public int getSuccessSize() {
-
 
56400
      return (this.success == null) ? 0 : this.success.size();
-
 
56401
    }
-
 
56402
 
-
 
56403
    public void putToSuccess(long key, String val) {
-
 
56404
      if (this.success == null) {
-
 
56405
        this.success = new HashMap<Long,String>();
-
 
56406
      }
-
 
56407
      this.success.put(key, val);
-
 
56408
    }
-
 
56409
 
-
 
56410
    public Map<Long,String> getSuccess() {
-
 
56411
      return this.success;
-
 
56412
    }
-
 
56413
 
-
 
56414
    public void setSuccess(Map<Long,String> success) {
-
 
56415
      this.success = success;
-
 
56416
    }
-
 
56417
 
-
 
56418
    public void unsetSuccess() {
-
 
56419
      this.success = null;
-
 
56420
    }
-
 
56421
 
-
 
56422
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
56423
    public boolean isSetSuccess() {
-
 
56424
      return this.success != null;
-
 
56425
    }
-
 
56426
 
-
 
56427
    public void setSuccessIsSet(boolean value) {
-
 
56428
      if (!value) {
-
 
56429
        this.success = null;
-
 
56430
      }
-
 
56431
    }
-
 
56432
 
-
 
56433
    public void setFieldValue(_Fields field, Object value) {
-
 
56434
      switch (field) {
-
 
56435
      case SUCCESS:
-
 
56436
        if (value == null) {
-
 
56437
          unsetSuccess();
-
 
56438
        } else {
-
 
56439
          setSuccess((Map<Long,String>)value);
-
 
56440
        }
-
 
56441
        break;
-
 
56442
 
-
 
56443
      }
-
 
56444
    }
-
 
56445
 
-
 
56446
    public Object getFieldValue(_Fields field) {
-
 
56447
      switch (field) {
-
 
56448
      case SUCCESS:
-
 
56449
        return getSuccess();
-
 
56450
 
-
 
56451
      }
-
 
56452
      throw new IllegalStateException();
-
 
56453
    }
-
 
56454
 
-
 
56455
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
56456
    public boolean isSet(_Fields field) {
-
 
56457
      if (field == null) {
-
 
56458
        throw new IllegalArgumentException();
-
 
56459
      }
-
 
56460
 
-
 
56461
      switch (field) {
-
 
56462
      case SUCCESS:
-
 
56463
        return isSetSuccess();
-
 
56464
      }
-
 
56465
      throw new IllegalStateException();
-
 
56466
    }
-
 
56467
 
-
 
56468
    @Override
-
 
56469
    public boolean equals(Object that) {
-
 
56470
      if (that == null)
-
 
56471
        return false;
-
 
56472
      if (that instanceof getStateMaster_result)
-
 
56473
        return this.equals((getStateMaster_result)that);
-
 
56474
      return false;
-
 
56475
    }
-
 
56476
 
-
 
56477
    public boolean equals(getStateMaster_result that) {
-
 
56478
      if (that == null)
-
 
56479
        return false;
-
 
56480
 
-
 
56481
      boolean this_present_success = true && this.isSetSuccess();
-
 
56482
      boolean that_present_success = true && that.isSetSuccess();
-
 
56483
      if (this_present_success || that_present_success) {
-
 
56484
        if (!(this_present_success && that_present_success))
-
 
56485
          return false;
-
 
56486
        if (!this.success.equals(that.success))
-
 
56487
          return false;
-
 
56488
      }
-
 
56489
 
-
 
56490
      return true;
-
 
56491
    }
-
 
56492
 
-
 
56493
    @Override
-
 
56494
    public int hashCode() {
-
 
56495
      return 0;
-
 
56496
    }
-
 
56497
 
-
 
56498
    public int compareTo(getStateMaster_result other) {
-
 
56499
      if (!getClass().equals(other.getClass())) {
-
 
56500
        return getClass().getName().compareTo(other.getClass().getName());
-
 
56501
      }
-
 
56502
 
-
 
56503
      int lastComparison = 0;
-
 
56504
      getStateMaster_result typedOther = (getStateMaster_result)other;
-
 
56505
 
-
 
56506
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
56507
      if (lastComparison != 0) {
-
 
56508
        return lastComparison;
-
 
56509
      }
-
 
56510
      if (isSetSuccess()) {
-
 
56511
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
56512
        if (lastComparison != 0) {
-
 
56513
          return lastComparison;
-
 
56514
        }
-
 
56515
      }
-
 
56516
      return 0;
-
 
56517
    }
-
 
56518
 
-
 
56519
    public _Fields fieldForId(int fieldId) {
-
 
56520
      return _Fields.findByThriftId(fieldId);
-
 
56521
    }
-
 
56522
 
-
 
56523
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
56524
      org.apache.thrift.protocol.TField field;
-
 
56525
      iprot.readStructBegin();
-
 
56526
      while (true)
-
 
56527
      {
-
 
56528
        field = iprot.readFieldBegin();
-
 
56529
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
56530
          break;
-
 
56531
        }
-
 
56532
        switch (field.id) {
-
 
56533
          case 0: // SUCCESS
-
 
56534
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
56535
              {
-
 
56536
                org.apache.thrift.protocol.TMap _map175 = iprot.readMapBegin();
-
 
56537
                this.success = new HashMap<Long,String>(2*_map175.size);
-
 
56538
                for (int _i176 = 0; _i176 < _map175.size; ++_i176)
-
 
56539
                {
-
 
56540
                  long _key177; // required
-
 
56541
                  String _val178; // required
-
 
56542
                  _key177 = iprot.readI64();
-
 
56543
                  _val178 = iprot.readString();
-
 
56544
                  this.success.put(_key177, _val178);
-
 
56545
                }
-
 
56546
                iprot.readMapEnd();
-
 
56547
              }
-
 
56548
            } else { 
-
 
56549
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56550
            }
-
 
56551
            break;
-
 
56552
          default:
-
 
56553
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56554
        }
-
 
56555
        iprot.readFieldEnd();
-
 
56556
      }
-
 
56557
      iprot.readStructEnd();
-
 
56558
      validate();
-
 
56559
    }
-
 
56560
 
-
 
56561
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
56562
      oprot.writeStructBegin(STRUCT_DESC);
-
 
56563
 
-
 
56564
      if (this.isSetSuccess()) {
-
 
56565
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
56566
        {
-
 
56567
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, this.success.size()));
-
 
56568
          for (Map.Entry<Long, String> _iter179 : this.success.entrySet())
-
 
56569
          {
-
 
56570
            oprot.writeI64(_iter179.getKey());
-
 
56571
            oprot.writeString(_iter179.getValue());
-
 
56572
          }
-
 
56573
          oprot.writeMapEnd();
-
 
56574
        }
-
 
56575
        oprot.writeFieldEnd();
-
 
56576
      }
-
 
56577
      oprot.writeFieldStop();
-
 
56578
      oprot.writeStructEnd();
-
 
56579
    }
-
 
56580
 
-
 
56581
    @Override
-
 
56582
    public String toString() {
-
 
56583
      StringBuilder sb = new StringBuilder("getStateMaster_result(");
-
 
56584
      boolean first = true;
-
 
56585
 
-
 
56586
      sb.append("success:");
-
 
56587
      if (this.success == null) {
-
 
56588
        sb.append("null");
55979
      } else {
56589
      } else {
55980
        sb.append(this.success);
56590
        sb.append(this.success);
55981
      }
56591
      }
55982
      first = false;
56592
      first = false;
55983
      sb.append(")");
56593
      sb.append(")");