Subversion Repositories SmartDukaan

Rev

Rev 3374 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3374 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.generic;
6
package in.shop2020.generic;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class GenericService {
23
public class GenericService {
27
 
24
 
28
  public interface Iface {
25
  public interface Iface {
29
 
26
 
30
    /**
27
    /**
31
     * For checking weather service is active alive or not. It also checks connectivity with database
28
     * For checking weather service is active alive or not. It also checks connectivity with database
32
     */
29
     */
33
    public boolean isAlive() throws TException;
30
    public boolean isAlive() throws org.apache.thrift.TException;
34
 
31
 
35
    /**
32
    /**
36
     * For closing the open session in sqlalchemy
33
     * For closing the open session in sqlalchemy
37
     */
34
     */
38
    public void closeSession() throws TException;
35
    public void closeSession() throws org.apache.thrift.TException;
39
 
36
 
40
  }
37
  }
41
 
38
 
42
  public static class Client implements Iface {
39
  public interface AsyncIface {
43
    public Client(TProtocol prot)
-
 
44
    {
-
 
45
      this(prot, prot);
-
 
46
    }
-
 
47
 
40
 
48
    public Client(TProtocol iprot, TProtocol oprot)
41
    public void isAlive(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isAlive_call> resultHandler) throws org.apache.thrift.TException;
49
    {
-
 
50
      iprot_ = iprot;
-
 
51
      oprot_ = oprot;
-
 
52
    }
-
 
53
 
42
 
54
    protected TProtocol iprot_;
-
 
55
    protected TProtocol oprot_;
43
    public void closeSession(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.closeSession_call> resultHandler) throws org.apache.thrift.TException;
56
 
44
 
57
    protected int seqid_;
45
  }
58
 
46
 
-
 
47
  public static class Client extends org.apache.thrift.TServiceClient implements Iface {
-
 
48
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
-
 
49
      public Factory() {}
-
 
50
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
59
    public TProtocol getInputProtocol()
51
        return new Client(prot);
60
    {
52
      }
-
 
53
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
61
      return this.iprot_;
54
        return new Client(iprot, oprot);
-
 
55
      }
62
    }
56
    }
63
 
57
 
64
    public TProtocol getOutputProtocol()
58
    public Client(org.apache.thrift.protocol.TProtocol prot)
65
    {
59
    {
66
      return this.oprot_;
60
      super(prot, prot);
67
    }
61
    }
68
 
62
 
-
 
63
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
-
 
64
      super(iprot, oprot);
-
 
65
    }
-
 
66
 
69
    public boolean isAlive() throws TException
67
    public boolean isAlive() throws org.apache.thrift.TException
70
    {
68
    {
71
      send_isAlive();
69
      send_isAlive();
72
      return recv_isAlive();
70
      return recv_isAlive();
73
    }
71
    }
74
 
72
 
75
    public void send_isAlive() throws TException
73
    public void send_isAlive() throws org.apache.thrift.TException
76
    {
74
    {
77
      oprot_.writeMessageBegin(new TMessage("isAlive", TMessageType.CALL, seqid_));
-
 
78
      isAlive_args args = new isAlive_args();
75
      isAlive_args args = new isAlive_args();
79
      args.write(oprot_);
-
 
80
      oprot_.writeMessageEnd();
76
      sendBase("isAlive", args);
81
      oprot_.getTransport().flush();
-
 
82
    }
77
    }
83
 
78
 
84
    public boolean recv_isAlive() throws TException
79
    public boolean recv_isAlive() throws org.apache.thrift.TException
85
    {
80
    {
86
      TMessage msg = iprot_.readMessageBegin();
-
 
87
      if (msg.type == TMessageType.EXCEPTION) {
-
 
88
        TApplicationException x = TApplicationException.read(iprot_);
-
 
89
        iprot_.readMessageEnd();
-
 
90
        throw x;
-
 
91
      }
-
 
92
      isAlive_result result = new isAlive_result();
81
      isAlive_result result = new isAlive_result();
93
      result.read(iprot_);
82
      receiveBase(result, "isAlive");
94
      iprot_.readMessageEnd();
-
 
95
      if (result.isSetSuccess()) {
83
      if (result.isSetSuccess()) {
96
        return result.success;
84
        return result.success;
97
      }
85
      }
98
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "isAlive failed: unknown result");
86
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isAlive failed: unknown result");
99
    }
87
    }
100
 
88
 
101
    public void closeSession() throws TException
89
    public void closeSession() throws org.apache.thrift.TException
102
    {
90
    {
103
      send_closeSession();
91
      send_closeSession();
104
      recv_closeSession();
92
      recv_closeSession();
105
    }
93
    }
106
 
94
 
107
    public void send_closeSession() throws TException
95
    public void send_closeSession() throws org.apache.thrift.TException
108
    {
96
    {
109
      oprot_.writeMessageBegin(new TMessage("closeSession", TMessageType.CALL, seqid_));
-
 
110
      closeSession_args args = new closeSession_args();
97
      closeSession_args args = new closeSession_args();
111
      args.write(oprot_);
-
 
112
      oprot_.writeMessageEnd();
98
      sendBase("closeSession", args);
113
      oprot_.getTransport().flush();
-
 
114
    }
99
    }
115
 
100
 
116
    public void recv_closeSession() throws TException
101
    public void recv_closeSession() throws org.apache.thrift.TException
