Beispiel #1
0
    def __init__(self, strSelfClientID):
        self.strMyFullName = strSelfClientID + Exec_API_CallFiber.s_g_strMySubFixFiberName
        FiberUnit_Base.__init__(self, self.strMyFullName, bExRemoteCallMe=True)
        self.s_TimerSend = CSkBot_Common_Share.CSkBot_TimeIdentify(10)

        self.s_tobe_RunExecMsg = {
        }  # 等待调度运行的,远端执行消息. key=msgID, 内容=CUTRC_NATs_Comu_RunMessageUnit。
        self.s_finish_RunExecMsg = {
        }  #已经完成的执行消息. key=msgID, 内容=完成返回结果 FiberMsgRet
        self.s_runningMsgID = ""
        self.s_runningRemoteExecMsgID = ""
        self.s_runningMsgContent = None  # 正在运行的消息内容
Beispiel #2
0
    def v_HandleMessage(self, fromSenderUnit, messageID, strMsgJsonParam, strMsgParam, lMsgParam1, lMsgParam2):
        fiberMsgRet = FiberUnit_Base.v_HandleMessage(self,fromSenderUnit, messageID, strMsgJsonParam,
                                                   strMsgParam, lMsgParam1, lMsgParam2)

        if(messageID==g_iExecCmd):
            fiberMsgRet = self.OnMessage_Sample(fromSenderUnit, strMsgJsonParam, strMsgParam, lMsgParam1, lMsgParam2)

        return fiberMsgRet
    def v_HandleMessage(self, fromSenderUnit, messageID, strMsgJsonParam, strMsgParam, lMsgParam1, lMsgParam2):
        fiberMsgRet = FiberUnit_Base.v_HandleMessage(self,fromSenderUnit, messageID, strMsgJsonParam,
                                                   strMsgParam, lMsgParam1, lMsgParam2)

        if(messageID==g_iExecCmd):
            fiberMsgRet = self.OnMessage_Sample(fromSenderUnit, strMsgJsonParam, strMsgParam, lMsgParam1, lMsgParam2)
            if(fiberMsgRet.s_iExecResult == FiberMsgRet.s_g_iExecResult_Remote_Wait_Reply):
                self.s_dict_msgResult[fiberMsgRet.s_strRetValue] = datetime.now()
                pass

        return fiberMsgRet
Beispiel #4
0
    def v_HandleMessage(self, fromSenderUnit, messageID, strMsgJsonParam,
                        strMsgParam, lMsgParam1, lMsgaram2):
        fiberMsgRet = FiberUnit_Base.v_HandleMessage(self, fromSenderUnit,
                                                     messageID,
                                                     strMsgJsonParam,
                                                     strMsgParam, lMsgParam1,
                                                     lMsgParam2)

        if messageID == AIOSWebOSFiber.CommandID:
            fiberMsgRet = self.OnMessage(fromSenderUnit, strMsgJsonParam,
                                         strMsgParam, lMsgParam1, lMsgParam2)

        return fiberMsgRet
 def __init__(self):
     FiberUnit_Base.__init__(self,
                             self.s_g_strMyFiberName,
                             bExRemoteCallMe=True)
     self.s_TimerSend = CSkBot_Common_Share.CSkBot_TimeIdentify(8)
     self.s_dict_msgResult = {}  # 消息结果
Beispiel #6
0
    def v_HandleMessage(self, fromSenderUnit, messageID, strMsgJsonParam, strMsgParam, lMsgParam1, lMsgParam2):
        fiberMsgRet = FiberUnit_Base.v_HandleMessage(self,fromSenderUnit, messageID, strMsgJsonParam,
                                                   strMsgParam, lMsgParam1, lMsgParam2)

        return fiberMsgRet
Beispiel #7
0
 def __init__(self):
     FiberUnit_Base.__init__(self, self.s_g_strMyFiberName, bExRemoteCallMe=True)
     self.s_TimerSend=CSkBot_Common_Share.CSkBot_TimeIdentify()
     self.s_dict_AllUTRCClientInfo={}