Subversion Repositories SmartDukaan

Rev

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

Rev 1013 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.datalogger;
6
package in.shop2020.datalogger;
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 DataLogger {
23
public class DataLogger {
27
 
24
 
28
  public interface Iface {
25
  public interface Iface {
29
 
26
 
30
    public void closeSession() throws TException;
27
    public void closeSession() throws org.apache.thrift.TException;
31
 
28
 
32
    public void log(MsgType messageType, String message) throws TException;
29
    public void log(MsgType messageType, String message) throws org.apache.thrift.TException;
33
 
30
 
34
  }
31
  }
35
 
32
 
36
  public static class Client implements Iface {
33
  public interface AsyncIface {
37
    public Client(TProtocol prot)
-
 
38
    {
-
 
39
      this(prot, prot);
-
 
40
    }
-
 
41
 
34
 
42
    public Client(TProtocol iprot, TProtocol oprot)
35
    public void closeSession(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.closeSession_call> resultHandler) throws org.apache.thrift.TException;
43
    {
-
 
44
      iprot_ = iprot;
-
 
45
      oprot_ = oprot;
-
 
46
    }
-
 
47
 
36
 
48
    protected TProtocol iprot_;
-
 
49
    protected TProtocol oprot_;
37
    public void log(MsgType messageType, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.log_call> resultHandler) throws org.apache.thrift.TException;
50
 
38
 
51
    protected int seqid_;
39
  }
52
 
40
 
-
 
41
  public static class Client extends org.apache.thrift.TServiceClient implements Iface {
-
 
42
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
-
 
43
      public Factory() {}
-
 
44
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
53
    public TProtocol getInputProtocol()
45
        return new Client(prot);
54
    {
46
      }
-
 
47
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
55
      return this.iprot_;
48
        return new Client(iprot, oprot);
-
 
49
      }
56
    }
50
    }
57
 
51
 
58
    public TProtocol getOutputProtocol()
52
    public Client(org.apache.thrift.protocol.TProtocol prot)
59
    {
53
    {
60
      return this.oprot_;
54
      super(prot, prot);
61
    }
55
    }
62
 
56
 
-
 
57
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
-
 
58
      super(iprot, oprot);
-
 
59
    }
-
 
60
 
63
    public void closeSession() throws TException
61
    public void closeSession() throws org.apache.thrift.TException
64
    {
62
    {
65
      send_closeSession();
63
      send_closeSession();
66
      recv_closeSession();
64
      recv_closeSession();
67
    }
65
    }
68
 
66
 
69
    public void send_closeSession() throws TException
67
    public void send_closeSession() throws org.apache.thrift.TException
70
    {
68
    {
71
      oprot_.writeMessageBegin(new TMessage("closeSession", TMessageType.CALL, seqid_));
-
 
72
      closeSession_args args = new closeSession_args();
69
      closeSession_args args = new closeSession_args();
73
      args.write(oprot_);
-
 
74
      oprot_.writeMessageEnd();
70
      sendBase("closeSession", args);
75
      oprot_.getTransport().flush();
-
 
76
    }
71
    }
77
 
72
 
78
    public void recv_closeSession() throws TException
73
    public void recv_closeSession() throws org.apache.thrift.TException
79
    {
74
    {
80
      TMessage msg = iprot_.readMessageBegin();
-
 
81
      if (msg.type == TMessageType.EXCEPTION) {
-
 
82
        TApplicationException x = TApplicationException.read(iprot_);
-
 
83
        iprot_.readMessageEnd();
-
 
84
        throw x;
-
 
85
      }
-
 
86
      closeSession_result result = new closeSession_result();
75
      closeSession_result result = new closeSession_result();
87
      result.read(iprot_);
76
      receiveBase(result, "closeSession");
88
      iprot_.readMessageEnd();
-
 
89
      return;
77
      return;
90
    }
78
    }
91
 
79
 
92
    public void log(MsgType messageType, String message) throws TException
80
    public void log(MsgType messageType, String message) throws org.apache.thrift.TException
93
    {
81
    {
94
      send_log(messageType, message);
82
      send_log(messageType, message);
95
      recv_log();
83
      recv_log();
96
    }
84
    }
97
 
85
 
98
    public void send_log(MsgType messageType, String message) throws TException
86
    public void send_log(MsgType messageType, String message) throws org.apache.thrift.TException
99
    {
87
    {
100
      oprot_.writeMessageBegin(new TMessage("log", TMessageType.CALL, seqid_));
-
 
101
      log_args args = new log_args();
88
      log_args args = new log_args();
102
      args.messageType = messageType;
89
      args.setMessageType(messageType);
103
      args.message = message;
90
      args.setMessage(message);
104
      args.write(oprot_);
91
      sendBase("log", args);
105
      oprot_.writeMessageEnd();
-
 
106
      oprot_.getTransport().flush();
-
 
107
    }
92
    }
108
 
93
 
109
    public void recv_log() throws TException
94
    public void recv_log() throws org.apache.thrift.TException
110
    {
95
    {
111
      TMessage msg = iprot_.readMessageBegin();
-
 
112
      if (msg.type == TMessageType.EXCEPTION) {
-
 
113
        TApplicationException x = TApplicationException.read(iprot_);
-
 
114
        iprot_.readMessageEnd();
-
 
115
        throw x;
-
 
116
      }
-
 
117
      log_result result = new log_result();
96
      log_result result = new log_result();
118
      result.read(iprot_);
97
      receiveBase(result, "log");
119
      iprot_.readMessageEnd();
-
 
120
      return;
98
      return;
121
    }
99
    }
122
 
100
 
123
  }
101
  }
-
 
102
  public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
124
  public static class Processor implements TProcessor {
103
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
-
 
104
      private org.apache.thrift.async.TAsyncClientManager clientManager;
125
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
105
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
-
 
106
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
126
    public Processor(Iface iface)
107
        this.clientManager = clientManager;
-
 
108
        this.protocolFactory = protocolFactory;
127
    {
109
      }
128
      iface_ = iface;
-
 
129
      processMap_.put("closeSession", new closeSession());
110
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
130
      processMap_.put("log", new log());
111
        return new AsyncClient(protocolFactory, clientManager, transport);
-
 
112
      }
