COUNTING METHOD, COUNTER AND STORAGE MEDIUM
First Claim
1. A counting method, comprising:
- detecting whether a count application source exists;
obtaining a quantity of counts caused by a current count application source in unit time and server-related parameters, if the count application source exists, the server-related parameters comprising at least one of a utilization rate of CPU, a utilization rate of memory and a quantity of current network connections;
determining a mode in which the current count application source updates the database according to the quantity of counts or the server-related parameters, the mode comprising a real-time mode and a high-performance mode;
accumulating the counts caused by the current count application source running in the server, to obtain an accumulated value, if the current count application source updates the database in the high-performance mode; and
updating the accumulated value of the current count application source to the database according to a preset frequency.
0 Assignments
0 Petitions
Accused Products
Abstract
A counting method, a counter and a storage medium, wherein the method includes: detecting whether a count application source exists; obtaining a quantity of counts caused by a current count application source in unit time and server-related parameters, if a count application source exists; determining a mode in which the current count application source updates the database according to the quantity of counts or the server-related parameters, the mode including a real-time mode and a high-performance mode; accumulating the counts caused by the current count application source running in the server to obtain an accumulated value, if the current count application source updates the database in the high-performance mode; and updating the accumulated value of the current count application source to the database according to a preset frequency.
0 Citations
20 Claims
-
1. A counting method, comprising:
-
detecting whether a count application source exists; obtaining a quantity of counts caused by a current count application source in unit time and server-related parameters, if the count application source exists, the server-related parameters comprising at least one of a utilization rate of CPU, a utilization rate of memory and a quantity of current network connections; determining a mode in which the current count application source updates the database according to the quantity of counts or the server-related parameters, the mode comprising a real-time mode and a high-performance mode; accumulating the counts caused by the current count application source running in the server, to obtain an accumulated value, if the current count application source updates the database in the high-performance mode; and updating the accumulated value of the current count application source to the database according to a preset frequency. - View Dependent Claims (2, 3, 4, 5)
-
-
6. (canceled)
-
7. (canceled)
-
8. (canceled)
-
9. (canceled)
-
10. (canceled)
-
11. A counter, comprising a memory and a processor coupled to the memory;
-
wherein the memory is provided for storing program data; and
the processor is provided for calling the program data stored in the memory so as to execute the steps of;detecting whether a count application source exists; obtaining a quantity of counts caused by a current count application source in unit time and server-related parameters, if a count application source exists, the server-related parameters comprising at least one of a utilization rate of CPU, a utilization rate of memory and a quantity of current network connections; determining a mode in which the current count application source updates the database according to the quantity of counts or the server-related parameters, the mode comprising a real-time mode and a high-performance mode; accumulating the counts caused by the current count application source running in the server to obtain an accumulated value, if the current count application source updates the database in the high-performance mode; and updating the accumulated value of the current count application source to the database according to a preset frequency. - View Dependent Claims (12, 13, 14, 15)
-
-
16. A non-transitory computer-readable storage medium, provided for storing one or more programs, wherein the one or more programs is executed by one or more processors, so as to perform the steps of:
-
detecting whether a count application source exists; obtaining a quantity of counts caused by a current count application source in unit time and server-related parameters, if a count application source exists, the server-related parameters comprising at least one of a utilization rate of CPU, a utilization rate of memory and a quantity of current network connections; determining a mode in which the current count application source updates the database according to the quantity of counts or the server-related parameters, the mode comprising a real-time mode and a high-performance mode; accumulating the counts caused by the current count application source running in the server to obtain an accumulated value, if the current count application source updates the database in the high-performance mode; and updating the accumulated value of the current count application source to the database according to a preset frequency. - View Dependent Claims (17, 18, 19, 20)
-
Specification