def sandesh_uve_cache_req_handle_request(self, sandesh_req):
     count = 0
     uve_type_map = self._sandesh._uve_type_maps.get_uve_type_map(sandesh_req.tname)
     if uve_type_map:
         count = uve_type_map.sync_uve(0, sandesh_req.context(), True, self._sandesh)
     uve_cache_res = SandeshUVECacheResp(count)
     uve_cache_res.response(sandesh_req.context())
 def sandesh_uve_cache_req_handle_request(self, sandesh_req):
     count = 0
     uve_type_map = self._sandesh._uve_type_maps.get_uve_type_map(
         sandesh_req.tname)
     if uve_type_map:
         count = uve_type_map.sync_uve(0, sandesh_req.context(), True,
                                       self._sandesh)
     uve_cache_res = SandeshUVECacheResp(count)
     uve_cache_res.response(sandesh_req.context())
 def sandesh_uve_cache_req_handle_request(self, sandesh_req):
     count = 0
     uve_type_name = self._sandesh._uve_type_maps.get_uve_type_name(
         sandesh_req.tname)
     uve_type_map = self._sandesh._uve_type_maps.get_uve_type_map(
         uve_type_name)
     if uve_type_map and uve_type_map.sandesh_type() is SandeshType.UVE:
         if sandesh_req.key is not None:
             count = uve_type_map.send_uve(None, sandesh_req.key,
                         sandesh_req.context(), True, self._sandesh)
         else:
             count = uve_type_map.sync_uve(None, 0, sandesh_req.context(),
                         True, self._sandesh)
     uve_cache_res = SandeshUVECacheResp(count, -1)
     uve_cache_res.response(sandesh_req.context(), sandesh=self._sandesh)
示例#4
0
 def sandesh_uve_cache_req_handle_request(self, sandesh_req):
     count = 0
     uve_type_name = self._sandesh._uve_type_maps.get_uve_type_name(
         sandesh_req.tname)
     uve_type_map = self._sandesh._uve_type_maps.get_uve_type_map(
         uve_type_name)
     if uve_type_map and uve_type_map.sandesh_type() is SandeshType.UVE:
         if sandesh_req.key is not None:
             count = uve_type_map.send_uve(None, sandesh_req.key,
                         sandesh_req.context(), True, self._sandesh)
         else:
             count = uve_type_map.sync_uve(None, 0, sandesh_req.context(),
                         True, self._sandesh)
     uve_cache_res = SandeshUVECacheResp(count, -1)
     uve_cache_res.response(sandesh_req.context(), sandesh=self._sandesh)