Subversion Repositories SmartDukaan

Rev

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

Rev 3376 Rev 3431
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
 
6
 
7
from thrift.Thrift import *
7
from thrift.Thrift import *
8
from ttypes import *
8
from ttypes import *
9
from thrift.Thrift import TProcessor
9
from thrift.Thrift import TProcessor
10
from thrift.transport import TTransport
10
from thrift.transport import TTransport
11
from thrift.protocol import TBinaryProtocol
11
from thrift.protocol import TBinaryProtocol, TProtocol
12
try:
12
try:
13
  from thrift.protocol import fastbinary
13
  from thrift.protocol import fastbinary
14
except:
14
except:
15
  fastbinary = None
15
  fastbinary = None
16
 
16
 
Line 30... Line 30...
30
 
30
 
31
 
31
 
32
class Client(Iface):
32
class Client(Iface):
33
  def __init__(self, iprot, oprot=None):
33
  def __init__(self, iprot, oprot=None):
34
    self._iprot = self._oprot = iprot
34
    self._iprot = self._oprot = iprot
35
    if oprot != None:
35
    if oprot is not None:
36
      self._oprot = oprot
36
      self._oprot = oprot
37
    self._seqid = 0
37
    self._seqid = 0
38
 
38
 
39
  def isAlive(self, ):
39
  def isAlive(self, ):
40
    """
40
    """
Line 58... Line 58...
58
      self._iprot.readMessageEnd()
58
      self._iprot.readMessageEnd()
59
      raise x
59
      raise x
60
    result = isAlive_result()
60
    result = isAlive_result()
61
    result.read(self._iprot)
61
    result.read(self._iprot)
62
    self._iprot.readMessageEnd()
62
    self._iprot.readMessageEnd()
63
    if result.success != None:
63
    if result.success is not None:
64
      return result.success
64
      return result.success
65
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isAlive failed: unknown result");
65
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isAlive failed: unknown result");
66
 
66
 
67
  def closeSession(self, ):
67
  def closeSession(self, ):
68
    """
68
    """
Line 163... Line 163...
163
      return
163
      return
164
    oprot.writeStructBegin('isAlive_args')
164
    oprot.writeStructBegin('isAlive_args')
165
    oprot.writeFieldStop()
165
    oprot.writeFieldStop()
166
    oprot.writeStructEnd()
166
    oprot.writeStructEnd()
167
 
167
 
-
 
168
  def validate(self):
-
 
169
    return
-
 
170
 
-
 
171
 
168
  def __repr__(self):
172
  def __repr__(self):
169
    L = ['%s=%r' % (key, value)
173
    L = ['%s=%r' % (key, value)
170
      for key, value in self.__dict__.iteritems()]
174
      for key, value in self.__dict__.iteritems()]
171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
172
 
176
 
Line 211... Line 215...
211
  def write(self, oprot):
215
  def write(self, oprot):
212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
214
      return
218
      return
215
    oprot.writeStructBegin('isAlive_result')
219
    oprot.writeStructBegin('isAlive_result')
216
    if self.success != None:
220
    if self.success is not None:
217
      oprot.writeFieldBegin('success', TType.BOOL, 0)
221
      oprot.writeFieldBegin('success', TType.BOOL, 0)
218
      oprot.writeBool(self.success)
222
      oprot.writeBool(self.success)
219
      oprot.writeFieldEnd()
223
      oprot.writeFieldEnd()
220
    oprot.writeFieldStop()
224
    oprot.writeFieldStop()
221
    oprot.writeStructEnd()
225
    oprot.writeStructEnd()
222
 
226
 
-
 
227
  def validate(self):
-
 
228
    return
-
 
229
 
-
 
230
 
223
  def __repr__(self):
231
  def __repr__(self):
224
    L = ['%s=%r' % (key, value)
232
    L = ['%s=%r' % (key, value)
225
      for key, value in self.__dict__.iteritems()]
233
      for key, value in self.__dict__.iteritems()]
226
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
227
 
235
 
Line 256... Line 264...
256
      return
264
      return
257
    oprot.writeStructBegin('closeSession_args')
265
    oprot.writeStructBegin('closeSession_args')
258
    oprot.writeFieldStop()
266
    oprot.writeFieldStop()
259
    oprot.writeStructEnd()
267
    oprot.writeStructEnd()
260
 
268
 
-
 
269
  def validate(self):
-
 
270
    return
-
 
271
 
-
 
272
 
261
  def __repr__(self):
273
  def __repr__(self):
262
    L = ['%s=%r' % (key, value)
274
    L = ['%s=%r' % (key, value)
263
      for key, value in self.__dict__.iteritems()]
275
      for key, value in self.__dict__.iteritems()]
264
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
276
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
265
 
277
 
Line 294... Line 306...
294
      return
306
      return
295
    oprot.writeStructBegin('closeSession_result')
307
    oprot.writeStructBegin('closeSession_result')
296
    oprot.writeFieldStop()
308
    oprot.writeFieldStop()
297
    oprot.writeStructEnd()
309
    oprot.writeStructEnd()
298
 
310
 
-
 
311
  def validate(self):
-
 
312
    return
-
 
313
 
-
 
314
 
299
  def __repr__(self):
315
  def __repr__(self):
300
    L = ['%s=%r' % (key, value)
316
    L = ['%s=%r' % (key, value)
301
      for key, value in self.__dict__.iteritems()]
317
      for key, value in self.__dict__.iteritems()]
302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
303
 
319
 
304
  def __eq__(self, other):
320
  def __eq__(self, other):
305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
306
 
322
 
307
  def __ne__(self, other):
323
  def __ne__(self, other):
308
    return not (self == other)
324
    return not (self == other)
309
 
-
 
310
 
-