131
    }
113
    }
132
 
114
 
133
    protected static interface ProcessFunction {
115
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
134
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
116
      super(protocolFactory, clientManager, transport);
135
    }
117
    }
136
 
118
 
-
 
119
    public void closeSession(org.apache.thrift.async.AsyncMethodCallback<closeSession_call> resultHandler) throws org.apache.thrift.TException {
137
    private Iface iface_;
120
      checkReady();
138
    protected final HashMap<String,ProcessFunction> processMap_ = new HashMap<String,ProcessFunction>();
121
      closeSession_call method_call = new closeSession_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
122
      this.___currentMethod = method_call;
-
 
123
      ___manager.call(method_call);
-
 
124
    }
139
 
125
 
140
    public boolean process(TProtocol iprot, TProtocol oprot) throws TException
126
    public static class closeSession_call extends org.apache.thrift.async.TAsyncMethodCall {
141
    {
127
      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 {
142
      TMessage msg = iprot.readMessageBegin();
-
 
143
      ProcessFunction fn = processMap_.get(msg.name);
-
 
144
      if (fn == null) {
-
 
145
        TProtocolUtil.skip(iprot, TType.STRUCT);
128
        super(client, protocolFactory, transport, resultHandler, false);
146
        iprot.readMessageEnd();
-
 
147
        TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'");
-
 
148
        oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid));
-
 
149
        x.write(oprot);
-
 
150
        oprot.writeMessageEnd();
-
 
151
        oprot.getTransport().flush();
-
 
152
        return true;
-
 
153
      }
129
      }
154
      fn.process(msg.seqid, iprot, oprot);
-
 
155
      return true;
-
 
156
    }
-
 
157
 
130
 
158
    private class closeSession implements ProcessFunction {
131
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
159
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
132
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("closeSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
160
      {
-
 
161
        closeSession_args args = new closeSession_args();
133
        closeSession_args args = new closeSession_args();
162
        args.read(iprot);
134
        args.write(prot);
163
        iprot.readMessageEnd();
135
        prot.writeMessageEnd();
-
 
136
      }
-
 
137
 
164
        closeSession_result result = new closeSession_result();
138
      public void getResult() throws org.apache.thrift.TException {
165
        iface_.closeSession();
139
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
166
        oprot.writeMessageBegin(new TMessage("closeSession", TMessageType.REPLY, seqid));
140
          throw new IllegalStateException("Method call not finished!");
167
        result.write(oprot);
141
        }
-
 
142
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
168
        oprot.writeMessageEnd();
143
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
169
        oprot.getTransport().flush();
144
        (new Client(prot)).recv_closeSession();
170
      }
145
      }
-
 
146
    }
171
 
147
 
-
 
148
    public void log(MsgType messageType, String message, org.apache.thrift.async.AsyncMethodCallback<log_call> resultHandler) throws org.apache.thrift.TException {
-
 
149
      checkReady();
-
 
150
      log_call method_call = new log_call(messageType, message, resultHandler, this, ___protocolFactory, ___transport);
-
 
151
      this.___currentMethod = method_call;
-
 
152
      ___manager.call(method_call);
172
    }
153
    }
173
 
154
 
174
    private class log implements ProcessFunction {
155
    public static class log_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
156
      private MsgType messageType;
-
 
157
      private String message;
175
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
158
      public log_call(MsgType messageType, String message, org.apache.thrift.async.AsyncMethodCallback<log_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 {
-
 
159
        super(client, protocolFactory, transport, resultHandler, false);
-
 
160
        this.messageType = messageType;
-
 
161
        this.message = message;
176
      {
162
      }
-
 
163
 
-
 
164
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
165
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("log", org.apache.thrift.protocol.TMessageType.CALL, 0));
177
        log_args args = new log_args();
166
        log_args args = new log_args();
-
 
167
        args.setMessageType(messageType);
-
 
168
        args.setMessage(message);
178
        args.read(iprot);
169
        args.write(prot);
179
        iprot.readMessageEnd();
170
        prot.writeMessageEnd();
-
 
171
      }
-
 
172
 
-
 
173
      public void getResult() throws org.apache.thrift.TException {
-
 
174
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
175
          throw new IllegalStateException("Method call not finished!");
-
 
176
        }
-
 
177
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
178
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
180
        log_result result = new log_result();
179
        (new Client(prot)).recv_log();
-
 
180
      }
-
 
181
    }
-
 
182
 
-
 
183
  }
-
 
184
 
-
 
185
  public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor {
-
 
186
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
-
 
187
    public Processor(I iface) {
-
 
188
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
-
 
189
    }
-
 
190
 
-
 
191
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
181
        iface_.log(args.messageType, args.message);
192
      super(iface, getProcessMap(processMap));
-
 
193
    }
-
 
194
 
-
 
195
    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) {
182
        oprot.writeMessageBegin(new TMessage("log", TMessageType.REPLY, seqid));
196
      processMap.put("closeSession", new closeSession());
-
 
197
      processMap.put("log", new log());
183
        result.write(oprot);
198
      return processMap;
-
 
199
    }
-
 
200
 
-
 
201
    private static class closeSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, closeSession_args> {
-
 
202
      public closeSession() {
184
        oprot.writeMessageEnd();
203
        super("closeSession");
-
 
204
      }
-
 
205
 
-
 
206
      protected closeSession_args getEmptyArgsInstance() {
185
        oprot.getTransport().flush();
207
        return new closeSession_args();
186
      }
208
      }
187
 
209
 
-
 
210
      protected closeSession_result getResult(I iface, closeSession_args args) throws org.apache.thrift.TException {
-
 
211
        closeSession_result result = new closeSession_result();
-
 
212
        iface.closeSession();
-
 
213
        return result;
-
 
214
      }
-
 
215
    }
-
 
216
 
-
 
