CN104579768B - Client side upgrading method and device - Google Patents
Client side upgrading method and device Download PDFInfo
- Publication number
- CN104579768B CN104579768B CN201410837892.0A CN201410837892A CN104579768B CN 104579768 B CN104579768 B CN 104579768B CN 201410837892 A CN201410837892 A CN 201410837892A CN 104579768 B CN104579768 B CN 104579768B
- Authority
- CN
- China
- Prior art keywords
- module
- client
- statistical information
- upgrading
- functional module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The invention discloses a kind of client side upgrading method and devices, belong to software field.The described method includes: the functional module that the upgraded version for obtaining client is upgraded, which includes at least one functional module;Statistical information is chosen from the statistic information base prestored, includes usage record of the destination client to the functional module before upgrading in the statistical information;Destination client is determined as gray scale upgrading object according to statistical information.The present invention solves the relevant technologies for the problem that the selection for participating in the client of gray scale upgrading is not reasonable, can not accurately and efficiently test out upgraded version and exist;Realize the functional module upgraded according to upgraded version, the destination client for targetedly selecting the functional module before using the upgrading participates in gray scale upgrading, improve selection gray scale upgrading object accuracy, and then achieve the effect that it is more accurate, efficiently upgraded version is tested.
Description
Technical field
The present invention relates to software field, in particular to a kind of client side upgrading method and device.
Background technique
Currently, the upgrading mode of client includes that unified upgrading and gray scale upgrade two ways.Due to unified upgrading mode
The problem of being likely to result in wide-area failures, many clients all use gray scale upgrading mode to carry out edition upgrading.
Gray scale upgrading is a kind of smoothing processing scheme upgraded in batches.When client has upgraded version publication, one is selected
Part client first carries out edition upgrading, and testing upgraded version by a part of client whether there is problem, when confirmation rises
After grade version is repaired the problem of there is no problem or will be present, then carry out the upgrading of large area.For example, selecting several use at random
Client used in family participates in gray scale upgrading, or selectes the client used by a user participation gray scale liter in a certain area
Grade.
In the implementation of the present invention, inventor has found above-mentioned technology the prior art has at least the following problems: using gray scale liter
When the mode of grade carries out client upgrading, the selection for the client for participating in gray scale upgrading is not reasonable, can not be accurate, efficient
Ground test out upgraded version there are the problem of.
Summary of the invention
It is not reasonable for the selection for the client for participating in gray scale upgrading in order to solve above-mentioned technology, it can not be accurate, efficient
Ground test out upgraded version there are the problem of, the embodiment of the invention provides a kind of client side upgrading method and devices.The skill
Art scheme is as follows:
In a first aspect, providing a kind of client side upgrading method, which comprises
The functional module that the upgraded version of client is upgraded is obtained, the client includes at least one function mould
Block;
Statistical information is chosen from the statistic information base prestored, includes destination client in the statistical information to upgrading
The usage record of the preceding functional module;
The destination client is determined as gray scale upgrading object according to the statistical information.
It is optionally, described to choose statistical information from the statistic information base prestored, comprising:
When record has the used each function of a client in each statistical information in the statistic information base
When the module id and access times of module, for each statistical information, in the modules mark of the statistics record
The module id of the functional module before upgrading is chosen in knowledge;
Read the corresponding access times of the module id being selected;
Choose the statistical information that the access times are greater than first threshold.
It is optionally, described to choose statistical information from the statistic information base prestored, comprising:
When record has the used each function of a client in each statistical information in the statistic information base
When the module id of module, for each statistical information, chooses and rise in the modules mark of the statistics record
The module id of the functional module before grade;
Count the sum for the module id being selected;
Choose the statistical information that the sum is greater than second threshold.
It is optionally, described that the destination client is determined as by gray scale upgrading object according to the statistical information, comprising:
Device identification corresponding with the statistical information is obtained from predetermined corresponding relationship according to the statistical information, it is described
Predetermined corresponding relationship includes the corresponding relationship between the statistical information and the device identification;
The device identification is added in predetermined identification sets, the predetermined identification sets are for storing the gray scale upgrading pair
As corresponding device identification.
Optionally, it is described the destination client is determined as by gray scale upgrading object according to the statistical information after, also
Include:
Prompt upgrading instruction is sent to the destination client;
Alternatively,
Mandatory upgrade instruction is sent to the destination client, includes the upgraded version pair in the mandatory upgrade instruction
The upgrade file answered.
Second aspect, provides a kind of client update device, and described device includes:
Obtain module, the functional module that the upgraded version for obtaining client is upgraded, the client include to
A few functional module;
It includes mesh in the statistical information that module, which is chosen, for choosing statistical information from the statistic information base prestored
Client is marked to the usage record of the functional module before upgrading;
Determining module, for the destination client to be determined as gray scale upgrading object according to the statistical information.
Optionally, the selection module, comprising: the first selection unit, reading unit and the second selection unit;
First selection unit has a visitor for working as record in each statistical information in the statistic information base
When the module id and access times of the used each functional module in family end, for each statistical information, in the statistics
The module id of the functional module before upgrading is chosen in the modules mark of information record;
The reading unit, for reading the corresponding access times of the module id being selected;
Second selection unit, the statistical information for being greater than first threshold for choosing the access times.
Optionally, the selection module, comprising: third selection unit, statistic unit and the 4th selection unit;
The third selection unit has a visitor for working as record in each statistical information in the statistic information base
When the module id of the used each functional module in family end, for each statistical information, in the statistics record
The module id of the functional module before upgrading is chosen in modules mark;
The statistic unit, for counting the sum for the module id being selected;
Second selection unit, the statistical information for being greater than second threshold for choosing the sum.
Optionally, the determining module, comprising: acquiring unit and adding unit;
The acquiring unit, for being obtained from predetermined corresponding relationship according to the statistical information and the statistical information pair
The device identification answered, the predetermined corresponding relationship include the corresponding relationship between the statistical information and the device identification;
The adding unit, for the device identification to be added in predetermined identification sets, the predetermined identification sets are used for
Store device identification corresponding to the gray scale upgrading object.
Optionally, described device further include:
First sending module, for sending prompt upgrading instruction to the destination client;
Alternatively,
Second sending module is indicated for sending mandatory upgrade to the destination client, in the mandatory upgrade instruction
Include the corresponding upgrade file of the upgraded version.
Technical solution provided in an embodiment of the present invention has the benefit that
The functional module that upgraded version by obtaining client is upgraded, then will have above-mentioned functional module upgrading
The destination client of preceding usage record is determined as gray scale upgrading object;The relevant technologies are solved for the visitor for participating in gray scale upgrading
The selection at family end is not reasonable, can not accurately and efficiently test out upgraded version there are the problem of;It realizes according to upgraded version
The functional module upgraded, the destination client for targetedly selecting the functional module before using the upgrading participate in gray scale liter
Grade, improves the accuracy of selection gray scale upgrading object, and then reaches more accurate, efficiently tested upgraded version
Effect.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of structural schematic diagram of implementation environment involved in each embodiment of the present invention;
Fig. 2 is the method flow diagram of client side upgrading method provided by one embodiment of the present invention;
Fig. 3 be another embodiment of the present invention provides client side upgrading method method flow diagram;
Fig. 4 is the structural block diagram of client update device provided by one embodiment of the present invention;
Fig. 5 be another embodiment of the present invention provides client update device structural block diagram;
Fig. 6 is the structural schematic diagram of server provided by one embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Referring to FIG. 1, it illustrates a kind of structural schematic diagram of implementation environment involved in each embodiment of the present invention, it should
Implementation environment includes: at least one terminal 120 and server 140.Wherein:
Terminal 120 can be mobile phone, tablet computer, E-book reader, MP3 (Moving Picture Experts
Group Audio Layer III, dynamic image expert's compression standard audio level 3) player, MP4 (Moving Picture
Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) it is player, on knee portable
Computer and desktop computer etc..Client is installed, client can be browser client, social activity is answered in terminal 120
With client, instant communication client, live streaming class client etc..
Terminal 120 is connected by wireless network or cable network with server 140.
Server 140 can be a server, or the server cluster consisted of several servers or one
A cloud computing service center.
Referring to FIG. 2, it illustrates the method flow diagram of client side upgrading method provided by one embodiment of the present invention, this
It is illustrated in the server that embodiment is applied in implementation environment shown in Fig. 1 with the client side upgrading method.The client
End upgrade method may include steps of:
Step 202, the functional module that the upgraded version of client is upgraded is obtained, which includes at least one function
It can module.
Step 204, statistical information is chosen from the statistic information base prestored, includes destination client in the statistical information
To the usage record of the functional module before upgrading.
Step 206, destination client is determined as by gray scale upgrading object according to statistical information.
In conclusion client side upgrading method provided in this embodiment, the upgraded version by obtaining client is upgraded
Functional module, then by the destination client of the usage record with above-mentioned functional module before upgrading be determined as gray scale upgrading
Object;The selection that the relevant technologies are solved for the client for participating in gray scale upgrading is not reasonable, can not accurately and efficiently test
Out upgraded version there are the problem of;The functional module upgraded according to upgraded version is realized, targetedly selects and used
The destination client of functional module before the upgrading participates in gray scale upgrading, improves the accuracy of selection gray scale upgrading object, into
And achieve the effect that it is more accurate, efficiently upgraded version is tested.
Referring to FIG. 3, it illustrates another embodiment of the present invention provides client side upgrading method method flow diagram, this
It is illustrated in the server that embodiment is applied in implementation environment shown in Fig. 1 with the client side upgrading method.The client
End upgrade method may include steps of:
Step 301, the functional module that the upgraded version of client is upgraded is obtained, which includes at least one function
It can module.
Server obtains the functional module that the upgraded version of client is upgraded.Client includes at least one function mould
Block, different functional modules is for realizing different functions.For example, instant communication client generally includes: for realizing message
The message function module of transmission-receiving function, the speech function module for realizing speech communication, the video for realizing video communication
Functional module changes skin functional module, etc. for change client main panel appearance.In various embodiments, client
The functional module at end can carry out more careful division, such as by above-mentioned message function module further division are as follows: for realizing
The functional module of message sink, the functional module for realizing message single-shot, the functional module for realizing message cluster transmition, etc.
Deng.Alternatively, the functional module of client can also carry out more rough division, such as by above-mentioned message function module, voice function
Energy module and video function modules are integrated into a communication function module.In embodiments of the present invention, to included by client
Division mode, division type and the division numbers of functional module are not especially limited.
The quantity for the functional module that the upgraded version of client is upgraded can be one, be also possible to multiple.
Still by taking above-mentioned instant communication client as an example, in certain upgraded version, skin functional module can only be exchanged
Upgraded;Alternatively, in another upgraded version, while speech function module and video function modules are upgraded.
Step 302, statistical information is chosen from the statistic information base prestored, includes destination client in the statistical information
To the usage record of the functional module before upgrading.
It is provided with statistic information base in server, includes at least one statistical information, each system in the statistic information base
It counts information and corresponds to a client.
In the first possible embodiment, record has a client used each in each statistical information
The module id and access times of functional module.For example, the statistical information for including in statistic information base is as shown in following table -1:
Table -1
Wherein, module id can be the title, number or other marks of functional module, and different functional modules is corresponding
In different module ids.Statistical information is that each client is counted according to user using the regular job behavior of client
It obtains, statistical information is reported to server by client, and server safeguards what each client reported in statistic information base
Statistical information.
In addition, client reports statistics to believe to server in order to distinguish to the client for being installed on different terminals
When breath, need to report the device identification of the terminal where client together.Wherein, device identification is for distinguishing different terminals.
Device identification can be MAC (Media Access Control, medium access control) address;Alternatively, when client be towards
When the application program of mobile phone, device identification is also possible to IMEI (International Mobile Equipment
Identity, mobile device international identity code).Shown in table -1 as above, the client installed in the terminal of device identification 1 corresponds to
Statistical information 1, the client installed in the terminal of device identification 2 correspond to statistical information 2.
In addition, client periodically can report statistical information to server, for example daily predetermined instant is to service
Device reports statistical information;Alternatively, client aperiodically can also report statistical information to server, for example exiting every time
Statistical information is reported to server when login.
In addition, the distribution period of the statistical information stored in the statistic information base of server can also carry out according to actual needs
Setting.For example, storing the statistical information in each client nearest one month in server;Alternatively, being stored in server each
Statistical information, etc. of the client from last edition upgrading to current time.
When record has the module id of the used each functional module of a client and makes in each statistical information
When with number, step 302 may include following several sub-steps:
1, the function for each statistical information, before choosing upgrading in the modules mark of this statistics record
The module id of energy module.
For each statistical information, the content recorded includes the used each function mould of user institute
The module id of block, is denoted as A.And module id of the functional module that upgraded version is upgraded before upgrading is denoted as B.Server exists
B is chosen in A.
Above-mentioned table -1 is referred to for example, combining, in statistical information 1, A includes module id 1, module id 2 and module mark
Know 5, it is assumed that module id (namely B) of the functional module that upgraded version is upgraded before upgrading is module id 1, then server
Module id 1 is chosen in A.For another example, it is assumed that B is module id 1 and module id 4, then server chooses module mark in A
Know 1.For another example, it is assumed that B is module id 1 and module id 5, then server chooses module id 1 and module id 5 in A.
2, the corresponding access times of module id being selected are read.
Record has modules to identify corresponding access times in statistical information, and server reads the module id being selected
Corresponding access times.Access times are more, show that the functional module is continually used before upgrading by user, which has
Participate in the value of gray scale upgrading;Conversely, access times are fewer, show that the functional module is less used before upgrading by user,
The user does not have the value for participating in gray scale upgrading.
3, the statistical information that access times are greater than first threshold is chosen.
Server chooses the statistical information that access times are greater than first threshold, visitor corresponding to the statistical information being selected
Family end is the destination client for participating in gray scale upgrading.Wherein, first threshold is preset empirical value according to actual needs.
In addition, server can directly detect a module when the module id being selected in statistical information is one
Identify whether corresponding access times are greater than first threshold;If more than first threshold, then the statistical information is chosen.Work as statistical information
In the module id that is selected when being two or more, server can calculate the corresponding use of the module id being selected
The summation of number, and whether the summation for detecting the access times is greater than first threshold;If more than first threshold, then the statistics is chosen
Information.Alternatively, server can be chosen and be selected when the module id being selected in statistical information is two or more
The corresponding access times of module id maximum value, and detect whether the maximum value is greater than first threshold;If more than the first threshold
Value, then choose the statistical information.Certainly, different alignment schemes can also be set according to actual conditions, this is those skilled in the art
Member on the basis of the present embodiment easy full of beard and content, the present embodiment do not limit this.
In second of possible embodiment, record has a client used each in each statistical information
The module id of functional module.For example, the statistical information for including in statistic information base is as shown in following table -2:
Table -2
When record has the module id of the used each functional module of a client in each statistical information, step
Rapid 302 may include following several sub-steps:
1, the function for each statistical information, before choosing upgrading in the modules mark of the statistics record
The module id of module.
This step is identical as the step 1 in the first above-mentioned possible embodiment, and which is not described herein again.
2, the sum for the module id that statistics is selected.
Server counts the sum for the module id chosen in each statistical information respectively.Total bigger, table
The used and quantity for the functional module to be upgraded of bright user is more, which has the value for participating in gray scale upgrading;
Conversely, sum is smaller, show that the used and quantity for the functional module to be upgraded of user is fewer, which does not have ginseng
With the value of gray scale upgrading.
3, the statistical information that sum is greater than second threshold is chosen.
Server chooses the statistical information that sum is greater than second threshold, client corresponding to the statistical information being selected
As participate in the destination client of gray scale upgrading.Wherein, second threshold is preset empirical value according to actual needs.Than
Such as, when the quantity of the functional module upgraded when upgraded version is 5, second threshold can be set as 3.When in a certain statistical information
When the sum for the module id being selected is greater than 3, the statistical information is chosen.
Step 303, destination client is determined as by gray scale upgrading object according to statistical information.
Destination client corresponding to the statistical information being selected is determined as gray scale upgrading object by server.
Optionally, step 303 may include following several sub-steps:
1, device identification corresponding with statistical information is obtained from predetermined corresponding relationship according to statistical information;
Wherein, predetermined corresponding relationship includes the corresponding relationship between statistical information and device identification.
2, device identification is added in predetermined identification sets, the predetermined identification sets are for storing corresponding to gray scale upgrading object
Device identification.
Step 304, upgrading instruction is sent to destination client.
Server actively can send upgrading instruction to destination client;Alternatively, server can also be passively to target customer
End sends upgrading instruction.
For example, client is in each starting operation so that server passively sends upgrading instruction to destination client as an example
Afterwards, device identification upgrade request is carried to server transmission, which is the equipment for being equipped with the terminal of the client
Mark.After server receives above-mentioned upgrade request, detection device identifies whether to be present in predetermined identification sets;If it exists, then
Upgrading instruction is sent to client;Otherwise, upgrading instruction is not sent to client or the instruction not upgraded is sent to client.
Optionally, the version information of client can be also carried in the upgrade request that client is sent.Correspondingly, server
After receiving upgrade request, whether detection version information is above-mentioned upgraded version;If it is not, then executing above-mentioned detection device mark
With the presence or absence of the step in predetermined identification sets;Otherwise, upgrading instruction is not sent to client or do not rise to client transmission
The instruction of grade.
In addition, step 304 may include the possible embodiment of the following two kinds:
In the first possible embodiment, prompt upgrading instruction is sent to destination client.
Prompt upgrading instruction is used to indicate client and provides a user upgrading prompting, which reminds for reminding user to work as
The client of preceding version can be upgraded.User can remind according to upgrading and select to upgrade or without upgrading.Work as user
When selection is upgraded, user end to server sends upgrade file acquisition request;Correspondingly, server is obtained according to upgrade file
Take request to the corresponding upgrade file of client feedback upgraded version.After client receives upgrade file, according to upgrade file
The client of current version is upgraded, upgraded version is upgraded to.
In second of possible embodiment, mandatory upgrade is sent to destination client and is indicated, in mandatory upgrade instruction
Include the corresponding upgrade file of upgraded version.
Mandatory upgrade instruction is used to indicate client and carries out mandatory upgrade.In order to reduce the letter between client and server
Interaction times are ceased, the corresponding upgrade file of upgraded version can be carried in mandatory upgrade instruction.Client receives mandatory upgrade
After instruction, is upgraded according to client of the upgrade file to current version, upgraded to upgraded version.
In addition, whether server can occur to reconstruct decision according to server to destination client transmission prompt upgrading instruction also
It is mandatory upgrade instruction: when server is reconstructed, sends mandatory upgrade instruction to destination client;When server does not occur
When reconstruction, prompt upgrading instruction is sent to destination client.Alternatively, server can also be according to the target visitor for having participated in gray scale upgrading
The quantitative decision at family end to destination client send prompt upgrading instruction or mandatory upgrade instruction: when participated in gray scale upgrade
When the quantity of destination client is not up to preset value, mandatory upgrade instruction is sent to destination client;Upgrade when having participated in gray scale
The quantity of destination client when being not up to preset value, send prompt upgrading instruction to destination client.Certainly, in practical application
In, other way decision also can be used to destination client and send prompt upgrading instruction or mandatory upgrade instruction, this is ability
Field technique personnel on the basis of the present embodiment easy full of beard and content, the present embodiment do not limit this.
In conclusion client side upgrading method provided in this embodiment, the upgraded version by obtaining client is upgraded
Functional module, then by the destination client of the usage record with above-mentioned functional module before upgrading be determined as gray scale upgrading
Object;The selection that the relevant technologies are solved for the client for participating in gray scale upgrading is not reasonable, can not accurately and efficiently test
Out upgraded version there are the problem of;The functional module upgraded according to upgraded version is realized, targetedly selects and used
The destination client of functional module before the upgrading participates in gray scale upgrading, improves the accuracy of selection gray scale upgrading object, into
And achieve the effect that it is more accurate, efficiently upgraded version is tested.
In addition, client side upgrading method provided in this embodiment, also the regular job row by using user client
To be counted, in release upgrade version, in conjunction with updated contents and above-mentioned statistical data, the target with test value is chosen
Client first is upgraded, not only achieved the effect that carry out upgraded version it is more accurate, efficiently test, but also reduce visitor
Demand of the family end developer to test resource saves testing cost.
Following is apparatus of the present invention embodiment, can be used for executing embodiment of the present invention method.For apparatus of the present invention reality
Undisclosed details in example is applied, embodiment of the present invention method is please referred to.
Referring to FIG. 4, it illustrates the structural block diagram of client update device provided by one embodiment of the present invention, it should
Client update device being implemented in combination with as some or all of of server by software, hardware or both.The visitor
Family end update device may include: to obtain module 410, choose module 420 and determining module 430.
Module 410, the functional module that the upgraded version for obtaining client is upgraded are obtained, the client includes
At least one functional module.
Module 420 is chosen for choosing statistical information from the statistic information base prestored includes in the statistical information
Usage record of the destination client to the functional module before upgrading.
Determining module 430, for the destination client to be determined as gray scale upgrading object according to the statistical information.
In conclusion client update device provided in this embodiment, the upgraded version by obtaining client is upgraded
Functional module, then by the destination client of the usage record with above-mentioned functional module before upgrading be determined as gray scale upgrading
Object;The selection that the relevant technologies are solved for the client for participating in gray scale upgrading is not reasonable, can not accurately and efficiently test
Out upgraded version there are the problem of;The functional module upgraded according to upgraded version is realized, targetedly selects and used
The destination client of functional module before the upgrading participates in gray scale upgrading, improves the accuracy of selection gray scale upgrading object, into
And achieve the effect that it is more accurate, efficiently upgraded version is tested.
Referring to FIG. 5, it illustrates another embodiment of the present invention provides client update device structural block diagram, should
Client update device being implemented in combination with as some or all of of server by software, hardware or both.The visitor
Family end update device may include: to obtain module 410, choose module 420 and determining module 430.
Module 410, the functional module that the upgraded version for obtaining client is upgraded are obtained, the client includes
At least one functional module.
Module 420 is chosen for choosing statistical information from the statistic information base prestored includes in the statistical information
Usage record of the destination client to the functional module before upgrading.
In the first possible embodiment, the selection module 420, comprising: the first selection unit 420a, read list
First 420b and the second selection unit 420c.
The first selection unit 420a has one for working as record in each statistical information in the statistic information base
When the module id and access times of a used each functional module of client, for each statistical information, described
The module id of the functional module before upgrading is chosen in the modules mark of statistics record.
The reading unit 420b, for reading the corresponding access times of the module id being selected.
The second selection unit 420c, the statistical information for being greater than first threshold for choosing the access times.
In second of possible embodiment, the selection module 420, comprising: third selection unit 420d, statistics are single
First 420e and the 4th selection unit 420f.
The third selection unit 420d has one for working as record in each statistical information in the statistic information base
When the module id of a used each functional module of client, for each statistical information, remember in the statistical information
The module id of the functional module before upgrading is chosen in the modules mark of record.
The statistic unit 420e, for counting the sum for the module id being selected.
The second selection unit 420f, the statistical information for being greater than second threshold for choosing the sum.
Determining module 430, for the destination client to be determined as gray scale upgrading object according to the statistical information.
Optionally, the determining module 430, comprising: acquiring unit 430a and adding unit 430b.
The acquiring unit 430a believes for being obtained from predetermined corresponding relationship according to the statistical information with the statistics
Corresponding device identification is ceased, the predetermined corresponding relationship includes the corresponding pass between the statistical information and the device identification
System.
The adding unit 430b, for the device identification to be added in predetermined identification sets, the predetermined identification sets
For storing device identification corresponding to the gray scale upgrading object.
Optionally, described device further include:
First sending module 440, for sending prompt upgrading instruction to the destination client.Alternatively,
Second sending module 450, for sending mandatory upgrade instruction, the mandatory upgrade instruction to the destination client
In include the corresponding upgrade file of the upgraded version.
In conclusion client update device provided in this embodiment, the upgraded version by obtaining client is upgraded
Functional module, then by the destination client of the usage record with above-mentioned functional module before upgrading be determined as gray scale upgrading
Object;The selection that the relevant technologies are solved for the client for participating in gray scale upgrading is not reasonable, can not accurately and efficiently test
Out upgraded version there are the problem of;The functional module upgraded according to upgraded version is realized, targetedly selects and used
The destination client of functional module before the upgrading participates in gray scale upgrading, improves the accuracy of selection gray scale upgrading object, into
And achieve the effect that it is more accurate, efficiently upgraded version is tested.
It should be understood that client update device provided by the above embodiment is when providing client upgrade service, only
The example of the division of the above functional modules, in practical application, can according to need and by above-mentioned function distribution by
Different functional modules is completed, i.e., the internal structure of equipment is divided into different functional modules, described above complete to complete
Portion or partial function.In addition, the method for client update device provided by the above embodiment and client side upgrading method is implemented
Example belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Fig. 6 shows the structural schematic diagram of server provided by one embodiment of the present invention.The server is for implementing
The client side upgrading method provided in embodiment is provided.Specifically:
The server 600 is including central processing unit (CPU) 601 including random access memory (RAM) 602 and only
Read the system storage 604 of memory (ROM) 603, and the system of connection system storage 604 and central processing unit 601
Bus 605.The server 600 further includes the basic input/output that information is transmitted between each device helped in computer
System (I/O system) 606, and large capacity for storage program area 613, application program 614 and other program modules 615 are deposited
Store up equipment 607.
The basic input/output 606 includes display 608 for showing information and inputs letter for user
The input equipment 609 of such as mouse, keyboard etc of breath.Wherein the display 608 and input equipment 609 are all by being connected to
The input and output controller 610 of system bus 605 is connected to central processing unit 601.The basic input/output 606
Can also include input and output controller 610 with for receive and handle from keyboard, mouse or electronic touch pen etc. it is multiple its
The input of his equipment.Similarly, input and output controller 610 also provides output to display screen, printer or other kinds of defeated
Equipment out.
The mass-memory unit 607 is by being connected to the bulk memory controller (not shown) of system bus 605
It is connected to central processing unit 601.The mass-memory unit 607 and its associated computer-readable medium are server
600 provide non-volatile memories.That is, the mass-memory unit 607 may include such as hard disk or CD-ROM
The computer-readable medium (not shown) of driver etc.
Without loss of generality, the computer-readable medium may include computer storage media and communication media.Computer
Storage medium includes information such as computer readable instructions, data structure, program module or other data for storage
The volatile and non-volatile of any method or technique realization, removable and irremovable medium.Computer storage medium includes
RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storages its technologies, CD-ROM, DVD or other optical storages, tape
Box, tape, disk storage or other magnetic storage devices.Certainly, skilled person will appreciate that the computer storage medium
It is not limited to above-mentioned several.Above-mentioned system storage 604 and mass-memory unit 607 may be collectively referred to as memory.
According to various embodiments of the present invention, the server 600 can also be arrived by network connections such as internets
Remote computer operation on network.Namely server 600 can be by the network interface that is connected on the system bus 605
Unit 611 is connected to network 612, in other words, Network Interface Unit 611 also can be used be connected to other kinds of network or
Remote computer system (not shown).
The memory further includes that one or more than one program, the one or more programs are stored in
In memory, and it is configured to be executed by one or more than one processor.Said one or more than one program include
For executing the instruction such as the client side upgrading method in above-mentioned Fig. 2 or embodiment illustrated in fig. 3.
It should be understood that it is used in the present context, unless the context clearly supports exceptions, singular " one
It is a " (" a ", " an ", " the ") be intended to also include plural form.It is to be further understood that "and/or" used herein is
Refer to any and all possible combinations including one or more than one project listed in association.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (4)
1. a kind of client side upgrading method, which is characterized in that the described method includes:
The functional module that the upgraded version of client is upgraded is obtained, the client includes at least one functional module;
When record has the mould of the used each functional module of a client in each statistical information in statistic information base
When block identification and access times, for each statistical information, chosen in the modules mark of the statistics record
The module id of the functional module before upgrading;Read the corresponding access times of the module id being selected;Choose institute
State the statistical information that access times are greater than first threshold;Alternatively,
When record has the used each functional module of a client in each statistical information in the statistic information base
Module id when, for each statistical information, before choosing upgrading in the modules mark of the statistics record
The functional module module id;Count the sum for the module id being selected;It chooses the sum and is greater than second
The statistical information of threshold value;
Destination client corresponding to the statistical information being selected is determined as gray scale upgrading object;
Obtain the version information of the destination client;
If the version information is not the upgraded version, prompt upgrading instruction is sent to the destination client;
Alternatively,
If the version information is not the upgraded version, mandatory upgrade instruction is sent to the destination client, it is described
It include the corresponding upgrade file of the upgraded version in mandatory upgrade instruction.
2. the method according to claim 1, wherein it is described according to the statistical information by the destination client
It is determined as gray scale upgrading object, comprising:
Device identification corresponding with the statistical information is obtained from predetermined corresponding relationship according to the statistical information, it is described predetermined
Corresponding relationship includes the corresponding relationship between the statistical information and the device identification;
The device identification is added in predetermined identification sets, the predetermined identification sets are for storing the gray scale upgrading object institute
Corresponding device identification.
3. a kind of client update device, which is characterized in that described device includes:
First obtain module, the functional module that the upgraded version for obtaining client is upgraded, the client include to
A few functional module;
Choose module, comprising: the first selection unit, reading unit and the second selection unit;First selection unit, for working as
Record has the module id of the used each functional module of a client in each statistical information in statistic information base
When with access times, for each statistical information, before choosing upgrading in the modules mark of the statistics record
The functional module module id;The reading unit, for reading the corresponding use of the module id being selected
Number;Second selection unit, the statistical information for being greater than first threshold for choosing the access times;Alternatively,
The selection module, comprising: third selection unit, statistic unit and the 4th selection unit;The third selection unit is used
There is the used each functional module of a client in working as record in each statistical information in the statistic information base
When module id, for each statistical information, before choosing upgrading in the modules mark of the statistics record
The module id of the functional module;The statistic unit, for counting the sum for the module id being selected;Described
Four selection units, the statistical information for being greater than second threshold for choosing the sum;
Determining module, for destination client corresponding to the statistical information being selected to be determined as gray scale upgrading object;
Second obtains module, for obtaining the version information of the destination client;
First sending module is sent if not being the upgraded version for the version information to the destination client
Prompt upgrading instruction;
Alternatively,
Second sending module is sent if not being the upgraded version for the version information to the destination client
Mandatory upgrade indicates, includes the corresponding upgrade file of the upgraded version in the mandatory upgrade instruction.
4. device according to claim 3, which is characterized in that the determining module, comprising: acquiring unit and addition are single
Member;
The acquiring unit, it is corresponding with the statistical information for being obtained from predetermined corresponding relationship according to the statistical information
Device identification, the predetermined corresponding relationship include the corresponding relationship between the statistical information and the device identification;
The adding unit, for the device identification to be added in predetermined identification sets, the predetermined identification sets are for storing
Device identification corresponding to the gray scale upgrading object.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410837892.0A CN104579768B (en) | 2014-12-29 | 2014-12-29 | Client side upgrading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410837892.0A CN104579768B (en) | 2014-12-29 | 2014-12-29 | Client side upgrading method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104579768A CN104579768A (en) | 2015-04-29 |
CN104579768B true CN104579768B (en) | 2018-12-18 |
Family
ID=53095033
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410837892.0A Active CN104579768B (en) | 2014-12-29 | 2014-12-29 | Client side upgrading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104579768B (en) |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105068936B (en) * | 2015-09-18 | 2018-06-05 | 北京金山安全软件有限公司 | Method and device for testing stability of software |
CN106648562B (en) * | 2015-10-29 | 2020-04-21 | 腾讯科技(深圳)有限公司 | Version updating method and device |
CN106708787B (en) * | 2015-11-13 | 2019-09-13 | 阿里巴巴集团控股有限公司 | The determination method and device of business function module correctness |
CN105653325A (en) * | 2015-12-29 | 2016-06-08 | 北京金山安全软件有限公司 | Method and device for updating data packet in test environment and electronic equipment |
CN105978709A (en) * | 2016-04-27 | 2016-09-28 | 天脉聚源(北京)传媒科技有限公司 | Application upgrading method and device thereof |
CN107770212A (en) * | 2016-08-17 | 2018-03-06 | 中兴通讯股份有限公司 | Rich communication suite distribution platform, method for updating edition and system, mobile terminal |
CN107957888B (en) * | 2016-10-14 | 2022-03-18 | 北京国双科技有限公司 | Application program gray scale upgrading method and device |
CN108123816B (en) * | 2016-11-28 | 2021-06-29 | 北京小米移动软件有限公司 | System upgrading method and device |
CN106933630B (en) * | 2017-03-09 | 2020-07-31 | 百度在线网络技术(北京)有限公司 | Client upgrading method, device, equipment and storage medium |
CN107844374A (en) * | 2017-11-02 | 2018-03-27 | 上海携程商务有限公司 | The task executing method of terminal device, device, electronic equipment, storage medium |
CN108156038B (en) * | 2017-12-29 | 2019-07-02 | Oppo广东移动通信有限公司 | Request distribution method, device, access gateway and storage medium |
CN110489131B (en) * | 2018-05-15 | 2023-04-07 | 中国移动通信集团浙江有限公司 | Gray level user selection method and device |
CN109117163B (en) * | 2018-08-30 | 2022-03-15 | 北京奇艺世纪科技有限公司 | Client upgrading method and device |
CN109344073A (en) * | 2018-10-17 | 2019-02-15 | 平安普惠企业管理有限公司 | Application software testing method, apparatus, computer equipment and storage medium |
CN110442361B (en) * | 2019-06-27 | 2024-02-09 | 五八有限公司 | Gray release method and device and electronic equipment |
CN112306529A (en) * | 2020-11-09 | 2021-02-02 | 维沃移动通信有限公司 | System upgrading method, device, equipment and storage medium |
CN115357280A (en) * | 2022-08-09 | 2022-11-18 | 湖南木屋网络科技有限公司 | Software version management method, device, server and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103365692A (en) * | 2013-07-15 | 2013-10-23 | 北京奇虎科技有限公司 | Method and device for pushing prompt messages of software upgrading |
CN103777970A (en) * | 2012-10-22 | 2014-05-07 | 联想(北京)有限公司 | Software upgrading method and electronic device |
CN104113576A (en) * | 2013-04-22 | 2014-10-22 | 阿里巴巴集团控股有限公司 | Method and device for updating client |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100596135C (en) * | 2006-06-09 | 2010-03-24 | 华为技术有限公司 | System and method for determining content supplier priority level |
CN102624771B (en) * | 2011-08-05 | 2015-10-28 | 小米科技有限责任公司 | A kind of method of client upgrading |
-
2014
- 2014-12-29 CN CN201410837892.0A patent/CN104579768B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103777970A (en) * | 2012-10-22 | 2014-05-07 | 联想(北京)有限公司 | Software upgrading method and electronic device |
CN104113576A (en) * | 2013-04-22 | 2014-10-22 | 阿里巴巴集团控股有限公司 | Method and device for updating client |
CN103365692A (en) * | 2013-07-15 | 2013-10-23 | 北京奇虎科技有限公司 | Method and device for pushing prompt messages of software upgrading |
Also Published As
Publication number | Publication date |
---|---|
CN104579768A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104579768B (en) | Client side upgrading method and device | |
US11301729B2 (en) | Systems and methods for inferential sharing of photos | |
US11455599B2 (en) | Systems and methods for improved meeting engagement | |
US9009502B2 (en) | System and method for managing battery usage of a mobile device | |
CN108776934B (en) | Distributed data calculation method and device, computer equipment and readable storage medium | |
CA2880737C (en) | A user recommendation method and a user recommendation system using the same | |
US20160078382A1 (en) | Evaluating Communications Feature Utilization | |
CN104537000B (en) | A kind of method and apparatus for pushed information | |
US8910128B2 (en) | Methods and apparatus for application performance and capacity analysis | |
CN104145264A (en) | Systems and methods for sentiment detection, measurement, and normalization over social networks | |
CN106157071A (en) | A kind of method and system of public's account prize drawing | |
US10171604B2 (en) | System and method for pushing network information | |
CN104536965B (en) | A kind of data query display systems under the conditions of big data and method | |
EP2734974A2 (en) | Suggesting invitations to join a network | |
CN104283769B (en) | The user oriented instant message service based on project interested | |
WO2014169661A1 (en) | Method and system for processing report information | |
CN107004169A (en) | The automation tenant upgrading serviced for multi-tenant | |
CN109034867B (en) | Click traffic detection method and device and storage medium | |
CN110535755A (en) | A kind of method and apparatus for deleting conversation message | |
CN109819024A (en) | Information-pushing method, device, storage medium and terminal based on data analysis | |
CN109213513A (en) | The determination method, apparatus and computer readable storage medium of software share accounting | |
CN103561022A (en) | Voice service access method, related device and voice service system | |
CN110737693A (en) | Data mining processing method, device, equipment and computer readable storage medium | |
CN116074541B (en) | Resource processing method, system, device and electronic equipment | |
US20140310087A1 (en) | Method and system for processing report information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17 Applicant after: Guangzhou KuGou Networks Co., Ltd. Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F Applicant before: Guangzhou KuGou Networks Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |