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


Python TMessageType.CALL属性代码示例

本文整理汇总了Python中thrift.Thrift.TMessageType.CALL属性的典型用法代码示例。如果您正苦于以下问题:Python TMessageType.CALL属性的具体用法?Python TMessageType.CALL怎么用?Python TMessageType.CALL使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在thrift.Thrift.TMessageType的用法示例。


在下文中一共展示了TMessageType.CALL属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: process

# 需要导入模块: from thrift.Thrift import TMessageType [as 别名]
# 或者: from thrift.Thrift.TMessageType import CALL [as 别名]
def process(self, iprot, oprot):
    (name, type, seqid) = iprot.readMessageBegin();
    if type != TMessageType.CALL & type != TMessageType.ONEWAY:
      raise TException("TMultiplex protocol only supports CALL & ONEWAY")

    index = name.find(TMultiplexedProtocol.SEPARATOR)
    if index < 0:
      raise TException("Service name not found in message name: " + name + ". Did you forget to use TMultiplexProtocol in your client?")

    serviceName = name[0:index]
    call = name[index+len(TMultiplexedProtocol.SEPARATOR):]
    if not serviceName in self.services:
      raise TException("Service name not found: " + serviceName + ". Did you forget to call registerProcessor()?")

    standardMessage = (
      call,
      type,
      seqid
    )
    return self.services[serviceName].process(StoredMessageProtocol(iprot, standardMessage), oprot) 
开发者ID:XiaoMi,项目名称:galaxy-sdk-python,代码行数:22,代码来源:TMultiplexedProcessor.py

示例2: send_createCredential

# 需要导入模块: from thrift.Thrift import TMessageType [as 别名]
# 或者: from thrift.Thrift.TMessageType import CALL [as 别名]
def send_createCredential(self, xiaomiAppId, appUserAuthProvider, authToken):
    self._oprot.writeMessageBegin('createCredential', TMessageType.CALL, self._seqid)
    args = createCredential_args()
    args.xiaomiAppId = xiaomiAppId
    args.appUserAuthProvider = appUserAuthProvider
    args.authToken = authToken
    args.write(self._oprot)
    self._oprot.writeMessageEnd()
    self._oprot.trans.flush() 
开发者ID:XiaoMi,项目名称:galaxy-sdk-python,代码行数:11,代码来源:AuthService.py

示例3: send_getServerVersion

# 需要导入模块: from thrift.Thrift import TMessageType [as 别名]
# 或者: from thrift.Thrift.TMessageType import CALL [as 别名]
def send_getServerVersion(self):
    self._oprot.writeMessageBegin('getServerVersion', TMessageType.CALL, self._seqid)
    args = getServerVersion_args()
    args.write(self._oprot)
    self._oprot.writeMessageEnd()
    self._oprot.trans.flush() 
开发者ID:XiaoMi,项目名称:galaxy-sdk-python,代码行数:8,代码来源:BaseService.py

示例4: send_validateClientVersion

# 需要导入模块: from thrift.Thrift import TMessageType [as 别名]
# 或者: from thrift.Thrift.TMessageType import CALL [as 别名]
def send_validateClientVersion(self, clientVersion):
    self._oprot.writeMessageBegin('validateClientVersion', TMessageType.CALL, self._seqid)
    args = validateClientVersion_args()
    args.clientVersion = clientVersion
    args.write(self._oprot)
    self._oprot.writeMessageEnd()
    self._oprot.trans.flush() 
开发者ID:XiaoMi,项目名称:galaxy-sdk-python,代码行数:9,代码来源:BaseService.py

示例5: send_getServerTime

# 需要导入模块: from thrift.Thrift import TMessageType [as 别名]
# 或者: from thrift.Thrift.TMessageType import CALL [as 别名]
def send_getServerTime(self):
    self._oprot.writeMessageBegin('getServerTime', TMessageType.CALL, self._seqid)
    args = getServerTime_args()
    args.write(self._oprot)
    self._oprot.writeMessageEnd()
    self._oprot.trans.flush() 
开发者ID:XiaoMi,项目名称:galaxy-sdk-python,代码行数:8,代码来源:BaseService.py

示例6: send_ping

# 需要导入模块: from thrift.Thrift import TMessageType [as 别名]
# 或者: from thrift.Thrift.TMessageType import CALL [as 别名]
def send_ping(self):
    self._oprot.writeMessageBegin('ping', TMessageType.CALL, self._seqid)
    args = ping_args()
    args.write(self._oprot)
    self._oprot.writeMessageEnd()
    self._oprot.trans.flush() 
开发者ID:XiaoMi,项目名称:galaxy-sdk-python,代码行数:8,代码来源:EMRMasterService.py

示例7: send_startService

# 需要导入模块: from thrift.Thrift import TMessageType [as 别名]
# 或者: from thrift.Thrift.TMessageType import CALL [as 别名]
def send_startService(self, request):
    self._oprot.writeMessageBegin('startService', TMessageType.CALL, self._seqid)
    args = startService_args()
    args.request = request
    args.write(self._oprot)
    self._oprot.writeMessageEnd()
    self._oprot.trans.flush() 