217
    private static class log<I extends Iface> extends org.apache.thrift.ProcessFunction<I, log_args> {
-
 
218
      public log() {
-
 
219
        super("log");
-
 
220
      }
-
 
221
 
-
 
222
      protected log_args getEmptyArgsInstance() {
-
 
223
        return new log_args();
-
 
224
      }
-
 
225
 
-
 
226
      protected log_result getResult(I iface, log_args args) throws org.apache.thrift.TException {
-
 
227
        log_result result = new log_result();
-
 
228
        iface.log(args.messageType, args.message);
-
 
229
        return result;
-
 
230
      }
188
    }
231
    }
189
 
232
 
190
  }
233
  }
191
 
234
 
192
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
235
  public static class closeSession_args implements org.apache.thrift.TBase<closeSession_args, closeSession_args._Fields>, java.io.Serializable, Cloneable   {
193
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
236
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeSession_args");
194
 
237
 
195
 
238
 
196
 
239
 
197
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
240
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
198
    public enum _Fields implements TFieldIdEnum {
241
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
199
;
242
;
200
 
243
 
201
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
202
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
244
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
203
 
245
 
204
      static {
246
      static {
205
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
247
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
206
          byId.put((int)field._thriftId, field);
-
 
207
          byName.put(field.getFieldName(), field);
248
          byName.put(field.getFieldName(), field);
208
        }
249
        }
209
      }
250
      }
210
 
251
 
211
      /**
252
      /**
212
       * Find the _Fields constant that matches fieldId, or null if its not found.
253
       * Find the _Fields constant that matches fieldId, or null if its not found.
213
       */
254
       */
214
      public static _Fields findByThriftId(int fieldId) {
255
      public static _Fields findByThriftId(int fieldId) {
215
        return byId.get(fieldId);
256
        switch(fieldId) {
-
 
257
          default:
-
 
258
            return null;
-
 
259
        }
216
      }
260
      }
217
 
261
 
218
      /**
262
      /**
219
       * Find the _Fields constant that matches fieldId, throwing an exception
263
       * Find the _Fields constant that matches fieldId, throwing an exception
220
       * if it is not found.
264
       * if it is not found.
Line 246... Line 290...
246
 
290
 
247
      public String getFieldName() {
291
      public String getFieldName() {
248
        return _fieldName;
292
        return _fieldName;
249
      }
293
      }
250
    }
294
    }
251
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
295
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
252
    }});
-
 
253
 
-
 
254
    static {
296
    static {
-
 
297
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
298
      metaDataMap = Collections.unmodifiableMap(tmpMap);
255
      FieldMetaData.addStructMetaDataMap(closeSession_args.class, metaDataMap);
299
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeSession_args.class, metaDataMap);
256
    }
300
    }
257
 
301
 
258
    public closeSession_args() {
302
    public closeSession_args() {
259
    }
303
    }
260
 
304
 
Line 266... Line 310...
266
 
310
 
267
    public closeSession_args deepCopy() {
311
    public closeSession_args deepCopy() {
268
      return new closeSession_args(this);
312
      return new closeSession_args(this);
269
    }
313
    }
270
 
314
 
271
    @Deprecated
315
    @Override
272
    public closeSession_args clone() {
316
    public void clear() {
273
      return new closeSession_args(this);
-
 
274
    }
317
    }
275
 
318
 
276
    public void setFieldValue(_Fields field, Object value) {
319
    public void setFieldValue(_Fields field, Object value) {
277
      switch (field) {
320
      switch (field) {
278
      }
321
      }
279
    }
322
    }
280
 
323
 
281
    public void setFieldValue(int fieldID, Object value) {
-
 
282
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
283
    }
-
 
284
 
-
 
285
    public Object getFieldValue(_Fields field) {
324
    public Object getFieldValue(_Fields field) {
286
      switch (field) {
325
      switch (field) {
287
      }
326
      }
288
      throw new IllegalStateException();
327
      throw new IllegalStateException();
289
    }
328
    }
290
 
329
 
291
    public Object getFieldValue(int fieldId) {
-
 
292
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
293
    }
-
 
294
 
-
 
295
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
330
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
296
    public boolean isSet(_Fields field) {
331
    public boolean isSet(_Fields field) {
-
 
332
      if (field == null) {
-
 
333
        throw new IllegalArgumentException();
-
 
334
      }
-
 
335
 
297
      switch (field) {
336
      switch (field) {
298
      }
337
      }
299
      throw new IllegalStateException();
338
      throw new IllegalStateException();
300
    }
339
    }
301
 
340
 
302
    public boolean isSet(int fieldID) {
-
 
303
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
304
    }
-
 
305
 
-
 
306
    @Override
341
    @Override
307
    public boolean equals(Object that) {
342
    public boolean equals(Object that) {
308
      if (that == null)
343
      if (that == null)
309
        return false;
344
        return false;
310
      if (that instanceof closeSession_args)
345
      if (that instanceof closeSession_args)
Line 333... Line 368...
333
      closeSession_args typedOther = (closeSession_args)other;
368
      closeSession_args typedOther = (closeSession_args)other;
334
 
369
 
335
      return 0;
370
      return 0;
336
    }
371
    }
337
 
372
 
-
 
373
    public _Fields fieldForId(int fieldId) {
-
 
374
      return _Fields.findByThriftId(fieldId);
-
 
375
    }
-
 
376
 
338
    public void read(TProtocol iprot) throws TException {
377
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
339
      TField field;
378
      org.apache.thrift.protocol.TField field;
340
      iprot.readStructBegin();
379
      iprot.readStructBegin();
341
      while (true)
380
      while (true)
342
      {
381
      {
343
        field = iprot.readFieldBegin();
382
        field = iprot.readFieldBegin();
344
        if (field.type == TType.STOP) { 
383
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
345
          break;
384
          break;
346
        }
385
        }
347
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
348
        if (fieldId == null) {
-
 
349
          TProtocolUtil.skip(iprot, field.type);
-
 
350
        } else {
-
 
351
          switch (fieldId) {
386
        switch (field.id) {
352
          }
387
          default:
353
          iprot.readFieldEnd();
388
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
354
        }
389
        }
-
 
390
        iprot.readFieldEnd();
355
      }
391
      }
356
      iprot.readStructEnd();
392
      iprot.readStructEnd();
357
      validate();
393
      validate();
358
    }
394
    }
359
 
395
 
360
    public void write(TProtocol oprot) throws TException {
396
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
361
      validate();
397
      validate();
362
 
398
 
363
      oprot.writeStructBegin(STRUCT_DESC);
399
      oprot.writeStructBegin(STRUCT_DESC);
364
      oprot.writeFieldStop();
400
      oprot.writeFieldStop();
365
      oprot.writeStructEnd();
401
      oprot.writeStructEnd();
Line 372... Line 408...
372
 
408
 
373
      sb.append(")");
409
      sb.append(")");
374
      return sb.toString();
410
      return sb.toString();
375
    }
411
    }
376
 
412
 
377
    public void validate() throws TException {
413
    public void validate() throws org.apache.thrift.TException {
378
      // check for required fields
414
      // check for required fields
379
    }
415
    }
380
 
416
 
-
 
417
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
418
      try {
-
 
419
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
420
      } catch (org.apache.thrift.TException te) {
-
 
421
        throw new java.io.IOException(te);
-
 
422
      }
-
 
423
    }
-
 
424
 
-
 
425
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
426
      try {
-
 
427
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
428
      } catch (org.apache.thrift.TException te) {
-
 
429
        throw new java.io.IOException(te);
-
 
430
      }
-
 
431
    }
-
 
432
 
381
  }
433
  }
382
 
434
 
383
  public static class closeSession_result implements TBase<closeSession_result._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_result>   {
435
  public static class closeSession_result implements org.apache.thrift.TBase<closeSession_result, closeSession_result._Fields>, java.io.Serializable, Cloneable   {
384
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_result");
436
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeSession_result");
385
 
437
 
386
 
438
 
387
 
439
 
388
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
440
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
389
    public enum _Fields implements TFieldIdEnum {
441
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
390
;
442
;
391
 
443
 
392
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
393
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
444
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
394
 
445
 
395
      static {
446
      static {
396
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
447
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
397
          byId.put((int)field._thriftId, field);
-
 
398
          byName.put(field.getFieldName(), field);
448
          byName.put(field.getFieldName(), field);
399
        }
449
        }
400
      }
450
      }
401
 
451
 
402
      /**
452
      /**
403
       * Find the _Fields constant that matches fieldId, or null if its not found.
453
       * Find the _Fields constant that matches fieldId, or null if its not found.
404
       */
