Processing state monitoring method, device and equipment and storage medium thereof
By obtaining and monitoring the pending messages in the message processing queue in the Android system, setting unique identification information, and using the web interface monitoring function to identify the latest processed messages, the problem of unreasonable allocation of network resources in the Android system is solved, and refined resource management and control is realized.
Patent Information
- Application Number
- CN202411509717.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-02-28
AI Technical Summary
The Android system lacks effective state monitoring methods, which leads to the inability to fine-tune allocation and control of network processing resources on the page, resulting in waste of resources.
By obtaining all pending messages in the target message processing queue, setting unique identification information, and identifying the latest processed messages through the preset web interface listening function, and returning processing status prompt messages to the target monitoring end, so as to achieve refined monitoring and control of network processing resources.
It realizes the reasonable allocation of network processing resources on Android system pages, avoids resource waste, and improves the refined monitoring and control capabilities of network processing requests.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of research and development design technology, and is applied to a network request task processing status monitoring scenario, and in particular to a processing status monitoring method, device, equipment and storage medium thereof. Background Art
[0002] There are currently existing identification and judgment methods for the Android system to determine whether the entire application APP is using network resources. However, there is still a lack of corresponding processing status monitoring methods for whether there is network usage on a certain page of the Android system and whether the network usage on the page is completed.
[0003] Due to the lack of corresponding processing status monitoring methods, the Android system is unable to finely allocate and control the network processing resource consumption on the page. It often happens that when the page has no network processing request to execute, the page is still allocated with network processing resources, resulting in unreasonable allocation of network processing resources, thus leading to the problem of waste of network processing resources. Summary of the invention
[0004] The purpose of the embodiments of the present application is to propose a processing status monitoring method, device, equipment and storage medium thereof, so as to achieve refined allocation and control of the consumption of network processing resources on the page of the Android system, and avoid the problem of unreasonable allocation and waste of network processing resources.
[0005] In order to solve the above technical problems, the embodiment of the present application provides a processing status monitoring method, which adopts the following technical solution:
[0006] A processing state monitoring method comprises the following steps:
[0007] Get all pending messages in the target message processing queue;
[0008] According to the order of all the messages to be processed in the target message processing queue, unique identification information is set for all the messages to be processed respectively;
[0009] Identify all unique identifying information;
[0010] Sorting all the unique identification information according to the order of all the messages to be processed in the target message processing queue to obtain the sorting results corresponding to all the unique identification information;
[0011] Identify the latest processed message to be processed through a preset web interface monitoring function, and identify the unique identification information corresponding to the latest processed message to be processed as the target identification information to be compared;
[0012] According to the sequence position information of the target identification information to be compared in the sorting result, a processing status prompt message is returned to the target monitoring terminal.
[0013] Further, after executing the step of obtaining all pending messages in the target message processing queue, the method further includes:
[0014] According to a preset delay processing mechanism, a delay processing time is added to each of the messages to be processed, wherein the preset delay processing mechanism includes: adding a delay processing time to each of the messages to be processed in sequence according to a preset delay step and the order of the messages to be processed in the target message processing queue;
[0015] Get all pending messages with delayed processing time added.
[0016] Further, after executing the step of sorting all the unique identification information according to the order of all the messages to be processed in the target message processing queue to obtain the sorting results corresponding to all the unique identification information, the method further includes:
[0017] According to a preset queue message real-time monitoring function, identifying whether a new message to be processed is added to the target message processing queue;
[0018] If a new message to be processed is added to the target message processing queue, unique identification information is set for each of the newly added messages to be processed according to the order of the newly added messages to be processed in the target message processing queue;
[0019] Identify all unique identifying information;
[0020] The sorting result is updated according to the order of all the newly added to-be-processed messages in the target message processing queue.
[0021] Further, after executing the step of identifying whether a new message to be processed is added to the target message processing queue according to the preset queue message real-time monitoring function, the method further includes:
[0022] If a new to-be-processed message is added to the target message processing queue, identifying all to-be-processed messages to which a delayed processing time has been added and all new to-be-processed messages to which a delayed processing time has not been added in the target message processing queue;
[0023] According to the delay processing mechanism, adding a delay processing time to all new messages to be processed for which the delay processing time is not added, based on the previous delay processing;
[0024] Get all new pending messages with added processing delay.
[0025] Furthermore, before executing the step of identifying the latest processed message to be processed through the preset web interface monitoring function, the method further includes:
[0026] The preset web interface monitoring function is added as a callback function to the execution function for processing all the pending messages.
[0027] Further, the step of identifying the latest processed message to be processed through a preset web interface monitoring function, and identifying the unique identification information corresponding to the latest processed message to be processed as the target identification information to be compared specifically includes:
[0028] The unique identification information of the processed message is set as the return parameter of the preset web interface monitoring function;
[0029] Identify all processed messages to be processed according to the return parameters;
[0030] Compare the delayed processing times of all the processed pending messages, and filter out the latest processed pending message;
[0031] The unique identification information corresponding to the latest processed message to be processed is obtained as the target identification information to be compared.
[0032] Furthermore, the step of returning a processing status prompt message to the target monitoring terminal according to the sequence position information of the target identification information to be compared in the sorting result specifically includes:
[0033] Identify the sequence position information of the target identification information to be compared in the sorting result;
[0034] If the target identification information to be compared is at the end of the sequence of the sorting results, a status prompt message indicating that the network task request has been processed is sent to the target monitoring terminal;
[0035] If the target identification information to be compared is not at the end of the sequence of the sorting result, a status prompt message indicating that the network task request is being continuously processed is sent to the target monitoring terminal.
[0036] In order to solve the above technical problems, the embodiment of the present application also provides a processing status monitoring device, which adopts the following technical solution:
[0037] A processing status monitoring device, comprising:
[0038] A pending message acquisition module is used to acquire all pending messages in the target message processing queue;
[0039] A unique identification information setting module, used to set unique identification information for all the messages to be processed respectively according to the order of the messages to be processed in the target message processing queue;
[0040] A unique identification information recognition module, used to identify all unique identification information;
[0041] A unique identification information sorting module is used to sort all the unique identification information according to the order of all the to-be-processed messages in the target message processing queue, and obtain the sorting results corresponding to all the unique identification information;
[0042] An interface monitoring and identification module is used to identify the latest processed message to be processed through a preset web interface monitoring function, and to identify the unique identification information corresponding to the latest processed message to be processed as the target identification information to be compared;
[0043] The processing status prompt message returning module is used to return a processing status prompt message to the target monitoring terminal according to the sequence position information of the target identification information to be compared in the sorting result.
[0044] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0045] A computer device comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the above-mentioned processing status monitoring method when executing the computer-readable instructions.
[0046] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0047] A computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the processing status monitoring method described above are implemented.
[0048] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0049] The processing status monitoring method described in the embodiment of the present application is to obtain all pending messages in the target message processing queue; set unique identification information for all pending messages according to the order of all pending messages in the target message processing queue; identify all unique identification information; sort all unique identification information according to the order of all pending messages in the target message processing queue, and obtain the sorting results corresponding to all unique identification information; identify the latest processed pending message through a preset web interface monitoring function, and identify the unique identification information corresponding to the latest processed pending message as the target identification information to be compared; return the processing status prompt message to the target monitoring end according to the sequence position information of the target identification information to be compared in the sorting result. Combined with the web interface monitoring function, the function of returning the processing status prompt message to be added during interception is realized, so as to realize the return of the processing status prompt message to the target monitoring end, which plays a role in fine-tuning the monitoring and control of all network processing requests on the target page in the Android system, so as to stop allocating network processing resources to the target page in time when there is no network processing request, realize the reasonable allocation of network processing resources on the Android system page, and avoid the waste of network resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0051] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0052] Figure 2 is a flow chart of an embodiment of a processing status monitoring method according to the present application;
[0053] Figure 3 It is a flowchart of a specific embodiment of adding a delayed processing time to a message to be processed in the processing status monitoring method described in the present application;
[0054] Figure 4 It is a flowchart of a specific embodiment of the update processing of the real-time monitoring function according to the queue message in the processing status monitoring method described in the present application;
[0055] Figure 5 It is a flowchart of a specific embodiment of adding a delayed processing time to all new messages to be processed in the processing status monitoring method described in the present application;
[0056] Figure 6 yes Figure 2 A flowchart of a specific embodiment of step 205 is shown;
[0057] Figure 7 yes Figure 2 A flowchart of a specific embodiment of step 206 is shown
[0058] Figure 8 is a schematic structural diagram of an embodiment of a processing status monitoring device according to the present application;
[0059] Fig. 9 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION
[0060] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0061] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0062] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0063] like Figure 1 As shown, the system architecture 100 may include a terminal device 101, a network 102 and a server 103. The terminal device 101 may be a laptop 1011, a tablet computer 1012 or a mobile phone 1013. The network 102 is used to provide a medium for a communication link between the terminal device 101 and the server 103. The network 102 may include various connection types, such as wired, wireless communication links or optical fiber cables.
[0064] The user can use the terminal device 101 to interact with the server 103 through the network 102 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0065] The terminal device 101 can be any electronic device with a display screen and supporting web browsing. In addition to a laptop computer 1011, a tablet computer 1012 or a mobile phone 1013, the terminal device 101 can also be an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV), a laptop computer, a desktop computer, etc.
[0066] The server 103 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal device 101 .
[0067] It should be noted that the processing status monitoring method provided in the embodiment of the present application is generally executed by a terminal device, and accordingly, the processing status monitoring device is generally arranged in the terminal device.
[0068] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0069] Continue to refer Figure 2 , shows a flow chart of an embodiment of a processing state monitoring method according to the present application. The processing state monitoring method comprises the following steps:
[0070] Step 201, obtain all pending messages in the target message processing queue.
[0071] In this embodiment, the target message processing queue is, for example, a message processing queue in an Android system for caching all network processing requests on a target page, and all pending messages refer to all network processing requests on the target page in the Android system.
[0072] Step 202: setting unique identification information for all the messages to be processed respectively according to the sequence of the messages to be processed in the target message processing queue.
[0073] In this embodiment, the step of setting unique identification information for all the pending messages according to the order of the pending messages in the target message processing queue includes: identifying the order of all the pending messages in the target message processing queue, and setting unique identification information for all the pending messages according to the order and a preset identification setting strategy.
[0074] Specifically, assuming that there are 10 messages to be processed in total, the order of the 10 messages to be processed in the target message processing queue represents the order of execution. The message processing queue identifier can be concatenated with the sequence position encoding of the messages to be processed to set unique identification information for all the messages to be processed. That is, the preset identification setting strategy is to use the message processing queue identifier to concatenate the sequence position encoding of the messages to be processed to set unique identification information for all the messages to be processed. For example: the target message processing queue is identified as Queue1, and the sequence position codes of the 10 messages to be processed in the target message processing queue are "01", "02", "03", "04", "05", "06", "07", "08", "09", and "10" respectively. Then the unique identification information of the 10 messages to be processed is "Queue1-01", "Queue1-02", "Queue1-03", "Queue1-04", "Queue1-05", "Queue1-06", "Queue1-07", "Queue1-08", "Queue1-09", and "Queue1-10".
[0075] Unique identification information is set for all the messages to be processed respectively according to the sequence of the messages to be processed in the target message processing queue, so as to identify the latest processed message during the processing.
[0076] Step 203, identifying all unique identification information.
[0077] Step 204: sort all the unique identification information according to the order of all the to-be-processed messages in the target message processing queue to obtain sorting results corresponding to all the unique identification information.
[0078] All the unique identification information is sorted according to the order of all the pending messages in the target message processing queue to obtain the sorting results corresponding to all the unique identification information. The sorting results of all the unique identification information are extracted according to the order of all the pending messages in the target message processing queue, so that the latest processed pending message can be identified directly based on the sorting results and the unique identification information.
[0079] Step 205: Identify the latest processed message to be processed through a preset web interface monitoring function, and identify the unique identification information corresponding to the latest processed message to be processed as the target identification information to be compared.
[0080] The web interface monitoring function includes the shouldInterceptRequest function in the WebViewClient class in the Android system, which is used to intercept the network processing request before the network processing request is executed, thereby playing a role of pre-interception of the network processing request.
[0081] Step 206: Return a processing status prompt message to the target monitoring terminal according to the sequence position information of the target identification information to be compared in the sorting result.
[0082] Combined with the web interface monitoring function that plays a role of pre-interception, the function of returning the processing status prompt message is added during the interception, so as to realize the return of the processing status prompt message to the target monitoring end, and play the role of fine-grained monitoring and control of all network processing requests on the target page in the Android system, so as to stop allocating network processing resources to the target page in time when there is no network processing request, thereby realizing the reasonable allocation of network processing resources on the Android system page and avoiding the waste of network resources.
[0083] In this embodiment, by obtaining all pending messages in the target message processing queue; according to the order of all pending messages in the target message processing queue, setting unique identification information for all pending messages respectively; identifying all unique identification information; sorting all unique identification information according to the order of all pending messages in the target message processing queue, and obtaining the sorting results corresponding to all unique identification information; through the preset web interface monitoring function, identifying the latest processed pending message, and identifying the unique identification information corresponding to the latest processed pending message as the target identification information to be compared; according to the sequence position information of the target identification information to be compared in the sorting result, returning the processing status prompt message to the target monitoring end. Combined with the web interface monitoring function, the function of returning the processing status prompt message to be added during interception is realized, so as to realize the return of the processing status prompt message to the target monitoring end, which plays a role in fine-tuning the monitoring and control of all network processing requests on the target page in the Android system, so as to stop allocating network processing resources to the target page in time when there is no network processing request, realize the reasonable allocation of network processing resources on the Android system page, and avoid the waste of network resources.
[0084] Continue to refer Figure 3 In some optional implementations, after step 201, a step of adding a delay processing time to the message to be processed is also included. Figure 3 It is a flowchart of a specific embodiment of adding a delayed processing time to a message to be processed in the processing status monitoring method described in the present application, comprising the following steps:
[0085] Step 301, according to a preset delay processing mechanism, adding a delay processing time to all the pending messages respectively, wherein the preset delay processing mechanism includes: adding a delay processing time to all the pending messages in sequence according to a preset delay step and the order of all the pending messages in the target message processing queue;
[0086] Specifically, for example, there are 10 messages to be processed, that is, the unique identification information is "Queue1-01", "Queue1-02", "Queue1-03", "Queue1-04", "Queue1-05", "Queue1-06", "Queue1-07", "Queue1-08", "Queue1-09", and "Queue1-10" respectively. Assuming that the preset delay step is 60 seconds and the current system time is 17:35:40, then "Queue1-01", "Queue1-02", "Queue1-03", "Queue1-04", "Queue1-05", "Queue1-06", "Queue1-07", "Queue1-08", "Queue1-09", and "Queue1-10" are the messages to be processed. The delayed processing times for Queue 1-03, Queue 1-04, Queue 1-05, Queue 1-06, Queue 1-07, Queue 1-08, Queue 1-09 and Queue 1-10 are 17:36:40, 17:37:40, 17:38:40, 17:39:40, 17:40:40, 17:41:40, 17:42:40, 17:43:40, 17:44:40 and 17:45:40 respectively.
[0087] Step 302: Obtain all pending messages with added delayed processing time.
[0088] By introducing a delayed processing mechanism, a delayed processing time is added to each of the pending messages, so as to facilitate fine-grained control over the execution of all pending messages, thereby ensuring fine-grained monitoring and control of all network processing requests on the target page in the Android system. It further ensures that when there is no network processing request, the allocation of network processing resources to the target page is stopped in time, achieving reasonable allocation of network processing resources on the Android system page and avoiding waste of network resources.
[0089] Continue to refer Figure 4 In some optional implementations, after step 204, an update processing step of monitoring the function in real time according to the queue message is also included. Figure 4 It is a flowchart of a specific embodiment of the update processing of the real-time monitoring function according to the queue message in the processing status monitoring method described in the present application, comprising the following steps:
[0090] Step 401, according to a preset queue message real-time monitoring function, identifying whether a new message to be processed is added to the target message processing queue;
[0091] Step 402: if a to-be-processed message is newly added to the target message processing queue, unique identification information is set for each of the newly added to-be-processed messages according to the sequence of the newly added to-be-processed messages in the target message processing queue;
[0092] Correspondingly, if no new message to be processed is added to the target message processing queue, step 205 is directly executed.
[0093] Step 403, identifying all unique identification information;
[0094] Step 404: Update the sorting result according to the order of all the newly added messages to be processed in the target message processing queue.
[0095] By introducing the real-time monitoring function of queue messages, it is possible to add unique identification information to the newly added pending messages in a timely manner after the pending messages are newly added to the target message processing queue. To a certain extent, it is also possible to allocate network processing resources to the target page in the Android system in a timely manner after the newly added pending messages are added to the target message processing queue.
[0096] Continue to refer Figure 5 In some optional implementations, after step 401, a step of adding a delay processing time to all new messages to be processed is also included. Figure 5 This is a flowchart of a specific embodiment of adding a delayed processing time to all new messages to be processed in the processing status monitoring method described in the present application, comprising the following steps:
[0097] Step 501, if a new to-be-processed message is added to the target message processing queue, then all to-be-processed messages with delayed processing time added to the target message processing queue and all new to-be-processed messages without delayed processing time added are identified;
[0098] Step 502: According to the delay processing mechanism, a delay processing time is added to all new messages to be processed that have not been added with a delay processing time on the basis of the previous delay processing;
[0099] Step 503: Obtain all new messages to be processed with delayed processing time added.
[0100] By adding a delayed processing time to all new pending messages in a timely manner after a pending message is newly added to the target message processing queue, the function of fine-tuning monitoring and control of all network processing requests on the target page in the Android system is ensured. It further ensures that network processing resources are allocated to the target page in the Android system in a timely manner after a pending message is newly added to the target message processing queue; at the same time, combined with the delayed processing time and the newly added unique identification information, when there is no network processing request, the allocation of network processing resources to the target page is stopped in a timely manner, realizing the reasonable allocation of network processing resources on the Android system page and avoiding the waste of network resources.
[0101] In this embodiment, before executing the step of identifying the latest processed message to be processed through the preset web interface listening function, the method also includes: adding the preset web interface listening function as a callback function to the execution function for processing all the messages to be processed.
[0102] Specifically, the web interface monitoring function includes the shouldInterceptRequest function in the WebViewClient class in the Android system. By changing the web interface monitoring function from the previous overall monitoring to a callback function added to the execution function for processing all pending messages, it is achieved that each time the delayed processing time is reached, the callback (monitoring) function is called once when all pending messages are processed, and the function of fine-grained monitoring and control of all network processing requests on the target page in the Android system is achieved. Compared with the previous overall monitoring, it is possible to start and stop the allocation of network resources according to the execution of the execution function, accurately control the allocation of network processing resources, and avoid the consumption of network processing resources.
[0103] Continue to refer Figure 6 , in some optional implementations, Figure 6 yes Figure 2 The flowchart of a specific embodiment of step 205 shown includes the following steps:
[0104] Step 601, setting the unique identification information of the processed message as the return parameter of the preset web interface monitoring function;
[0105] Step 602, identifying all processed messages to be processed according to the return parameters;
[0106] Step 603, comparing the delayed processing time of all the processed pending messages, and filtering out the latest processed pending message;
[0107] Step 604: Acquire the unique identification information corresponding to the latest processed message to be processed as the target identification information to be compared.
[0108] By setting the unique identification information of the processed message as the return parameter of the preset web interface listening function, all processed pending messages are identified according to the return parameter, and the delayed processing time of all processed pending messages is compared, and the latest processed pending message is screened out to ensure that when there is no network processing request, the allocation of network processing resources to the target page is stopped in time, that is, when the latest processed pending message is the last pending message in the target message processing queue, the allocation of network processing resources to the target page is stopped in time.
[0109] Continue to refer Figure 7 , in some optional implementations, Figure 7 yes Figure 2 The flowchart of a specific embodiment of step 206 shown includes the following steps:
[0110] Step 701, identifying the sequence position information of the target identification information to be compared in the sorting result;
[0111] Step 702: If the target identification information to be compared is at the end of the sequence of the sorting result, a status prompt message indicating that the network task request has been processed is sent to the target monitoring terminal;
[0112] Step 703: If the target identification information to be compared is not at the end of the sequence of the sorting result, a status prompt message indicating that the network task request is being continuously processed is sent to the target monitoring terminal.
[0113] By identifying the sequence position information of the target identification information to be compared in the sorting result, it is obvious that the target identification information to be compared is at the end of the sequence of the sorting result, which means that the latest processed pending message is the last pending message in the target message processing queue, otherwise, the latest processed pending message is not the last pending message in the target message processing queue. In order to facilitate the refined monitoring and control of all network processing requests on the target page in the Android system, when the latest processed pending message is not the last pending message in the target message processing queue, network processing resources are still allocated to the target page, and when the latest processed pending message is the last pending message in the target message processing queue, the allocation of network processing resources to the target page is stopped in time, so as to realize the reasonable allocation of network processing resources on the Android system page and avoid the waste of network resources.
[0114] This application obtains all pending messages in the target message processing queue; sets unique identification information for all pending messages according to the order of all pending messages in the target message processing queue; identifies all unique identification information; sorts all unique identification information according to the order of all pending messages in the target message processing queue, and obtains the sorting results corresponding to all unique identification information; identifies the latest processed pending message through a preset web interface monitoring function, and identifies the unique identification information corresponding to the latest processed pending message as the target identification information to be compared; returns a processing status prompt message to the target monitoring end according to the sequence position information of the target identification information to be compared in the sorting result. Combined with the web interface monitoring function, the function of returning the processing status prompt message to be added during interception is realized, so as to realize the return of the processing status prompt message to the target monitoring end, which plays a role in fine-tuning the monitoring and control of all network processing requests on the target page in the Android system, so as to stop allocating network processing resources to the target page in time when there is no network processing request, realize the reasonable allocation of network processing resources on the Android system page, and avoid the waste of network resources.
[0115] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0116] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0117] In the embodiment of the present application, all pending messages in the target message processing queue are obtained; unique identification information is set for all pending messages according to the order of the pending messages in the target message processing queue; all unique identification information is identified; all unique identification information is sorted according to the order of the pending messages in the target message processing queue, and the sorting results corresponding to all unique identification information are obtained; the latest processed pending message is identified through a preset web interface monitoring function, and the unique identification information corresponding to the latest processed pending message is identified as the target identification information to be compared; according to the sequence position information of the target identification information to be compared in the sorting result, a processing status prompt message is returned to the target monitoring terminal. Combined with the web interface monitoring function, the function of returning the processing status prompt message is added during interception, so as to realize the return of the processing status prompt message to the target monitoring terminal, which plays a role in fine-tuning the monitoring and control of all network processing requests on the target page in the Android system, so as to stop allocating network processing resources to the target page in time when there is no network processing request, realize the reasonable allocation of network processing resources on the Android system page, and avoid the waste of network resources.
[0118] Further references Figure 8 , as a response to the above Figure 2 In order to realize the method shown in the figure, the present application provides an embodiment of a processing state monitoring device, and the device embodiment is Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0119] like Figure 8 As shown, the processing status monitoring device 800 described in this embodiment includes: a to-be-processed message acquisition module 801, a unique identification information setting module 802, a unique identification information identification module 803, a unique identification information sorting module 804, an interface monitoring identification module 805 and a processing status prompt message return module 806. Among them:
[0120] The pending message acquisition module 801 is used to acquire all pending messages in the target message processing queue;
[0121] A unique identification information setting module 802 is used to set unique identification information for all the messages to be processed according to the order of the messages to be processed in the target message processing queue;
[0122] Unique identification information identification module 803, used to identify all unique identification information;
[0123] The unique identification information sorting module 804 is used to sort all the unique identification information according to the order of all the to-be-processed messages in the target message processing queue, and obtain the sorting results corresponding to all the unique identification information;
[0124] The interface monitoring identification module 805 is used to identify the latest processed message to be processed through a preset web interface monitoring function, and identify the unique identification information corresponding to the latest processed message to be processed as the target identification information to be compared;
[0125] The processing status prompt message returning module 806 is used to return a processing status prompt message to the target monitoring terminal according to the sequence position information of the target identification information to be compared in the sorting result.
[0126] This application obtains all pending messages in the target message processing queue; sets unique identification information for all pending messages according to the order of all pending messages in the target message processing queue; identifies all unique identification information; sorts all unique identification information according to the order of all pending messages in the target message processing queue, and obtains the sorting results corresponding to all unique identification information; identifies the latest processed pending message through a preset web interface monitoring function, and identifies the unique identification information corresponding to the latest processed pending message as the target identification information to be compared; returns a processing status prompt message to the target monitoring end according to the sequence position information of the target identification information to be compared in the sorting result. Combined with the web interface monitoring function, the function of returning the processing status prompt message to be added during interception is realized, so as to realize the return of the processing status prompt message to the target monitoring end, which plays a role in fine-tuning the monitoring and control of all network processing requests on the target page in the Android system, so as to stop allocating network processing resources to the target page in time when there is no network processing request, realize the reasonable allocation of network processing resources on the Android system page, and avoid the waste of network resources.
[0127] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0128] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0129] To solve the above technical problems, the present application also provides a computer device. Fig. 9 , Fig. 9 This is a basic structural block diagram of the computer device in this embodiment.
[0130] The computer device 9 includes a memory 9a, a processor 9b, and a network interface 9c which are interconnected through a system bus. It should be noted that: Fig. 9 Only a computer device 9 having a component memory 9a, a processor 9b, and a network interface 9c is shown, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital processor (DSP), an embedded device, etc.
[0131] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0132] The memory 9a includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 9a can be an internal storage unit of the computer device 9, such as a hard disk or memory of the computer device 9. In other embodiments, the memory 9a can also be an external storage device of the computer device 9, such as a plug-in hard disk equipped on the computer device 9, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 9a can also include both the internal storage unit of the computer device 9 and its external storage device. In this embodiment, the memory 9a is generally used to store the operating system and various application software installed on the computer device 9, such as a computer-readable instruction of a processing status monitoring method, etc. In addition, the memory 9a can also be used to temporarily store various types of data that have been output or are to be output.
[0133] The processor 9b may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 9b is generally used to control the overall operation of the computer device 9. In this embodiment, the processor 9b is used to run computer-readable instructions or process data stored in the memory 9a, such as computer-readable instructions for running the processing state monitoring method.
[0134] The network interface 9c may include a wireless network interface or a wired network interface. The network interface 9c is generally used to establish a communication connection between the computer device 9 and other electronic devices.
[0135] The computer device proposed in this embodiment belongs to the field of research and development design technology, and is applied to the network request task processing status monitoring scenario. This application obtains all pending messages in the target message processing queue; sets unique identification information for all pending messages according to the order of all pending messages in the target message processing queue; identifies all unique identification information; sorts all unique identification information according to the order of all pending messages in the target message processing queue, and obtains the sorting results corresponding to all unique identification information; identifies the latest processed pending message through a preset web interface monitoring function, and identifies the unique identification information corresponding to the latest processed pending message as the target identification information to be compared; returns a processing status prompt message to the target monitoring terminal according to the sequence position information of the target identification information to be compared in the sorting result. Combined with the web interface monitoring function, the function of returning the processing status prompt message is added during interception, so as to realize the return of the processing status prompt message to the target monitoring end, and play the role of fine-grained monitoring and control of all network processing requests on the target page in the Android system, so as to stop allocating network processing resources to the target page in time when there is no network processing request, thereby realizing the reasonable allocation of network processing resources on the Android system page and avoiding the waste of network resources.
[0136] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by a processor to enable the processor to perform the steps of the processing status monitoring method as described above.
[0137] The computer-readable storage medium proposed in this embodiment belongs to the field of research and development design technology, and is applied to the network request task processing status monitoring scenario. This application obtains all pending messages in the target message processing queue; sets unique identification information for all pending messages according to the order of all pending messages in the target message processing queue; identifies all unique identification information; sorts all unique identification information according to the order of all pending messages in the target message processing queue, and obtains the sorting results corresponding to all unique identification information; identifies the latest processed pending message through a preset web interface monitoring function, and identifies the unique identification information corresponding to the latest processed pending message as the target identification information to be compared; returns a processing status prompt message to the target monitoring terminal according to the sequence position information of the target identification information to be compared in the sorting result. Combined with the web interface monitoring function, the function of returning the processing status prompt message is added during interception, so as to realize the return of the processing status prompt message to the target monitoring end, and play the role of fine-grained monitoring and control of all network processing requests on the target page in the Android system, so that when there is no network processing request, the allocation of network processing resources to the target page is stopped in time, thereby realizing the reasonable allocation of network processing resources on the Android system page and avoiding the waste of network resources.
[0138] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0139] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A processing status monitoring method, characterized in that: The steps include: Get all pending messages in the target message processing queue; According to the order of all the messages to be processed in the target message processing queue, unique identification information is set for all the messages to be processed respectively; Identify all unique identifying information; Sorting all the unique identification information according to the order of all the messages to be processed in the target message processing queue to obtain the sorting results corresponding to all the unique identification information; Identify the latest processed message to be processed through a preset web interface monitoring function, and identify the unique identification information corresponding to the latest processed message to be processed as the target identification information to be compared; According to the sequence position information of the target identification information to be compared in the sorting result, a processing status prompt message is returned to the target monitoring terminal.
2. The processing state monitoring method according to claim 1, characterized in that: After executing the step of obtaining all to-be-processed messages in the target message processing queue, the method further includes: According to a preset delay processing mechanism, a delay processing time is added to each of the messages to be processed, wherein the preset delay processing mechanism includes: adding a delay processing time to each of the messages to be processed in sequence according to a preset delay step and the order of the messages to be processed in the target message processing queue; Get all pending messages with delayed processing time added.
3. The processing state monitoring method according to claim 2, characterized in that: After executing the step of sorting all the unique identification information according to the order of all the to-be-processed messages in the target message processing queue to obtain the sorting results corresponding to all the unique identification information, the method further includes: According to a preset queue message real-time monitoring function, identifying whether a new message to be processed is added to the target message processing queue; If a new message to be processed is added to the target message processing queue, unique identification information is set for each of the newly added messages to be processed according to the order of the newly added messages to be processed in the target message processing queue; Identify all unique identifying information; The sorting result is updated according to the order of all the newly added to-be-processed messages in the target message processing queue.
4. The processing state monitoring method according to claim 3, characterized in that: After executing the step of identifying whether a new message to be processed is added to the target message processing queue according to the preset queue message real-time monitoring function, the method further includes: If a new to-be-processed message is added to the target message processing queue, identifying all to-be-processed messages to which a delayed processing time has been added and all new to-be-processed messages to which a delayed processing time has not been added in the target message processing queue; According to the delay processing mechanism, adding a delay processing time to all new messages to be processed for which the delay processing time is not added, based on the previous delay processing; Get all new pending messages with added processing delay.
5. The processing state monitoring method according to claim 1, characterized in that: Before executing the step of identifying the latest processed message to be processed through the preset web interface monitoring function, the method further includes: The preset web interface monitoring function is added as a callback function to the execution function for processing all the pending messages.
6. The processing state monitoring method according to claim 1 or 5, characterized in that: The step of identifying the latest processed message to be processed through a preset web interface monitoring function, and identifying the unique identification information corresponding to the latest processed message to be processed as the target identification information to be compared, specifically includes: The unique identification information of the processed message is set as the return parameter of the preset web interface monitoring function; Identify all processed messages to be processed according to the return parameters; Compare the delayed processing times of all the processed pending messages, and filter out the latest processed pending message; The unique identification information corresponding to the latest processed message to be processed is obtained as the target identification information to be compared.
7. The processing state monitoring method according to claim 1, characterized in that: The step of returning a processing status prompt message to the target monitoring terminal according to the sequence position information of the target identification information to be compared in the sorting result specifically includes: Identify the sequence position information of the target identification information to be compared in the sorting result; If the target identification information to be compared is at the end of the sequence of the sorting results, a status prompt message indicating that the network task request has been processed is sent to the target monitoring terminal; If the target identification information to be compared is not at the end of the sequence of the sorting result, a status prompt message indicating that the network task request is being continuously processed is sent to the target monitoring terminal.
8. A processing status monitoring device, characterized in that: include: A pending message acquisition module is used to acquire all pending messages in the target message processing queue; A unique identification information setting module, used to set unique identification information for all the messages to be processed respectively according to the order of all the messages to be processed in the target message processing queue; A unique identification information recognition module, used to identify all unique identification information; A unique identification information sorting module is used to sort all the unique identification information according to the order of all the to-be-processed messages in the target message processing queue, and obtain the sorting results corresponding to all the unique identification information; An interface monitoring and identification module is used to identify the latest processed message to be processed through a preset web interface monitoring function, and to identify the unique identification information corresponding to the latest processed message to be processed as the target identification information to be compared; The processing status prompt message returning module is used to return a processing status prompt message to the target monitoring terminal according to the sequence position information of the target identification information to be compared in the sorting result.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the processing status monitoring method according to any one of claims 1 to 7 when executing the computer-readable instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the processing status monitoring method according to any one of claims 1 to 7 are implemented.