117
    {
102
    {
118
      TMessage msg = iprot_.readMessageBegin();
-
 
119
      if (msg.type == TMessageType.EXCEPTION) {
-
 
120
        TApplicationException x = TApplicationException.read(iprot_);
-
 
121
        iprot_.readMessageEnd();
-
 
122
        throw x;
-
 
123
      }
-
 
124
      closeSession_result result = new closeSession_result();
103
      closeSession_result result = new closeSession_result();
125
      result.read(iprot_);
104
      receiveBase(result, "closeSession");
126
      iprot_.readMessageEnd();
-
 
127
      return;
105
      return;
128
    }
106
    }
129
 
107
 
130
  }
108
  }
-
 
109
  public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
131
  public static class Processor implements TProcessor {
110
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
-
 
111
      private org.apache.thrift.async.TAsyncClientManager clientManager;
132
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
112
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
-
 
113
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
133
    public Processor(Iface iface)
114
        this.clientManager = clientManager;
-
 
115
        this.protocolFactory = protocolFactory;
134
    {
116
      }
135
      iface_ = iface;
-
 
136
      processMap_.put("isAlive", new isAlive());
117
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
137
      processMap_.put("closeSession", new closeSession());
118
        return new AsyncClient(protocolFactory, clientManager, transport);
-
 
119
      }
138
    }
120
    }
139
 
121
 
140
    protected static interface ProcessFunction {
122
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
141
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
123
      super(protocolFactory, clientManager, transport);
142
    }
124
    }
143
 
125
 
-
 
126
    public void isAlive(org.apache.thrift.async.AsyncMethodCallback<isAlive_call> resultHandler) throws org.apache.thrift.TException {
144
    private Iface iface_;
127
      checkReady();
145
    protected final HashMap<String,ProcessFunction> processMap_ = new HashMap<String,ProcessFunction>();
128
      isAlive_call method_call = new isAlive_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
129
      this.___currentMethod = method_call;
-
 
130
      ___manager.call(method_call);
-
 
131
    }
146
 
132
 
147
    public boolean process(TProtocol iprot, TProtocol oprot) throws TException
133
    public static class isAlive_call extends org.apache.thrift.async.TAsyncMethodCall {
148
    {
134
      public isAlive_call(org.apache.thrift.async.AsyncMethodCallback<isAlive_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 {
149
      TMessage msg = iprot.readMessageBegin();
-
 
150
      ProcessFunction fn = processMap_.get(msg.name);
-
 
151
      if (fn == null) {
-
 
152
        TProtocolUtil.skip(iprot, TType.STRUCT);
135
        super(client, protocolFactory, transport, resultHandler, false);
153
        iprot.readMessageEnd();
-
 
154
        TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'");
-
 
155
        oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid));
-
 
156
        x.write(oprot);
-
 
157
        oprot.writeMessageEnd();
-
 
158
        oprot.getTransport().flush();
-
 
159
        return true;
-
 
160
      }
136
      }
161
      fn.process(msg.seqid, iprot, oprot);
-
 
162
      return true;
-
 
163
    }
-
 
164
 
137
 
165
    private class isAlive implements ProcessFunction {
138
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
166
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
139
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isAlive", org.apache.thrift.protocol.TMessageType.CALL, 0));
167
      {
-
 
168
        isAlive_args args = new isAlive_args();
140
        isAlive_args args = new isAlive_args();
169
        args.read(iprot);
141
        args.write(prot);
170
        iprot.readMessageEnd();
-
 
171
        isAlive_result result = new isAlive_result();
-
 
172
        result.success = iface_.isAlive();
-
 
173
        result.setSuccessIsSet(true);
-
 
174
        oprot.writeMessageBegin(new TMessage("isAlive", TMessageType.REPLY, seqid));
-
 
175
        result.write(oprot);
-
 
176
        oprot.writeMessageEnd();
142
        prot.writeMessageEnd();
177
        oprot.getTransport().flush();
-
 
178
      }
143
      }
179
 
144
 
-
 
145
      public boolean getResult() throws org.apache.thrift.TException {
-
 
146
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
147
          throw new IllegalStateException("Method call not finished!");
-
 
148
        }
-
 
149
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
150
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
151
        return (new Client(prot)).recv_isAlive();
-
 
152
      }
180
    }
153
    }
181
 
154
 
-
 
155
    public void closeSession(org.apache.thrift.async.AsyncMethodCallback<closeSession_call> resultHandler) throws org.apache.thrift.TException {
-
 
156
      checkReady();
-
 
157
      closeSession_call method_call = new closeSession_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
158
      this.___currentMethod = method_call;
-
 
159
      ___manager.call(method_call);
-
 
160
    }
-
 
161
 
182
    private class closeSession implements ProcessFunction {
162
    public static class closeSession_call extends org.apache.thrift.async.TAsyncMethodCall {
183
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
163
      public closeSession_call(org.apache.thrift.async.AsyncMethodCallback<closeSession_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 {
-
 
164
        super(client, protocolFactory, transport, resultHandler, false);
184
      {
165
      }
-
 
166
 
-
 
167
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
168
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("closeSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
185
        closeSession_args args = new closeSession_args();
169
        closeSession_args args = new closeSession_args();
186
        args.read(iprot);
170
        args.write(prot);
187
        iprot.readMessageEnd();
171
        prot.writeMessageEnd();
-
 
172
      }
-
 
173
 
-
 
174
      public void getResult() throws org.apache.thrift.TException {
-
 
175
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
188
        closeSession_result result = new closeSession_result();
176
          throw new IllegalStateException("Method call not finished!");
-
 
177
        }
-
 
178
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
179
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
189
        iface_.closeSession();
180
        (new Client(prot)).recv_closeSession();
-
 
181
      }
-
 
182
    }
-
 
183
 
-
 
184
  }
-
 
185
 
-
 
186
  public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor {
-
 
187
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
-
 
188
    public Processor(I iface) {
-
 
189
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
-
 
190
    }
-
 
191
 
-
 
192
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
-
 
193
      super(iface, getProcessMap(processMap));
-
 
194
    }
-
 
195
 
-
 
196
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
-
 
197
      processMap.put("isAlive", new isAlive());
190
        oprot.writeMessageBegin(new TMessage("closeSession", TMessageType.REPLY, seqid));
198
      processMap.put("closeSession", new closeSession());
191
        result.write(oprot);
199
      return processMap;
-
 
200
    }