454
       */
405
      public static _Fields findByThriftId(int fieldId) {
455
      public static _Fields findByThriftId(int fieldId) {
406
        return byId.get(fieldId);
456
        switch(fieldId) {
-
 
457
          default:
-
 
458
            return null;
-
 
459
        }
407
      }
460
      }
408
 
461
 
409
      /**
462
      /**
410
       * Find the _Fields constant that matches fieldId, throwing an exception
463
       * Find the _Fields constant that matches fieldId, throwing an exception
411
       * if it is not found.
464
       * if it is not found.
Line 437... Line 490...
437
 
490
 
438
      public String getFieldName() {
491
      public String getFieldName() {
439
        return _fieldName;
492
        return _fieldName;
440
      }
493
      }
441
    }
494
    }
442
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
495
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
443
    }});
-
 
444
 
-
 
445
    static {
496
    static {
-
 
497
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
498
      metaDataMap = Collections.unmodifiableMap(tmpMap);
446
      FieldMetaData.addStructMetaDataMap(closeSession_result.class, metaDataMap);
499
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeSession_result.class, metaDataMap);
447
    }
500
    }
448
 
501
 
449
    public closeSession_result() {
502
    public closeSession_result() {
450
    }
503
    }
451
 
504
 
Line 457... Line 510...
457
 
510
 
458
    public closeSession_result deepCopy() {
511
    public closeSession_result deepCopy() {
459
      return new closeSession_result(this);
512
      return new closeSession_result(this);
460
    }
513
    }
461
 
514
 
462
    @Deprecated
515
    @Override
463
    public closeSession_result clone() {
516
    public void clear() {
464
      return new closeSession_result(this);
-
 
465
    }
517
    }
466
 
518
 
467
    public void setFieldValue(_Fields field, Object value) {
519
    public void setFieldValue(_Fields field, Object value) {
468
      switch (field) {
520
      switch (field) {
469
      }
521
      }
470
    }
522
    }
471
 
523
 
472
    public void setFieldValue(int fieldID, Object value) {
-
 
473
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
474
    }
-
 
475
 
-
 
476
    public Object getFieldValue(_Fields field) {
524
    public Object getFieldValue(_Fields field) {
477
      switch (field) {
525
      switch (field) {
478
      }
526
      }
479
      throw new IllegalStateException();
527
      throw new IllegalStateException();
480
    }
528
    }
481
 
529
 
482
    public Object getFieldValue(int fieldId) {
-
 
483
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
484
    }
-
 
485
 
-
 
486
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
530
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
487
    public boolean isSet(_Fields field) {
531
    public boolean isSet(_Fields field) {
-
 
532
      if (field == null) {
-
 
533
        throw new IllegalArgumentException();
-
 
534
      }
-
 
535
 
488
      switch (field) {
536
      switch (field) {
489
      }
537
      }
490
      throw new IllegalStateException();
538
      throw new IllegalStateException();
491
    }
539
    }
492
 
540
 
493
    public boolean isSet(int fieldID) {
-
 
494
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
495
    }
-
 
496
 
-
 
497
    @Override
541
    @Override
498
    public boolean equals(Object that) {
542
    public boolean equals(Object that) {
499
      if (that == null)
543
      if (that == null)
500
        return false;
544
        return false;
501
      if (that instanceof closeSession_result)
545
      if (that instanceof closeSession_result)
Line 524... Line 568...
524
      closeSession_result typedOther = (closeSession_result)other;
568
      closeSession_result typedOther = (closeSession_result)other;
525
 
569
 
526
      return 0;
570
      return 0;
527
    }
571
    }
528
 
572
 
-
 
573
    public _Fields fieldForId(int fieldId) {
-
 
574
      return _Fields.findByThriftId(fieldId);
-
 
575
    }
-
 
576
 
529
    public void read(TProtocol iprot) throws TException {
577
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
530
      TField field;
578
      org.apache.thrift.protocol.TField field;
531
      iprot.readStructBegin();
579
      iprot.readStructBegin();
532
      while (true)
580
      while (true)
533
      {
581
      {
534
        field = iprot.readFieldBegin();
582
        field = iprot.readFieldBegin();
535
        if (field.type == TType.STOP) { 
583
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
536
          break;
584
          break;
537
        }
585
        }
538
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
539
        if (fieldId == null) {
-
 
540
          TProtocolUtil.skip(iprot, field.type);
-
 
541
        } else {
-
 
542
          switch (fieldId) {
586
        switch (field.id) {
543
          }
587
          default:
544
          iprot.readFieldEnd();
588
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
545
        }
589
        }
-
 
590
        iprot.readFieldEnd();
546
      }
591
      }
547
      iprot.readStructEnd();
592
      iprot.readStructEnd();
548
      validate();
593
      validate();
549
    }
594
    }
550
 
595
 
551
    public void write(TProtocol oprot) throws TException {
596
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
552
      oprot.writeStructBegin(STRUCT_DESC);
597
      oprot.writeStructBegin(STRUCT_DESC);
553
 
598
 
554
      oprot.writeFieldStop();
599
      oprot.writeFieldStop();
555
      oprot.writeStructEnd();
600
      oprot.writeStructEnd();
556
    }
601
    }
Line 562... Line 607...
562
 
607
 
563
      sb.append(")");
608
      sb.append(")");
564
      return sb.toString();
609
      return sb.toString();
565
    }
610
    }
566
 
611
 
567
    public void validate() throws TException {
612
    public void validate() throws org.apache.thrift.TException {
568
      // check for required fields
613
      // check for required fields
569
    }
614
    }
570
 
615
 
-
 
616
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
617
      try {
-
 
618
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
619
      } catch (org.apache.thrift.TException te) {
-
 
620
        throw new java.io.IOException(te);
-
 
621
      }
-
 
622
    }
-
 
623
 
-
 
624
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
625
      try {
-
 
626
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
627
      } catch (org.apache.thrift.TException te) {
-
 
628
        throw new java.io.IOException(te);
-
 
629
      }
-
 
630
    }
-
 
631
 
571
  }
632
  }
572
 
633
 
573
  public static class log_args implements TBase<log_args._Fields>, java.io.Serializable, Cloneable, Comparable<log_args>   {
634
  public static class log_args implements org.apache.thrift.TBase<log_args, log_args._Fields>, java.io.Serializable, Cloneable   {
574
    private static final TStruct STRUCT_DESC = new TStruct("log_args");
635
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("log_args");
575
 
636
 
576
    private static final TField MESSAGE_TYPE_FIELD_DESC = new TField("messageType", TType.I32, (short)1);
637
    private static final org.apache.thrift.protocol.TField MESSAGE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("messageType", org.apache.thrift.protocol.TType.I32, (short)1);
577
    private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)2);
638
    private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)2);
578
 
639
 
579
    private MsgType messageType;
640
    private MsgType messageType; // required
580
    private String message;
641
    private String message; // required
581
 
642
 
582
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
643
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
583
    public enum _Fields implements TFieldIdEnum {
644
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
584
      /**
645
      /**
585
       * 
646
       * 
586
       * @see MsgType
647
       * @see MsgType
587
       */
