本文整理汇总了Python中thrift.Thrift.TApplicationException.read方法的典型用法代码示例。如果您正苦于以下问题:Python TApplicationException.read方法的具体用法?Python TApplicationException.read怎么用?Python TApplicationException.read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类thrift.Thrift.TApplicationException
的用法示例。
在下文中一共展示了TApplicationException.read方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: recv_Log
# 需要导入模块: from thrift.Thrift import TApplicationException [as 别名]
# 或者: from thrift.Thrift.TApplicationException import read [as 别名]
def recv_Log(self, iprot, mtype, rseqid):
"""
Called when the result of the log request was received.
"""
if mtype == TMessageType.EXCEPTION:
result = TApplicationException()
else:
result = scribe.Log_result()
result.read(iprot)
iprot.readMessageEnd()
try:
d = self._reqs.pop(rseqid)
except KeyError:
log.err(result, "Unexpected log result")
if isinstance(result, Exception):
d.errback(result)
elif result.success is not None:
d.callback(result.success)
else:
d.errback(TApplicationException(
TApplicationException.MISSING_RESULT,
'Log failed: unknown result'))
示例2: recv_basePing
# 需要导入模块: from thrift.Thrift import TApplicationException [as 别名]
# 或者: from thrift.Thrift.TApplicationException import read [as 别名]
def recv_basePing(self, iprot, mtype, rseqid):
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = basePing_result()
result.read(iprot)
iprot.readMessageEnd()
return
示例3: recv_updateDialogState
# 需要导入模块: from thrift.Thrift import TApplicationException [as 别名]
# 或者: from thrift.Thrift.TApplicationException import read [as 别名]
def recv_updateDialogState(self):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = updateDialogState_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
return
示例4: recv_newChunkServer
# 需要导入模块: from thrift.Thrift import TApplicationException [as 别名]
# 或者: from thrift.Thrift.TApplicationException import read [as 别名]
def recv_newChunkServer(self):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = newChunkServer_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
return
示例5: recv_remoteDirectoryListing
# 需要导入模块: from thrift.Thrift import TApplicationException [as 别名]
# 或者: from thrift.Thrift.TApplicationException import read [as 别名]
def recv_remoteDirectoryListing(self):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = remoteDirectoryListing_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
return
示例6: recv_changeVisitorApplicationEnvironment
# 需要导入模块: from thrift.Thrift import TApplicationException [as 别名]
# 或者: from thrift.Thrift.TApplicationException import read [as 别名]
def recv_changeVisitorApplicationEnvironment(self):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = changeVisitorApplicationEnvironment_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
return
示例7: recv_competitor_status
# 需要导入模块: from thrift.Thrift import TApplicationException [as 别名]
# 或者: from thrift.Thrift.TApplicationException import read [as 别名]
def recv_competitor_status(self):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = competitor_status_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
return
示例8: recv_start_exporting
# 需要导入模块: from thrift.Thrift import TApplicationException [as 别名]
# 或者: from thrift.Thrift.TApplicationException import read [as 别名]
def recv_start_exporting(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = start_exporting_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
return
示例9: recv_registe_device
# 需要导入模块: from thrift.Thrift import TApplicationException [as 别名]
# 或者: from thrift.Thrift.TApplicationException import read [as 别名]
def recv_registe_device(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = registe_device_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
return
示例10: recv_ping
# 需要导入模块: from thrift.Thrift import TApplicationException [as 别名]
# 或者: from thrift.Thrift.TApplicationException import read [as 别名]
def recv_ping(self, iprot, mtype, rseqid):
d = self._reqs.pop(rseqid)
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
return d.errback(x)
result = ping_result()
result.read(iprot)
iprot.readMessageEnd()
return d.callback(None)
示例11: recv_send_measure_info
# 需要导入模块: from thrift.Thrift import TApplicationException [as 别名]
# 或者: from thrift.Thrift.TApplicationException import read [as 别名]
def recv_send_measure_info(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = send_measure_info_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
return
示例12: recv_disconnect
# 需要导入模块: from thrift.Thrift import TApplicationException [as 别名]
# 或者: from thrift.Thrift.TApplicationException import read [as 别名]
def recv_disconnect(self):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = disconnect_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
return
示例13: recv_clusterForNode
# 需要导入模块: from thrift.Thrift import TApplicationException [as 别名]
# 或者: from thrift.Thrift.TApplicationException import read [as 别名]
def recv_clusterForNode(self):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = clusterForNode_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
return
示例14: recv_InterfaceExists
# 需要导入模块: from thrift.Thrift import TApplicationException [as 别名]
# 或者: from thrift.Thrift.TApplicationException import read [as 别名]
def recv_InterfaceExists(self):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = InterfaceExists_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
return
示例15: recv_reportExecutorThroughput
# 需要导入模块: from thrift.Thrift import TApplicationException [as 别名]
# 或者: from thrift.Thrift.TApplicationException import read [as 别名]
def recv_reportExecutorThroughput(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = reportExecutorThroughput_result()
result.read(iprot)
iprot.readMessageEnd()
return