-
 
201
 
-
 
202
    private static class isAlive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isAlive_args> {
192
        oprot.writeMessageEnd();
203
      public isAlive() {
193
        oprot.getTransport().flush();
204
        super("isAlive");
194
      }
205
      }
195
 
206
 
-
 
207
      protected isAlive_args getEmptyArgsInstance() {
-
 
208
        return new isAlive_args();
-
 
209
      }
-
 
210
 
-
 
211
      protected isAlive_result getResult(I iface, isAlive_args args) throws org.apache.thrift.TException {
-
 
212
        isAlive_result result = new isAlive_result();
-
 
213
        result.success = iface.isAlive();
-
 
214
        result.setSuccessIsSet(true);
-
 
215
        return result;
-
 
216
      }
-
 
217
    }
-
 
218
 
-
 
219
    private static class closeSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, closeSession_args> {
-
 
220
      public closeSession() {
-
 
221
        super("closeSession");
-
 
222
      }
-
 
223
 
-
 
224
      protected closeSession_args getEmptyArgsInstance() {
-
 
225
        return new closeSession_args();
-
 
226
      }
-
 
227
 
-
 
228
      protected closeSession_result getResult(I iface, closeSession_args args) throws org.apache.thrift.TException {
-
 
229
        closeSession_result result = new closeSession_result();
-
 
230
        iface.closeSession();
-
 
231
        return result;
-
 
232
      }
196
    }
233
    }
197
 
234
 
198
  }
235
  }
199
 
236
 