648
       */
588
      MESSAGE_TYPE((short)1, "messageType"),
649
      MESSAGE_TYPE((short)1, "messageType"),
589
      MESSAGE((short)2, "message");
650
      MESSAGE((short)2, "message");
590
 
651
 
591
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
592
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
652
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
593
 
653
 
594
      static {
654
      static {
595
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
655
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
596
          byId.put((int)field._thriftId, field);
-
 
597
          byName.put(field.getFieldName(), field);
656
          byName.put(field.getFieldName(), field);
598
        }
657
        }
599
      }
658
      }
600
 
659
 
601
      /**
660
      /**
602
       * Find the _Fields constant that matches fieldId, or null if its not found.
661
       * Find the _Fields constant that matches fieldId, or null if its not found.
603
       */
662
       */
604
      public static _Fields findByThriftId(int fieldId) {
663
      public static _Fields findByThriftId(int fieldId) {
605
        return byId.get(fieldId);
664
        switch(fieldId) {
-
 
665
          case 1: // MESSAGE_TYPE
-
 
666
            return MESSAGE_TYPE;
-
 
667
          case 2: // MESSAGE
-
 
668
            return MESSAGE;
-
 
669
          default:
-
 
670
            return null;
-
 
671
        }
606
      }
672
      }
607
 
673
 
608
      /**
674
      /**
609
       * Find the _Fields constant that matches fieldId, throwing an exception
675
       * Find the _Fields constant that matches fieldId, throwing an exception
610
       * if it is not found.
676
       * if it is not found.
Line 639... Line 705...
639
      }
705
      }
640
    }
706
    }
641
 
707
 
642
    // isset id assignments
708
    // isset id assignments
643
 
709
 
644
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
710
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
645
      put(_Fields.MESSAGE_TYPE, new FieldMetaData("messageType", TFieldRequirementType.DEFAULT, 
-
 
646
          new EnumMetaData(TType.ENUM, MsgType.class)));
-
 
647
      put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, 
-
 
648
          new FieldValueMetaData(TType.STRING)));
-
 
649
    }});
-
 
650
 
-
 
651
    static {
711
    static {
-
 
712
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
713
      tmpMap.put(_Fields.MESSAGE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("messageType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
714
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, MsgType.class)));
-
 
715
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
716
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
717
      metaDataMap = Collections.unmodifiableMap(tmpMap);
652
      FieldMetaData.addStructMetaDataMap(log_args.class, metaDataMap);
718
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(log_args.class, metaDataMap);
653
    }
719
    }
654
 
720
 
655
    public log_args() {
721
    public log_args() {
656
    }
722
    }
657
 
723
 
Line 678... Line 744...
678
 
744
 
679
    public log_args deepCopy() {
745
    public log_args deepCopy() {
680
      return new log_args(this);
746
      return new log_args(this);
681
    }
747
    }
682
 
748
 
683
    @Deprecated
749
    @Override
684
    public log_args clone() {
750
    public void clear() {
685
      return new log_args(this);
751
      this.messageType = null;
-
 
752
      this.message = null;
686
    }
753
    }
687
 
754
 
688
    /**
755
    /**
689
     * 
756
     * 
690
     * @see MsgType
757
     * @see MsgType
Line 695... Line 762...
695
 
762
 
696
    /**
763
    /**
697
     * 
764
     * 
698
     * @see MsgType
765
     * @see MsgType
699
     */
