CN107920112A - Support configuration file method for pushing, central server and the storage medium of grayscale mode - Google Patents
Support configuration file method for pushing, central server and the storage medium of grayscale mode Download PDFInfo
- Publication number
- CN107920112A CN107920112A CN201711060242.XA CN201711060242A CN107920112A CN 107920112 A CN107920112 A CN 107920112A CN 201711060242 A CN201711060242 A CN 201711060242A CN 107920112 A CN107920112 A CN 107920112A
- Authority
- CN
- China
- Prior art keywords
- configuration file
- gray scale
- client
- central server
- flag information
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of application program method for pushing, central server and storage medium for supporting grayscale mode.The described method includes:After the request of the acquisition configuration file with first flag information of client transmission is received, the first flag information of each client of the first flag information with being recorded in the gray scale inventory to prestore during this is asked is matched;If having first flag information and the first flag information match in the request in the gray scale inventory, corresponding first configuration file of the new edition application prestored is obtained, and first configuration file is issued to the client gray scale;If corresponding second configuration file of the old edition application prestored is obtained, and be transmitted directly to the client without the first flag information match in first flag information and the request in the gray scale inventory.The disturbance degree of new edition application when something goes wrong can be reduced, workload is few and easy maintenance.
Description
Technical field
The present invention relates to application development field, more particularly to a kind of configuration file push side for supporting grayscale mode
Method, central server and storage medium.
Background technology
In traditional process of application development, usually application program is packed delivery together with its configuration file, is caused
, it is necessary to by client under each environment (such as development environment, test environment, running environment etc.) before application program has new version issue
The corresponding configuration file of old edition application of end operation is changed one by one, heavy workload not easy care and easily error, and
Once error, then influence the stability of overall operation system.
The content of the invention
In view of this, the present invention proposes a kind of configuration file method for pushing, server, center service for supporting grayscale mode
Device and storage medium, support the configuration file of grayscale mode to push, and can reduce the shadow of new edition application when something goes wrong
Loudness, workload is few and easy maintenance.
First, to achieve the above object, the present invention proposes a kind of configuration file method for pushing for supporting grayscale mode, it is special
Sign is that described method includes following steps:
S1, central server receive client transmission with first flag information acquisition configuration file request
Afterwards, it is the first flag information in asking is each with being recorded in the gray scale inventory that prestores in the database of the central server
The first flag information of a client is matched, and the first flag information is address class identification information;
If having first flag information and the first flag information match in the request in S2, the gray scale inventory, obtain
Corresponding first configuration file of the new edition application prestored in the central server is taken, and using gray scale issue
Mode issues first configuration file to the client;
If obtained in S3, the gray scale inventory without the first flag information match in first flag information and the request
Corresponding second configuration file of the old edition application prestored in the central server is taken, and is transmitted directly to the visitor
Family end.
Further, the method further includes following steps:
After the request that central server receives the acquisition configuration file that the client with second identifier information is sent,
Second identifier information and the second identifier information progress of each client recorded in the gray scale inventory during this is asked
Match somebody with somebody, the second identifier information is that non-address category knows information;
If having second identifier information and the second identifier information match in the request in the gray scale inventory, institute is obtained
The first configuration file is stated, and first configuration file is issued to the client by the way of gray scale issue;
If institute is obtained without the second identifier information match in second identifier information and the request in the gray scale inventory
The second configuration file is stated, and is transmitted directly to the client.
Further, before the step S1, the method further includes following steps:
First configuration file and second configuration file are stored in the data of the central server in advance
In storehouse;
Receiving being sent out by the way of gray scale issue for setting interface selection that user provided based on the central server
After the first flag information of the client of cloth new edition application, the first flag information of selected each client is write
Enter the gray scale inventory, and/or, receiving the use gray scale for the setting interface selection that user is provided based on the central server
After the mode of issue issues the second identifier information of the client of new edition application, by the of selected each client
Two identification informations write the gray scale inventory.
Further, the first flag information includes IP address or MAC Address, and the second identifier information is environment
Variable.
In addition, to achieve the above object, the present invention also provides a kind of central server, the central server includes storage
Device and processor, the configuration file push products for supporting grayscale mode, the support grayscale mode are stored with the memory
Configuration file push products when being performed by the processor, realize following steps:
A1, receive client transmission with first flag information acquisition configuration file request after, by this please
The first flag information asked and each client recorded in the gray scale inventory to prestore in the database of the central server
First flag information matched, the first flag information is address class identification information;
If having first flag information and the first flag information match in the request in A2, the gray scale inventory, obtain
Corresponding first configuration file of the new edition application prestored in the central server is taken, and using gray scale issue
Mode issues first configuration file to the client;
If obtained in A3, the gray scale inventory without the first flag information match in first flag information and the request
Corresponding second configuration file of the old edition application prestored in the central server is taken, and is transmitted directly to the visitor
Family end.
Further, when the configuration file push products of the support grayscale mode is performed by the processor, also realize
Following steps:
After the request for the acquisition configuration file that the client with second identifier information is sent is received, during this is asked
The second identifier information of each client of the second identifier information with being recorded in the gray scale inventory matched, described second
Identification information is non-address class identification information;
If having second identifier information and the second identifier information match in the request in the gray scale inventory, institute is obtained
The first configuration file is stated, and first configuration file is issued to the client by the way of gray scale issue;
If institute is obtained without the second identifier information match in second identifier information and the request in the gray scale inventory
The second configuration file is stated, and is transmitted directly to the client.
Further, it is described to support the configuration file push products of grayscale mode is performed by the processor to realize the step
Before rapid S1, following steps are also realized:
First configuration file and second configuration file are stored in the data of the central server in advance
In storehouse;
Receiving being sent out by the way of gray scale issue for setting interface selection that user provided based on the central server
After the first flag information of the client of cloth new edition application, the first flag information of selected each client is write
Enter the gray scale inventory, and/or, receiving the use gray scale for the setting interface selection that user is provided based on the central server
After the mode of issue issues the second identifier information of the client of new edition application, by the of selected each client
Two identification informations write the gray scale inventory.
Further, the first flag information includes IP address or MAC Address, and the second identifier information is environment
Variable.
Further, also it is stored with the memory and sets interface to generate program, the setting interface generates program quilt
The processor is performed to realize following steps:
Receive using gray scale issue by the way of issue the instruction of new edition application after, generate and show set boundary
Face, the first flag information for setting interface to include pre-set each client, each after the first flag information
Face, which corresponds to, includes a first choice item for issuing new edition application by the way of gray scale issue for user's selection, and/
Or, it is described set interface to include the second identifier information of pre-set each client, it is right behind each second identifier information
It should include second options for user's selection using gray scale published method issue new edition application.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer-readable recording medium
Storage medium is stored with the configuration file push products for supporting grayscale mode, the configuration file push journey for supporting grayscale mode
Sequence can be performed by least one processor, so that at least one processor performs the configuration text of above-mentioned support grayscale mode
The step of part method for pushing.
Compared to the prior art, the configuration file method for pushing of support grayscale mode proposed by the invention, center service
Device and computer-readable recording medium, first, the request of the acquisition configuration file of client transmission are received in central server
Afterwards, it is the first flag information in asking is each with being recorded in the gray scale inventory that prestores in the database of the central server
The first flag information of a client is matched;If there are first flag information and first in the request in the gray scale inventory
Identification information matches, then obtains the corresponding first configuration text of the new edition application prestored in the central server
Part, and by the way of gray scale issue first configuration file is issued to the client;If without first in the gray scale inventory
Identification information and the first flag information match in the request, then obtain the legacy version prestored in the central server
Second configuration file of application program, and it is transmitted directly to the client.New edition application can be reduced when something goes wrong
Disturbance degree, workload is few and easy maintenance.
Brief description of the drawings
Fig. 1 is each optional application environment schematic diagram of embodiment one of the present invention;
Fig. 2 is the schematic diagram of one optional hardware structure of server in Fig. 1;
Fig. 3 is that the program module for the configuration file push products for supporting grayscale mode in Fig. 2 in one embodiment of server is shown
It is intended to;
Fig. 4 is the implementation process diagram for the configuration file push products preferred embodiment that the present invention supports grayscale mode.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before creative work is made
All other embodiments obtained are put, belong to the scope of protection of the invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is only used for description purpose, and cannot
It is interpreted as indicating or implies its relative importance or imply the quantity of the technical characteristic indicated by indicating.Thus, define " the
One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In addition, the skill between each embodiment
Art scheme can be combined with each other, but must can be implemented as basis with those of ordinary skill in the art, when technical solution
It will be understood that the combination of this technical solution is not present with reference to there is conflicting or can not realize when, also not in application claims
Protection domain within.
As shown in fig.1, it is each optional application environment schematic diagram of embodiment one of the present invention.As shown in Figure 1, it is of the invention
The application environment of each embodiment includes, central server 10, client 20 and network 30.Wherein, central server 10 includes
At least one server-side and database 12 (shown in Fig. 2), in the present embodiment, server-side is API service end, database 12
In be stored with corresponding first configuration file of gray scale inventory, new edition application and old edition application corresponding
Two configuration files, and record has the first flag letter of each client 20 of gray scale operation new edition application on gray scale inventory
Breath, and/or, record have gray scale operation new edition application 20 corresponding environment of each client (such as development environment, survey
Test ring border, running environment etc.) second identifier information, it is necessary to explanation, first flag information are address class identification information, example
Such as IP address or MAC Address, second identifier information is non-address class identification information, such as environmental variance etc..
It should be noted that in the present embodiment, when application program has new version issue, in order to ensure overall fortune
The stabilization of row system, and the disturbance degree of new edition application when something goes wrong is reduced, reduce workload and easily safeguard,
The client of preset ratio (such as 30%) issues new edition application by the way of gray scale issue, temporary in other clients
When directly issue the application program of legacy version, will issue new edition by the way of gray scale issue in advance therefore, it is necessary to operating personnel
The first flag information of the client of application, alternatively, new edition application will be issued by the way of gray scale issue
Client second identifier information write into Databasce 12 gray scale inventory in, in an embodiment of the present embodiment, clothes
Business device 11 includes memory 111 and processor 112 (as shown in Figure 2), is stored with memory 111 and sets interface to generate program,
Setting interface generation program is performed by processor 112 to realize following steps:Issued receiving by the way of gray scale issue
After the instruction of new edition application, generate and show setting interface, the setting interface includes pre-set each client
The first flag information at end, each being corresponded to behind the first flag information includes one uses what gray scale was issued for user's selection
Mode issues the first choice item of new edition application, and/or, the setting interface includes pre-set each client
Second identifier information, it is corresponding behind each second identifier information to include one for user's selection using the issue of gray scale published method
Second options of new edition application.
Further, it is to be understood that receiving the use for the setting interface selection that user is provided based on server 11
After the first flag information for the client that the mode of gray scale issue issues new edition application, by selected each client
First flag information write the gray scale inventory, and/or, in setting circle for receiving user and being provided based on the central server
Face selection using gray scale issue by the way of issue new edition application client second identifier information after, will selected by
The second identifier information of each client write the gray scale inventory.
Network 30 can be intranet (Intranet), internet (Internet), global system for mobile communications
(Global System of Mobile communication, GSM), wideband code division multiple access (Wideband Code
Division Multiple Access, WCDMA), 4G networks, 5G networks, bluetooth (Bluetooth), Wi-Fi etc. is wireless or has
Gauze network.
Communicated and connected by network 30 between central server 10 and client 20.The API service end of central server 10
After the request of the acquisition configuration file with first flag information of the transmission of client 20 is received, which is sent
Request in first flag information and date storehouse 12 in the first flag information that records in the gray scale inventory that stores matched,
If having first flag information and the first flag information match in the request of the client 20 transmission in gray scale inventory, use
The mode of gray scale issue is to corresponding first configuration file of the client 20 issue new edition application, if nothing in gray scale inventory
First flag information match in the request that first flag information is sent with the client 20, then directly send out to the client 20
Send old edition application corresponding second configuration file.
Alternatively, the API service end of central server 10 is receiving what the client 20 with second identifier information was sent
Obtain configuration file request after, recorded in the gray scale inventory that will be stored in the second identifier information and date storehouse 12 second mark
Know information to be matched, if having second identifier information and second identifier information in the request of the client 20 transmission in gray scale inventory
Match, then issue corresponding first configuration file of new edition application to the client 20 by the way of gray scale issue,
If the second identifier information match in the request sent in gray scale inventory without second identifier information and the client 20, directly
Corresponding second configuration file of old edition application is sent to the client 20.
As shown in fig.2, it is the schematic diagram of 10 1 optional hardware structure of central server in Fig. 1.In the present embodiment, in
Central server 10 may include, but be not limited only to, and memory 111, the processor of connection can be in communication with each other by communication bus 110
112 and network interface 113.It is pointed out that Fig. 2 illustrate only the central server 10 with component 110-113, still
It should be understood that, it is not required that implement all components shown, the more or less component of the implementation that can be substituted.
Wherein, memory 111 includes at least a type of readable storage medium storing program for executing, and readable storage medium storing program for executing includes flash memory, hard
Disk, multimedia card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access
Memory (SRAM), read-only storage (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only storage
Device (PROM), magnetic storage, disk, CD etc..In certain embodiments, memory 111 can be central server 10
Internal storage unit, such as the hard disk or memory of central server 10.In further embodiments, memory 111 can also be
The External memory equipment of central server 10, such as the plug-in type hard disk being equipped with central server, intelligent memory card (Smart
Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, store
Device 111 can also both include the internal storage unit of central server 10 or including its External memory equipment.In the present embodiment, deposit
Reservoir 111 is installed on the operating system and types of applications software of central server 10 commonly used in storage, such as supports gray scale mould
Configuration file push products of formula etc..Export or will export in addition, memory 111 can be also used for temporarily storing
Various types of data.
Processor 112 can be in certain embodiments central processing unit (Central Processing Unit, CPU),
Controller, microcontroller, microprocessor or other data processing chips.Processor 112 is commonly used in control centre's server 10
Overall operation.In the present embodiment, processor 112 is used in run memory 111 program code stored or processing data,
Such as operation is stored in configuration file push products of support grayscale mode in memory 111 etc..
Network interface 13 may include radio network interface or wired network interface, and network interface 13 is commonly used in genuinely convinced in
It is engaged in establishing between device 10 and other electronic equipments and communicates to connect.
Communication bus 110 is used for realization the communication connection between these components.
Fig. 2 illustrate only genuinely convinced in the configuration file push products with component 110-113 and support grayscale mode
It is engaged in device 10, it should be understood that be not required for implementing all components shown, the implementation that can be substituted is more or less
Component.
Alternatively, central server 10 can also include user interface, and user interface can include display
(Display), input unit such as keyboard (Keyboard), optional user interface can also include standard wireline interface,
Wave point.Alternatively, in certain embodiments, display can be that light-emitting diode display, liquid crystal display, touch control type LCD are shown
Show that device and OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touch device etc..Wherein, display
Referred to as display screen or display unit that can also be suitably, for being shown in user's keyword extracting device based on social networks
The information of processing and for showing visual user interface.
In one embodiment, the configuration file of the support grayscale mode stored in the memory 111 of central server 10 pushes away
Following steps are realized when sending program to be performed by processor 112:
A, the acquisition configuration file with first flag information of the transmission of client 20 is received in central server 10
After request, in the gray scale inventory prestored in the first flag information and date storehouse 12 in the request which is sent
The first flag information of each client of record is matched;
If B, having first flag information and the first flag information match in the request in gray scale inventory, data are obtained
Corresponding first configuration file of new edition application prestored in storehouse 12, and to the client by the way of gray scale issue
First configuration file of the issue of end 20;
If C, the first flag information phase in the request sent in gray scale inventory without first flag information with the client 20
Matching, then obtain corresponding second configuration file of old edition application prestored in database 12, and is transmitted directly to
Client 20.
It should be noted that when application program has new version to be released, by predetermined preset ratio
Client gray scale issues the application program of new version, the application program of legacy version is still run in other clients, in this way, can be real
Problem is found and adjusted in time when present initial gray, ensures the stabilization of overall operation system, and reduce new version
The disturbance degree of application program when something goes wrong.It is understood that to realize the client ash in predetermined preset ratio
Degree issue new edition application, then need to store matching somebody with somebody for old edition application in the database 12 of central server 10 in advance
File and the configuration file of new edition application are put, and is set receiving user based on what the central server provided
Put interface selection using gray scale issue by the way of issue new edition application client first flag information after, by institute
The first flag information of each client of selection write the gray scale inventory and/or, receive user be based on it is described in it is genuinely convinced
Second mark of the client that new edition application is issued by the way of gray scale issue for the setting interface selection that business device provides
After knowing information, the second identifier information of selected each client is write into the gray scale inventory.
In this way, receive the acquisition configuration file with first flag information of the transmission of client 20 in central server 10
Request after, by the first flag information (such as IP address or MAC Address) and data in the request of the transmission of the client 20
The first flag information of each client recorded in the gray scale inventory prestored in storehouse 12 is matched;If in gray scale inventory
There is the identification information in the request that first flag information sends with the client 20 to match, then obtain and deposited in advance in database 12
First configuration file of the new edition application of storage, and to the first configuration of the client 20 issue by the way of gray scale issue
File;If the first flag information match in the request sent in gray scale inventory without first flag information and the client 20,
The second configuration file of the old edition application prestored in database 12 is then obtained, and is sent to the client 20.
In other embodiments, when application program has new version to be released, it may be necessary to according to predetermined
Each running environment (such as environment etc. on development environment, test environment, line) of client selects gray scale issue new version
Application program, at this time, the acquisition configuration file of the transmission of client 20 with second identifier is received in central server 10
After request, the second identifier information during this is asked is matched with the second identifier information recorded in gray scale inventory, if gray scale
There are second identifier information and the second identifier information match in the request in inventory, then obtain what is prestored in database 12
Corresponding first configuration file of new edition application, and to the first configuration of the client 20 issue by the way of gray scale issue
File;If database 12 is obtained without the second identifier information match in second identifier information and the request in gray scale inventory
In the second configuration file of old edition application for prestoring, and be transmitted directly to the client 20.
Alternatively, in other examples, grayscale mode configuration file push products is supported to be divided into one
A or multiple program modules, one or more program module are stored in memory 111, and are handled by one or more
Device (the present embodiment is processor 112) is performed, and to complete the present invention, the program module alleged by the present invention is to refer to complete spy
Determine the series of computation machine programmed instruction section of function.It is the branch in one embodiment of server of the present invention for example, referring to shown in Fig. 3
Hold the program module schematic diagram of grayscale mode configuration file push products, in the embodiment, support grayscale mode configuration file to push away
Program is sent to be divided into matching module 201, gray scale release module 202, sending module 203, the module 201-203 institutes are real
Existing functions or operations step is similar as above, is no longer described in detail herein, exemplarily, such as wherein:
Matching module 201 is used for the acquisition with first flag information that the transmission of client 20 is received in central server
After the request of configuration file, first flag information during this is asked and the gray scale to prestore in the database of the central server
The first flag information of each client recorded in inventory is matched;
If gray scale release module 202 is used for having first flag information and the first mark in the request in the gray scale inventory
Know information match, then obtain the corresponding first configuration text of the new edition application prestored in the central server
Part, and by the way of gray scale issue first configuration file is issued to the client 20;
If sending module 203 is used to without the first flag in first flag information and the request believe in the gray scale inventory
Manner of breathing matches, then obtains corresponding second configuration file of the old edition application prestored in the central server, and
It is transmitted directly to the client 20.
In addition, the present invention also provides a kind of configuration file method for pushing for supporting grayscale mode.With reference to shown in Fig. 4, for this
The embodiment flow diagram of the configuration file method for pushing preferred embodiment of grayscale mode is supported in invention.This method can be by one
A server performs, which can be by software and/or hardware realization.
In the present embodiment, supporting the configuration file method for pushing of grayscale mode includes:
Step S301, the acquisition with first flag information that the transmission of client 20 is received in central server configure text
After the request of part, recorded in first flag information during this is asked and the gray scale inventory to prestore in the database of central server
The first flag information of each client matched;
Step S302, if having first flag information and the first flag information match in the request in gray scale inventory,
Corresponding first configuration file of new edition application prestored in central server is obtained, and using the side of gray scale issue
Formula issues the first configuration file to the client 20;
Step S303, if without the first flag information match in first flag information and the request in gray scale inventory,
Corresponding second configuration file of old edition application prestored in central server 10 is obtained, and is transmitted directly to the visitor
Family end 20.
It should be noted that in server Fig. 1 embodiments of the present embodiment central server 10 server-side, when using journey
When sequence has new version to be released, by the application journey that new version is issued in the client gray scale of predetermined preset ratio
Sequence, the application program of legacy version is still run in other clients, in this manner it is achieved that found in time when initial gray,
And adjustment problem, ensure the stabilization of overall operation system, and reduce the disturbance degree of new edition application when something goes wrong.
It is understood that to realize that the client gray scale in predetermined preset ratio issues new edition application, then needs pre-
The configuration file and new edition application of old edition application are first stored in the database 12 of central server 10
Configuration file, and corresponding operating personnel are needed based on the options selection gray scale operation new version application journey for setting interface 13
The first flag information (such as IP address or MAC Address) of the client of sequence or the input frame input gray level based on setting interface 13
Run the first flag information of the client of new edition application, and by selected first flag information or inputted the
One identification information writes gray scale inventory.In this way, after server receives the request of acquisition configuration file of the transmission of client 20,
By the identification information (such as IP address or MAC Address) of the client 20 with remembering in the gray scale inventory that is prestored in database 12
The first flag information of each client of record is matched;If there is the mark of first flag information and the client in gray scale inventory
Know information match, then obtain the first configuration file of new edition application prestored in database 12, and to the visitor
Family end gray scale issues the first configuration file;If matching in gray scale inventory without first flag information and the identification information of the client,
Corresponding second configuration file of old edition application prestored in database 12 is then obtained, and is sent to the client.
In other embodiments, when application program has new version to be released, it may be necessary to according to predetermined
Each running environment (such as environment etc. on development environment, test environment, line) of client selects gray scale issue new version
Application program, at this time, sets the second identifier information that pre-set each running environment is shown on interface 13, and for behaviour
Make personnel (such as research staff or tester) select the second identifier information of gray scale operation new edition application second
Second input frame of the second identifier information of options or confession operating personnel input gray level operation new edition application.It is corresponding
Ground, record has the second identifier information of each running environment of gray scale operation new edition application in gray scale inventory, works as clothes
After business device 11 receives the request for the acquisition configuration file that the client 20 with second identifier is sent, by the second identifier information
Matched with the second identifier information recorded in gray scale inventory, if having second identifier information and the second identifier in gray scale inventory
Information match, then obtain corresponding first configuration file of new edition application that prestores in database 12, and to this
20 gray scale of client issues the first configuration file;If without second identifier information and the second identifier information phase in gray scale inventory
Match somebody with somebody, then obtain the second configuration file of the old edition application prestored in database 12, and be sent to the client 20.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, on the computer-readable recording medium
The configuration file push products for supporting grayscale mode is stored with, the configuration file push products of the support grayscale mode is by processor
Following steps are realized during execution:
After central server receives the request of acquisition configuration file of client transmission, the first mark during this is asked
The first flag for knowing each client recorded in the gray scale inventory to prestore in the database of information and the central server is believed
Breath is matched, and the first flag information is address class identification information;
If having first flag information and the first flag information match in the request in the gray scale inventory, institute is obtained
Corresponding first configuration file of the new edition application prestored in central server is stated, and by the way of gray scale issue
First configuration file is issued to the client;
If institute is obtained without the first flag information match in first flag information and the request in the gray scale inventory
The second configuration file of the old edition application prestored in central server is stated, and is transmitted directly to the client.
Further, following step is also realized when the configuration file push products of the support grayscale mode is executed by processor
Suddenly:
After the request that central server receives the acquisition configuration file that the client with second identifier information is sent,
The second identifier information of client of the second identifier information with being recorded in the gray scale inventory during this is asked is matched;
If having second identifier information and the second identifier information match in the request in the gray scale inventory, institute is obtained
Corresponding first configuration file of the new edition application prestored in central server is stated, and by the way of gray scale issue
First configuration file is issued to the client;
If institute is obtained without the second identifier information match in second identifier information and the request in the gray scale inventory
Corresponding second configuration file of the old edition application prestored in central server is stated, and is transmitted directly to the client
End.
Computer-readable recording medium embodiment of the present invention and the configuration file of above-mentioned support grayscale mode push
Method and each embodiment of server are essentially identical, do not make tired state herein.
By above-mentioned each embodiment, the configuration file method for pushing of support grayscale mode of the invention, server,
Central server and computer-readable recording medium, by the acquisition that client transmission is received in the server of central server
After the request of configuration file, by the first mark of each client recorded in the first flag information of the client and gray scale inventory
Know information to be matched, wherein, the gray scale inventory is prestored in the database of the central server;If the gray scale inventory
In have the first flag information match of first flag information and the client, then obtain and prestored in the central server
Corresponding first configuration file of new edition application, and issue first configuration file to the client gray scale;If institute
The first flag information match without first flag information Yu the client in gray scale inventory is stated, then obtains the central server
In the second configuration file of old edition application for prestoring, and be sent to the client.It can ensure overall operation system
The stabilization of system, and reduce the disturbance degree of new edition application when something goes wrong, workload is few and easy maintenance.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, takes
Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of configuration file method for pushing for supporting grayscale mode, it is characterised in that described method includes following steps:
S1, central server receive client transmission with first flag information acquisition configuration file request after,
First flag information during this is asked is each with being recorded in the gray scale inventory to prestore in the database of the central server
The first flag information of client is matched, and the first flag information is address class identification information;
If having first flag information and the first flag information match in the request in S2, the gray scale inventory, institute is obtained
Corresponding first configuration file of the new edition application prestored in central server is stated, and by the way of gray scale issue
First configuration file is issued to the client;
If institute is obtained without the first flag information match in first flag information and the request in S3, the gray scale inventory
Corresponding second configuration file of the old edition application prestored in central server is stated, and is transmitted directly to the client
End.
2. the configuration file method for pushing of grayscale mode is supported as claimed in claim 1, it is characterised in that the method is also wrapped
Include following steps:
After the request that central server receives the acquisition configuration file that the client with second identifier information is sent, by this
Second identifier information second identifier information progress corresponding with each client recorded in the gray scale inventory in request
Match somebody with somebody, the second identifier information is that non-address category knows information;
If the second identifier information match in having second identifier information and the request in the gray scale inventory, described the is obtained
One configuration file, and by the way of gray scale issue first configuration file is issued to the client;
If without the second identifier information match in second identifier information and the request in the gray scale inventory, described the is obtained
Two configuration files, and it is transmitted directly to the client.
3. the configuration file method for pushing of grayscale mode is supported as claimed in claim 1, it is characterised in that in the step S1
Before, the method further includes following steps:
First configuration file and second configuration file are stored in the database of the central server in advance
In;
Receiving, being issued by the way of gray scale issue for setting interface selection that user provided based on the central server is new
After the first flag information of the client of version application program, the first flag information of selected each client is write into institute
Gray scale inventory is stated, and/or, issued receiving user based on the use gray scale for setting interface to select that the central server provides
The mode client of issuing new edition application second identifier information after, by the second mark of selected each client
Know information and write the gray scale inventory.
4. the configuration file method for pushing of grayscale mode is supported as claimed in claim 1, it is characterised in that the first flag
Information includes IP address or MAC Address, and the second identifier information is environmental variance.
5. a kind of central server, it is characterised in that the central server includes memory and processor, on the memory
The configuration file push products for supporting grayscale mode is stored with, the configuration file push products of the support grayscale mode is described
When processor performs, following steps are realized:
A1, receive client transmission with first flag information acquisition configuration file request after, during this is asked
First flag information and the central server database in record in the gray scale inventory that prestores the of each client
One identification information is matched, and the first flag information is address class identification information;
If having first flag information and the first flag information match in the request in A2, the gray scale inventory, institute is obtained
Corresponding first configuration file of the new edition application prestored in central server is stated, and by the way of gray scale issue
First configuration file is issued to the client;
If institute is obtained without the first flag information match in first flag information and the request in A3, the gray scale inventory
Corresponding second configuration file of the old edition application prestored in central server is stated, and is transmitted directly to the client
End.
6. the central server stated such as claim 5, it is characterised in that the configuration file push products for supporting grayscale mode
When being performed by the processor, following steps are also realized:
After the request for the acquisition configuration file that the client with second identifier information is sent is received, the during this is asked
Two identification informations second identifier information corresponding with each client recorded in the gray scale inventory is matched, and described second
Identification information is that non-address category knows information;
If the second identifier information match in having second identifier information and the request in the gray scale inventory, described the is obtained
One configuration file, and by the way of gray scale issue first configuration file is issued to the client;
If without the second identifier information match in second identifier information and the request in the gray scale inventory, described the is obtained
Two configuration files, and it is transmitted directly to the client.
7. the central server as described in claim 5 or 6, it is characterised in that the configuration file for supporting grayscale mode pushes away
Send program by the processor perform realize the step S1 before, also realize following steps:
First configuration file and second configuration file are stored in the database of the central server in advance
In;
Receiving, being issued by the way of gray scale issue for setting interface selection that user provided based on the central server is new
After the first flag information of the client of version application program, the first flag information of selected each client is write into institute
Gray scale inventory is stated, and/or, issued receiving user based on the use gray scale for setting interface to select that the central server provides
The mode client of issuing new edition application second identifier information after, by the second mark of selected each client
Know information and write the gray scale inventory.
8. central server as claimed in claim 7, it is characterised in that the first flag information includes IP address or MAC
Address, the second identifier information are environmental variance.
9. central server as claimed in claim 8, it is characterised in that be also stored with the memory and set interface to generate
Program, the setting interface generate program and are performed by the processor to realize following steps:
Receive using gray scale issue by the way of issue the instruction of new edition application after, generate and show set interface, institute
The first flag information for setting interface to include pre-set each client is stated, is corresponded to behind each first flag information
Issue the first choice item of new edition application by the way of gray scale issue for user's selection including one, and/or, it is described
Interface is set to include the second identifier information of pre-set each client, correspondence includes one behind each second identifier information
A the second options for user's selection using gray scale published method issue new edition application.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has the configuration for supporting grayscale mode
File push program, the configuration file push products for supporting grayscale mode can be performed by least one processor, so that institute
State the configuration file method for pushing for the support grayscale mode that at least one processor is performed as any one of claim 1-4
The step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711060242.XA CN107920112B (en) | 2017-11-01 | 2017-11-01 | Configuration file pushing method supporting gray mode, central server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711060242.XA CN107920112B (en) | 2017-11-01 | 2017-11-01 | Configuration file pushing method supporting gray mode, central server and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107920112A true CN107920112A (en) | 2018-04-17 |
CN107920112B CN107920112B (en) | 2022-04-22 |
Family
ID=61895143
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711060242.XA Active CN107920112B (en) | 2017-11-01 | 2017-11-01 | Configuration file pushing method supporting gray mode, central server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107920112B (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108881030A (en) * | 2018-06-07 | 2018-11-23 | 腾讯科技(深圳)有限公司 | Gray scale issues the method for routing and device under scene |
CN109189494A (en) * | 2018-07-27 | 2019-01-11 | 阿里巴巴集团控股有限公司 | Configure gray scale dissemination method, device, equipment and computer readable storage medium |
CN109788029A (en) * | 2018-12-14 | 2019-05-21 | 平安信托有限责任公司 | Gray scale call method, device, terminal and the readable storage medium storing program for executing of micro services |
CN110022260A (en) * | 2019-02-02 | 2019-07-16 | 阿里巴巴集团控股有限公司 | A kind of Cross-environment acknowledgement message processing method and system |
CN110336874A (en) * | 2019-07-03 | 2019-10-15 | 北京蜜莱坞网络科技有限公司 | A kind of method, apparatus, server and the storage medium of access service |
CN110825425A (en) * | 2018-08-09 | 2020-02-21 | 北京京东尚科信息技术有限公司 | Configuration data management method and device, electronic equipment and storage medium |
CN111090440A (en) * | 2018-10-23 | 2020-05-01 | 阿里巴巴集团控股有限公司 | Information processing method, system, device and storage medium |
CN111290779A (en) * | 2020-03-04 | 2020-06-16 | 北京三快在线科技有限公司 | Gray scale distribution method, device, storage medium and electronic equipment |
CN111858312A (en) * | 2020-06-24 | 2020-10-30 | 广州亚美信息科技有限公司 | Page display method and device of application program, computer equipment and storage medium |
CN112596770A (en) * | 2020-12-24 | 2021-04-02 | 潍柴动力股份有限公司 | Data processing method and device, electronic equipment and storage medium |
CN112612550A (en) * | 2020-12-30 | 2021-04-06 | 北京世纪互联宽带数据中心有限公司 | File configuration method and device |
CN113342595A (en) * | 2021-05-26 | 2021-09-03 | 北京奇艺世纪科技有限公司 | Gray scale verification method, device, equipment and storage medium |
CN113377381A (en) * | 2021-06-30 | 2021-09-10 | 北京百度网讯科技有限公司 | Method and device for distributing small program package, electronic equipment and medium |
CN114553855A (en) * | 2020-11-25 | 2022-05-27 | 北京奇艺世纪科技有限公司 | Plug-in gray level release method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104317914A (en) * | 2014-10-28 | 2015-01-28 | 小米科技有限责任公司 | Data acquiring method and device |
CN105791341A (en) * | 2014-12-22 | 2016-07-20 | 华为软件技术有限公司 | Method, device and system for processing application release |
CN105824745A (en) * | 2015-01-04 | 2016-08-03 | 中国移动通信集团湖南有限公司 | Grey level launch method and device |
CN106469154A (en) * | 2015-08-17 | 2017-03-01 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus for publishing web page application |
-
2017
- 2017-11-01 CN CN201711060242.XA patent/CN107920112B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104317914A (en) * | 2014-10-28 | 2015-01-28 | 小米科技有限责任公司 | Data acquiring method and device |
CN105791341A (en) * | 2014-12-22 | 2016-07-20 | 华为软件技术有限公司 | Method, device and system for processing application release |
CN105824745A (en) * | 2015-01-04 | 2016-08-03 | 中国移动通信集团湖南有限公司 | Grey level launch method and device |
CN106469154A (en) * | 2015-08-17 | 2017-03-01 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus for publishing web page application |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108881030A (en) * | 2018-06-07 | 2018-11-23 | 腾讯科技(深圳)有限公司 | Gray scale issues the method for routing and device under scene |
CN108881030B (en) * | 2018-06-07 | 2022-02-25 | 腾讯科技(深圳)有限公司 | Routing method and device in gray release scene |
CN109189494A (en) * | 2018-07-27 | 2019-01-11 | 阿里巴巴集团控股有限公司 | Configure gray scale dissemination method, device, equipment and computer readable storage medium |
CN109189494B (en) * | 2018-07-27 | 2022-01-21 | 创新先进技术有限公司 | Configuration gray level publishing method, device and equipment and computer readable storage medium |
CN110825425A (en) * | 2018-08-09 | 2020-02-21 | 北京京东尚科信息技术有限公司 | Configuration data management method and device, electronic equipment and storage medium |
CN110825425B (en) * | 2018-08-09 | 2024-09-20 | 北京京东尚科信息技术有限公司 | Configuration data management method and device, electronic equipment and storage medium |
CN111090440A (en) * | 2018-10-23 | 2020-05-01 | 阿里巴巴集团控股有限公司 | Information processing method, system, device and storage medium |
CN111090440B (en) * | 2018-10-23 | 2023-06-20 | 阿里巴巴集团控股有限公司 | Information processing method, system, device and storage medium |
CN109788029A (en) * | 2018-12-14 | 2019-05-21 | 平安信托有限责任公司 | Gray scale call method, device, terminal and the readable storage medium storing program for executing of micro services |
CN110022260B (en) * | 2019-02-02 | 2021-12-24 | 创新先进技术有限公司 | Cross-environment receipt message processing method and system |
CN110022260A (en) * | 2019-02-02 | 2019-07-16 | 阿里巴巴集团控股有限公司 | A kind of Cross-environment acknowledgement message processing method and system |
CN110336874A (en) * | 2019-07-03 | 2019-10-15 | 北京蜜莱坞网络科技有限公司 | A kind of method, apparatus, server and the storage medium of access service |
CN111290779A (en) * | 2020-03-04 | 2020-06-16 | 北京三快在线科技有限公司 | Gray scale distribution method, device, storage medium and electronic equipment |
CN111858312A (en) * | 2020-06-24 | 2020-10-30 | 广州亚美信息科技有限公司 | Page display method and device of application program, computer equipment and storage medium |
CN114553855A (en) * | 2020-11-25 | 2022-05-27 | 北京奇艺世纪科技有限公司 | Plug-in gray level release method and device, electronic equipment and storage medium |
CN114553855B (en) * | 2020-11-25 | 2024-04-05 | 北京奇艺世纪科技有限公司 | Plug-in gray level issuing method and device, electronic equipment and storage medium |
CN112596770A (en) * | 2020-12-24 | 2021-04-02 | 潍柴动力股份有限公司 | Data processing method and device, electronic equipment and storage medium |
CN112596770B (en) * | 2020-12-24 | 2023-08-18 | 潍柴动力股份有限公司 | Data processing method and device, electronic equipment and storage medium |
CN112612550A (en) * | 2020-12-30 | 2021-04-06 | 北京世纪互联宽带数据中心有限公司 | File configuration method and device |
CN113342595B (en) * | 2021-05-26 | 2023-07-25 | 北京奇艺世纪科技有限公司 | Gray scale verification method, device, equipment and storage medium |
CN113342595A (en) * | 2021-05-26 | 2021-09-03 | 北京奇艺世纪科技有限公司 | Gray scale verification method, device, equipment and storage medium |
CN113377381A (en) * | 2021-06-30 | 2021-09-10 | 北京百度网讯科技有限公司 | Method and device for distributing small program package, electronic equipment and medium |
CN113377381B (en) * | 2021-06-30 | 2023-11-14 | 北京百度网讯科技有限公司 | Distribution method and device of small program package, electronic equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN107920112B (en) | 2022-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107920112A (en) | Support configuration file method for pushing, central server and the storage medium of grayscale mode | |
CN100580653C (en) | Application programming interface for administering the distribution of software updates in an update distribution system | |
EP2570917B1 (en) | Method and device for adding menu items in android menu | |
CN109639750B (en) | Service data processing method and device | |
CN105787077A (en) | Data synchronizing method and device | |
CN109660372B (en) | SDN service configuration method and device | |
CN103916482A (en) | Data synchronous transmission method based on sqlite | |
CN102436473A (en) | Menu management device and menu management method | |
CN102281324A (en) | Method for remote authorized management on menu items of mobile communication terminal system | |
CN108255513A (en) | Electronic device, the data-interface based on springmvc and its illustrate automatic generation method and storage medium | |
CN108038390A (en) | A kind of software, that is, service platform tenant data isolation and shared method and system | |
CN106648798A (en) | Method for dynamically upgrading cross-version OTA | |
CN105453072A (en) | user-centric data maintenance | |
US10078532B2 (en) | Resource management method and device for terminal system among multiple operating systems | |
US11392901B2 (en) | Systems and methods for calendar sharing by enterprise web applications | |
WO2021055016A1 (en) | Detection and resolution of data synchronization conflicts | |
CN107844519A (en) | Electronic installation, data base querying scenario generation method and storage medium | |
CN107071007A (en) | A kind of method, device and client for obtaining configuration resource | |
CN104246811A (en) | Certification data management device and certification data management method | |
EP3888767A1 (en) | A content aggregation system and method of operating thereof | |
CN106341449B (en) | Method of data synchronization and device | |
US10210216B2 (en) | Dynamic attributes for mobile business objects | |
CN105991744A (en) | Method and equipment used for synchronizing user application data | |
CN103678332A (en) | System, browser and method for displaying page | |
CN110673827A (en) | Resource calling method and device based on android system and electronic equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230711 Address after: Shop 1010, Floor 1, Xinhongyun Computer City, Xingyun Building, No. 8, Fenjiang Middle Road, Chancheng District, Foshan, Guangdong 528000 Patentee after: Guangdong Xuerhua Network Equipment Co.,Ltd. Address before: 400010 38 / F, 39 / F, unit 1, 99 Wuyi Road, Yuzhong District, Chongqing Patentee before: CHONGQING FINANCIAL ASSETS EXCHANGE Co.,Ltd. |