Parameter management method and device, equipment, storage medium and program product
By generating and sending parameter change information in the parameter space, we ensure that the subscriber only obtains the subscribed parameters, solving the problem of poor privacy in the parameter space, and achieving refined management of parameters and improving privacy.
Patent Information
- Application Number
- CN202411249768.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-12-13
AI Technical Summary
During the computer software development process, the privacy of the parameter space is poor because the subscriber will fully acquire all parameters in the parameter space when obtaining parameters, resulting in contact between redundant parameter acquisition and unsubscribed parameters.
By generating parameter change information of the target parameters and sending them to the subscriber with a subscription relationship, it updates the parameter copy, so that the target parameters in the parameter space can be refined and managed, ensuring that the subscriber only obtains the subscribed parameters.
Reduces redundant parameters obtained by subscribers, improves the privacy of the parameter space, and prevents subscribers from being exposed to other parameters that are not subscribed.
Smart Images

Figure CN119127278A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of parameter management technology, and in particular to parameter management methods, devices, equipment, storage media and program products. Background Art
[0002] In the development and operation of computer software, parameter variables play a vital role in the code. As an important part of the code, parameter variables have a significant impact on the behavior and function of the program.
[0003] The commonly used parameter management method in the industry is to manage parameters in different parameter sets (parameter spaces). However, when multiple subscribers use parameters in the same parameter space, since different subscribers subscribe to different parameters, when a subscriber obtains the parameters in the parameter space, it will obtain all the parameters in the parameter space, resulting in poor privacy of the parameter space. Summary of the invention
[0004] The main purpose of this application is to provide a parameter management method, apparatus, device, storage medium and program product, aiming to solve the technical problem that when a subscriber obtains parameters in a parameter space, it obtains all parameters in the parameter space, resulting in poor privacy of the parameter space.
[0005] To achieve the above objectives, the present application proposes a parameter management method, which includes:
[0006] If the target parameter stored in the parameter space changes, parameter change information corresponding to the target parameter is generated;
[0007] Determine a target subscriber that has a subscription relationship with the target parameter; wherein the target subscriber has a parameter copy of the target parameter stored locally;
[0008] The parameter change information is sent to the target subscriber, so that the target subscriber updates the parameter copy based on the parameter change information.
[0009] In one embodiment, if the target parameter stored in the parameter space changes, before generating the parameter change information corresponding to the target parameter, the method further includes:
[0010] Generate a snapshot of subscription items based on subscription relationships;
[0011] Publish subscription items based on subscription item snapshots.
[0012] In one embodiment, generating a subscription item snapshot based on the subscription relationship includes:
[0013] If a subscription relationship processing request is received, the subscription relationship is obtained based on the subscription relationship processing request in the development environment;
[0014] Check out the subscription relationship to the subscription project space to obtain a snapshot of the subscription project.
[0015] In one embodiment, the subscription relationship processing request includes a subscription relationship creation processing request and a subscription relationship cancellation processing request.
[0016] In one embodiment, the step of publishing the subscription item based on the subscription item snapshot includes:
[0017] Publishing the subscription project snapshot to the test environment to test the subscription project and obtain a first verification result; wherein the first verification result is verification passed or verification failed;
[0018] If the first verification result is verification failure, the subscription project snapshot is revoked from the subscription project space;
[0019] If the first verification result is that the verification is passed, the subscription project is published in the online environment based on the subscription project snapshot.
[0020] In one embodiment, the step of publishing a subscription item in an online environment based on the subscription item snapshot includes:
[0021] Publishing the subscription project snapshot to an online environment to test the subscription project and obtaining a second verification result; wherein the second verification result is verification passed or verification failed;
[0022] If the second verification result is verification failure, the subscription project snapshot is revoked from the subscription project space;
[0023] If the second verification result is passed, the subscription item is closed.
[0024] In addition, to achieve the above purpose, the present application also proposes a parameter management device, the parameter management device comprising:
[0025] A generation module, used for generating parameter change information corresponding to the target parameter if the target parameter stored in the parameter space changes;
[0026] A determination module, used to determine a target subscriber having a subscription relationship with the target parameter; wherein the target subscriber has a parameter copy of the target parameter stored locally;
[0027] The sending module is used to send parameter change information to the target subscriber, so that the target subscriber updates the parameter copy based on the parameter change information.
[0028] In addition, to achieve the above objectives, the present application also proposes a parameter management device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the parameter management method described above.
[0029] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the parameter management method described above are implemented.
[0030] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the parameter management method described above are implemented.
[0031] One or more technical solutions proposed in this application have at least the following technical effects:
[0032] In the present application, when the target parameter in the parameter space changes and the parameter change information corresponding to the target parameter is generated, the parameter change information is sent to the target subscriber who has a subscription relationship with the target parameter, so that the target subscriber updates the parameter copy based on the parameter change information. Compared with the related art, when the subscriber obtains the parameters in the parameter space, the subscriber will obtain the parameters in the parameter space in full. When the subscriber obtains the parameters from the parameter space, the subscriber can only obtain the subscribed parameters, that is, the target parameter obtained by the subscriber from the parameter space can only be the target parameter with a subscription relationship, and the target parameter cannot be obtained if there is no subscription relationship between the subscriber and the target parameter. Through the refined management of the target parameters in the parameter space, not only the redundant parameters obtained by the subscriber can be reduced, but also the subscriber can be prevented from being exposed to other unsubscribed parameters, thereby improving the privacy of the parameter space. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0035] Figure 1 A flow chart of the first embodiment of the parameter management method of the present application;
[0036] Figure 2 A flowchart of the process of subscribing to target parameters in the parameter space for the subscriber of this application;
[0037] Figure 3 A schematic diagram of multiple subscribers subscribing to target parameters in the same parameter space S for this application;
[0038] Figure 4 It is a schematic diagram of target parameter changes in the parameter space S of this application;
[0039] Figure 5 A flow chart of the second embodiment of the parameter management method of this application;
[0040] Figure 6 This is a schematic diagram of the overall process of subscription relationship management for this application;
[0041] Figure 7 A flowchart of creating a new subscription relationship for this application;
[0042] Figure 8 A flowchart of how to cancel a subscription relationship for this application;
[0043] Fig. 9 This is a schematic diagram of the module structure of the parameter management device according to an embodiment of the present application;
[0044] Fig.10 Schematic diagram of the device structure of the hardware operating environment involved in the parameter management method in the embodiment of the present application.
[0045] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0046] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0047] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0048] The main solution of the embodiment of the present application is: if the target parameter stored in the parameter space changes, parameter change information corresponding to the target parameter is generated; a target subscriber that has a subscription relationship with the target parameter is determined; wherein the target subscriber has a parameter copy of the target parameter stored locally; and the parameter change information is sent to the target subscriber so that the target subscriber updates the parameter copy based on the parameter change information.
[0049] In this embodiment, for ease of description, the following description is made with the parameter management device as the execution subject.
[0050] "Parameters" specifically refer to parameter variables in computer software, which are an important part of the code and play an important role in computers. The commonly used parameter management solution in the industry is to separate the parameter configuration from the subscriber, manage the parameter configuration in a unified manner, standardize the parameter configuration and realize dynamic configuration. The service process of the configuration center is generally: 1. The user updates the configuration information in the configuration center; 2. The subscriber receives the configuration update notification in time and obtains the configuration from the configuration center.
[0051] The commonly used parameter management method in the industry is to manage parameters by assigning them to different parameter sets (parameter spaces). However, when multiple subscribers use parameters in the same parameter space, since different subscribers subscribe to different parameters, when a subscriber obtains parameters in the parameter space, it will obtain all the parameters in the parameter space, resulting in poor privacy of the parameter space.
[0052] The present application provides a solution. When a target parameter in a parameter space changes and parameter change information corresponding to the target parameter is generated, the parameter change information is sent to a target subscriber that has a subscription relationship with the target parameter, so that the target subscriber updates a parameter copy based on the parameter change information. Compared with the related art, when a subscriber obtains parameters in the parameter space, the subscriber obtains all parameters in the parameter space. When a subscriber obtains parameters from the parameter space, the subscriber can only obtain the subscribed parameters, that is, the target parameter obtained by the subscriber from the parameter space can only be the target parameter with a subscription relationship, and the target parameter cannot be obtained if there is no subscription relationship between the subscriber and the target parameter. Through the refined management of the target parameters in the parameter space, not only can the redundant parameters obtained by the subscriber be reduced, but also the subscriber can be prevented from being exposed to other unsubscribed parameters, thereby improving the privacy of the parameter space.
[0053] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a parameter management device, etc. The following takes the parameter management device as an example to illustrate this embodiment and the following embodiments.
[0054] Based on this, the embodiment of the present application provides a parameter management method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the parameter management method of the present application.
[0055] In this embodiment, the parameter management method includes steps S10 to S30:
[0056] Step S10: If the target parameter stored in the parameter space is changed, parameter change information corresponding to the target parameter is generated.
[0057] In this embodiment, the target parameter may be a parameter stored in a parameter space, and the parameter may be a data variable with certain rules and control capabilities compiled according to system operation requirements and business processing regulations. The parameter space may be a storage space set up for the convenience of managing parameters.
[0058] Specifically, the user can modify, delete, add, etc. the target parameters stored in the parameter space by interacting with the virtual keyboard and / or buttons of the parameter management device. After modifying, deleting, adding, etc. the target parameters, the parameter management device can determine whether the target parameters have changed by comparing the current value of the target parameters with the historical value. When the target parameters have changed, parameter change information is generated.
[0059] Step S20: determining a target subscriber having a subscription relationship with the target parameter.
[0060] The local storage of the target subscriber contains a parameter copy of the target parameters.
[0061] Step S30: Send parameter change information to the target subscriber, so that the target subscriber updates the parameter copy based on the parameter change information.
[0062] In this embodiment, the subscription relationship may be a connection established between the subscriber and the target parameter, and only the subscribed target parameter can be obtained and used by the subscriber. The subscriber may be an independently operated system capable of processing business rules.
[0063] It should be noted that when the same subscriber subscribes to the target parameters in the parameter space, he can choose full subscription or partial subscription. Subscribing to all target parameters in the parameter space is a full subscription. When the subscriber subscribes to all target parameters in the parameter space, when adding new target parameters, modifying target parameters or deleting target parameters in the parameter space, corresponding parameter change information will be generated and sent to the subscribers who have subscribed to all target parameters in the parameter space. Subscribing to some target parameters in the parameter space is a partial subscription. When the subscriber only subscribes to some target parameters in the parameter space, the subscriber can receive parameter change information for target parameters with which there is a subscription relationship, but cannot receive parameter change information for target parameters without a subscription relationship. For example, refer to Figure 2 As shown, Figure 2The flowchart of the target parameters in the parameter space subscribed by the subscriber of this application is shown in Figure 1. The parameter space S stores n target parameters. When the subscriber subscribes to the target parameters in the parameter space S, it determines whether the subscription type of the subscriber is a full subscription. When the subscription type of the subscriber is a full subscription, all target parameters in the parameter space S are subscribed, and the subscription is terminated after all target parameters in the parameter space S are subscribed. When the subscription type of the subscriber is not a full subscription but a partial subscription, the target parameter x that the subscriber needs to subscribe to is determined, and after establishing the subscription relationship between the subscriber and the target parameter x, it is determined whether the subscriber needs to continue to subscribe to other target parameters in the parameter space S. If the subscriber needs to continue to subscribe to other target parameters in the parameter space S, the parameters that need to be subscribed are determined; if the subscriber does not need to continue to subscribe to other target parameters in the parameter space S, the subscription is terminated. Accordingly, when the subscriber cancels the subscription relationship with the target parameter, the subscription cancellation model can be determined as a full subscription cancellation or a partial subscription cancellation according to the subscription type. When a subscriber cancels the subscription relationship with all target parameters in the parameter space, it is a full subscription cancellation. When any target element in the parameter space changes, parameter change information will not be sent to the subscriber. When a subscriber cancels the subscription relationship with some target parameters in the parameter space, it is a partial subscription cancellation. When the target parameters with which the subscription relationship has been canceled change, parameter change information will not be sent to the subscriber.
[0064] It can be understood that a target parameter in the same parameter space S can establish a subscription relationship with multiple subscribers, and a subscriber can establish a subscription relationship with multiple target parameters in the same parameter space S. Therefore, in order to better maintain the subscription relationship between each target parameter and the subscriber, so that the target subscriber with a subscription relationship with each target parameter can be quickly determined in the future, a mapping relationship table between the target parameter and the target subscriber can be stored locally or in the cloud of the parameter management device, and the mapping relationship table may include the subscription relationship between the target parameter and the target subscriber.
[0065] Specifically, after detecting that a target parameter has changed and generating parameter change information corresponding to the target parameter, the target subscriber with a subscription relationship with the target parameter can be determined according to the mapping relationship table, and the parameter change information can be sent to the target subscriber. After receiving the parameter change information, the target subscriber can update the parameter copy stored locally according to the parameter change information.
[0066] To facilitate a better understanding of this embodiment, a specific example is provided below.
[0067] Specifically, refer to Figure 3 As shown, Figure 3Schematic diagram of subscribing to target parameters in the same parameter space S for multiple subscribers. Assume that parameter space S stores parameters 1, 2, ..., 12, a total of 12 parameters, subscriber A has a subscription relationship with parameters 1 and 2, subscriber B has a subscription relationship with parameters 1 and 5, subscriber C has a subscription relationship with parameters 10, 11, and 12, and subscriber D has a subscription relationship with all target parameters in parameter space S. Copies of subscribed target parameters are stored in the local spaces of subscribers A, B, C, and D, and used as running parameters, and the storage spaces of each application space are isolated from each other and do not interfere with each other. When the parameters in the parameter space change, the parameter management device will send a change signal to subscribers A, B, C, and D.
[0068] Reference Figure 4 As shown, Figure 4 Schematic diagram of target parameter change in parameter space S. After the value of parameter 1 in parameter space S is changed to 1', subscribers A, B, C and D will all receive the change signal of parameter space S, but the target subscribers with subscription relationship to parameter 1 are subscribers A, B and D. At this time, parameter change information of parameter 1 is sent to subscribers A, B and D. After receiving parameter change information of parameter 1, subscribers A, B and D update the copy of parameter 1 to parameter 1'. When parameter 12 in parameter space S is deleted, subscribers A, B, C and D will all receive the change signal of parameter space S, but the target subscribers with subscription relationship to parameter 12 are subscribers C and D. At this time, parameter change information of parameter 12 is sent to subscribers C and D. After receiving parameter change information of parameter 12, subscribers C and D delete the copy of parameter 12 stored locally. When parameter 13 is added to parameter space S, subscribers A, B, C, and D will all receive the change signal of parameter space S, but only subscriber D is fully subscribed to the target parameter in parameter space S. At this time, parameter change information of parameter 13 will be sent to subscriber D. After receiving the parameter change information of parameter 13, subscriber D will add a copy of parameter 13 locally.
[0069] In this embodiment, when the target parameter in the parameter space changes and parameter change information corresponding to the target parameter is generated, the parameter change information is sent to the target subscriber that has a subscription relationship with the target parameter, so that the target subscriber updates the parameter copy based on the parameter change information. Compared with the related art, when the subscriber obtains the parameters in the parameter space, the subscriber will obtain all the parameters in the parameter space. When the subscriber obtains the parameters from the parameter space, the subscriber can only obtain the subscribed parameters, that is, the target parameter obtained by the subscriber from the parameter space can only be the target parameter with a subscription relationship, and the target parameter cannot be obtained if there is no subscription relationship between the subscriber and the target parameter. Through the refined management of the target parameters in the parameter space, not only can the redundant parameters obtained by the subscriber be reduced, but also the subscriber can be prevented from being exposed to other unsubscribed parameters, thereby improving the privacy of the parameter space.
[0070] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 5 , before step S10, the parameter control method further includes steps S8-S9:
[0071] Step S8: Generate a subscription item snapshot based on the subscription relationship.
[0072] It should be noted that, in order to ensure that the subscription relationship is not tampered with, further, as an optional implementation, step S8 specifically includes:
[0073] Step S81: If a subscription relationship processing request is received, the subscription relationship is obtained based on the subscription relationship processing request in the development environment.
[0074] Step S82: Check out the subscription relationship to the subscription item space to obtain a subscription item snapshot.
[0075] In this embodiment, the subscription item snapshot may be a file containing the basic information of the subscription item and all the parameter subscription relationship snapshot versions existing in the subscription item space, and the subscription item space may be a storage space for storing the basic information of the subscription item and the subscription relationship snapshot version set. The subscription relationship processing request includes a subscription relationship creation processing request and a subscription relationship cancellation processing request.
[0076] Specifically, after the subscriber sends a subscription relationship processing request to the parameter management device, the parameter management device can process the subscription relationship processing request in the development environment to obtain the subscription relationship. If the subscription relationship processing request is a subscription relationship creation processing request sent by the subscriber to establish a subscription relationship with parameter 1, the parameter management device establishes a subscription relationship between the subscriber and parameter 1 in the development environment based on the subscription relationship creation processing request to obtain the subscription relationship. Alternatively, the subscriber already has a subscription relationship with parameter 1, but the subscriber needs to cancel the subscription relationship with parameter 1 at this time, the subscriber can send a subscription relationship cancellation processing request to cancel the subscription relationship with parameter 1. After receiving the subscription relationship cancellation processing request, the parameter management device cancels the subscription relationship between the subscriber and parameter 1 in the development environment to obtain the subscription relationship. After processing the subscription relationship processing request in the development environment and obtaining the subscription relationship, the subscription relationship is checked out to the subscription project space, and a subscription project snapshot is generated in the project space.
[0077] In this embodiment, after the subscription relationship processing request is processed in the development environment to obtain the subscription relationship, the subscription relationship is checked out to the subscription project space, and a subscription project snapshot is generated in the subscription project space. Since the subscription project snapshot can ensure that an accurate project status is captured at a specific point in time, including all related dependencies and configurations, it can ensure that the snapshot version used in the test environment and the online environment is consistent with the version in the development environment or the test environment, thereby avoiding problems caused by version inconsistency.
[0078] Step S9: Publish the subscribed item based on the subscribed item snapshot.
[0079] When publishing the subscription item based on the subscription item snapshot, in order to ensure the stability and reliability of the subscription relationship in the online environment, further, as an optional implementation, step S9 specifically includes:
[0080] Step S91, publishing the subscription item snapshot to the test environment to perform subscription item testing and obtain a first verification result.
[0081] The first verification result is verification passed or verification failed.
[0082] Step S92: If the first verification result is verification failure, the subscription item snapshot is revoked from the subscription item space.
[0083] Step S93: If the first verification result is that the verification is passed, the subscription item is published in the online environment based on the subscription item snapshot.
[0084] Specifically, refer to Figure 6 As shown, Figure 6The figure is a schematic diagram of the overall process of subscription relationship management. After receiving the subscription relationship processing request sent by the subscriber, the parameter management device can establish a subscription relationship between the subscriber and the target parameter stored in the parameter space based on the subscription relationship processing request in the development environment to obtain the subscription relationship. After obtaining the subscription relationship, a new subscription project and a subscription project space can be created, and the subscription relationship can be checked out to the subscription project space to obtain a subscription project snapshot.
[0085] After obtaining the subscription project snapshot, the target subscription snapshot can be published to the test environment, and the subscription project test can be performed in the test environment, that is, the subscription relationship can be tested in the test environment to see if it is effective, and a first verification result can be obtained. When the first verification result is a failure, it is determined that the test result of the subscription relationship does not meet the expected result. At this time, the target subscription snapshot is revoked from the subscription project space. When the first verification result is a pass, it is determined that the test result of the subscription relationship meets the pre-fetch result. At this time, the subscription project snapshot is published in the online environment for subscription project testing, that is, the subscription project snapshot is published in the online environment for subscription project testing, and a second verification result is obtained, wherein the second verification result is a verification pass or a verification fail. If the second verification result is a verification fail, the subscription project snapshot is revoked from the subscription project space. If the second verification result is a verification pass, the subscription project is closed.
[0086] To facilitate a better understanding of this embodiment, a specific example is provided below.
[0087] Specifically, refer to Figure 7 As shown, Figure 7Schematic diagram of the process of creating a new subscription relationship. When the user needs to establish a subscription relationship L, that is, to establish a subscription relationship L between the subscriber A and parameter 1 in the parameter space S, the subscriber A can send a subscription relationship creation processing request to the parameter management device. After receiving the subscription relationship creation processing request, the parameter management device can establish a subscription relationship between the subscriber A and parameter 1 in the development environment, and check out the subscription relationship to the subscription project space, and generate a subscription project snapshot in the project space. After obtaining the subscription project snapshot, the subscription project snapshot can be published to the test environment for subscription project testing to test whether the subscriber can subscribe to parameter 1, that is, to test whether the subscription relationship between the subscriber A and parameter 1 is effective in the test environment. When the first verification result is that the verification fails, it is determined that the subscription relationship between the subscriber A and parameter 1 in the test environment is not effective, that is, it does not meet expectations, and the subscription relationship L is canceled at this time. When the first verification result is that the verification passes, it is determined that the subscription relationship between the subscriber A and parameter 1 in the test environment is effective, that is, it meets expectations, and the subscription project snapshot is published to the online environment for testing to obtain a second verification result, that is, to verify whether the subscription relationship between the subscriber A and parameter 1 is effective in the online environment. When the second verification result is verification passed, it is determined that the subscription relationship between subscriber A and parameter 1 in the online environment has taken effect, that is, it meets expectations. At this time, return to the development environment, close the subscription project, that is, all subscription relationships in the subscription project are moved out of the subscription project space, and the subscription project space is deleted; when the second verification result is verification failed, it is determined that the subscription relationship between subscriber A and parameter 1 in the online environment is not effective, that is, it does not meet expectations. At this time, take the subscription relationship L between subscriber A and parameter 1.
[0088] Reference Figure 8 As shown, Figure 8The flowchart of canceling a subscription relationship is shown in FIG. 1 . When subscriber A needs to cancel the subscription relationship L with parameter 1, subscriber A can send a subscription relationship cancellation processing request to the parameter management device. When the parameter management device receives the subscription relationship cancellation processing request, the parameter management device first revokes the subscription item snapshot of the subscription relationship between subscriber A and parameter 1 from the subscription item space, that is, cancels the check-out. After revoking the target subscription snapshot from the subscription item space, the parameter management device can cancel the subscription relationship between subscriber A and parameter 1 in the development environment, and after canceling the subscription relationship between subscriber A and parameter 1, check it out to the subscription item space to obtain the subscription item snapshot. After obtaining the subscription item snapshot, the subscription item snapshot can be published to the test environment for testing to test whether subscriber A can continue to subscribe to parameter 1 to obtain the subscription relationship verification result. When subscriber A cannot continue to subscribe to parameter 1, it is determined that the subscription relationship between subscriber A and parameter 1 has been cancelled, which is in line with expectations. At this time, the subscription item snapshot is published to the online environment for testing to test whether subscriber A can continue to subscribe to parameter A to obtain the subscription relationship verification result. When subscriber A cannot continue to subscribe to parameter 1, it is determined that the subscription relationship between subscriber A and parameter 1 has been canceled, which is in line with expectations. At this time, the subscription project in the development environment is closed.
[0089] In this embodiment, when a subscription relationship changes, such as establishing a new subscription relationship or canceling an existing subscription relationship, the subscription relationship is first changed in the development environment, and a subscription item snapshot is generated based on the changed subscription relationship. The subscription item snapshot is published to the online environment only after it has been verified in the test environment. In this process, the subscription item snapshot information will not change, ensuring the consistency of development, test, and online environment parameters, and effectively avoiding problems such as missed or mis-sent items.
[0090] In addition, the release of subscription project snapshots follows the order of development environment -> test environment -> online environment -> development environment. Publishing subscription project snapshots to the online environment in sequence can not only ensure that the subscription relationship has been fully tested at each stage and guarantee the stability and reliability of the subscription relationship in the online environment, but also reduce the possibility of rollback in the production environment through gradual release and testing. That is, if the stability of the subscription relationship has been verified in the test environment, the probability of problems occurring when it is released to the production environment will be reduced.
[0091] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the parameter management method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0092] This application also provides a parameter management device, please refer to Fig. 9 , the parameter management device comprises:
[0093] A generation module, used for generating parameter change information corresponding to the target parameter if the target parameter stored in the parameter space changes;
[0094] A determination module, used to determine a target subscriber having a subscription relationship with the target parameter; wherein the target subscriber has a parameter copy of the target parameter stored locally;
[0095] The sending module is used to send parameter change information to the target subscriber, so that the target subscriber updates the parameter copy based on the parameter change information.
[0096] The parameter management device provided by the present application adopts the parameter management method in the above embodiment, which can solve the technical problem that the subscriber obtains all the parameters in the parameter space when obtaining the parameters in the parameter space, resulting in poor privacy of the parameter space. Compared with the prior art, the beneficial effects of the parameter management device provided by the present application are the same as the beneficial effects of the parameter management method provided by the above embodiment, and other technical features in the parameter management device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0097] The present application provides a parameter management device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the parameter management method in the above-mentioned embodiment one.
[0098] Reference below Fig.10 , which shows a schematic diagram of the structure of a parameter management device suitable for implementing the embodiment of the present application. The parameter management device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 The parameter management device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0099] like Fig.10As shown, the parameter management device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the parameter management device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the parameter management device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a parameter management device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0100] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0101] The parameter management device provided by the present application adopts the parameter management method in the above embodiment, which can solve the technical problem that the subscriber obtains all the parameters in the parameter space when obtaining the parameters in the parameter space, resulting in poor privacy of the parameter space. Compared with the prior art, the beneficial effects of the parameter management device provided by the present application are the same as the beneficial effects of the parameter management method provided by the above embodiment, and the other technical features in the parameter management device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0102] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0103] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0104] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the parameter management method in the above-mentioned embodiment.
[0105] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0106] The computer-readable storage medium may be included in the parameter management device; or may exist independently without being assembled into the parameter management device.
[0107] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the parameter management device, the parameter management device: generates parameter change information corresponding to the target parameter if the target parameter stored in the parameter space changes; determines the target subscriber that has a subscription relationship with the target parameter; wherein the target subscriber has a parameter copy of the target parameter stored locally; and sends the parameter change information to the target subscriber so that the target subscriber updates the parameter copy based on the parameter change information.
[0108] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0109] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0110] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0111] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned parameter management method, and can solve the technical problem that the subscriber obtains all the parameters in the parameter space when obtaining the parameters in the parameter space, resulting in poor privacy of the parameter space. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the parameter management method provided by the above-mentioned embodiment, and will not be repeated here.
[0112] The present application also provides a computer program product, including a computer program, which implements the steps of the parameter management method as described above when executed by a processor.
[0113] The computer program product provided by this application can solve the technical problem that when a subscriber obtains parameters in a parameter space, it will obtain all parameters in the parameter space, resulting in poor privacy of the parameter space. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the parameter management method provided by the above embodiment, which will not be repeated here.
[0114] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A parameter management method, characterized in that: The parameter management method comprises: If the target parameter stored in the parameter space changes, parameter change information corresponding to the target parameter is generated; Determine a target subscriber having a subscription relationship with the target parameter; wherein the target subscriber has a parameter copy of the target parameter stored locally; The parameter change information is sent to the target subscriber, so that the target subscriber updates the parameter copy based on the parameter change information.
2. The parameter management method according to claim 1, characterized in that: If the target parameter stored in the parameter space changes, before generating the parameter change information corresponding to the target parameter, the method further includes: Based on the subscription relationship, generate a subscription item snapshot; Based on the subscription item snapshot, the subscription item is published.
3. The parameter management method according to claim 2, characterized in that: The generating a subscription item snapshot based on the subscription relationship includes: If a subscription relationship processing request is received, obtaining a subscription relationship based on the subscription relationship processing request in a development environment; The subscription relationship is checked out to the subscription project space to obtain a subscription project snapshot.
4. The parameter management method according to claim 3, characterized in that: The subscription relationship processing request includes a subscription relationship creation processing request and a subscription relationship cancellation processing request.
5. The parameter management method according to claim 2, characterized in that: The step of publishing the subscription item based on the subscription item snapshot includes: Publishing the subscription item snapshot to a test environment to test the subscription item and obtaining a first verification result; wherein the first verification result is verification passed or verification failed; If the first verification result is verification failure, revoking the subscription item snapshot from the subscription item space; If the first verification result is that the verification is passed, the subscription item is published in the online environment based on the subscription item snapshot.
6. The parameter management method according to claim 4, characterized in that: The step of publishing the subscription item in the online environment based on the subscription item snapshot includes: Publishing the subscription item snapshot to an online environment to test the subscription item and obtaining a second verification result; wherein the second verification result is verification passed or verification failed; If the second verification result is verification failure, revoking the subscription item snapshot from the subscription item space; If the second verification result is that the verification is passed, the subscription item is closed.
7. A parameter management device, characterized in that: The parameter management device comprises: A generating module, configured to generate parameter change information corresponding to the target parameter if the target parameter stored in the parameter space changes; A determination module, used to determine a target subscriber having a subscription relationship with the target parameter; wherein the target subscriber has a parameter copy of the target parameter stored locally; The sending module is used to send the parameter change information to the target subscriber, so that the target subscriber updates the parameter copy based on the parameter change information.
8. A parameter management device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the parameter management method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the parameter management method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the parameter management method according to any one of claims 1 to 6 are implemented.