766
     */
700
    public log_args setMessageType(MsgType messageType) {
767
    public void setMessageType(MsgType messageType) {
701
      this.messageType = messageType;
768
      this.messageType = messageType;
702
      return this;
-
 
703
    }
769
    }
704
 
770
 
705
    public void unsetMessageType() {
771
    public void unsetMessageType() {
706
      this.messageType = null;
772
      this.messageType = null;
707
    }
773
    }
708
 
774
 
709
    /** Returns true if field messageType is set (has been asigned a value) and false otherwise */
775
    /** Returns true if field messageType is set (has been assigned a value) and false otherwise */
710
    public boolean isSetMessageType() {
776
    public boolean isSetMessageType() {
711
      return this.messageType != null;
777
      return this.messageType != null;
712
    }
778
    }
713
 
779
 
714
    public void setMessageTypeIsSet(boolean value) {
780
    public void setMessageTypeIsSet(boolean value) {
Line 719... Line 785...
719
 
785
 
720
    public String getMessage() {
786
    public String getMessage() {
721
      return this.message;
787
      return this.message;
722
    }
788
    }
723
 
789
 
724
    public log_args setMessage(String message) {
790
    public void setMessage(String message) {
725
      this.message = message;
791
      this.message = message;
726
      return this;
-
 
727
    }
792
    }
728
 
793
 
729
    public void unsetMessage() {
794
    public void unsetMessage() {
730
      this.message = null;
795
      this.message = null;
731
    }
796
    }
732
 
797
 
733
    /** Returns true if field message is set (has been asigned a value) and false otherwise */
798
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
734
    public boolean isSetMessage() {
799
    public boolean isSetMessage() {
735
      return this.message != null;
800
      return this.message != null;
736
    }
801
    }
737
 
802
 
738
    public void setMessageIsSet(boolean value) {
803
    public void setMessageIsSet(boolean value) {
Line 760... Line 825...
760
        break;
825
        break;
761
 
826
 
762
      }
827
      }
763
    }
828
    }
764
 
829
 
765
    public void setFieldValue(int fieldID, Object value) {
-
 
766
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
767
    }
-
 
768
 
-
 
769
    public Object getFieldValue(_Fields field) {
830
    public Object getFieldValue(_Fields field) {
770
      switch (field) {
831
      switch (field) {
771
      case MESSAGE_TYPE:
832
      case MESSAGE_TYPE:
772
        return getMessageType();
833
        return getMessageType();
773
 
834
 
Line 776... Line 837...
776
 
837
 
777
      }
838
      }
778
      throw new IllegalStateException();
839
      throw new IllegalStateException();
779
    }
840
    }
780
 
841
 
781
    public Object getFieldValue(int fieldId) {
-
 
782
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
783
    }
-
 
784
 
-
 
785
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
842
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
786
    public boolean isSet(_Fields field) {
843
    public boolean isSet(_Fields field) {
-
 
844
      if (field == null) {
-
 
845
        throw new IllegalArgumentException();
-
 
846
      }
-
 
847
 
787
      switch (field) {
848
      switch (field) {
788
      case MESSAGE_TYPE:
849
      case MESSAGE_TYPE:
789
        return isSetMessageType();
850
        return isSetMessageType();
790
      case MESSAGE:
851
      case MESSAGE:
791
        return isSetMessage();
852
        return isSetMessage();
792
      }
853
      }
793
      throw new IllegalStateException();
854
      throw new IllegalStateException();
794
    }
855
    }
795
 
856
 
796
    public boolean isSet(int fieldID) {
-
 
797
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
798
    }
-
 
799
 
-
 
800
    @Override
857
    @Override
801
    public boolean equals(Object that) {
858
    public boolean equals(Object that) {
802
      if (that == null)
859
      if (that == null)
803
        return false;
860
        return false;
804
      if (that instanceof log_args)
861
      if (that instanceof log_args)
Line 842... Line 899...
842
      }
899
      }
843
 
900
 
844
      int lastComparison = 0;
901
      int lastComparison = 0;
845
      log_args typedOther = (log_args)other;
902
      log_args typedOther = (log_args)other;
846
 
903
 
847
      lastComparison = Boolean.valueOf(isSetMessageType()).compareTo(isSetMessageType());
904
      lastComparison = Boolean.valueOf(isSetMessageType()).compareTo(typedOther.isSetMessageType());
848
      if (lastComparison != 0) {
905
      if (lastComparison != 0) {
849
        return lastComparison;
906
        return lastComparison;
850
      }
907
      }
-
 
908
      if (isSetMessageType()) {
851
      lastComparison = TBaseHelper.compareTo(messageType, typedOther.messageType);
909
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.messageType, typedOther.messageType);
852
      if (lastComparison != 0) {
910
        if (lastComparison != 0) {
853
        return lastComparison;
911
          return lastComparison;
-
 
912
        }
854
      }
913
      }
855
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(isSetMessage());
914
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
856
      if (lastComparison != 0) {
915
      if (lastComparison != 0) {
857
        return lastComparison;
916
        return lastComparison;
858
      }
917
      }
-
 
918
      if (isSetMessage()) {
859
      lastComparison = TBaseHelper.compareTo(message, typedOther.message);
919
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
860
      if (lastComparison != 0) {
920
        if (lastComparison != 0) {
861
        return lastComparison;
921
          return lastComparison;
-
 
922
        }
862
      }
923
      }