200
  public static class isAlive_args implements TBase<isAlive_args._Fields>, java.io.Serializable, Cloneable, Comparable<isAlive_args>   {
237
  public static class isAlive_args implements org.apache.thrift.TBase<isAlive_args, isAlive_args._Fields>, java.io.Serializable, Cloneable   {
201
    private static final TStruct STRUCT_DESC = new TStruct("isAlive_args");
238
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isAlive_args");
202
 
239
 
203
 
240
 
204
 
241
 
205
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
242
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
206
    public enum _Fields implements TFieldIdEnum {
243
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
207
;
244
;
208
 
245
 
209
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
210
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
246
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
211
 
247
 
212
      static {
248
      static {
213
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
249
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
214
          byId.put((int)field._thriftId, field);
-
 
215
          byName.put(field.getFieldName(), field);
250
          byName.put(field.getFieldName(), field);
216
        }
251
        }
217
      }
252
      }
218
 
253
 
219
      /**
254
      /**
220
       * Find the _Fields constant that matches fieldId, or null if its not found.
255
       * Find the _Fields constant that matches fieldId, or null if its not found.
221
       */
256
       */
222
      public static _Fields findByThriftId(int fieldId) {
257
      public static _Fields findByThriftId(int fieldId) {
223
        return byId.get(fieldId);
258
        switch(fieldId) {
-
 
259
          default:
-
 
260
            return null;
-
 
261
        }
224
      }
262
      }
225
 
263
 
226
      /**
264
      /**
227
       * Find the _Fields constant that matches fieldId, throwing an exception
265
       * Find the _Fields constant that matches fieldId, throwing an exception
228
       * if it is not found.
266
       * if it is not found.
Line 254... Line 292...
254
 
292
 
255
      public String getFieldName() {
293
      public String getFieldName() {
256
        return _fieldName;
294
        return _fieldName;
257
      }
295
      }
258
    }
296
    }
259
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
297
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
260
    }});
-
 
261
 
-
 
262
    static {
298
    static {
-
 
299
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
300
      metaDataMap = Collections.unmodifiableMap(tmpMap);
263
      FieldMetaData.addStructMetaDataMap(isAlive_args.class, metaDataMap);
301
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isAlive_args.class, metaDataMap);
264
    }
302
    }
265
 
303
 
266
    public isAlive_args() {
304
    public isAlive_args() {
267
    }
305
    }
268
 
306
 
Line 274... Line 312...
274
 
312
 
275
    public isAlive_args deepCopy() {
313
    public isAlive_args deepCopy() {
276
      return new isAlive_args(this);
314
      return new isAlive_args(this);
277
    }
315
    }
278
 
316
 
279
    @Deprecated
317
    @Override
280
    public isAlive_args clone() {
318
    public void clear() {
281
      return new isAlive_args(this);
-
 
282
    }
319
    }
283
 
320
 
284
    public void setFieldValue(_Fields field, Object value) {
321
    public void setFieldValue(_Fields field, Object value) {
285
      switch (field) {
322
      switch (field) {
286
      }
323
      }
287
    }
324
    }
288
 
325
 
289
    public void setFieldValue(int fieldID, Object value) {
-
 
290
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
291
    }
-
 
292
 
-
 
293
    public Object getFieldValue(_Fields field) {
326
    public Object getFieldValue(_Fields field) {
294
      switch (field) {
327
      switch (field) {
295
      }
328
      }
296
      throw new IllegalStateException();
329
      throw new IllegalStateException();
297
    }
330
    }
298
 
331
 
299
    public Object getFieldValue(int fieldId) {
-
 
300
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
301
    }
-
 
302
 
-
 
303
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
332
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
304
    public boolean isSet(_Fields field) {
333
    public boolean isSet(_Fields field) {
-
 
334
      if (field == null) {
-
 
335
        throw new IllegalArgumentException();
-
 
336
      }
-
 
337
 
305
      switch (field) {
338
      switch (field) {
306
      }
339
      }
307
      throw new IllegalStateException();
340
      throw new IllegalStateException();
308
    }
341
    }
309
 
342
 
310
    public boolean isSet(int fieldID) {
-
 
311
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
312
    }
-
 
313
 
-
 
314
    @Override
343
    @Override
315
    public boolean equals(Object that) {
344
    public boolean equals(Object that) {
316
      if (that == null)
345
      if (that == null)
317
        return false;
346
        return false;
318
      if (that instanceof isAlive_args)
347
      if (that instanceof isAlive_args)
Line 341... Line 370...
341
      isAlive_args typedOther = (isAlive_args)other;
370
      isAlive_args typedOther = (isAlive_args)other;
342
 
371
 
343
      return 0;
372
      return 0;
344
    }
373
    }
345
 
374
 
-
 
375
    public _Fields fieldForId(int fieldId) {
-
 
376
      return _Fields.findByThriftId(fieldId);
-
 
377
    }
-
 
378
 
346
    public void read(TProtocol iprot) throws TException {
379
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
347
      TField field;
380
      org.apache.thrift.protocol.TField field;
348
      iprot.readStructBegin();
381
      iprot.readStructBegin();
349
      while (true)
382
      while (true)
350
      {
383
      {
351
        field = iprot.readFieldBegin();
384
        field = iprot.readFieldBegin();
352
        if (field.type == TType.STOP) { 
385
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
353
          break;
386
          break;
354
        }
387
        }
355
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
356
        if (fieldId == null) {
-
 
357
          TProtocolUtil.skip(iprot, field.type);
-
 
358
        } else {
-
 
359
          switch (fieldId) {
388
        switch (field.id) {
360
          }
389
          default:
361
          iprot.readFieldEnd();
390
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
362
        }
391
        }
-
 
392
        iprot.readFieldEnd();
363
      }
393
      }
364
      iprot.readStructEnd();
394
      iprot.readStructEnd();
365
      validate();
395
      validate();
366
    }
396
    }
367
 
397
 
368
    public void write(TProtocol oprot) throws TException {
398
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
369
      validate();
399
      validate();
370
 
400
 
371
      oprot.writeStructBegin(STRUCT_DESC);
401
      oprot.writeStructBegin(STRUCT_DESC);
372
      oprot.writeFieldStop();
402
      oprot.writeFieldStop();
373
      oprot.writeStructEnd();
403
      oprot.writeStructEnd();
Line 380... Line 410...
380
 
410
 
381
      sb.append(")");
411
      sb.append(")");
382
      return sb.toString();
412
      return sb.toString();
383
    }
413
    }
384
 
414
 
385
    public void validate() throws TException {
415
    public void validate() throws org.apache.thrift.TException {
386
      // check for required fields
416
      // check for required fields
387
    }
417
    }
388
 
418
 
-
 
419
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
420
      try {
-
 
421
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
422
      } catch (org.apache.thrift.TException te) {
-
 
423
        throw new java.io.IOException(te);
-
 
424
      }
-
 
425
    }
-
 
426
 
-
 
427
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
428
      try {
-
 
429
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
430
      } catch (org.apache.thrift.TException te) {
-
 
431
        throw new java.io.IOException(te);
-
 
432
      }
-
 
433
    }
-
 
434
 
389
  }
435
  }
390
 
436
 
391
  public static class isAlive_result implements TBase<isAlive_result._Fields>, java.io.Serializable, Cloneable, Comparable<isAlive_result>   {
437
  public static class isAlive_result implements org.apache.thrift.TBase<isAlive_result, isAlive_result._Fields>, java.io.Serializable, Cloneable   {
392
    private static final TStruct STRUCT_DESC = new TStruct("isAlive_result");
438
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isAlive_result");
393
 
439
 
394
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
440
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
395
 
441
 
396
    private boolean success;
442
    private boolean success; // required
397
 
443
 
398
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
444
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
399
    public enum _Fields implements TFieldIdEnum {
445
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
400
      SUCCESS((short)0, "success");
446
      SUCCESS((short)0, "success");
401
 
447
 
402
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
403
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
448
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
404
 
449
 
405
      static {
450
      static {
406
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
451
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
407
          byId.put((int)field._thriftId, field);
-
 
408
          byName.put(field.getFieldName(), field);
452
          byName.put(field.getFieldName(), field);
409
        }
453
        }
410
      }
454
      }
411
 
455
 
412
      /**
456
      /**
413
       * Find the _Fields constant that matches fieldId, or null if its not found.
457
       * Find the _Fields constant that matches fieldId, or null if its not found.
414
       */
458
       */
415
      public static _Fields findByThriftId(int fieldId) {
459
      public static _Fields findByThriftId(int fieldId) {
416
        return byId.get(fieldId);
460
        switch(fieldId) {
-
 
461
          case 0: // SUCCESS
-
 
462
            return SUCCESS;
-
 
463
          default:
-
 
464
            return null;
-
 
465
        }
417
      }
466
      }
418
 
467
 
419
      /**
468
      /**
420
       * Find the _Fields constant that matches fieldId, throwing an exception
469
       * Find the _Fields constant that matches fieldId, throwing an exception
421
       * if it is not found.
470
       * if it is not found.
Line 452... Line 501...
452
 
501
 
453
    // isset id assignments
502
    // isset id assignments
454
    private static final int __SUCCESS_ISSET_ID = 0;
503
    private static final int __SUCCESS_ISSET_ID = 0;
455
    private BitSet __isset_bit_vector = new BitSet(1);
504
    private BitSet __isset_bit_vector = new BitSet(1);
456
 
505
 
457
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
506
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
458
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
459
          new FieldValueMetaData(TType.BOOL)));
-
 
460
    }});
-
 
461
 
-
 
462
    static {
507
    static {
-
 
508
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
509
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
510
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
511
      metaDataMap = Collections.unmodifiableMap(tmpMap);
463
      FieldMetaData.addStructMetaDataMap(isAlive_result.class, metaDataMap);
512
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isAlive_result.class, metaDataMap);
464
    }
513
    }
465
 
514
 
466
    public isAlive_result() {
515
    public isAlive_result() {
467
    }
516
    }
468
 
517
 
Line 485... Line 534...
485
 
534
 
486
    public isAlive_result deepCopy() {
535
    public isAlive_result deepCopy() {
487
      return new isAlive_result(this);
536
      return new isAlive_result(this);
488
    }
537
    }
489
 
538
 
490
    @Deprecated
539
    @Override
491
    public isAlive_result clone() {
540
    public void clear() {
492
      return new isAlive_result(this);
541
      setSuccessIsSet(false);
-
 
542
      this.success = false;
493
    }
543
    }
494
 
544
 
495
    public boolean isSuccess() {
545
    public boolean isSuccess() {
496
      return this.success;
546
      return this.success;
497
    }
547
    }
498
 
548
 
499
    public isAlive_result setSuccess(boolean success) {
549
    public void setSuccess(boolean success) {
500
      this.success = success;
550
      this.success = success;
501
      setSuccessIsSet(true);
551
      setSuccessIsSet(true);
502
      return this;
-
 
503
    }
552
    }
504
 
553
 
505
    public void unsetSuccess() {
554
    public void unsetSuccess() {
506
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
555
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
507
    }
556
    }
508
 
557
 
509
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
558
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
510
    public boolean isSetSuccess() {
559
    public boolean isSetSuccess() {
511
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
560
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
512
    }
561
    }
513
 
562
 
514
    public void setSuccessIsSet(boolean value) {
563
    public void setSuccessIsSet(boolean value) {
Line 526... Line 575...
526
        break;
575
        break;
527
 
576
 
528
      }
577
      }
529
    }
578
    }
530
 
579
 
531
    public void setFieldValue(int fieldID, Object value) {
-
 
532
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
533
    }
-
 
534
 
-
 
535
    public Object getFieldValue(_Fields field) {
580
    public Object getFieldValue(_Fields field) {
536
      switch (field) {
581
      switch (field) {
537
      case SUCCESS:
582
      case SUCCESS:
538
        return new Boolean(isSuccess());
583
        return Boolean.valueOf(isSuccess());
539
 
584
 
540
      }
585
      }
541
      throw new IllegalStateException();
586
      throw new IllegalStateException();
542
    }
587
    }
543
 
588
 
544
    public Object getFieldValue(int fieldId) {
-
 
545
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
546
    }
-
 
547
 
-
 
548
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
589
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
549
    public boolean isSet(_Fields field) {
590
    public boolean isSet(_Fields field) {
-
 
591
      if (field == null) {
-
 
592
        throw new IllegalArgumentException();
-
 
593
      }
-
 
594
 
550
      switch (field) {
595
      switch (field) {
551
      case SUCCESS:
596
      case SUCCESS:
552
        return isSetSuccess();
597
        return isSetSuccess();
553
      }
598
      }
554
      throw new IllegalStateException();
599
      throw new IllegalStateException();
555
    }
600
    }
556
 
601
 
557
    public boolean isSet(int fieldID) {
-
 
558
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
559
    }
-
 
560
 
-
 
561
    @Override
602
    @Override
562
    public boolean equals(Object that) {
603
    public boolean equals(Object that) {
563
      if (that == null)
604
      if (that == null)
564
        return false;
605
        return false;
565
      if (that instanceof isAlive_result)
606
      if (that instanceof isAlive_result)
Line 594... Line 635...
594
      }
635
      }
595
 
636
 
596
      int lastComparison = 0;
637
      int lastComparison = 0;
597
      isAlive_result typedOther = (isAlive_result)other;
638
      isAlive_result typedOther = (isAlive_result)other;
598
 
639
 
599
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
640
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
600
      if (lastComparison != 0) {
641
      if (lastComparison != 0) {
601
        return lastComparison;
642
        return lastComparison;
602
      }
643
      }
-
 
644
      if (isSetSuccess()) {
603
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
645
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
604
      if (lastComparison != 0) {
646
        if (lastComparison != 0) {
605
        return lastComparison;
647
          return lastComparison;
-
 
648
        }
606
      }
649
      }
607
      return 0;
650
      return 0;
608
    }
651
    }
609
 
652
 
-
 
653
    public _Fields fieldForId(int fieldId) {
-
 
654
      return _Fields.findByThriftId(fieldId);
-
 
655
    }
-
 
656
 
610
    public void read(TProtocol iprot) throws TException {
657
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
611
      TField field;
658
      org.apache.thrift.protocol.TField field;
612
      iprot.readStructBegin();
659
      iprot.readStructBegin();
613
      while (true)
660
      while (true)
614
      {
661
      {
615
        field = iprot.readFieldBegin();
662
        field = iprot.readFieldBegin();
616
        if (field.type == TType.STOP) { 
663
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
617
          break;
664
          break;
618
        }
665
        }
619
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
620
        if (fieldId == null) {
-
 
621
          TProtocolUtil.skip(iprot, field.type);
-
 
622
        } else {
-
 
623
          switch (fieldId) {
666
        switch (field.id) {
624
            case SUCCESS:
667
          case 0: // SUCCESS
625
              if (field.type == TType.BOOL) {
668
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
626
                this.success = iprot.readBool();
669
              this.success = iprot.readBool();
627
                setSuccessIsSet(true);
670
              setSuccessIsSet(true);
628
              } else { 
671
            } else { 
629
                TProtocolUtil.skip(iprot, field.type);
672
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
630
              }
673
            }
631
              break;
674
            break;
632
          }
675
          default:
633
          iprot.readFieldEnd();
676
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
634
        }
677
        }
-
 
678
        iprot.readFieldEnd();
635
      }
679
      }
636
      iprot.readStructEnd();
680
      iprot.readStructEnd();
637
      validate();
681
      validate();
638
    }
682
    }
639
 
683
 
640
    public void write(TProtocol oprot) throws TException {
684
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
641
      oprot.writeStructBegin(STRUCT_DESC);
685
      oprot.writeStructBegin(STRUCT_DESC);
642
 
686
 
643
      if (this.isSetSuccess()) {
687
      if (this.isSetSuccess()) {
644
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
688
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
645
        oprot.writeBool(this.success);
689
        oprot.writeBool(this.success);
Line 659... Line 703...
659
      first = false;
703
      first = false;
660
      sb.append(")");
704
      sb.append(")");
661
      return sb.toString();
705
      return sb.toString();
662
    }
706
    }
663
 
707
 
664
    public void validate() throws TException {
708
    public void validate() throws org.apache.thrift.TException {
665
      // check for required fields
709
      // check for required fields
666
    }
710
    }
667
 
711
 
-
 
712
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
713
      try {
-
 
714
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
715
      } catch (org.apache.thrift.TException te) {
-
 
716
        throw new java.io.IOException(te);
-
 
717
      }
-
 
718
    }
-
 
719
 
-
 
720
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
721
      try {
-
 
722
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
723
      } catch (org.apache.thrift.TException te) {
-
 
724
        throw new java.io.IOException(te);
-
 
725
      }
-
 
726
    }
-
 
727
 
668
  }
728
  }
669
 
729
 
670
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
730
  public static class closeSession_args implements org.apache.thrift.TBase<closeSession_args, closeSession_args._Fields>, java.io.Serializable, Cloneable   {
671
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
731
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeSession_args");
672
 
732
 
673
 
733
 
674
 
734
 
675
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
735
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
676
    public enum _Fields implements TFieldIdEnum {
736
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
677
;
737
;
678
 
738
 
679
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
680
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
739
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
681
 
740
 
682
      static {
741
      static {
683
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
742
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
684
          byId.put((int)field._thriftId, field);
-
 
685
          byName.put(field.getFieldName(), field);
743
          byName.put(field.getFieldName(), field);
686
        }
744
        }
687
      }
745
      }
688
 
746
 
689
      /**
747
      /**
690
       * Find the _Fields constant that matches fieldId, or null if its not found.
748
       * Find the _Fields constant that matches fieldId, or null if its not found.
691
       */
749
       */
692
      public static _Fields findByThriftId(int fieldId) {
750
      public static _Fields findByThriftId(int fieldId) {
693
        return byId.get(fieldId);
751
        switch(fieldId) {
-
 
752
          default:
-
 
753
            return null;
-
 
754
        }
694
      }
755
      }
695
 
756
 
696
      /**
757
      /**
697
       * Find the _Fields constant that matches fieldId, throwing an exception
758
       * Find the _Fields constant that matches fieldId, throwing an exception
698
       * if it is not found.
759
       * if it is not found.
Line 724... Line 785...
724
 
785
 
725
      public String getFieldName() {
786
      public String getFieldName() {
726
        return _fieldName;
787
        return _fieldName;
727
      }
788
      }
728
    }
789
    }
729
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
790
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730
    }});
-
 
731
 
-
 
732
    static {
791
    static {
-
 
792
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
793
      metaDataMap = Collections.unmodifiableMap(tmpMap);
733
      FieldMetaData.addStructMetaDataMap(closeSession_args.class, metaDataMap);
794
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeSession_args.class, metaDataMap);
734
    }
795
    }
735
 
796
 
736
    public closeSession_args() {
797
    public closeSession_args() {
737
    }
798
    }
738
 
799
 
Line 744... Line 805...
744
 
805
 
745
    public closeSession_args deepCopy() {
806
    public closeSession_args deepCopy() {
746
      return new closeSession_args(this);
807
      return new closeSession_args(this);
747
    }
808
    }
748
 
809
 
749
    @Deprecated
810
    @Override
750
    public closeSession_args clone() {
811
    public void clear() {
751
      return new closeSession_args(this);
-
 
752
    }
812
    }
753
 
813
 
754
    public void setFieldValue(_Fields field, Object value) {
814
    public void setFieldValue(_Fields field, Object value) {
755
      switch (field) {
815
      switch (field) {
756
      }
816
      }
757
    }
817
    }
758
 
818
 
759
    public void setFieldValue(int fieldID, Object value) {
-
 
760
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
761
    }
-
 
762
 
-
 
763
    public Object getFieldValue(_Fields field) {
819
    public Object getFieldValue(_Fields field) {
764
      switch (field) {
820
      switch (field) {
765
      }
821
      }
766
      throw new IllegalStateException();
822
      throw new IllegalStateException();
767
    }
823
    }
768
 
824
 
769
    public Object getFieldValue(int fieldId) {
-
 
770
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
771
    }
-
 
772
 
-
 
773
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
825
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
774
    public boolean isSet(_Fields field) {
826
    public boolean isSet(_Fields field) {
-
 
827
      if (field == null) {
-
 
828
        throw new IllegalArgumentException();
-
 
829
      }
-
 
830
 
775
      switch (field) {
831
      switch (field) {
776
      }
832
      }
777
      throw new IllegalStateException();
833
      throw new IllegalStateException();
778
    }
834
    }
779
 
835
 
780
    public boolean isSet(int fieldID) {
-
 
781
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
782
    }
-
 
783
 
-
 
784
    @Override
836
    @Override
785
    public boolean equals(Object that) {
837
    public boolean equals(Object that) {
786
      if (that == null)
838
      if (that == null)
787
        return false;
839
        return false;
788
      if (that instanceof closeSession_args)
840
      if (that instanceof closeSession_args)
Line 811... Line 863...
811
      closeSession_args typedOther = (closeSession_args)other;
863
      closeSession_args typedOther = (closeSession_args)other;
812
 
864
 
813
      return 0;
865
      return 0;
814
    }
866
    }
815
 
867
 
-
 
868
    public _Fields fieldForId(int fieldId) {
-
 
869
      return _Fields.findByThriftId(fieldId);
-
 
870
    }
-
 
871
 
816
    public void read(TProtocol iprot) throws TException {
872
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
817
      TField field;
873
      org.apache.thrift.protocol.TField field;
818
      iprot.readStructBegin();
874
      iprot.readStructBegin();
819
      while (true)
875
      while (true)
820
      {
876
      {
821
        field = iprot.readFieldBegin();
877
        field = iprot.readFieldBegin();
822
        if (field.type == TType.STOP) { 
878
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
823
          break;
879
          break;
824
        }
880
        }
825
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
826
        if (fieldId == null) {
-
 
827
          TProtocolUtil.skip(iprot, field.type);
-
 
828
        } else {
-
 
829
          switch (fieldId) {
881
        switch (field.id) {
830
          }
882
          default:
831
          iprot.readFieldEnd();
883
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
832
        }
884
        }
-
 
885
        iprot.readFieldEnd();
833
      }
886
      }
834
      iprot.readStructEnd();
887
      iprot.readStructEnd();
835
      validate();
888
      validate();
836
    }
889
    }
837
 
890
 
838
    public void write(TProtocol oprot) throws TException {
891
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
839
      validate();
892
      validate();
840
 
893
 
841
      oprot.writeStructBegin(STRUCT_DESC);
894
      oprot.writeStructBegin(STRUCT_DESC);
842
      oprot.writeFieldStop();
895
      oprot.writeFieldStop();
843
      oprot.writeStructEnd();
896
      oprot.writeStructEnd();
Line 850... Line 903...
850
 
903
 
851
      sb.append(")");
904
      sb.append(")");
852
      return sb.toString();
905
      return sb.toString();
853
    }
906
    }
854
 
907
 
855
    public void validate() throws TException {
908
    public void validate() throws org.apache.thrift.TException {
856
      // check for required fields
909
      // check for required fields
857
    }
910
    }
858
 
911
 
-
 
912
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
913
      try {
-
 
914
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
915
      } catch (org.apache.thrift.TException te) {
-
 
916
        throw new java.io.IOException(te);
-
 
917
      }
-
 
918
    }
-
 
919
 
-
 
920
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
921
      try {
-
 
922
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
923
      } catch (org.apache.thrift.TException te) {
-
 
924
        throw new java.io.IOException(te);
-
 
925
      }
-
 
926
    }
-
 
927
 
859
  }
928
  }
860
 
929
 
861
  public static class closeSession_result implements TBase<closeSession_result._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_result>   {
930
  public static class closeSession_result implements org.apache.thrift.TBase<closeSession_result, closeSession_result._Fields>, java.io.Serializable, Cloneable   {
862
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_result");
931
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeSession_result");
863
 
932
 
864
 
933
 
865
 
934
 
866
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
935
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
867
    public enum _Fields implements TFieldIdEnum {
936
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
868
;
937
;
869
 
938
 
870
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
871
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
939
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
872
 
940
 
873
      static {
941
      static {
874
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
942
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
875
          byId.put((int)field._thriftId, field);
-
 
876
          byName.put(field.getFieldName(), field);
943
          byName.put(field.getFieldName(), field);
877
        }
944
        }
878
      }
945
      }
879
 
946
 
880
      /**
947
      /**
881
       * Find the _Fields constant that matches fieldId, or null if its not found.
948
       * Find the _Fields constant that matches fieldId, or null if its not found.
882
       */
949
       */
883
      public static _Fields findByThriftId(int fieldId) {
950
      public static _Fields findByThriftId(int fieldId) {
884
        return byId.get(fieldId);
951
        switch(fieldId) {
-
 
952
          default:
-
 
953
            return null;
-
 
954
        }
885
      }
955
      }
886
 
956
 
887
      /**
957
      /**
888
       * Find the _Fields constant that matches fieldId, throwing an exception
958
       * Find the _Fields constant that matches fieldId, throwing an exception
889
       * if it is not found.
959
       * if it is not found.
Line 915... Line 985...
915
 
985
 
916
      public String getFieldName() {
986
      public String getFieldName() {
917
        return _fieldName;
987
        return _fieldName;
918
      }
988
      }
919
    }
989
    }
920
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
990
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
921
    }});
-
 
922
 
-
 
923
    static {
991
    static {
-
 
992
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
993
      metaDataMap = Collections.unmodifiableMap(tmpMap);
924
      FieldMetaData.addStructMetaDataMap(closeSession_result.class, metaDataMap);
994
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeSession_result.class, metaDataMap);
925
    }
995
    }
926
 
996
 
927
    public closeSession_result() {
997
    public closeSession_result() {
928
    }
998
    }
929
 
999
 
Line 935... Line 1005...
935
 
1005
 
936
    public closeSession_result deepCopy() {
1006
    public closeSession_result deepCopy() {
937
      return new closeSession_result(this);
1007
      return new closeSession_result(this);
938
    }
1008
    }
939
 
1009
 
940
    @Deprecated
1010
    @Override
941
    public closeSession_result clone() {
1011
    public void clear() {
942
      return new closeSession_result(this);
-
 
943
    }
1012
    }
944
 
1013
 
945
    public void setFieldValue(_Fields field, Object value) {
1014
    public void setFieldValue(_Fields field, Object value) {
946
      switch (field) {
1015
      switch (field) {
947
      }
1016
      }
948
    }
1017
    }
949
 
1018
 
950
    public void setFieldValue(int fieldID, Object value) {
-
 
951
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
952
    }
-
 
953
 
-
 
954
    public Object getFieldValue(_Fields field) {
1019
    public Object getFieldValue(_Fields field) {
955
      switch (field) {
1020
      switch (field) {
956
      }
1021
      }
957
      throw new IllegalStateException();
1022
      throw new IllegalStateException();
958
    }
1023
    }
959
 
1024
 
960
    public Object getFieldValue(int fieldId) {
-
 
961
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
962
    }
-
 
963
 
-
 
964
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1025
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
965
    public boolean isSet(_Fields field) {
1026
    public boolean isSet(_Fields field) {
-
 
1027
      if (field == null) {
-
 
1028
        throw new IllegalArgumentException();
-
 
1029
      }
-
 
1030
 
966
      switch (field) {
1031
      switch (field) {
967
      }
1032
      }
968
      throw new IllegalStateException();
1033
      throw new IllegalStateException();
969
    }
1034
    }
970
 
1035
 
971
    public boolean isSet(int fieldID) {
-
 
972
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
973
    }
-
 
974
 
-
 
975
    @Override
1036
    @Override
976
    public boolean equals(Object that) {
1037
    public boolean equals(Object that) {
977
      if (that == null)
1038
      if (that == null)
978
        return false;
1039
        return false;
979
      if (that instanceof closeSession_result)
1040
      if (that instanceof closeSession_result)
Line 1002... Line 1063...
1002
      closeSession_result typedOther = (closeSession_result)other;
1063
      closeSession_result typedOther = (closeSession_result)other;
1003
 
1064
 
1004
      return 0;
1065
      return 0;
1005
    }
1066
    }
1006
 
1067
 
-
 
1068
    public _Fields fieldForId(int fieldId) {
-
 
1069
      return _Fields.findByThriftId(fieldId);
-
 
1070
    }
-
 
1071
 
1007
    public void read(TProtocol iprot) throws TException {
1072
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1008
      TField field;
1073
      org.apache.thrift.protocol.TField field;
1009
      iprot.readStructBegin();
1074
      iprot.readStructBegin();
1010
      while (true)
1075
      while (true)
1011
      {
1076
      {
1012
        field = iprot.readFieldBegin();
1077
        field = iprot.readFieldBegin();
1013
        if (field.type == TType.STOP) { 
1078
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1014
          break;
1079
          break;
1015
        }
1080
        }
1016
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1017
        if (fieldId == null) {
-
 
1018
          TProtocolUtil.skip(iprot, field.type);
-
 
1019
        } else {
-
 
1020
          switch (fieldId) {
1081
        switch (field.id) {
1021
          }
1082
          default:
1022
          iprot.readFieldEnd();
1083
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1023
        }
1084
        }
-
 
1085
        iprot.readFieldEnd();
1024
      }
1086
      }
1025
      iprot.readStructEnd();
1087
      iprot.readStructEnd();
1026
      validate();
1088
      validate();
1027
    }
1089
    }
1028
 
1090
 
1029
    public void write(TProtocol oprot) throws TException {
1091
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1030
      oprot.writeStructBegin(STRUCT_DESC);
1092
      oprot.writeStructBegin(STRUCT_DESC);
1031
 
1093
 
1032
      oprot.writeFieldStop();
1094
      oprot.writeFieldStop();
1033
      oprot.writeStructEnd();
1095
      oprot.writeStructEnd();
1034
    }
1096
    }
Line 1040... Line 1102...
1040
 
1102
 
1041
      sb.append(")");
1103
      sb.append(")");
1042
      return sb.toString();
1104
      return sb.toString();
1043
    }
1105
    }
1044
 
1106
 
1045
    public void validate() throws TException {
1107
    public void validate() throws org.apache.thrift.TException {
1046
      // check for required fields
1108
      // check for required fields
1047
    }
1109
    }
1048
 
1110
 
-
 
1111
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1112
      try {
-
 
1113
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1114
      } catch (org.apache.thrift.TException te) {
-
 
1115
        throw new java.io.IOException(te);
-
 
1116
      }
-
 
1117
    }
-
 
1118
 
-
 
1119
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1120
      try {
-
 
1121
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1122
      } catch (org.apache.thrift.TException te) {
-
 
1123
        throw new java.io.IOException(te);
-
 
1124
      }
-
 
1125
    }
-
 
1126
 
1049
  }
1127
  }
1050
 
1128
 
1051
}
1129
}