当前位置: 首页>>代码示例>>Python>>正文


Python TApplicationException.read方法代码示例

本文整理汇总了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'))
开发者ID:mailgun,项目名称:udplog,代码行数:27,代码来源:scribe.py

示例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
开发者ID:charliestrawn-wf,项目名称:thrift-python-example,代码行数:12,代码来源:BaseFoo.py

示例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
开发者ID:hobbit-vt,项目名称:livetex-fake-services,代码行数:13,代码来源:VisitorNotification.py

示例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
开发者ID:yosiat,项目名称:yfs,代码行数:13,代码来源:MasterService.py

示例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
开发者ID:alticelabs,项目名称:meocloud-cli,代码行数:13,代码来源:UI.py

示例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
开发者ID:hobbit-vt,项目名称:livetex-fake-services,代码行数:13,代码来源:AuthenticationPrivate.py

示例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
开发者ID:pezia,项目名称:poker-croupier,代码行数:13,代码来源:PlayerStrategy.py

示例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
开发者ID:xunyuw,项目名称:iFlyQA,代码行数:13,代码来源:Exporter.py

示例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
开发者ID:fts2012,项目名称:netfilterIPv6Header,代码行数:13,代码来源:RecvMessage.py

示例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)
开发者ID:INIGOS,项目名称:Mytest,代码行数:13,代码来源:Calculator.py

示例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
开发者ID:fts2012,项目名称:netfilterIPv6Header,代码行数:13,代码来源:RecvMessage.py

示例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
开发者ID:chilcano,项目名称:iot-server-appliances,代码行数:13,代码来源:ThriftSecureEventTransmissionService.py

示例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
开发者ID:jsonbao,项目名称:comdetection,代码行数:13,代码来源:ClusterClient.py

示例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
开发者ID:vnitinv,项目名称:thrift-versioning-py,代码行数:13,代码来源:InterfacesService.py

示例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
开发者ID:wangli1426,项目名称:storm,代码行数:14,代码来源:SurveillanceService.py


注:本文中的thrift.Thrift.TApplicationException.read方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。