863
      return 0;
924
      return 0;
864
    }
925
    }
865
 
926
 
-
 
927
    public _Fields fieldForId(int fieldId) {
-
 
928
      return _Fields.findByThriftId(fieldId);
-
 
929
    }
-
 
930
 
866
    public void read(TProtocol iprot) throws TException {
931
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
867
      TField field;
932
      org.apache.thrift.protocol.TField field;
868
      iprot.readStructBegin();
933
      iprot.readStructBegin();
869
      while (true)
934
      while (true)
870
      {
935
      {
871
        field = iprot.readFieldBegin();
936
        field = iprot.readFieldBegin();
872
        if (field.type == TType.STOP) { 
937
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
873
          break;
938
          break;
874
        }
939
        }
875
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
876
        if (fieldId == null) {
-
 
877
          TProtocolUtil.skip(iprot, field.type);
-
 
878
        } else {
-
 
879
          switch (fieldId) {
940
        switch (field.id) {
880
            case MESSAGE_TYPE:
941
          case 1: // MESSAGE_TYPE
881
              if (field.type == TType.I32) {
942
            if (field.type == org.apache.thrift.protocol.TType.I32) {
882
                this.messageType = MsgType.findByValue(iprot.readI32());
943
              this.messageType = MsgType.findByValue(iprot.readI32());
883
              } else { 
944
            } else { 
884
                TProtocolUtil.skip(iprot, field.type);
945
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
885
              }
946
            }
886
              break;
947
            break;
887
            case MESSAGE:
948
          case 2: // MESSAGE
888
              if (field.type == TType.STRING) {
949
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
889
                this.message = iprot.readString();
950
              this.message = iprot.readString();
890
              } else { 
951
            } else { 
891
                TProtocolUtil.skip(iprot, field.type);
952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
892
              }
953
            }
893
              break;
954
            break;
894
          }
955
          default:
895
          iprot.readFieldEnd();
956
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
896
        }
957
        }
-
 
958
        iprot.readFieldEnd();
897
      }
959
      }
898
      iprot.readStructEnd();
960
      iprot.readStructEnd();
899
      validate();
961
      validate();
900
    }
962
    }
901
 
963
 
902
    public void write(TProtocol oprot) throws TException {
964
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
903
      validate();
965
      validate();
904
 
966
 
905
      oprot.writeStructBegin(STRUCT_DESC);
967
      oprot.writeStructBegin(STRUCT_DESC);
906
      if (this.messageType != null) {
968
      if (this.messageType != null) {
907
        oprot.writeFieldBegin(MESSAGE_TYPE_FIELD_DESC);
969
        oprot.writeFieldBegin(MESSAGE_TYPE_FIELD_DESC);
Line 924... Line 986...
924
 
986
 
925
      sb.append("messageType:");
987
      sb.append("messageType:");
926
      if (this.messageType == null) {
988
      if (this.messageType == null) {
927
        sb.append("null");
989
        sb.append("null");
928
      } else {
990
      } else {
929
        String messageType_name = messageType.name();
-
 
930
        if (messageType_name != null) {
-
 
931
          sb.append(messageType_name);
-
 
932
          sb.append(" (");
-
 
933
        }
-
 
934
        sb.append(this.messageType);
991
        sb.append(this.messageType);
935
        if (messageType_name != null) {
-
 
936
          sb.append(")");
-
 
937
        }
-
 
938
      }
992
      }
939
      first = false;
993
      first = false;
940
      if (!first) sb.append(", ");
994
      if (!first) sb.append(", ");
941
      sb.append("message:");
995
      sb.append("message:");
942
      if (this.message == null) {
996
      if (this.message == null) {
Line 947... Line 1001...
947
      first = false;
1001
      first = false;
948
      sb.append(")");
1002
      sb.append(")");
949
      return sb.toString();
1003
      return sb.toString();
950
    }
1004
    }
951
 
1005
 
952
    public void validate() throws TException {
1006
    public void validate() throws org.apache.thrift.TException {
953
      // check for required fields
1007
      // check for required fields
954
    }
1008
    }
955
 
1009
 
-
 
1010
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1011
      try {
-
 
1012
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1013
      } catch (org.apache.thrift.TException te) {
-
 
1014
        throw new java.io.IOException(te);
-
 
1015
      }
-
 
1016
    }
-
 
1017
 
-
 
1018
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1019
      try {
-
 
1020
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1021
      } catch (org.apache.thrift.TException te) {
-
 
1022
        throw new java.io.IOException(te);
-
 
1023
      }
-
 
1024
    }
-
 
1025
 
956
  }
1026
  }
957
 
1027
 
