(self)
return controller_message
获取请求内容
获取请求内容
获取请求内容
def reciveRequest(self):
        '''
                         获取请求内容
        '''
        SimpleLogger.info("start recive data from controller")
        controller_message=None
        try:
            data=self.rfile.read1(1024)
            controller_message=Controller()
            controller_message.ParseFromString(data)
            SimpleLogger.info("recive job from controller. the job uuid  is:["+str(controller_message.task_uuid)+"]")
        except Exception as ex:
            SimpleLogger.info("recive data from controller fail and error message is:"+str(ex))
            SimpleLogger.error(ex)
        return controller_message
def reciveRequest ( self ) : SimpleLogger . info ( "start recive data from controller" ) controller_message = None try : data = self . rfile . read1 ( 1024 ) controller_message = Controller ( ) controller_message . ParseFromString ( data ) SimpleLogger . info ( "recive job from controller. the job uuid  is:[" + str ( controller_message . task_uuid ) + "]" ) except Exception as ex : SimpleLogger . info ( "recive data from controller fail and error message is:" + str ( ex ) ) SimpleLogger . error ( ex ) return controller_message