CN106571942B - Configuration data updating method, client and server - Google Patents

Configuration data updating method, client and server Download PDF

Info

Publication number
CN106571942B
CN106571942B CN201510652716.4A CN201510652716A CN106571942B CN 106571942 B CN106571942 B CN 106571942B CN 201510652716 A CN201510652716 A CN 201510652716A CN 106571942 B CN106571942 B CN 106571942B
Authority
CN
China
Prior art keywords
client
data
server
configuration data
update
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510652716.4A
Other languages
Chinese (zh)
Other versions
CN106571942A (en
Inventor
张秋生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201510652716.4A priority Critical patent/CN106571942B/en
Publication of CN106571942A publication Critical patent/CN106571942A/en
Application granted granted Critical
Publication of CN106571942B publication Critical patent/CN106571942B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Abstract

The application discloses a configuration data updating method, a client and a server. Wherein, the method comprises the following steps: the method comprises the steps that a server receives data sent by a client in an online operation state, wherein the data sent by the client carries an identifier used for representing local configuration data of the client; the server identifies the identification of the local configuration data of the client from the data sent by the client; the server judges whether the configuration data of the client has updating data or not based on the identified identification; and when the server judges that the configuration data of the client exists, the server sends the update data to the client so that the client updates the local configuration data. The method and the device solve the technical problem that the client side in the online running state cannot update the configuration data.

Description

Configuration data updating method, client and server
Technical Field
The present application relates to the field of data processing, and in particular, to a configuration data updating method, a client, and a server.
Background
For configuration data updates local to the client, configuration data is typically requested from the server at several specific points in time, such as at startup or when entering the background. If the client is in an online running state (non-background running state), and if the configuration data is updated on the server, the client has no way to synchronously update the configuration data, which results in delay of updating the configuration data of the client. Such as: in a ball game rebroadcasting, the pressure of receiving data by the server is too high, and if the sampling rate of the server to the data on the client is required to be adjusted, the data is difficult to achieve through an updating configuration mode, because the client is in an online running state, the time for updating the configuration data is not satisfied.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a configuration data updating method, a client and a server, so as to at least solve the technical problem that the client in an online running state cannot update configuration data.
According to an aspect of an embodiment of the present application, there is provided a configuration data updating method, including: the method comprises the steps that a server receives data sent by a client in an online operation state, wherein the data sent by the client carries an identifier used for representing local configuration data of the client; the server identifies the identification of the configuration data local to the client from the data sent by the client; the server judges whether the configuration data of the client has updating data or not based on the identified identification; and when the server judges that the configuration data of the client side has the updating data, the server sends the updating data to the client side so as to enable the client side to update the local configuration data.
According to another aspect of the embodiments of the present application, there is also provided a configuration data updating method, including: when a client is in an online running state, sending data to a server, wherein the data carries an identifier for representing local configuration data of the client, so that the server judges whether update data of the configuration data of the client exists or not based on the identifier, and when the server judges that the update data of the configuration data of the client exists, sending the update data to the client; the client receives the updating data sent by the server; and the client updates the local configuration data by using the updating data.
According to another aspect of the embodiments of the present application, there is also provided a server, including: the system comprises a receiving unit, a sending unit and a receiving unit, wherein the receiving unit is used for receiving data sent by a client in an online running state, and the data sent by the client carries an identifier used for representing local configuration data of the client; the identification unit is used for identifying the identification of the configuration data local to the client from the data sent by the client; a judging unit configured to judge whether there is update data of the configuration data of the client based on the identified identifier; and the sending unit is used for sending the update data to the client when the judging unit judges that the update data of the configuration data of the client exists, so that the client updates the local configuration data.
According to another aspect of the embodiments of the present application, there is also provided a client, including: the data sending unit is used for sending data to a server when a client is in an online running state, wherein the data carries an identifier used for representing local configuration data of the client, so that the server judges whether the update data of the configuration data of the client exists or not based on the identifier, and when the server judges that the update data of the configuration data of the client exists, the update data is sent to the client; a data receiving unit, configured to receive the update data sent by the server; and the data updating unit is used for updating the local configuration data of the client by using the updating data.
According to the embodiment of the application, the server receives data carrying an identifier for indicating the local configuration data of the client from the client in the online operation state, whether the update data of the configuration data of the client exists is judged based on the identifier, and when the server judges that the update data of the configuration data of the client exists, the update data is sent to the client, so that the client updates the local configuration data, the client can receive the update data sent by the server in the online operation state and update the local configuration data, the technical problem that the client in the online operation state cannot update the configuration data is solved, and the update of the configuration data of the client in the online operation state is realized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of a configuration data updating method according to embodiment 1 of the present application;
FIG. 2 is a flow chart of an alternative configuration data update method according to an embodiment of the present application;
fig. 3 is a flowchart of a configuration data updating method according to embodiment 2 of the present application;
fig. 4 is a schematic diagram of a server according to embodiment 3 of the present application;
fig. 5 is a schematic diagram of a client according to embodiment 4 of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present application, there is provided a method embodiment of a method for configuring a data update method, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here. The configuration data updating method of this embodiment may be specifically executed by a server provided in the present application.
Fig. 1 is a flowchart of a configuration data updating method according to embodiment 1 of the present application, and as shown in fig. 1, the method includes the following steps:
step S102, the server receives data sent by the client in the online running state. The data sent by the client carries an identifier for indicating the configuration data local to the client.
Step S104, the server identifies the local configuration data identification of the client from the data sent by the client.
In step S106, the server determines whether there is update data of the configuration data of the client based on the identified identifier.
Step S108, when the server judges that the configuration data of the client exists, the server sends the update data to the client so that the client updates the local configuration data.
When the client is in the online running state, data can be returned to the server, and the data can be data which is sent by the client to the server and used for requesting video resources, picture resources or text resources, or monitoring data which is returned by the client to the server. The client adds an identifier for representing local configuration data of the client in the data, and after the server receives the data sent by the client, the server judges whether the server has update data of the configuration data of the client or not based on the identifier, wherein the update data is data stored in the server. And when the update data is judged to exist, the server sends the update data to the client so that the client updates the local configuration data by using the update data.
In this embodiment, the initiative for updating the configuration data of the client is controlled at the server side, the client does not need to request the configuration data from the server, the server judges whether the configuration data of the client needs to be updated or not based on the identifier carried in the data sent by the client in the online running state, and when the configuration data of the client needs to be updated, the updated data is directly pushed to the client.
According to the embodiment of the application, the server receives data carrying the identifier for representing the local configuration data of the client from the client in the online running state, whether the update data of the configuration data of the client exists is judged based on the identifier, and when the server judges that the update data of the configuration data of the client exists, the update data is sent to the client so that the client updates the local configuration data, the client can receive the update data sent by the server in the online running state and update the local configuration data, the technical problem that the client in the online running state cannot update the configuration data is solved, and the update of the configuration data of the client in the online running state is realized.
It should be noted that the client in this embodiment may be a terminal, an application installed on the terminal, or a terminal installed with an application. Taking an application as an example, a Software Development Kit (SDK) embedded in data collection of the application depends on configuration data during running, and the configuration data is uniformly deployed on a server side. For example: the sending address of the SDK data, the enabling information of some collection modules of the SDK, and the like.
Preferably, the server determining whether there is update data of the configuration data of the client based on the identified identifier includes: judging whether the identification of the local configuration data of the client is the same as the identification of the local configuration data stored in the server; when the configuration data are different, analyzing the local configuration data identifier of the client; and updating the configuration data of the client according to the result of analyzing the identification of the local configuration data of the client.
Specifically, the server judges whether the configuration data of the client has the updated data by judging whether the identification of the configuration data local to the client is the same as the identification of the configuration data locally stored by the server, wherein when the identification of the configuration data local to the client is the same as the identification of the configuration data locally stored by the server, the server determines that the updated data of the configuration data of the client does not exist; when the identification of the local configuration data of the client is different from the identification of the local configuration data stored in the server, analyzing the identification of the local configuration data of the client, and updating the configuration data of the client according to the result of analyzing the identification of the local configuration data of the client.
The method for analyzing the identifier of the local configuration data of the client may be a method for analyzing the identifier of the local configuration data of the client to obtain a corresponding peer value, or a method for analyzing the identifier of the local configuration data of the client to obtain a character or a field. This application is not limited in any way.
In this embodiment, the data sent by the client to the server carries an identifier indicating the configuration data, where the identifiers of different configuration data are different, and the identifier may be represented by a numerical value on an identifier bit. Since the configuration data of the client is uniformly deployed on the server, when the configuration data is updated, the configuration data is deployed on the server, and then the server controls the update of the configuration data on the client. The server has stored therein configuration data which correspondingly has an identifier identifying the uniqueness thereof.
Comparing the identifier of the configuration data on the server with the identifier of the configuration data on the client, and if the identifiers are the same, indicating that the configuration data on the client is the same as the configuration data on the server, namely, the configuration data of the client does not need to be updated; otherwise, if the configuration data on the client is different from the configuration data on the server, the configuration data of the client needs to be updated.
Further, the method further comprises: the server updates the configuration data stored locally and the identification of the configuration data stored locally by the server, wherein the client updates the configuration data by using the update data sent by the server and updates the identification of the configuration data stored locally by the client.
In this embodiment, when configuration data stored at the server side is updated, corresponding identifiers of the configuration data are updated together; when the client receives the update data sent by the server and updates the configuration data, the corresponding identification of the client is updated together. The identifier of the client updating configuration data may be an identifier of the original configuration data replaced by the identifier of the update data sent by the server, so as to update the identifier of the client local configuration data.
An alternative implementation of the embodiments of the present application is described below with reference to fig. 2 as an example. In this example, the identity of the configuration data is identified by the value of an identification bit.
As shown in fig. 2, the initial value of the identification bit P of the configuration data of the client 100 is-1, and the value of the identification bit P of the configuration data locally stored by the server 200 is 0, i.e., P: 0. After the client 100 sends data to the server 200, the data carries the identification bit and the corresponding value, i.e. P: -1. After receiving the data sent by the client 100, the server 200 recognizes a value-1 of the identification bit, compares the value with a value 0 of the identification bit of the locally stored configuration data, and determines that 0> -1 is determined, it is determined that the configuration data of the client 100 needs to be updated, the server 200 sends the locally updated configuration data to the client 100, and after receiving the data, the client 100 analyzes the updated configuration data and updates the configuration data, and sets the value of the identification bit to 0.
If the configuration data stored on the server 200 is updated, the stored configuration data is updated, and the value of the flag bit is updated, that is, P:0 is changed to P: 1, when receiving data carrying the identification bit of the configuration data from the client 100 again, determining whether the client 100 needs to update the configuration data, where the updating method is the same as above, and is not described herein again.
In this example, if the client is restarted or exits unexpectedly, the value of the identification bit may be replaced with an initial value, so that the server may recognize the identification bit and update the configuration data of the client in time.
It should be noted that, in this example, updating the identifier of the configuration data in a manner that the value of the identifier bit is incremented is only an optional implementation manner of the embodiment of the present application, and those skilled in the art know that, on the basis of this example, there are many alternative manners that the identifier of the configuration data of the embodiment of the present application may be updated, and this is not restrictive to the present application.
Preferably, the data sent by the client in the online running state is monitoring data of the server to the client, wherein the monitoring data is sent to the server according to a preset period when the client is in the online running state.
In this embodiment, in order to monitor the client, when the client is in an online operating state, the client sends monitoring data to the server at intervals of a preset period, where the monitoring data may carry an identifier of the configuration data of the client, and the server identifies whether the configuration data of the client needs to be updated according to the identifier. In this embodiment, whether the configuration data of the client needs to be updated is determined by monitoring data returned by the client in the online running state, so that when the configuration data on the client needs to be updated, the updated configuration data is pushed to the client in time, and the update of the configuration data of the client is realized.
Example 2
In another aspect of the embodiments of the present application, a method for updating configuration data is provided, where the method for updating configuration data of the embodiments can be specifically executed by a client provided in the present application.
As shown in fig. 3, the configuration data updating method includes:
step S302, when the client is in an online running state, sending data to the server, wherein the data carries an identifier for representing local configuration data of the client, so that the server judges whether the update data of the configuration data of the client exists or not based on the identifier, and when the server judges that the update data of the configuration data of the client exists, the update data is sent to the client.
In step S304, the client receives the update data sent by the server.
In step S306, the client updates the local configuration data with the update data.
When the client is in the online running state, data can be returned to the server, and the data can be data which is sent by the client to the server and used for requesting video resources, picture resources or text resources, or monitoring data which is returned by the client to the server. The client adds an identifier for representing local configuration data of the client in the data, and after the server receives the data sent by the client, the server judges whether the server has update data of the configuration data of the client or not based on the identifier, wherein the update data is data stored in the server. And when the update data is judged to exist, the server sends the update data to the client so that the client updates the local configuration data by using the update data.
In this embodiment, the initiative for updating the configuration data of the client is controlled at the server side, the client does not need to request the configuration data from the server, the server judges whether the configuration data of the client needs to be updated or not based on the identifier carried in the data sent by the client in the online running state, and when the configuration data of the client needs to be updated, the updated data is directly pushed to the client.
According to the embodiment of the application, the client in the online running state sends the data carrying the identifier for indicating the local configuration data of the client to the server, so that the server judges whether the update data of the configuration data of the client exists or not based on the identifier, when the server judges that the update data of the configuration data of the client exists, the update data is sent to the client, and the local configuration data is updated by utilizing the update data, so that the client can receive the update data sent by the server in the online running state and update the local configuration data, the technical problem that the client in the online running state cannot update the configuration data is solved, and the update of the configuration data of the client in the online running state is realized.
In addition, the server sends the updating data to the client and simultaneously sends the identification corresponding to the updating data to the client, and the identification bit of the client is updated according to the identification sent by the server, so that the situation that the client is updated for many times after the client is restarted and the identification bit is initialized is avoided.
For an optional implementation of the configuration data updating method in this embodiment, reference may be made to the configuration data updating method in embodiment 1 of this application, which is not described herein again.
Example 3
An embodiment of the present application further provides a server, where the server may be configured to execute the configuration data updating method in embodiment 1 of the present application, and as shown in fig. 4, the server includes: a receiving unit 402, a recognition unit 404, a judgment unit 406 and a sending unit 408.
The receiving unit 402 is configured to receive data sent by a client in an online running state. The data sent by the client carries an identifier for indicating the local configuration data of the client.
The identifying unit 404 is configured to identify an identifier of the configuration data local to the client from the data sent by the client.
The judging unit 406 is configured to judge whether there is update data of the configuration data of the client based on the identified identifier.
The sending unit 408 is configured to send the update data to the client when the determining unit determines that there is the update data of the configuration data of the client, so that the client updates the local configuration data.
When the client is in the online running state, data can be returned to the server, and the data can be data which is sent by the client to the server and used for requesting video resources, picture resources or text resources, or monitoring data which is returned by the client to the server. The client adds an identifier for representing local configuration data of the client in the data, and after the server receives the data sent by the client, the server judges whether the server has update data of the configuration data of the client or not based on the identifier, wherein the update data is data stored in the server. And when the update data is judged to exist, the server sends the update data to the client so that the client updates the local configuration data by using the update data.
In this embodiment, the initiative for updating the configuration data of the client is controlled at the server side, the client does not need to request the configuration data from the server, the server judges whether the configuration data of the client needs to be updated or not based on the identifier carried in the data sent by the client in the online running state, and when the configuration data of the client needs to be updated, the updated data is directly pushed to the client.
According to the embodiment of the application, the server receives data carrying the identifier for representing the local configuration data of the client from the client in the online running state, whether the update data of the configuration data of the client exists is judged based on the identifier, and when the server judges that the update data of the configuration data of the client exists, the update data is sent to the client so that the client updates the local configuration data, the client can receive the update data sent by the server in the online running state and update the local configuration data, the technical problem that the client in the online running state cannot update the configuration data is solved, and the update of the configuration data of the client in the online running state is realized.
It should be noted that the client in this embodiment may be a terminal, an application installed on the terminal, or a terminal installed with an application. Taking an application as an example, a Software Development Kit (SDK) embedded in data collection of the application depends on configuration data during running, and the configuration data is uniformly deployed on a server side. For example: the sending address of the SDK data, the enabling information of some collection modules of the SDK, and the like.
Optionally, the judging unit includes: the judging module is used for judging whether the identification of the local configuration data of the client is the same as the identification of the local configuration data stored in the server; if not, analyzing the local configuration data identifier of the client; and updating the configuration data of the client according to the result of analyzing the identification of the local configuration data of the client.
Specifically, whether the configuration data of the client has the updated data is judged by judging whether the identification of the configuration data local to the client is the same as the identification of the configuration data locally stored by the server, wherein when the identification of the configuration data local to the client is the same as the identification of the configuration data locally stored by the server, the updated data of the configuration data of the client is determined not to exist; when the identification of the local configuration data of the client is different from the identification of the local configuration data stored in the server, analyzing the identification of the local configuration data of the client; and updating the configuration data of the client according to the result of analyzing the identification of the local configuration data of the client.
In this embodiment, the data sent by the client to the server carries an identifier indicating the configuration data, where the identifiers of different configuration data are different, and the identifier may be represented by a numerical value on an identifier bit. Since the configuration data of the client is uniformly deployed on the server, when the configuration data is updated, the configuration data is deployed on the server, and then the server controls the update of the configuration data on the client. The server has stored therein configuration data which correspondingly has an identifier identifying the uniqueness thereof.
Comparing the identifier of the configuration data on the server with the identifier of the configuration data on the client, and if the identifiers are the same, indicating that the configuration data on the client is the same as the configuration data on the server, namely, the configuration data of the client does not need to be updated; otherwise, if the configuration data on the client is different from the configuration data on the server, the configuration data of the client needs to be updated.
Further, the server further comprises: and the updating unit is used for updating the identification of the configuration data locally stored by the server while updating the configuration data locally stored by the server, wherein the client updates the identification of the configuration data locally stored by the client while updating the configuration data by using the update data sent by the server.
In this embodiment, when configuration data stored at the server side is updated, corresponding identifiers of the configuration data are updated together; when the client receives the update data sent by the server and updates the configuration data, the corresponding identification of the client is updated together. The identifier of the client updating configuration data may be an identifier of the original configuration data replaced by the identifier of the update data sent by the server, so as to update the identifier of the client local configuration data.
Optionally, the data sent by the client in the online running state is monitoring data of the client by the server, wherein the monitoring data is sent to the server according to a preset period when the client is in the online running state.
In this embodiment, in order to monitor the client, when the client is in an online operating state, the client sends monitoring data to the server at intervals of a preset period, where the monitoring data may carry an identifier of the configuration data of the client, and the server identifies whether the configuration data of the client needs to be updated according to the identifier. In this embodiment, whether the configuration data of the client needs to be updated is determined by monitoring data returned by the client in the online running state, so that when the configuration data on the client needs to be updated, the updated configuration data is pushed to the client in time, and the update of the configuration data of the client is realized.
Example 4
The embodiment of the present application further provides a client, where the client may be configured to execute the configuration data updating method in embodiment 2 of the present application. As shown in fig. 5, the client includes: a data transmitting unit 502, a data receiving unit 504, and a data updating unit 506.
The data sending unit 502 is configured to send data to the server when the client is in the online operating state, where the data carries an identifier indicating local configuration data of the client, so that the server determines whether there is update data of the configuration data of the client based on the identifier, and sends the update data to the client when the server determines that there is update data of the configuration data of the client.
The data receiving unit 504 is configured to receive the update data sent by the server.
The data updating unit 506 is configured to update the configuration data local to the client with the update data.
When the client is in the online running state, data can be returned to the server, and the data can be data which is sent by the client to the server and used for requesting video resources, picture resources or text resources, or monitoring data which is returned by the client to the server. The client adds an identifier for representing local configuration data of the client in the data, and after the server receives the data sent by the client, the server judges whether the server has update data of the configuration data of the client or not based on the identifier, wherein the update data is data stored in the server. And when the update data is judged to exist, the server sends the update data to the client so that the client updates the local configuration data by using the update data.
In this embodiment, the initiative for updating the configuration data of the client is controlled at the server side, the client does not need to request the configuration data from the server, the server judges whether the configuration data of the client needs to be updated or not based on the identifier carried in the data sent by the client in the online running state, and when the configuration data of the client needs to be updated, the updated data is directly pushed to the client.
According to the embodiment of the application, the client in the online running state sends the data carrying the identifier for representing the local configuration data of the client to the server, so that when the server judges that the update data of the configuration data of the client exists based on the identifier, the update data is sent to the client, the local configuration data is updated by using the update data, the client can also receive the update data sent by the server in the online running state and update the local configuration data, the technical problem that the client in the online running state cannot update the configuration data is solved, and the update of the configuration data of the client in the online running state is realized.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (8)

1. A method for updating configuration data, comprising:
the method comprises the following steps that a server receives data sent by a client in an online operation state, wherein the data sent by the client carries an identifier used for representing local configuration data of the client, and the data sent by the client comprises at least one of the following data: the client sends data to the server for requesting at least one of the following: the client side sends monitoring data to the server;
the server identifies the identification of the configuration data local to the client from the data sent by the client;
the server judges whether the configuration data of the client has updating data or not based on the identified identification; and
when the server judges that the configuration data of the client side has the updating data, the updating data is sent to the client side so that the client side can update the local configuration data;
wherein the method further comprises: the server updates the configuration data locally stored by the server and updates the identification of the configuration data locally stored by the server, wherein the client updates the configuration data by using the update data sent by the server and updates the identification of the configuration data locally stored by the client.
2. The method of claim 1, wherein the server determining whether there is update data for the client's configuration data based on the identified identifier comprises:
judging whether the identification of the local configuration data of the client is the same as the identification of the local configuration data stored in the server;
when the configuration data are different, analyzing the local configuration data identifier of the client;
and updating the configuration data of the client according to the result of analyzing the identification of the local configuration data of the client.
3. The method according to claim 1 or 2, wherein the data sent by the client in the online operation state is monitoring data of the client by the server, and when the client is in the online operation state, the monitoring data is sent to the server according to a preset period.
4. A method for updating configuration data, comprising:
when a client is in an online running state, sending data to a server, wherein the data carries an identifier used for representing local configuration data of the client, so that the server judges whether update data of the configuration data of the client exist or not based on the identifier, and when the server judges that the update data of the configuration data of the client exist, the update data is sent to the client, wherein the data sent by the client comprises at least one of the following data: the client sends data to the server for requesting at least one of the following: the client side sends monitoring data to the server;
the client receives the updating data sent by the server; and
the client updates local configuration data by using the updating data;
the server updates the configuration data locally stored by the server and the identifier of the configuration data locally stored by the server, wherein the client updates the configuration data by using the update data sent by the server and updates the identifier of the configuration data locally stored by the client.
5. A server, comprising:
a receiving unit, configured to receive data sent by a client in an online operating state, where the data sent by the client carries an identifier used to represent configuration data local to the client, and the data sent by the client includes at least one of the following data: the client sends data to the server for requesting at least one of the following: the client side sends monitoring data to the server;
the identification unit is used for identifying the identification of the configuration data local to the client from the data sent by the client;
a judging unit configured to judge whether there is update data of the configuration data of the client based on the identified identifier; and
a sending unit, configured to send, when the determining unit determines that there is update data of the configuration data of the client, the update data to the client, so that the client updates local configuration data;
wherein the server further comprises: and the updating unit is used for updating the identifier of the configuration data locally stored by the server while updating the configuration data locally stored by the server, wherein the client updates the identifier of the configuration data locally stored by the client while updating the configuration data by using the update data sent by the server.
6. The server according to claim 5, wherein the judging unit includes:
the judging module is used for judging whether the identification of the local configuration data of the client is the same as the identification of the local configuration data stored in the server; if not, analyzing the local configuration data identifier of the client;
and updating the configuration data of the client according to the result of analyzing the identification of the local configuration data of the client.
7. The server according to claim 5 or 6, wherein the data sent by the client in the online operating state is monitoring data of the client by the server, and when the client is in the online operating state, the monitoring data is sent to the server according to a preset period.
8. A client, comprising:
a data sending unit, configured to send data to a server when a client is in an online operating state, where the data carries an identifier used to represent configuration data local to the client, so that the server determines, based on the identifier, whether there is update data of the configuration data of the client, and sends the update data to the client when the server determines that there is update data of the configuration data of the client, where the data sent by the client includes at least one of: the client sends data to the server for requesting at least one of the following: the client side sends monitoring data to the server;
a data receiving unit, configured to receive the update data sent by the server; and
the data updating unit is used for updating the local configuration data of the client by using the updating data;
the server updates the configuration data locally stored by the server and the identifier of the configuration data locally stored by the server, wherein the client updates the configuration data by using the update data sent by the server and updates the identifier of the configuration data locally stored by the client.
CN201510652716.4A 2015-10-10 2015-10-10 Configuration data updating method, client and server Active CN106571942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510652716.4A CN106571942B (en) 2015-10-10 2015-10-10 Configuration data updating method, client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510652716.4A CN106571942B (en) 2015-10-10 2015-10-10 Configuration data updating method, client and server

Publications (2)

Publication Number Publication Date
CN106571942A CN106571942A (en) 2017-04-19
CN106571942B true CN106571942B (en) 2020-02-28

Family

ID=58507431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510652716.4A Active CN106571942B (en) 2015-10-10 2015-10-10 Configuration data updating method, client and server

Country Status (1)

Country Link
CN (1) CN106571942B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391276B (en) * 2017-07-05 2018-09-28 腾讯科技(深圳)有限公司 Distributed monitor method, interception control device and system
CN110188119A (en) * 2019-06-10 2019-08-30 北京百度网讯科技有限公司 Method and apparatus for obtaining data
CN110580200B (en) * 2019-08-06 2022-11-11 口碑(上海)信息技术有限公司 Data synchronization method and device
CN110585724B (en) * 2019-09-24 2023-10-27 腾讯科技(深圳)有限公司 Method and device for updating form data in game client
CN113485767A (en) * 2021-07-09 2021-10-08 绿盟科技集团股份有限公司 Control configuration updating method and system and electronic equipment
CN114928610A (en) * 2022-05-12 2022-08-19 优车库网络科技发展(深圳)有限公司 Data update notification method, data processing method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576828A (en) * 2009-06-01 2009-11-11 中兴通讯股份有限公司 Software version upgrading method, device and server
CN102036224A (en) * 2009-09-29 2011-04-27 中国移动通信集团设计院有限公司 Method, system and upgrading control entity for informing mobile equipment of upgrading software
CN103414772A (en) * 2013-08-09 2013-11-27 百灵时代传媒集团有限公司 Cloud resource updating method and device applied to mobile equipment
CN104216749A (en) * 2014-09-10 2014-12-17 广州金山网络科技有限公司 Updating method and updating device for applications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576828A (en) * 2009-06-01 2009-11-11 中兴通讯股份有限公司 Software version upgrading method, device and server
CN102036224A (en) * 2009-09-29 2011-04-27 中国移动通信集团设计院有限公司 Method, system and upgrading control entity for informing mobile equipment of upgrading software
CN103414772A (en) * 2013-08-09 2013-11-27 百灵时代传媒集团有限公司 Cloud resource updating method and device applied to mobile equipment
CN104216749A (en) * 2014-09-10 2014-12-17 广州金山网络科技有限公司 Updating method and updating device for applications

Also Published As

Publication number Publication date
CN106571942A (en) 2017-04-19

Similar Documents

Publication Publication Date Title
CN106571942B (en) Configuration data updating method, client and server
CN102291430B (en) Method for processing allocation information of Internet of things, Internet of things platform and system
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
CN105847447B (en) Message pushing method and device
CN110276060B (en) Data processing method and device
CN108063725B (en) Message pushing method
CN106657582B (en) Method and device for starting personal identification function of application program and terminal
CN111262822B (en) File storage method, device, block link point and system
CN104156246A (en) Method and device for gray scale upgrade
CN109067883B (en) Information pushing method and device
CN115001967B (en) Data acquisition method and device, electronic equipment and storage medium
CN105072608B (en) A kind of method and device of administrative authentication token
CN110120928A (en) A kind of identity authentication method, device, server and computer-readable medium
CN113507471A (en) Method, device, router and storage medium for acquiring terminal system type
CN105516395A (en) Network address assignment method and device
CN112564942A (en) Distribution network control method and device of Internet of things equipment, equipment and storage medium
CN104424352A (en) System and method for providing agent service to user terminal
CN105491092B (en) Message pushing method and device
CN108683631A (en) A kind of method and system preventing scanning authority
CN114222086B (en) Method, system, medium and electronic device for scheduling audio and video code stream
CN110198533B (en) Method for remotely controlling BLE Bluetooth device and BLE Bluetooth device
CN111641554B (en) Message processing method and device and computer readable storage medium
CN108900603A (en) A kind of server discovery methods, devices and systems
CN109040798A (en) Live data drainage method, storage medium, electronic equipment and system
CN107483508B (en) Message filtering method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant