| 305 |
ashish |
1 |
/**
|
| 3430 |
rajveer |
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
| 305 |
ashish |
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.datalogger;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
| 3430 |
rajveer |
18 |
import java.nio.ByteBuffer;
|
| 305 |
ashish |
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class DataLogger {
|
|
|
24 |
|
|
|
25 |
public interface Iface {
|
|
|
26 |
|
| 3430 |
rajveer |
27 |
public void closeSession() throws org.apache.thrift.TException;
|
| 764 |
rajveer |
28 |
|
| 3430 |
rajveer |
29 |
public void log(MsgType messageType, String message) throws org.apache.thrift.TException;
|
| 305 |
ashish |
30 |
|
|
|
31 |
}
|
|
|
32 |
|
| 3430 |
rajveer |
33 |
public interface AsyncIface {
|
| 305 |
ashish |
34 |
|
| 3430 |
rajveer |
35 |
public void closeSession(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.closeSession_call> resultHandler) throws org.apache.thrift.TException;
|
| 305 |
ashish |
36 |
|
| 3430 |
rajveer |
37 |
public void log(MsgType messageType, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.log_call> resultHandler) throws org.apache.thrift.TException;
|
| 305 |
ashish |
38 |
|
| 3430 |
rajveer |
39 |
}
|
| 305 |
ashish |
40 |
|
| 3430 |
rajveer |
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) {
|
|
|
45 |
return new Client(prot);
|
|
|
46 |
}
|
|
|
47 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
48 |
return new Client(iprot, oprot);
|
|
|
49 |
}
|
| 305 |
ashish |
50 |
}
|
|
|
51 |
|
| 3430 |
rajveer |
52 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
| 305 |
ashish |
53 |
{
|
| 3430 |
rajveer |
54 |
super(prot, prot);
|
| 305 |
ashish |
55 |
}
|
|
|
56 |
|
| 3430 |
rajveer |
57 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
58 |
super(iprot, oprot);
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
public void closeSession() throws org.apache.thrift.TException
|
| 764 |
rajveer |
62 |
{
|
|
|
63 |
send_closeSession();
|
|
|
64 |
recv_closeSession();
|
|
|
65 |
}
|
|
|
66 |
|
| 3430 |
rajveer |
67 |
public void send_closeSession() throws org.apache.thrift.TException
|
| 764 |
rajveer |
68 |
{
|
|
|
69 |
closeSession_args args = new closeSession_args();
|
| 3430 |
rajveer |
70 |
sendBase("closeSession", args);
|
| 764 |
rajveer |
71 |
}
|
|
|
72 |
|
| 3430 |
rajveer |
73 |
public void recv_closeSession() throws org.apache.thrift.TException
|
| 764 |
rajveer |
74 |
{
|
|
|
75 |
closeSession_result result = new closeSession_result();
|
| 3430 |
rajveer |
76 |
receiveBase(result, "closeSession");
|
| 764 |
rajveer |
77 |
return;
|
|
|
78 |
}
|
|
|
79 |
|
| 3430 |
rajveer |
80 |
public void log(MsgType messageType, String message) throws org.apache.thrift.TException
|
| 305 |
ashish |
81 |
{
|
|
|
82 |
send_log(messageType, message);
|
|
|
83 |
recv_log();
|
|
|
84 |
}
|
|
|
85 |
|
| 3430 |
rajveer |
86 |
public void send_log(MsgType messageType, String message) throws org.apache.thrift.TException
|
| 305 |
ashish |
87 |
{
|
|
|
88 |
log_args args = new log_args();
|
| 3430 |
rajveer |
89 |
args.setMessageType(messageType);
|
|
|
90 |
args.setMessage(message);
|
|
|
91 |
sendBase("log", args);
|
| 305 |
ashish |
92 |
}
|
|
|
93 |
|
| 3430 |
rajveer |
94 |
public void recv_log() throws org.apache.thrift.TException
|
| 305 |
ashish |
95 |
{
|
|
|
96 |
log_result result = new log_result();
|
| 3430 |
rajveer |
97 |
receiveBase(result, "log");
|
| 305 |
ashish |
98 |
return;
|
|
|
99 |
}
|
|
|
100 |
|
|
|
101 |
}
|
| 3430 |
rajveer |
102 |
public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
|
|
|
103 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
104 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
105 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
106 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
107 |
this.clientManager = clientManager;
|
|
|
108 |
this.protocolFactory = protocolFactory;
|
|
|
109 |
}
|
|
|
110 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
111 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
112 |
}
|
| 305 |
ashish |
113 |
}
|
|
|
114 |
|
| 3430 |
rajveer |
115 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
116 |
super(protocolFactory, clientManager, transport);
|
| 305 |
ashish |
117 |
}
|
|
|
118 |
|
| 3430 |
rajveer |
119 |
public void closeSession(org.apache.thrift.async.AsyncMethodCallback<closeSession_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
120 |
checkReady();
|
|
|
121 |
closeSession_call method_call = new closeSession_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
122 |
this.___currentMethod = method_call;
|
|
|
123 |
___manager.call(method_call);
|
|
|
124 |
}
|
| 305 |
ashish |
125 |
|
| 3430 |
rajveer |
126 |
public static class closeSession_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
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 {
|
|
|
128 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 305 |
ashish |
129 |
}
|
|
|
130 |
|
| 3430 |
rajveer |
131 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
132 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("closeSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 764 |
rajveer |
133 |
closeSession_args args = new closeSession_args();
|
| 3430 |
rajveer |
134 |
args.write(prot);
|
|
|
135 |
prot.writeMessageEnd();
|
| 764 |
rajveer |
136 |
}
|
|
|
137 |
|
| 3430 |
rajveer |
138 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
139 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
140 |
throw new IllegalStateException("Method call not finished!");
|
|
|
141 |
}
|
|
|
142 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
143 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
144 |
(new Client(prot)).recv_closeSession();
|
|
|
145 |
}
|
| 764 |
rajveer |
146 |
}
|
|
|
147 |
|
| 3430 |
rajveer |
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);
|
|
|
153 |
}
|
|
|
154 |
|
|
|
155 |
public static class log_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
156 |
private MsgType messageType;
|
|
|
157 |
private String message;
|
|
|
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;
|
|
|
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));
|
| 305 |
ashish |
166 |
log_args args = new log_args();
|
| 3430 |
rajveer |
167 |
args.setMessageType(messageType);
|
|
|
168 |
args.setMessage(message);
|
|
|
169 |
args.write(prot);
|
|
|
170 |
prot.writeMessageEnd();
|
| 305 |
ashish |
171 |
}
|
|
|
172 |
|
| 3430 |
rajveer |
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);
|
|
|
179 |
(new Client(prot)).recv_log();
|
|
|
180 |
}
|
| 305 |
ashish |
181 |
}
|
|
|
182 |
|
|
|
183 |
}
|
|
|
184 |
|
| 3430 |
rajveer |
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 |
}
|
| 764 |
rajveer |
190 |
|
| 3430 |
rajveer |
191 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
192 |
super(iface, getProcessMap(processMap));
|
|
|
193 |
}
|
| 764 |
rajveer |
194 |
|
| 3430 |
rajveer |
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) {
|
|
|
196 |
processMap.put("closeSession", new closeSession());
|
|
|
197 |
processMap.put("log", new log());
|
|
|
198 |
return processMap;
|
|
|
199 |
}
|
| 764 |
rajveer |
200 |
|
| 3430 |
rajveer |
201 |
private static class closeSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, closeSession_args> {
|
|
|
202 |
public closeSession() {
|
|
|
203 |
super("closeSession");
|
|
|
204 |
}
|
|
|
205 |
|
|
|
206 |
protected closeSession_args getEmptyArgsInstance() {
|
|
|
207 |
return new closeSession_args();
|
|
|
208 |
}
|
|
|
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 |
}
|
|
|
231 |
}
|
|
|
232 |
|
|
|
233 |
}
|
|
|
234 |
|
|
|
235 |
public static class closeSession_args implements org.apache.thrift.TBase<closeSession_args, closeSession_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
236 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeSession_args");
|
|
|
237 |
|
|
|
238 |
|
|
|
239 |
|
| 764 |
rajveer |
240 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
241 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 764 |
rajveer |
242 |
;
|
|
|
243 |
|
|
|
244 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
245 |
|
|
|
246 |
static {
|
|
|
247 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
248 |
byName.put(field.getFieldName(), field);
|
|
|
249 |
}
|
|
|
250 |
}
|
|
|
251 |
|
|
|
252 |
/**
|
|
|
253 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
254 |
*/
|
|
|
255 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
256 |
switch(fieldId) {
|
|
|
257 |
default:
|
|
|
258 |
return null;
|
|
|
259 |
}
|
| 764 |
rajveer |
260 |
}
|
|
|
261 |
|
|
|
262 |
/**
|
|
|
263 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
264 |
* if it is not found.
|
|
|
265 |
*/
|
|
|
266 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
267 |
_Fields fields = findByThriftId(fieldId);
|
|
|
268 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
269 |
return fields;
|
|
|
270 |
}
|
|
|
271 |
|
|
|
272 |
/**
|
|
|
273 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
274 |
*/
|
|
|
275 |
public static _Fields findByName(String name) {
|
|
|
276 |
return byName.get(name);
|
|
|
277 |
}
|
|
|
278 |
|
|
|
279 |
private final short _thriftId;
|
|
|
280 |
private final String _fieldName;
|
|
|
281 |
|
|
|
282 |
_Fields(short thriftId, String fieldName) {
|
|
|
283 |
_thriftId = thriftId;
|
|
|
284 |
_fieldName = fieldName;
|
|
|
285 |
}
|
|
|
286 |
|
|
|
287 |
public short getThriftFieldId() {
|
|
|
288 |
return _thriftId;
|
|
|
289 |
}
|
|
|
290 |
|
|
|
291 |
public String getFieldName() {
|
|
|
292 |
return _fieldName;
|
|
|
293 |
}
|
|
|
294 |
}
|
| 3430 |
rajveer |
295 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 764 |
rajveer |
296 |
static {
|
| 3430 |
rajveer |
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);
|
|
|
299 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeSession_args.class, metaDataMap);
|
| 764 |
rajveer |
300 |
}
|
|
|
301 |
|
|
|
302 |
public closeSession_args() {
|
|
|
303 |
}
|
|
|
304 |
|
|
|
305 |
/**
|
|
|
306 |
* Performs a deep copy on <i>other</i>.
|
|
|
307 |
*/
|
|
|
308 |
public closeSession_args(closeSession_args other) {
|
|
|
309 |
}
|
|
|
310 |
|
|
|
311 |
public closeSession_args deepCopy() {
|
|
|
312 |
return new closeSession_args(this);
|
|
|
313 |
}
|
|
|
314 |
|
| 3430 |
rajveer |
315 |
@Override
|
|
|
316 |
public void clear() {
|
| 764 |
rajveer |
317 |
}
|
|
|
318 |
|
|
|
319 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
320 |
switch (field) {
|
|
|
321 |
}
|
|
|
322 |
}
|
|
|
323 |
|
|
|
324 |
public Object getFieldValue(_Fields field) {
|
|
|
325 |
switch (field) {
|
|
|
326 |
}
|
|
|
327 |
throw new IllegalStateException();
|
|
|
328 |
}
|
|
|
329 |
|
| 3430 |
rajveer |
330 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
331 |
public boolean isSet(_Fields field) {
|
|
|
332 |
if (field == null) {
|
|
|
333 |
throw new IllegalArgumentException();
|
|
|
334 |
}
|
| 764 |
rajveer |
335 |
|
|
|
336 |
switch (field) {
|
|
|
337 |
}
|
|
|
338 |
throw new IllegalStateException();
|
|
|
339 |
}
|
|
|
340 |
|
|
|
341 |
@Override
|
|
|
342 |
public boolean equals(Object that) {
|
|
|
343 |
if (that == null)
|
|
|
344 |
return false;
|
|
|
345 |
if (that instanceof closeSession_args)
|
|
|
346 |
return this.equals((closeSession_args)that);
|
|
|
347 |
return false;
|
|
|
348 |
}
|
|
|
349 |
|
|
|
350 |
public boolean equals(closeSession_args that) {
|
|
|
351 |
if (that == null)
|
|
|
352 |
return false;
|
|
|
353 |
|
|
|
354 |
return true;
|
|
|
355 |
}
|
|
|
356 |
|
|
|
357 |
@Override
|
|
|
358 |
public int hashCode() {
|
|
|
359 |
return 0;
|
|
|
360 |
}
|
|
|
361 |
|
|
|
362 |
public int compareTo(closeSession_args other) {
|
|
|
363 |
if (!getClass().equals(other.getClass())) {
|
|
|
364 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
365 |
}
|
|
|
366 |
|
|
|
367 |
int lastComparison = 0;
|
|
|
368 |
closeSession_args typedOther = (closeSession_args)other;
|
|
|
369 |
|
|
|
370 |
return 0;
|
|
|
371 |
}
|
|
|
372 |
|
| 3430 |
rajveer |
373 |
public _Fields fieldForId(int fieldId) {
|
|
|
374 |
return _Fields.findByThriftId(fieldId);
|
|
|
375 |
}
|
|
|
376 |
|
|
|
377 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
378 |
org.apache.thrift.protocol.TField field;
|
| 764 |
rajveer |
379 |
iprot.readStructBegin();
|
|
|
380 |
while (true)
|
|
|
381 |
{
|
|
|
382 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
383 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 764 |
rajveer |
384 |
break;
|
|
|
385 |
}
|
| 3430 |
rajveer |
386 |
switch (field.id) {
|
|
|
387 |
default:
|
|
|
388 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 764 |
rajveer |
389 |
}
|
| 3430 |
rajveer |
390 |
iprot.readFieldEnd();
|
| 764 |
rajveer |
391 |
}
|
|
|
392 |
iprot.readStructEnd();
|
|
|
393 |
validate();
|
|
|
394 |
}
|
|
|
395 |
|
| 3430 |
rajveer |
396 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 764 |
rajveer |
397 |
validate();
|
|
|
398 |
|
|
|
399 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
400 |
oprot.writeFieldStop();
|
|
|
401 |
oprot.writeStructEnd();
|
|
|
402 |
}
|
|
|
403 |
|
|
|
404 |
@Override
|
|
|
405 |
public String toString() {
|
|
|
406 |
StringBuilder sb = new StringBuilder("closeSession_args(");
|
|
|
407 |
boolean first = true;
|
|
|
408 |
|
|
|
409 |
sb.append(")");
|
|
|
410 |
return sb.toString();
|
|
|
411 |
}
|
|
|
412 |
|
| 3430 |
rajveer |
413 |
public void validate() throws org.apache.thrift.TException {
|
| 764 |
rajveer |
414 |
// check for required fields
|
|
|
415 |
}
|
|
|
416 |
|
| 3430 |
rajveer |
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 |
|
| 764 |
rajveer |
433 |
}
|
|
|
434 |
|
| 3430 |
rajveer |
435 |
public static class closeSession_result implements org.apache.thrift.TBase<closeSession_result, closeSession_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
436 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeSession_result");
|
| 764 |
rajveer |
437 |
|
|
|
438 |
|
|
|
439 |
|
|
|
440 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
441 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 764 |
rajveer |
442 |
;
|
|
|
443 |
|
|
|
444 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
445 |
|
|
|
446 |
static {
|
|
|
447 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
448 |
byName.put(field.getFieldName(), field);
|
|
|
449 |
}
|
|
|
450 |
}
|
|
|
451 |
|
|
|
452 |
/**
|
|
|
453 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
454 |
*/
|
|
|
455 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
456 |
switch(fieldId) {
|
|
|
457 |
default:
|
|
|
458 |
return null;
|
|
|
459 |
}
|
| 764 |
rajveer |
460 |
}
|
|
|
461 |
|
|
|
462 |
/**
|
|
|
463 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
464 |
* if it is not found.
|
|
|
465 |
*/
|
|
|
466 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
467 |
_Fields fields = findByThriftId(fieldId);
|
|
|
468 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
469 |
return fields;
|
|
|
470 |
}
|
|
|
471 |
|
|
|
472 |
/**
|
|
|
473 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
474 |
*/
|
|
|
475 |
public static _Fields findByName(String name) {
|
|
|
476 |
return byName.get(name);
|
|
|
477 |
}
|
|
|
478 |
|
|
|
479 |
private final short _thriftId;
|
|
|
480 |
private final String _fieldName;
|
|
|
481 |
|
|
|
482 |
_Fields(short thriftId, String fieldName) {
|
|
|
483 |
_thriftId = thriftId;
|
|
|
484 |
_fieldName = fieldName;
|
|
|
485 |
}
|
|
|
486 |
|
|
|
487 |
public short getThriftFieldId() {
|
|
|
488 |
return _thriftId;
|
|
|
489 |
}
|
|
|
490 |
|
|
|
491 |
public String getFieldName() {
|
|
|
492 |
return _fieldName;
|
|
|
493 |
}
|
|
|
494 |
}
|
| 3430 |
rajveer |
495 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 764 |
rajveer |
496 |
static {
|
| 3430 |
rajveer |
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);
|
|
|
499 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeSession_result.class, metaDataMap);
|
| 764 |
rajveer |
500 |
}
|
|
|
501 |
|
|
|
502 |
public closeSession_result() {
|
|
|
503 |
}
|
|
|
504 |
|
|
|
505 |
/**
|
|
|
506 |
* Performs a deep copy on <i>other</i>.
|
|
|
507 |
*/
|
|
|
508 |
public closeSession_result(closeSession_result other) {
|
|
|
509 |
}
|
|
|
510 |
|
|
|
511 |
public closeSession_result deepCopy() {
|
|
|
512 |
return new closeSession_result(this);
|
|
|
513 |
}
|
|
|
514 |
|
| 3430 |
rajveer |
515 |
@Override
|
|
|
516 |
public void clear() {
|
| 764 |
rajveer |
517 |
}
|
|
|
518 |
|
|
|
519 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
520 |
switch (field) {
|
|
|
521 |
}
|
|
|
522 |
}
|
|
|
523 |
|
|
|
524 |
public Object getFieldValue(_Fields field) {
|
|
|
525 |
switch (field) {
|
|
|
526 |
}
|
|
|
527 |
throw new IllegalStateException();
|
|
|
528 |
}
|
|
|
529 |
|
| 3430 |
rajveer |
530 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
531 |
public boolean isSet(_Fields field) {
|
|
|
532 |
if (field == null) {
|
|
|
533 |
throw new IllegalArgumentException();
|
|
|
534 |
}
|
| 764 |
rajveer |
535 |
|
|
|
536 |
switch (field) {
|
|
|
537 |
}
|
|
|
538 |
throw new IllegalStateException();
|
|
|
539 |
}
|
|
|
540 |
|
|
|
541 |
@Override
|
|
|
542 |
public boolean equals(Object that) {
|
|
|
543 |
if (that == null)
|
|
|
544 |
return false;
|
|
|
545 |
if (that instanceof closeSession_result)
|
|
|
546 |
return this.equals((closeSession_result)that);
|
|
|
547 |
return false;
|
|
|
548 |
}
|
|
|
549 |
|
|
|
550 |
public boolean equals(closeSession_result that) {
|
|
|
551 |
if (that == null)
|
|
|
552 |
return false;
|
|
|
553 |
|
|
|
554 |
return true;
|
|
|
555 |
}
|
|
|
556 |
|
|
|
557 |
@Override
|
|
|
558 |
public int hashCode() {
|
|
|
559 |
return 0;
|
|
|
560 |
}
|
|
|
561 |
|
|
|
562 |
public int compareTo(closeSession_result other) {
|
|
|
563 |
if (!getClass().equals(other.getClass())) {
|
|
|
564 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
565 |
}
|
|
|
566 |
|
|
|
567 |
int lastComparison = 0;
|
|
|
568 |
closeSession_result typedOther = (closeSession_result)other;
|
|
|
569 |
|
|
|
570 |
return 0;
|
|
|
571 |
}
|
|
|
572 |
|
| 3430 |
rajveer |
573 |
public _Fields fieldForId(int fieldId) {
|
|
|
574 |
return _Fields.findByThriftId(fieldId);
|
|
|
575 |
}
|
|
|
576 |
|
|
|
577 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
578 |
org.apache.thrift.protocol.TField field;
|
| 764 |
rajveer |
579 |
iprot.readStructBegin();
|
|
|
580 |
while (true)
|
|
|
581 |
{
|
|
|
582 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
583 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 764 |
rajveer |
584 |
break;
|
|
|
585 |
}
|
| 3430 |
rajveer |
586 |
switch (field.id) {
|
|
|
587 |
default:
|
|
|
588 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 764 |
rajveer |
589 |
}
|
| 3430 |
rajveer |
590 |
iprot.readFieldEnd();
|
| 764 |
rajveer |
591 |
}
|
|
|
592 |
iprot.readStructEnd();
|
|
|
593 |
validate();
|
|
|
594 |
}
|
|
|
595 |
|
| 3430 |
rajveer |
596 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 764 |
rajveer |
597 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
598 |
|
|
|
599 |
oprot.writeFieldStop();
|
|
|
600 |
oprot.writeStructEnd();
|
|
|
601 |
}
|
|
|
602 |
|
|
|
603 |
@Override
|
|
|
604 |
public String toString() {
|
|
|
605 |
StringBuilder sb = new StringBuilder("closeSession_result(");
|
|
|
606 |
boolean first = true;
|
|
|
607 |
|
|
|
608 |
sb.append(")");
|
|
|
609 |
return sb.toString();
|
|
|
610 |
}
|
|
|
611 |
|
| 3430 |
rajveer |
612 |
public void validate() throws org.apache.thrift.TException {
|
| 764 |
rajveer |
613 |
// check for required fields
|
|
|
614 |
}
|
|
|
615 |
|
| 3430 |
rajveer |
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 |
|
| 764 |
rajveer |
632 |
}
|
|
|
633 |
|
| 3430 |
rajveer |
634 |
public static class log_args implements org.apache.thrift.TBase<log_args, log_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
635 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("log_args");
|
| 305 |
ashish |
636 |
|
| 3430 |
rajveer |
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);
|
|
|
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);
|
| 305 |
ashish |
639 |
|
| 3430 |
rajveer |
640 |
private MsgType messageType; // required
|
|
|
641 |
private String message; // required
|
| 305 |
ashish |
642 |
|
|
|
643 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
644 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 305 |
ashish |
645 |
/**
|
|
|
646 |
*
|
|
|
647 |
* @see MsgType
|
|
|
648 |
*/
|
|
|
649 |
MESSAGE_TYPE((short)1, "messageType"),
|
|
|
650 |
MESSAGE((short)2, "message");
|
|
|
651 |
|
|
|
652 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
653 |
|
|
|
654 |
static {
|
|
|
655 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
656 |
byName.put(field.getFieldName(), field);
|
|
|
657 |
}
|
|
|
658 |
}
|
|
|
659 |
|
|
|
660 |
/**
|
|
|
661 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
662 |
*/
|
|
|
663 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
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 |
}
|
| 305 |
ashish |
672 |
}
|
|
|
673 |
|
|
|
674 |
/**
|
|
|
675 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
676 |
* if it is not found.
|
|
|
677 |
*/
|
|
|
678 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
679 |
_Fields fields = findByThriftId(fieldId);
|
|
|
680 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
681 |
return fields;
|
|
|
682 |
}
|
|
|
683 |
|
|
|
684 |
/**
|
|
|
685 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
686 |
*/
|
|
|
687 |
public static _Fields findByName(String name) {
|
|
|
688 |
return byName.get(name);
|
|
|
689 |
}
|
|
|
690 |
|
|
|
691 |
private final short _thriftId;
|
|
|
692 |
private final String _fieldName;
|
|
|
693 |
|
|
|
694 |
_Fields(short thriftId, String fieldName) {
|
|
|
695 |
_thriftId = thriftId;
|
|
|
696 |
_fieldName = fieldName;
|
|
|
697 |
}
|
|
|
698 |
|
|
|
699 |
public short getThriftFieldId() {
|
|
|
700 |
return _thriftId;
|
|
|
701 |
}
|
|
|
702 |
|
|
|
703 |
public String getFieldName() {
|
|
|
704 |
return _fieldName;
|
|
|
705 |
}
|
|
|
706 |
}
|
|
|
707 |
|
|
|
708 |
// isset id assignments
|
|
|
709 |
|
| 3430 |
rajveer |
710 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 305 |
ashish |
711 |
static {
|
| 3430 |
rajveer |
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);
|
|
|
718 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(log_args.class, metaDataMap);
|
| 305 |
ashish |
719 |
}
|
|
|
720 |
|
|
|
721 |
public log_args() {
|
|
|
722 |
}
|
|
|
723 |
|
|
|
724 |
public log_args(
|
|
|
725 |
MsgType messageType,
|
|
|
726 |
String message)
|
|
|
727 |
{
|
|
|
728 |
this();
|
|
|
729 |
this.messageType = messageType;
|
|
|
730 |
this.message = message;
|
|
|
731 |
}
|
|
|
732 |
|
|
|
733 |
/**
|
|
|
734 |
* Performs a deep copy on <i>other</i>.
|
|
|
735 |
*/
|
|
|
736 |
public log_args(log_args other) {
|
|
|
737 |
if (other.isSetMessageType()) {
|
|
|
738 |
this.messageType = other.messageType;
|
|
|
739 |
}
|
|
|
740 |
if (other.isSetMessage()) {
|
|
|
741 |
this.message = other.message;
|
|
|
742 |
}
|
|
|
743 |
}
|
|
|
744 |
|
|
|
745 |
public log_args deepCopy() {
|
|
|
746 |
return new log_args(this);
|
|
|
747 |
}
|
|
|
748 |
|
| 3430 |
rajveer |
749 |
@Override
|
|
|
750 |
public void clear() {
|
|
|
751 |
this.messageType = null;
|
|
|
752 |
this.message = null;
|
| 305 |
ashish |
753 |
}
|
|
|
754 |
|
|
|
755 |
/**
|
|
|
756 |
*
|
|
|
757 |
* @see MsgType
|
|
|
758 |
*/
|
|
|
759 |
public MsgType getMessageType() {
|
|
|
760 |
return this.messageType;
|
|
|
761 |
}
|
|
|
762 |
|
|
|
763 |
/**
|
|
|
764 |
*
|
|
|
765 |
* @see MsgType
|
|
|
766 |
*/
|
| 3430 |
rajveer |
767 |
public void setMessageType(MsgType messageType) {
|
| 305 |
ashish |
768 |
this.messageType = messageType;
|
|
|
769 |
}
|
|
|
770 |
|
|
|
771 |
public void unsetMessageType() {
|
|
|
772 |
this.messageType = null;
|
|
|
773 |
}
|
|
|
774 |
|
| 3430 |
rajveer |
775 |
/** Returns true if field messageType is set (has been assigned a value) and false otherwise */
|
| 305 |
ashish |
776 |
public boolean isSetMessageType() {
|
|
|
777 |
return this.messageType != null;
|
|
|
778 |
}
|
|
|
779 |
|
|
|
780 |
public void setMessageTypeIsSet(boolean value) {
|
|
|
781 |
if (!value) {
|
|
|
782 |
this.messageType = null;
|
|
|
783 |
}
|
|
|
784 |
}
|
|
|
785 |
|
|
|
786 |
public String getMessage() {
|
|
|
787 |
return this.message;
|
|
|
788 |
}
|
|
|
789 |
|
| 3430 |
rajveer |
790 |
public void setMessage(String message) {
|
| 305 |
ashish |
791 |
this.message = message;
|
|
|
792 |
}
|
|
|
793 |
|
|
|
794 |
public void unsetMessage() {
|
|
|
795 |
this.message = null;
|
|
|
796 |
}
|
|
|
797 |
|
| 3430 |
rajveer |
798 |
/** Returns true if field message is set (has been assigned a value) and false otherwise */
|
| 305 |
ashish |
799 |
public boolean isSetMessage() {
|
|
|
800 |
return this.message != null;
|
|
|
801 |
}
|
|
|
802 |
|
|
|
803 |
public void setMessageIsSet(boolean value) {
|
|
|
804 |
if (!value) {
|
|
|
805 |
this.message = null;
|
|
|
806 |
}
|
|
|
807 |
}
|
|
|
808 |
|
|
|
809 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
810 |
switch (field) {
|
|
|
811 |
case MESSAGE_TYPE:
|
|
|
812 |
if (value == null) {
|
|
|
813 |
unsetMessageType();
|
|
|
814 |
} else {
|
|
|
815 |
setMessageType((MsgType)value);
|
|
|
816 |
}
|
|
|
817 |
break;
|
|
|
818 |
|
|
|
819 |
case MESSAGE:
|
|
|
820 |
if (value == null) {
|
|
|
821 |
unsetMessage();
|
|
|
822 |
} else {
|
|
|
823 |
setMessage((String)value);
|
|
|
824 |
}
|
|
|
825 |
break;
|
|
|
826 |
|
|
|
827 |
}
|
|
|
828 |
}
|
|
|
829 |
|
|
|
830 |
public Object getFieldValue(_Fields field) {
|
|
|
831 |
switch (field) {
|
|
|
832 |
case MESSAGE_TYPE:
|
|
|
833 |
return getMessageType();
|
|
|
834 |
|
|
|
835 |
case MESSAGE:
|
|
|
836 |
return getMessage();
|
|
|
837 |
|
|
|
838 |
}
|
|
|
839 |
throw new IllegalStateException();
|
|
|
840 |
}
|
|
|
841 |
|
| 3430 |
rajveer |
842 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
843 |
public boolean isSet(_Fields field) {
|
|
|
844 |
if (field == null) {
|
|
|
845 |
throw new IllegalArgumentException();
|
|
|
846 |
}
|
| 305 |
ashish |
847 |
|
|
|
848 |
switch (field) {
|
|
|
849 |
case MESSAGE_TYPE:
|
|
|
850 |
return isSetMessageType();
|
|
|
851 |
case MESSAGE:
|
|
|
852 |
return isSetMessage();
|
|
|
853 |
}
|
|
|
854 |
throw new IllegalStateException();
|
|
|
855 |
}
|
|
|
856 |
|
|
|
857 |
@Override
|
|
|
858 |
public boolean equals(Object that) {
|
|
|
859 |
if (that == null)
|
|
|
860 |
return false;
|
|
|
861 |
if (that instanceof log_args)
|
|
|
862 |
return this.equals((log_args)that);
|
|
|
863 |
return false;
|
|
|
864 |
}
|
|
|
865 |
|
|
|
866 |
public boolean equals(log_args that) {
|
|
|
867 |
if (that == null)
|
|
|
868 |
return false;
|
|
|
869 |
|
|
|
870 |
boolean this_present_messageType = true && this.isSetMessageType();
|
|
|
871 |
boolean that_present_messageType = true && that.isSetMessageType();
|
|
|
872 |
if (this_present_messageType || that_present_messageType) {
|
|
|
873 |
if (!(this_present_messageType && that_present_messageType))
|
|
|
874 |
return false;
|
|
|
875 |
if (!this.messageType.equals(that.messageType))
|
|
|
876 |
return false;
|
|
|
877 |
}
|
|
|
878 |
|
|
|
879 |
boolean this_present_message = true && this.isSetMessage();
|
|
|
880 |
boolean that_present_message = true && that.isSetMessage();
|
|
|
881 |
if (this_present_message || that_present_message) {
|
|
|
882 |
if (!(this_present_message && that_present_message))
|
|
|
883 |
return false;
|
|
|
884 |
if (!this.message.equals(that.message))
|
|
|
885 |
return false;
|
|
|
886 |
}
|
|
|
887 |
|
|
|
888 |
return true;
|
|
|
889 |
}
|
|
|
890 |
|
|
|
891 |
@Override
|
|
|
892 |
public int hashCode() {
|
|
|
893 |
return 0;
|
|
|
894 |
}
|
|
|
895 |
|
|
|
896 |
public int compareTo(log_args other) {
|
|
|
897 |
if (!getClass().equals(other.getClass())) {
|
|
|
898 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
899 |
}
|
|
|
900 |
|
|
|
901 |
int lastComparison = 0;
|
|
|
902 |
log_args typedOther = (log_args)other;
|
|
|
903 |
|
| 3430 |
rajveer |
904 |
lastComparison = Boolean.valueOf(isSetMessageType()).compareTo(typedOther.isSetMessageType());
|
| 305 |
ashish |
905 |
if (lastComparison != 0) {
|
|
|
906 |
return lastComparison;
|
|
|
907 |
}
|
| 3430 |
rajveer |
908 |
if (isSetMessageType()) {
|
|
|
909 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.messageType, typedOther.messageType);
|
|
|
910 |
if (lastComparison != 0) {
|
|
|
911 |
return lastComparison;
|
|
|
912 |
}
|
| 305 |
ashish |
913 |
}
|
| 3430 |
rajveer |
914 |
lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
|
| 305 |
ashish |
915 |
if (lastComparison != 0) {
|
|
|
916 |
return lastComparison;
|
|
|
917 |
}
|
| 3430 |
rajveer |
918 |
if (isSetMessage()) {
|
|
|
919 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
|
|
|
920 |
if (lastComparison != 0) {
|
|
|
921 |
return lastComparison;
|
|
|
922 |
}
|
| 305 |
ashish |
923 |
}
|
|
|
924 |
return 0;
|
|
|
925 |
}
|
|
|
926 |
|
| 3430 |
rajveer |
927 |
public _Fields fieldForId(int fieldId) {
|
|
|
928 |
return _Fields.findByThriftId(fieldId);
|
|
|
929 |
}
|
|
|
930 |
|
|
|
931 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
932 |
org.apache.thrift.protocol.TField field;
|
| 305 |
ashish |
933 |
iprot.readStructBegin();
|
|
|
934 |
while (true)
|
|
|
935 |
{
|
|
|
936 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
937 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 305 |
ashish |
938 |
break;
|
|
|
939 |
}
|
| 3430 |
rajveer |
940 |
switch (field.id) {
|
|
|
941 |
case 1: // MESSAGE_TYPE
|
|
|
942 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
943 |
this.messageType = MsgType.findByValue(iprot.readI32());
|
|
|
944 |
} else {
|
|
|
945 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
946 |
}
|
|
|
947 |
break;
|
|
|
948 |
case 2: // MESSAGE
|
|
|
949 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
950 |
this.message = iprot.readString();
|
|
|
951 |
} else {
|
|
|
952 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
953 |
}
|
|
|
954 |
break;
|
|
|
955 |
default:
|
|
|
956 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 305 |
ashish |
957 |
}
|
| 3430 |
rajveer |
958 |
iprot.readFieldEnd();
|
| 305 |
ashish |
959 |
}
|
|
|
960 |
iprot.readStructEnd();
|
|
|
961 |
validate();
|
|
|
962 |
}
|
|
|
963 |
|
| 3430 |
rajveer |
964 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 305 |
ashish |
965 |
validate();
|
|
|
966 |
|
|
|
967 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
968 |
if (this.messageType != null) {
|
|
|
969 |
oprot.writeFieldBegin(MESSAGE_TYPE_FIELD_DESC);
|
|
|
970 |
oprot.writeI32(this.messageType.getValue());
|
|
|
971 |
oprot.writeFieldEnd();
|
|
|
972 |
}
|
|
|
973 |
if (this.message != null) {
|
|
|
974 |
oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
|
|
|
975 |
oprot.writeString(this.message);
|
|
|
976 |
oprot.writeFieldEnd();
|
|
|
977 |
}
|
|
|
978 |
oprot.writeFieldStop();
|
|
|
979 |
oprot.writeStructEnd();
|
|
|
980 |
}
|
|
|
981 |
|
|
|
982 |
@Override
|
|
|
983 |
public String toString() {
|
|
|
984 |
StringBuilder sb = new StringBuilder("log_args(");
|
|
|
985 |
boolean first = true;
|
|
|
986 |
|
|
|
987 |
sb.append("messageType:");
|
|
|
988 |
if (this.messageType == null) {
|
|
|
989 |
sb.append("null");
|
|
|
990 |
} else {
|
|
|
991 |
sb.append(this.messageType);
|
|
|
992 |
}
|
|
|
993 |
first = false;
|
|
|
994 |
if (!first) sb.append(", ");
|
|
|
995 |
sb.append("message:");
|
|
|
996 |
if (this.message == null) {
|
|
|
997 |
sb.append("null");
|
|
|
998 |
} else {
|
|
|
999 |
sb.append(this.message);
|
|
|
1000 |
}
|
|
|
1001 |
first = false;
|
|
|
1002 |
sb.append(")");
|
|
|
1003 |
return sb.toString();
|
|
|
1004 |
}
|
|
|
1005 |
|
| 3430 |
rajveer |
1006 |
public void validate() throws org.apache.thrift.TException {
|
| 305 |
ashish |
1007 |
// check for required fields
|
|
|
1008 |
}
|
|
|
1009 |
|
| 3430 |
rajveer |
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 |
|
| 305 |
ashish |
1026 |
}
|
|
|
1027 |
|
| 3430 |
rajveer |
1028 |
public static class log_result implements org.apache.thrift.TBase<log_result, log_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
1029 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("log_result");
|
| 305 |
ashish |
1030 |
|
|
|
1031 |
|
|
|
1032 |
|
|
|
1033 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1034 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 305 |
ashish |
1035 |
;
|
|
|
1036 |
|
|
|
1037 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1038 |
|
|
|
1039 |
static {
|
|
|
1040 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1041 |
byName.put(field.getFieldName(), field);
|
|
|
1042 |
}
|
|
|
1043 |
}
|
|
|
1044 |
|
|
|
1045 |
/**
|
|
|
1046 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1047 |
*/
|
|
|
1048 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1049 |
switch(fieldId) {
|
|
|
1050 |
default:
|
|
|
1051 |
return null;
|
|
|
1052 |
}
|
| 305 |
ashish |
1053 |
}
|
|
|
1054 |
|
|
|
1055 |
/**
|
|
|
1056 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1057 |
* if it is not found.
|
|
|
1058 |
*/
|
|
|
1059 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1060 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1061 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1062 |
return fields;
|
|
|
1063 |
}
|
|
|
1064 |
|
|
|
1065 |
/**
|
|
|
1066 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1067 |
*/
|
|
|
1068 |
public static _Fields findByName(String name) {
|
|
|
1069 |
return byName.get(name);
|
|
|
1070 |
}
|
|
|
1071 |
|
|
|
1072 |
private final short _thriftId;
|
|
|
1073 |
private final String _fieldName;
|
|
|
1074 |
|
|
|
1075 |
_Fields(short thriftId, String fieldName) {
|
|
|
1076 |
_thriftId = thriftId;
|
|
|
1077 |
_fieldName = fieldName;
|
|
|
1078 |
}
|
|
|
1079 |
|
|
|
1080 |
public short getThriftFieldId() {
|
|
|
1081 |
return _thriftId;
|
|
|
1082 |
}
|
|
|
1083 |
|
|
|
1084 |
public String getFieldName() {
|
|
|
1085 |
return _fieldName;
|
|
|
1086 |
}
|
|
|
1087 |
}
|
| 3430 |
rajveer |
1088 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 305 |
ashish |
1089 |
static {
|
| 3430 |
rajveer |
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);
|
|
|
1092 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(log_result.class, metaDataMap);
|
| 305 |
ashish |
1093 |
}
|
|
|
1094 |
|
|
|
1095 |
public log_result() {
|
|
|
1096 |
}
|
|
|
1097 |
|
|
|
1098 |
/**
|
|
|
1099 |
* Performs a deep copy on <i>other</i>.
|
|
|
1100 |
*/
|
|
|
1101 |
public log_result(log_result other) {
|
|
|
1102 |
}
|
|
|
1103 |
|
|
|
1104 |
public log_result deepCopy() {
|
|
|
1105 |
return new log_result(this);
|
|
|
1106 |
}
|
|
|
1107 |
|
| 3430 |
rajveer |
1108 |
@Override
|
|
|
1109 |
public void clear() {
|
| 305 |
ashish |
1110 |
}
|
|
|
1111 |
|
|
|
1112 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1113 |
switch (field) {
|
|
|
1114 |
}
|
|
|
1115 |
}
|
|
|
1116 |
|
|
|
1117 |
public Object getFieldValue(_Fields field) {
|
|
|
1118 |
switch (field) {
|
|
|
1119 |
}
|
|
|
1120 |
throw new IllegalStateException();
|
|
|
1121 |
}
|
|
|
1122 |
|
| 3430 |
rajveer |
1123 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1124 |
public boolean isSet(_Fields field) {
|
|
|
1125 |
if (field == null) {
|
|
|
1126 |
throw new IllegalArgumentException();
|
|
|
1127 |
}
|
| 305 |
ashish |
1128 |
|
|
|
1129 |
switch (field) {
|
|
|
1130 |
}
|
|
|
1131 |
throw new IllegalStateException();
|
|
|
1132 |
}
|
|
|
1133 |
|
|
|
1134 |
@Override
|
|
|
1135 |
public boolean equals(Object that) {
|
|
|
1136 |
if (that == null)
|
|
|
1137 |
return false;
|
|
|
1138 |
if (that instanceof log_result)
|
|
|
1139 |
return this.equals((log_result)that);
|
|
|
1140 |
return false;
|
|
|
1141 |
}
|
|
|
1142 |
|
|
|
1143 |
public boolean equals(log_result that) {
|
|
|
1144 |
if (that == null)
|
|
|
1145 |
return false;
|
|
|
1146 |
|
|
|
1147 |
return true;
|
|
|
1148 |
}
|
|
|
1149 |
|
|
|
1150 |
@Override
|
|
|
1151 |
public int hashCode() {
|
|
|
1152 |
return 0;
|
|
|
1153 |
}
|
|
|
1154 |
|
|
|
1155 |
public int compareTo(log_result other) {
|
|
|
1156 |
if (!getClass().equals(other.getClass())) {
|
|
|
1157 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1158 |
}
|
|
|
1159 |
|
|
|
1160 |
int lastComparison = 0;
|
|
|
1161 |
log_result typedOther = (log_result)other;
|
|
|
1162 |
|
|
|
1163 |
return 0;
|
|
|
1164 |
}
|
|
|
1165 |
|
| 3430 |
rajveer |
1166 |
public _Fields fieldForId(int fieldId) {
|
|
|
1167 |
return _Fields.findByThriftId(fieldId);
|
|
|
1168 |
}
|
|
|
1169 |
|
|
|
1170 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1171 |
org.apache.thrift.protocol.TField field;
|
| 305 |
ashish |
1172 |
iprot.readStructBegin();
|
|
|
1173 |
while (true)
|
|
|
1174 |
{
|
|
|
1175 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1176 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 305 |
ashish |
1177 |
break;
|
|
|
1178 |
}
|
| 3430 |
rajveer |
1179 |
switch (field.id) {
|
|
|
1180 |
default:
|
|
|
1181 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 305 |
ashish |
1182 |
}
|
| 3430 |
rajveer |
1183 |
iprot.readFieldEnd();
|
| 305 |
ashish |
1184 |
}
|
|
|
1185 |
iprot.readStructEnd();
|
|
|
1186 |
validate();
|
|
|
1187 |
}
|
|
|
1188 |
|
| 3430 |
rajveer |
1189 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 305 |
ashish |
1190 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1191 |
|
|
|
1192 |
oprot.writeFieldStop();
|
|
|
1193 |
oprot.writeStructEnd();
|
|
|
1194 |
}
|
|
|
1195 |
|
|
|
1196 |
@Override
|
|
|
1197 |
public String toString() {
|
|
|
1198 |
StringBuilder sb = new StringBuilder("log_result(");
|
|
|
1199 |
boolean first = true;
|
|
|
1200 |
|
|
|
1201 |
sb.append(")");
|
|
|
1202 |
return sb.toString();
|
|
|
1203 |
}
|
|
|
1204 |
|
| 3430 |
rajveer |
1205 |
public void validate() throws org.apache.thrift.TException {
|
| 305 |
ashish |
1206 |
// check for required fields
|
|
|
1207 |
}
|
|
|
1208 |
|
| 3430 |
rajveer |
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 |
|
| 305 |
ashish |
1225 |
}
|
|
|
1226 |
|
|
|
1227 |
}
|