958
  public static class log_result implements TBase<log_result._Fields>, java.io.Serializable, Cloneable, Comparable<log_result>   {
1028
  public static class log_result implements org.apache.thrift.TBase<log_result, log_result._Fields>, java.io.Serializable, Cloneable   {
959
    private static final TStruct STRUCT_DESC = new TStruct("log_result");
1029
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("log_result");
960
 
1030
 
961
 
1031
 
962
 
1032
 
963
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1033
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
964
    public enum _Fields implements TFieldIdEnum {
1034
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
965
;
1035
;
966
 
1036
 
967
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
968
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1037
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
969
 
1038
 
970
      static {
1039
      static {
971
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1040
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
972
          byId.put((int)field._thriftId, field);
-
 
973
          byName.put(field.getFieldName(), field);
1041
          byName.put(field.getFieldName(), field);
974
        }
1042
        }
975
      }
1043
      }
976
 
1044
 
977
      /**
1045
      /**
978
       * Find the _Fields constant that matches fieldId, or null if its not found.
1046
       * Find the _Fields constant that matches fieldId, or null if its not found.
979
       */
1047
       */
980
      public static _Fields findByThriftId(int fieldId) {
1048
      public static _Fields findByThriftId(int fieldId) {
981
        return byId.get(fieldId);
1049
        switch(fieldId) {
-
 
1050
          default:
-
 
1051
            return null;
-
 
1052
        }
982
      }
1053
      }
983
 
1054
 
984
      /**
1055
      /**
985
       * Find the _Fields constant that matches fieldId, throwing an exception
1056
       * Find the _Fields constant that matches fieldId, throwing an exception
986
       * if it is not found.
1057
       * if it is not found.
Line 1012... Line 1083...
1012
 
1083
 
1013
      public String getFieldName() {
1084
      public String getFieldName() {
1014
        return _fieldName;
1085
        return _fieldName;
1015
      }
1086
      }
1016
    }
1087
    }
1017
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1088
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1018
    }});
-
 
1019
 
-
 
1020
    static {
1089
    static {
-
 
1090
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1091
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1021
      FieldMetaData.addStructMetaDataMap(log_result.class, metaDataMap);
1092
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(log_result.class, metaDataMap);
1022
    }
1093
    }
1023
 
1094
 
1024
    public log_result() {
1095
    public log_result() {
1025
    }
1096
    }
1026
 
1097
 
Line 1032... Line 1103...
1032
 
1103
 
1033
    public log_result deepCopy() {
1104
    public log_result deepCopy() {
1034
      return new log_result(this);
1105
      return new log_result(this);
1035
    }
1106
    }
1036
 
1107
 
1037
    @Deprecated
1108
    @Override
1038
    public log_result clone() {
1109
    public void clear() {
1039
      return new log_result(this);
-
 
1040
    }
1110
    }
1041
 
1111
 
1042
    public void setFieldValue(_Fields field, Object value) {
1112
    public void setFieldValue(_Fields field, Object value) {
1043
      switch (field) {
1113
      switch (field) {
1044
      }
1114
      }
1045
    }
1115
    }
1046
 
1116
 
1047
    public void setFieldValue(int fieldID, Object value) {
-
 
1048
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1049
    }
-
 
1050
 
-
 
1051
    public Object getFieldValue(_Fields field) {
1117
    public Object getFieldValue(_Fields field) {
1052
      switch (field) {
1118
      switch (field) {
1053
      }
1119
      }
1054
      throw new IllegalStateException();
1120
      throw new IllegalStateException();
1055
    }
1121
    }
1056
 
1122
 
1057
    public Object getFieldValue(int fieldId) {
-
 
1058
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1059
    }
-
 
1060
 
-
 
1061
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1123
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1062
    public boolean isSet(_Fields field) {
1124
    public boolean isSet(_Fields field) {
-
 
1125
      if (field == null) {
-
 
1126
        throw new IllegalArgumentException();
-
 
1127
      }
-
 
1128
 
1063
      switch (field) {
1129
      switch (field) {
1064
      }
1130
      }
1065
      throw new IllegalStateException();
1131
      throw new IllegalStateException();
1066
    }
1132
    }
1067
 
1133
 
1068
    public boolean isSet(int fieldID) {
-
 
1069
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1070
    }
-
 
1071
 
-
 
1072
    @Override
1134
    @Override
1073
    public boolean equals(Object that) {
1135
    public boolean equals(Object that) {
1074
      if (that == null)
1136
      if (that == null)
1075
        return false;
1137
        return false;
1076
      if (that instanceof log_result)
1138
      if (that instanceof log_result)
Line 1099... Line 1161...
1099
      log_result typedOther = (log_result)other;
1161
      log_result typedOther = (log_result)other;
1100
 
1162
 
1101
      return 0;
1163
      return 0;
1102
    }
1164
    }
1103
 
1165
 
-
 
1166
    public _Fields fieldForId(int fieldId) {
-
 
1167
      return _Fields.findByThriftId(fieldId);
-
 
1168
    }
-
 
1169
 
1104
    public void read(TProtocol iprot) throws TException {
1170
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1105
      TField field;
1171
      org.apache.thrift.protocol.TField field;
1106
      iprot.readStructBegin();
1172
      iprot.readStructBegin();
1107
      while (true)
1173
      while (true)
1108
      {
1174
      {
1109
        field = iprot.readFieldBegin();
1175
        field = iprot.readFieldBegin();
1110
        if (field.type == TType.STOP) { 
1176
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1111
          break;
1177
          break;
1112
        }
1178
        }
1113
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1114
        if (fieldId == null) {
-
 
1115
          TProtocolUtil.skip(iprot, field.type);
-
 
1116
        } else {
-
 
1117
          switch (fieldId) {
1179
        switch (field.id) {
1118
          }
1180
          default:
1119
          iprot.readFieldEnd();
1181
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1120
        }
1182
        }
-
 
1183
        iprot.readFieldEnd();
1121
      }
1184
      }
1122
      iprot.readStructEnd();
1185
      iprot.readStructEnd();
1123
      validate();
1186
      validate();
1124
    }
1187
    }
1125
 
1188
 
1126
    public void write(TProtocol oprot) throws TException {
1189
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1127
      oprot.writeStructBegin(STRUCT_DESC);
1190
      oprot.writeStructBegin(STRUCT_DESC);
1128
 
1191
 
1129
      oprot.writeFieldStop();
1192
      oprot.writeFieldStop();
1130
      oprot.writeStructEnd();
1193
      oprot.writeStructEnd();
1131
    }
1194
    }
Line 1137... Line 1200...
1137
 
1200
 
1138
      sb.append(")");
1201
      sb.append(")");
1139
      return sb.toString();
1202
      return sb.toString();
1140
    }
1203
    }
1141
 
1204
 
1142
    public void validate() throws TException {
1205
    public void validate() throws org.apache.thrift.TException {
1143
      // check for required fields
1206
      // check for required fields
1144
    }
1207
    }
1145
 
1208
 
-
 
1209
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1210
      try {
-
 
1211
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1212
      } catch (org.apache.thrift.TException te) {
-
 
1213
        throw new java.io.IOException(te);
-
 
1214
      }
-
 
1215
    }
-
 
1216
 
-
 
1217
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1218
      try {
-
 
1219
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1220
      } catch (org.apache.thrift.TException te) {
-
 
1221
        throw new java.io.IOException(te);
-
 
1222
      }
-
 
1223
    }
-
 
1224
 
1146
  }
1225
  }
1147
 
1226
 
1148
}
1227
}