开发者ID:XiaoMi,项目名称:galaxy-sdk-python,代码行数:9,代码来源:EMRMasterService.py

示例8: send_stopService

# 需要导入模块: from thrift.Thrift import TMessageType [as 别名]
# 或者: from thrift.Thrift.TMessageType import CALL [as 别名]
def send_stopService(self, request):
    self._oprot.writeMessageBegin('stopService', TMessageType.CALL, self._seqid)
    args = stopService_args()
    args.request = request
    args.write(self._oprot)
    self._oprot.writeMessageEnd()
    self._oprot.trans.flush() 
开发者ID:XiaoMi,项目名称:galaxy-sdk-python,代码行数:9,代码来源:EMRMasterService.py

示例9: send_queryClusterState

# 需要导入模块: from thrift.Thrift import TMessageType [as 别名]
# 或者: from thrift.Thrift.TMessageType import CALL [as 别名]
def send_queryClusterState(self, cluster):
    self._oprot.writeMessageBegin('queryClusterState', TMessageType.CALL, self._seqid)
    args = queryClusterState_args()
    args.cluster = cluster
    args.write(self._oprot)
    self._oprot.writeMessageEnd()
    self._oprot.trans.flush() 
开发者ID:XiaoMi,项目名称:galaxy-sdk-python,代码行数:9,代码来源:EMRMasterService.py

示例10: send_createCluster

# 需要导入模块: from thrift.Thrift import TMessageType [as 别名]
# 或者: from thrift.Thrift.TMessageType import CALL [as 别名]
def send_createCluster(self, cluster):
    self._oprot.writeMessageBegin('createCluster', TMessageType.CALL, self._seqid)
    args = createCluster_args()
    args.cluster = cluster
    args.write(self._oprot)
    self._oprot.writeMessageEnd()
    self._oprot.trans.flush() 
开发者ID:XiaoMi,项目名称:galaxy-sdk-python,代码行数:9,代码来源:EMRSchedulerService.py

示例11: send_addInstanceGroup

# 需要导入模块: from thrift.Thrift import TMessageType [as 别名]
# 或者: from thrift.Thrift.TMessageType import CALL [as 别名]
def send_addInstanceGroup(self, instanceGroup):
    self._oprot.writeMessageBegin('addInstanceGroup', TMessageType.CALL, self._seqid)
    args = addInstanceGroup_args()
    args.instanceGroup = instanceGroup
    args.write(self._oprot)
    self._oprot.writeMessageEnd()
    self._oprot.trans.flush() 
开发者ID:XiaoMi,项目名称:galaxy-sdk-python,代码行数:9,代码来源:EMRSchedulerService.py

示例12: send_submitJob

# 需要导入模块: from thrift.Thrift import TMessageType [as 别名]
# 或者: from thrift.Thrift.TMessageType import CALL [as 别名]
def send_submitJob(self, job):
    self._oprot.writeMessageBegin('submitJob', TMessageType.CALL, self._seqid)
    args = submitJob_args()
    args.job = job
    args.write(self._oprot)
    self._oprot.writeMessageEnd()
    self._oprot.trans.flush() 
开发者ID:XiaoMi,项目名称:galaxy-sdk-python,代码行数:9,代码来源:EMRSchedulerService.py

示例13: send_submitJobs

# 需要导入模块: from thrift.Thrift import TMessageType [as 别名]
# 或者: from thrift.Thrift.TMessageType import CALL [as 别名]
def send_submitJobs(self, jobs):
    self._oprot.writeMessageBegin('submitJobs', TMessageType.CALL, self._seqid)
    args = submitJobs_args()
    args.jobs = jobs
    args.write(self._oprot)
    self._oprot.writeMessageEnd()
    self._oprot.trans.flush() 
开发者ID:XiaoMi,项目名称:galaxy-sdk-python,代码行数:9,代码来源:EMRSchedulerService.py

示例14: send_terminateCluster

# 需要导入模块: from thrift.Thrift import TMessageType [as 别名]
# 或者: from thrift.Thrift.TMessageType import CALL [as 别名]
def send_terminateCluster(self, terminateCluster):
    self._oprot.writeMessageBegin('terminateCluster', TMessageType.CALL, self._seqid)
    args = terminateCluster_args()
    args.terminateCluster = terminateCluster
    args.write(self._oprot)
    self._oprot.writeMessageEnd()
    self._oprot.trans.flush() 
开发者ID:XiaoMi,项目名称:galaxy-sdk-python,代码行数:9,代码来源:EMRSchedulerService.py

示例15: send_modifyInstanceGroup

# 需要导入模块: from thrift.Thrift import TMessageType [as 别名]
# 或者: from thrift.Thrift.TMessageType import CALL [as 别名]
def send_modifyInstanceGroup(self, instanceGroup):
    self._oprot.writeMessageBegin('modifyInstanceGroup', TMessageType.CALL, self._seqid)
    args = modifyInstanceGroup_args()
    args.instanceGroup = instanceGroup
    args.write(self._oprot)
    self._oprot.writeMessageEnd()
    self._oprot.trans.flush() 
开发者ID:XiaoMi,项目名称:galaxy-sdk-python,代码行数:9,代码来源:EMRSchedulerService.py


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