CN107291481A - A kind of component update method, device and system - Google Patents

A kind of component update method, device and system Download PDF

Info

Publication number
CN107291481A
CN107291481A CN201610190155.5A CN201610190155A CN107291481A CN 107291481 A CN107291481 A CN 107291481A CN 201610190155 A CN201610190155 A CN 201610190155A CN 107291481 A CN107291481 A CN 107291481A
Authority
CN
China
Prior art keywords
component
updated
server
new
renewal
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
Application number
CN201610190155.5A
Other languages
Chinese (zh)
Other versions
CN107291481B (en
Inventor
尚子峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yayue Technology Co ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610190155.5A priority Critical patent/CN107291481B/en
Publication of CN107291481A publication Critical patent/CN107291481A/en
Application granted granted Critical
Publication of CN107291481B publication Critical patent/CN107291481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses a kind of component update method, device and system, wherein this method includes:Obtain the corresponding default more new thread of local component to be updated;Based on the default more new thread, the version information of component to be updated is determined;Sent to server and update request, renewal request carries the version information;When server determines that the component to be updated needs to update according to renewal request, more new file is downloaded from server, and component to be updated is updated according to more new file.Component internal to be updated starts corresponding more new thread in the embodiment of the present invention, and version information contrast is carried out based on the renewal process and server and file download etc. is updated, the renewal of component is completed so as to automatic loading, relative to based on the mode being updated by external Upgrade process to component, the ageing of component renewal is improved, while reducing bandwidth consumption.

Description

A kind of component update method, device and system
Technical field
The invention belongs to communication technical field, more particularly to a kind of component update method, device and system.
Background technology
Com component (i.e. COM component) is that Microsoft produces for the software of computer industry More conform to a kind of new software development technique of the behavior exploitation of the mankind;It is fast with Internet technology Speed development, under COM frameworks, people can develop various function-specific com components (with Lower abbreviation component), then they are combined as required, complicated application system is constituted.
For the ease of the upgrading and customization to system, the component in system can be replaced with new component, one As, this process is referred to as " component renewal ";In current component renewal process, it is necessary first to close and add The process of component to be updated, subsequent start-up Upgrade process have been carried, and has been downloaded by the Upgrade process from server Component latest edition, finally replaces local legacy version with latest edition, restarts pent process, so that Component is completed to update.
In the research and practice process to prior art, it was found by the inventors of the present invention that due to prior art Need that the renewal of component could be completed by Upgrade process, thus can cause component update not in time, bandwidth disappears The problem of consuming larger.
The content of the invention
It is an object of the invention to provide a kind of component update method, device and system, it is intended to improves component more New ageing, reduction bandwidth consumption.
In order to solve the above technical problems, the embodiment of the present invention provides following technical scheme:
A kind of component update method, including:
Obtain the corresponding default more new thread of local component to be updated;
Based on the default more new thread, the version information of the component to be updated is determined;
Sent to server and update request, described update asks to carry the version information;
When the server according to it is described update request and determine that the component to be updated needs to update when, from described Server downloads more new file, and updates the component to be updated according to the more new file.
In order to solve the above technical problems, the embodiment of the present invention also provides following technical scheme:
A kind of component updating device, including:
Acquiring unit, the corresponding default more new thread of the to be updated component local for obtaining;
Determining unit, for based on the default more new thread, determining the version information of the component to be updated;
Transmitting element, request is updated for being sent to server, and described update asks to carry the version information;
Download unit, for asking to determine the component needs to be updated according to described update when the server During renewal, more new file is downloaded from the server;
Updating block, the component to be updated is updated for the more new file according to.
In order to solve the above technical problems, the embodiment of the present invention also provides following technical scheme:
A kind of component more new system, including server and such as aforementioned components updating device;
The server, it is described to update request for receiving the renewal request that the component updating device is sent The version information of component to be updated is carried, determines that the component to be updated needs renewal according to the version information When, announcement information is sent to the component updating device, so as to be treated more described in component updating device renewal New Parent.
Relative to prior art, the embodiment of the present invention first, obtains local component to be updated corresponding Default more new thread, is then based on the default more new thread, determines the version information of component to be updated;Then, The version information is carried to server transmission and updates request, when server is to be updated according to renewal request determination When component needs to update, more new file is downloaded, and component to be updated is updated according to the more new file.That is this hair Component internal to be updated starts corresponding more new thread in bright embodiment, and based on the renewal process and server Carry out version information contrast and update file download etc., the renewal of component, phase are completed so as to automatic loading For based on the mode being updated by external Upgrade process to component, improving the timeliness of component renewal Property, while reducing bandwidth consumption.
Brief description of the drawings
Below in conjunction with the accompanying drawings, it is described in detail by the embodiment to the present invention, the skill of the present invention will be made Art scheme and other beneficial effects are apparent.
Fig. 1 a are the schematic diagram of a scenario of component provided in an embodiment of the present invention more new system;
Fig. 1 b are the schematic flow sheets for the component update method that first embodiment of the invention is provided;
The schematic flow sheet for the component update method that Fig. 2 provides for second embodiment of the invention;
The structural representation for the component updating device that Fig. 3 provides for third embodiment of the invention;
The structural representation for the electronic equipment that Fig. 4 provides for fourth embodiment of the invention;
Fig. 5 is the structural representation for the component more new system that fifth embodiment of the invention is provided.
Embodiment
Schema is refer to, wherein identical element numbers represent identical component, and principle of the invention is with reality Illustrated in computing environment appropriate Shi Yi.The following description is specific based on the illustrated present invention Embodiment, it is not construed as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiment of the invention will be referred to as performed by one or multi-section computer The step of and symbol illustrate, unless otherwise stating clearly.Therefore, these steps and operation will have mention for several times by Computer is performed, and computer as referred to herein, which is performed, to be included by representing with the data in a structuring pattern Electronic signal computer processing unit operation.This operation changes the data or is maintained at the calculating At position in the memory system of machine, its is reconfigurable or in addition with the side known to the tester of this area Formula changes the running of the computer.The data structure that the data are maintained is the provider location of the internal memory, its With the particular characteristics as defined in the data format.But, the principle of the invention is illustrated with above-mentioned word, It is not represented as a kind of limitation, and this area tester will appreciate that plurality of step as described below and behaviour Also it may be implemented among hardware.
Term as used herein " module " can regard the software object to be performed in the arithmetic system as.This Different components, module, engine and service described in text can be regarded as the objective for implementation in the arithmetic system. , certainly also can be enterprising in hardware and device and method as described herein is preferred is implemented in the way of software Row is implemented, within the scope of the present invention.
The embodiment of the present invention provides a kind of component update method, device and system.
Referring to Fig. 1 a, the schematic diagram of a scenario for the component more new system that the figure is provided by the embodiment of the present invention should Component more new system can include component updating device and server, and the wherein component updating device specifically may be used To be integrated in terminal (such as mobile phone, tablet personal computer), it is mainly used in:Obtain local component phase to be updated Corresponding default more new thread, then, based on the default more new thread, determines the version letter of component to be updated Breath, i.e., component internal to be updated starts corresponding more new thread, and the component is carried out based on the more new thread Update;Then, sent to server and update request, renewal request carries the version letter of the component to be updated Breath;When server determines that component to be updated needs to update according to renewal request, download and update from server File, and component to be updated, etc. is updated according to more new file.
In addition, server is mainly used in the component more new system:Receive what aforementioned components updating device was sent Update request, wherein, renewal request carry component to be updated in local version information;When the service When device determines that component to be updated needs renewal according to the version information, send and notify to aforementioned components updating device Information, to cause the component updating device according to the announcement information, to be updated in time to the component to be updated.
It will be described in detail respectively below.
First embodiment
In the present embodiment, it will be described from the angle of component updating device, the component updating device is specific It can be integrated in terminal, the terminal can be that mobile phone, tablet personal computer etc. have memory cell and be provided with micro- Processor and with operational capability terminating machine.
A kind of component update method, including:Obtain the corresponding default more new thread of local component to be updated; Based on the default more new thread, the version information of component to be updated is determined;Sent to server and update request, Renewal request carries the version information;When server is according to the renewal request determination component need to be updated When updating, more new file is downloaded from server, and component to be updated is updated according to more new file.
Fig. 1 b are referred to, Fig. 1 b are the flow signals for the component update method that first embodiment of the invention is provided Figure.Methods described includes:
In step S101, the corresponding default more new thread of local component to be updated is obtained.
In step s 102, based on the default more new thread, the version information of component to be updated is determined.
Wherein, the step S101 and step S102 can be specially:
Such as, each component internal is previously provided with more new thread, should when determining that component needs renewal Component starts its corresponding more new thread, and realizes the renewal to component based on the more new thread.
It is understood that in the present embodiment, thread is also referred to as lightweight process (lightweight Processes), in computer realm, it refers to the thread of active program.Thread is process In entity, a process can possess multiple threads, and a thread must have a parent process.Thread is not Possess system resource, only run some necessary data structures;Its other thread with parent process is shared should Whole resources that process is possessed.Thread can create and cancel thread, so as to realize the concurrently execution of program. Typically, thread has three kinds of basic status of ready, obstruction and operation.
Further, based on the default more new thread, determining the version information of component to be updated can include:
Step 1, according to the default more new thread, obtain corresponding prefixed time interval.
Step 2, according to the prefixed time interval, determine the version information of component to be updated.
For example, the default more new thread sets timer, every prefixed time interval (such as 20 minutes or 30 Minute etc.) trigger once, when the timer triggers, determine component to be updated in local version information.
In step s 103, sent to server and update request, renewal request carries the version information.
In step S104, when server determines that component to be updated needs to update according to renewal request, More new file is downloaded from server, and component to be updated is updated according to more new file.
Wherein, the step S103 and step S104 can be specially:
It is understood that after component to be updated is determined in local version information, being sent to server Carry the version information renewal request, so as to according to the version information determine component to be updated whether need Update.
For example, server is received after renewal request, the latest version information of the component to be updated is first obtained, The latest version information is compared with component to be updated in local version information, if the latest edition is believed Breath is inconsistent in local version information with component to be updated, then can determine that component to be updated needs renewal.
Further, when server determines that component to be updated needs renewal, announcement information is sent, this leads to Know that information indicates to need to be updated the component to be updated, and then, downloading more new file from server can be with Specifically include:
The instruction that step a, the reception server are sent needs the announcement information updated;
Step b, according to the announcement information, download more new file from server.
For example, according to the instruction of the announcement information, corresponding more new file is searched from server;Wherein, The more new file can be the component of latest version information integrally in corresponding more new file or component The corresponding more new file in part updated is needed, is not especially limited herein.
In the present embodiment, can be had much according to the mode that more new file updates component to be updated, such as, can With including:
Step A, by the renewal file copy to catalogue where component to be updated, generate redaction component;
Step B, after process where the redaction component is restarted, load the redaction component;
Step C, when it is determined that the redaction component loading after the completion of, determine the redaction component for update after Component to be updated.
That is, where it will update file copy to component to be updated catalogue, generation redaction component it Afterwards, in addition it is also necessary to which process (terminal applies at such as place) where the redaction component is restarted, And the redaction component is loaded, when it is determined that after the completion of redaction component loading, then can determine that this is to be updated Component, which updates, to be finished.
Further, in more preferred mode, (in step A) is by the renewal file copy to treating Before catalogue where more New Parent, each file, component can also be named, such as:
It is the first identification information by the renewal file designation, component to be updated is named as the second identification information.
Based on this, after (in step A) generation redaction component, it can also include:According to foregoing One identification information and the second identification information, are named to the redaction component.
Can be specifically, can be that " * .A.new " order component to be updated by the renewal file designation such as Entitled " * .A.old ", so that the redaction component can be named as " * .A ", with according to these name information Corresponding file/component is quickly found, is easy to the component to update.
From the foregoing, component update method provided in an embodiment of the present invention, first, obtains local treat more The corresponding default more new thread of New Parent, is then based on the default more new thread, determines component to be updated Version information;Then, to server send carry the version information update ask, when server according to this more When newly request determines that component to be updated needs to update, more new file is downloaded, and treat according to more new file renewal More New Parent.Component internal to be updated starts corresponding more new thread i.e. in the embodiment of the present invention, and is based on being somebody's turn to do Renewal process carries out version information contrast with server and updates file download etc., so as to load automatically Into the renewal of component, relative to based on the mode being updated by external Upgrade process to component, improve It is ageing that component updates, while reducing bandwidth consumption.
Second embodiment
Citing, is described in further detail by the method according to described by first embodiment below.
First, component updating device is set, and the device for being used to be updated component can be integrated in terminal On, secondly, set server, the server be used for it is determined that the component in terminal whether need update, when It is determined that needing to generate announcement information when updating, to remind component updating device to be in time updated component.With Under will be described in more detail.
Referring to Fig. 2, the schematic flow sheet for the component update method that Fig. 2 provides for second embodiment of the invention. Methods described includes:
In step s 201, terminal control component starts corresponding more new thread.
In step S202, terminal is according to the renewal interval indicated by more new thread, the version A of securing component.
Wherein, the step S201 and step S202 can be specially:
Such as, each component internal is all correspondingly arranged the more new thread of oneself, wherein, set in the more new thread Timer is put, is triggered by the renewal interval of setting, such as is triggered once, etc. every 20 minutes, 30 minutes; Work as timers trigger, that is, when updating interval arrival, the local version of terminal securing component.
Further, such as, terminal obtains dll (the dynamic link library, dynamic chain of local component Connect library file) version, for ease of description, local component dll version is referred to as version A.
Wherein, dll files are called application program expansion, are a kind of software document types, in Windows, Many application programs are not a complete executable file, and it is relatively independent dynamic that they are divided into some State chained library, i.e. dll files, are positioned in system.When performing some program, corresponding dll files It will be called.
In step S203, terminal to server, which is sent, updates request, and renewal request carries version A.
In step S204, server receives renewal request, obtains the version B of corresponding assembly.
In step S205, server determines that component needs renewal according to version A and version B.
Wherein, the step S203 to step S205 can be specially:
Such as, server is received after carrying version A renewal request, and corresponding assembly is obtained first, its After detect the newest dll versions of the component, the i.e. version of renewal time the latest, for ease of description, group on server The newest dll versions of part may be simply referred to as version B.
It is assumed that version A is " XXdll6.2 ", version B is " XXdll6.5 ", thus, it is believed that version This B is version A latest update version, and server determines that corresponding component needs renewal.
In step S206, server sends announcement information to terminal.
In step S207, terminal receives the announcement information, and downloads more new file from server, obtains Component after renewal.
In step S208, terminal is after process where the component is restarted, and automatic loading updates Component afterwards.
Wherein, the step S206 to step S208 can be specially:
Such as, when server determines that component needs renewal, server sends announcement information to terminal, to refer to Show whether terminal is updated to component;When terminal receives the announcement information, that is, when receiving server response, If according to the announcement information know needs more New Parent, can use HTTP (HTTP, Hyper Text Transfer Protocol) download more new file from server.
It is further preferred that the more new file downloaded is latest edition dll files, it can be named as " * .dll.new ", while being " * .dll.old " by local dll file designations;Then, by " * .dll.new " Copy catalogue where dll components to, and by its RNTO " * .dll ".
It should be noted that in the embodiment of the present invention, the component after renewal needs just come into force after restarting, than Such as, terminal is after process where the dll components is restarted, the dll files after automatic loading renewal.
With component A:XX browser services program and component B:Exemplified by XBShellIcon.dll renewal, it The renewal of the two preceding components needs the renewal by means of browser, is bound with browser installation kit;Use this Invent after the self refresh method provided, component A and component B can flexibly configure upgrading, with browser Installation kit is decoupled, and in the case where needing not go through and thinking highly of new hair version, component can realize self refresh, in time Various change is tackled, bandwidth is saved.
From the foregoing, component update method provided in an embodiment of the present invention, first, obtains local treat more The corresponding default more new thread of New Parent, is then based on the default more new thread, determines component to be updated Version information;Then, to server send carry the version information update ask, when server according to this more When newly request determines that component to be updated needs to update, more new file is downloaded, and treat according to more new file renewal More New Parent.Component internal to be updated starts corresponding more new thread i.e. in the embodiment of the present invention, and is based on being somebody's turn to do Renewal process carries out version information contrast with server and updates file download etc., so as to load automatically Into the renewal of component, that is to say, that, it is not necessary to by other processes, the process oneself of charging assembly just can be with Upgrading is completed, process is also without closing before updating, so as to substantially increase the ageing of component renewal, together When reduce bandwidth consumption.
3rd embodiment
For ease of preferably implementing component update method provided in an embodiment of the present invention, the embodiment of the present invention is also carried For a kind of device based on said modules update method.The method that wherein implication of noun updates with said modules In it is identical, implement details and may be referred to explanation in embodiment of the method.
Referring to Fig. 3, Fig. 3 is the structural representation of component updating device provided in an embodiment of the present invention, its Described in component updating device can include acquiring unit 301, determining unit 302, transmitting element 303, under Carrier unit 304 and updating block 305;
Wherein, acquiring unit 301, the corresponding default more new thread of the to be updated component local for obtaining; Determining unit 302, for based on the default more new thread, determining the version information of the component to be updated.
Such as, each component internal is previously provided with more new thread, should when determining that component needs renewal Component starts its corresponding more new thread, and realizes the renewal to component based on the more new thread.
It is understood that in the present embodiment, thread is also referred to as lightweight process, in computer realm, It refers to the thread of active program.Thread is the entity in process, and a process can possess many Individual thread a, thread must have a parent process.Thread does not possess system resource, only runs necessary Some data structures;Its other thread with parent process shares whole resources that the process is possessed.Thread can To create and cancel thread, so as to realize the concurrently execution of program.Typically, thread have it is ready, obstruction and Run three kinds of basic status.
Further, the determining unit 302 can include:
Subelement is obtained, for according to the default more new thread, obtaining corresponding prefixed time interval;
Determination subelement, for according to the prefixed time interval, determining the version letter of the component to be updated Breath.
For example, the default more new thread sets timer, every prefixed time interval (such as 20 minutes or 30 Minute etc.) trigger once, when the timer triggers, determine component to be updated in local version information.
Thereafter, transmitting element 303, request is updated for being sent to server, and described update asks to carry institute State version information;Download unit 304, for being treated when the server according to being determined the renewal request When more New Parent needs to update, more new file is downloaded from the server;Updating block 305, for basis The more new file updates the component to be updated.
It is understood that after component to be updated is determined in local version information, being sent to server Carry the version information renewal request, so as to according to the version information determine component to be updated whether need Update.
For example, server is received after renewal request, the latest version information of the component to be updated is first obtained, The latest version information is compared with component to be updated in local version information, if the latest edition is believed Breath is inconsistent in local version information with component to be updated, then can determine that component to be updated needs renewal.
Further, when server determines that component to be updated needs renewal, announcement information is sent, this leads to Know that information indicates to need to be updated the component to be updated, and then, the download unit 304 can include:
Receiving subelement, the announcement information updated for receiving the instruction that the server is sent to need;
Lower subelements, for according to the announcement information, more new file to be downloaded from the server.
For example, according to the instruction of the announcement information, corresponding more new file is searched from server;Wherein, The more new file can be the component of latest version information integrally in corresponding more new file or component The corresponding more new file in part updated is needed, is not especially limited herein.
In the present embodiment, can be had much according to the mode that more new file updates component to be updated, such as, and institute Stating updating block 305 can include:
Subelement is generated, for by catalogue where the renewal file copy to the component to be updated, generating Redaction component;
Subelement is loaded, for after process where the redaction component is restarted, loading to be described Redaction component;
Determination subelement is updated, for after the completion of the redaction component loading is determined, determining the new edition This component is the component to be updated after updating.
That is, where it will update file copy to component to be updated catalogue, generation redaction component it Afterwards, in addition it is also necessary to which process (terminal applies at such as place) where the redaction component is restarted, And the redaction component is loaded, when it is determined that after the completion of redaction component loading, then can determine that this is to be updated Component, which updates, to be finished.
Further, in more preferred mode, by where the renewal file copy to component to be updated Before catalogue, each file, component can also be named, based on this, described device can also include:
Unit is named, for being the first identification information by the renewal file designation, by the component to be updated It is named as the second identification information;After the generation subelement generation redaction component, according to described first Identification information and second identification information, are named to the redaction component.
Can be specifically, can be that " * .A.new " order component to be updated by the renewal file designation such as Entitled " * .A.old ", so that the redaction component can be named as " * .A ", with according to these name information Corresponding file/component is quickly found, is easy to the component to update.
When it is implemented, above unit can be realized as independent entity, it can also carry out any Combination, is realized as same or several entities, and the specific implementation of above unit can be found in above Embodiment of the method, will not be repeated here.
The component updating device can be specifically integrated in terminal, and the terminal can be mobile phone, tablet personal computer etc. With memory cell and microprocessor is installed and with operational capability terminating machine.
From the foregoing, component updating device provided in an embodiment of the present invention, first, obtains local treat more The corresponding default more new thread of New Parent, is then based on the default more new thread, determines component to be updated Version information;Then, to server send carry the version information update ask, when server according to this more When newly request determines that component to be updated needs to update, more new file is downloaded, and treat according to more new file renewal More New Parent.Component internal to be updated starts corresponding more new thread i.e. in the embodiment of the present invention, and is based on being somebody's turn to do Renewal process carries out version information contrast with server and updates file download etc., so as to load automatically Into the renewal of component, relative to based on the mode being updated by external Upgrade process to component, improve It is ageing that component updates, while reducing bandwidth consumption.
Fourth embodiment
Fig. 4 is refer to, Fig. 4 is a kind of electronic equipment provided in an embodiment of the present invention, be can be used in implementation The component update method provided in embodiment is provided.It is specific as follows:
Electronic equipment 400 includes processor (CPU) 401 including random access memory (RAM) 402 With the system storage 404 of read-only storage (ROM) 403, and connection system storage 404 and place Manage the system bus 405 of device 401.The electronic equipment 400 also includes helping each device in computer Between transmit information basic input/output (I/O systems) 406, and for storage program area 413, The mass-memory unit 407 of application program 414 and other program modules 415.
The electronic equipment 400 includes processor (CPU) 401 including random access memory (RAM) 402 and the system storage 404 of read-only storage (ROM) 403, and the connection He of system storage 404 The system bus 405 of processor 401.The electronic equipment 400 also includes helping each device in computer The basic input/output (I/O systems) 406 of information is transmitted between part, and for storage program area 413rd, the mass-memory unit 407 of application program 414 and other program modules 415.
The basic input/output 406 includes for the display 408 of display information and for using The input equipment 409 of such as mouse, keyboard etc of family input information.Wherein described display 408 and defeated Enter equipment 409 and be all connected to processor by being connected to the IOC 410 of system bus 405 401.The basic input/output 406 can also include IOC 410 to connect Receive and input of the processing from multiple other equipments such as keyboard, mouse or electronic touch pen.Similarly, it is defeated Enter o controller 410 and also provide output to display screen, printer or other kinds of output equipment.
The mass-memory unit 407 is by being connected to the bulk memory controller of system bus 405 (not shown) is connected to processor 401.The mass-memory unit 407 and its associated computer Computer-readable recording medium is that client device 400 provides non-volatile memories.That is, the massive store is set Standby 407 computer-readable mediums that can include such as hard disk or CD-ROM drive etc (do not show Go out).
Without loss of generality, the computer-readable medium can include computer-readable storage medium and communication media. Computer-readable storage medium include for storage such as computer-readable instruction, data structure, program module or Volatibility that any methods or techniques of the information such as other data is realized and non-volatile, removable and not removable Dynamic medium.Computer-readable storage medium include RAM, ROM, EPROM, EEPROM, flash memory or other Its technology of solid-state storage, CD-ROM, DVD or other optical storages, cassette, tape, disk are deposited Storage or other magnetic storage apparatus.Certainly, skilled person will appreciate that the computer-readable storage medium not office It is limited to above-mentioned several.Above-mentioned system storage 404 and mass-memory unit 407 may be collectively referred to as storage Device.
According to various embodiments of the present invention, the electronic equipment 400 can also pass through the nets such as internet Network is connected to the remote computer operation on network.Namely electronic equipment 400 can be by being connected to the system NIU 411 in system bus 405 is connected to network 412, in other words, can also use network Interface unit 411 is connected to other kinds of network or remote computer system (not shown).
The memory also includes one or more than one module, one or more than one module It is stored in memory, and is configured to be performed by one or more processors 401, one or more of moulds Block has following function:
Obtain the corresponding default more new thread of local component to be updated;Based on the default more new thread, Determine the version information of the component to be updated;Sent to server and update request, described update asks to carry The version information;When the server needs to update according to the request determination component to be updated that updates When, more new file is downloaded from the server, and the component to be updated is updated according to the more new file.
Optionally, one or more of modules also have following function:
According to the default more new thread, corresponding prefixed time interval is obtained;According between the preset time Every determining the version information of the component to be updated.
Optionally, one or more of modules also have following function:
Receive the announcement information for the instruction needs renewal that the server is sent;According to the announcement information, from The server downloads more new file.
Optionally, one or more of modules also have following function:
By catalogue where the renewal file copy to the component to be updated, redaction component is generated;Institute After process where stating redaction component is restarted, the redaction component is loaded;When it is determined that described new After the completion of version component loading, the redaction component is determined for the component to be updated after updating.
Optionally, one or more of modules also have following function:
It is the first identification information by the renewal file designation;The component to be updated is named as the second mark Information;After the generation redaction component, in addition to:According to first identification information and described second Identification information, is named to the redaction component.
From the foregoing, in electronic equipment provided in an embodiment of the present invention, first, obtaining locally to be updated The corresponding default more new thread of component, is then based on the default more new thread, determines the version of component to be updated This information;Then, sent to server and carry version information renewal request, when server is according to the renewal When request determines that component to be updated needs to update, more new file is downloaded, and treat more according to more new file renewal New Parent.Component internal to be updated starts corresponding more new thread i.e. in the embodiment of the present invention, and based on this more New process carries out version information contrast with server and updates file download etc., is completed so as to automatic loading The renewal of component, relative to based on the mode being updated by external Upgrade process to component, is improved It is ageing that component updates, while reducing bandwidth consumption.
5th embodiment
The embodiment of the present invention also provides a kind of system based on said modules update method.The wherein implication of noun It is identical with the method that said modules update, implement details and may be referred to explanation in embodiment of the method.
Referring to Fig. 5, Fig. 5 is the structural representation of component provided in an embodiment of the present invention more new system 500, Wherein described component more new system 500 can include server 501 and the group such as 3rd embodiment offer Part updating device 502;
Wherein component updating device 502, be mainly used in obtaining local component to be updated it is corresponding it is default more New thread;Based on the default more new thread, the version information of component to be updated is determined;Sent more to server New request, renewal request carries the version information;When server is treated more according to being determined renewal request When New Parent needs to update, more new file is downloaded from server, and component to be updated is updated according to more new file.
Server 501, it is described to update request for receiving the renewal request that the component updating device is sent The version information of component to be updated is carried, determines that the component to be updated needs renewal according to the version information When, announcement information is sent to the component updating device, so as to be treated more described in component updating device renewal New Parent.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without detailed in some embodiment The part stated, may refer to the detailed description above with respect to component update method, here is omitted.
The component updating device provided in an embodiment of the present invention is for example computer, tablet personal computer, had Mobile phone of touch function etc., the component updating device belongs to the component update method in foregoing embodiments Same design, can be to provide in operating said assembly update method embodiment on the component updating device Either method, it implements process and refers to the component update method embodiment, and here is omitted.
It should be noted that for component update method of the present invention, this area common test personnel can To understand all or part of flow for realizing component update method described in the embodiment of the present invention, meter can be by Calculation machine program controls the hardware of correlation to complete, and the computer program can be stored in an embodied on computer readable In storage medium, such as it is stored in the memory of terminal, and by least one computing device in the terminal, It may include the flow of the embodiment of component update method as described in the process of implementation.Wherein, described storage Medium can be magnetic disc, CD, read-only storage, random access memory etc..
For the component updating device of the embodiment of the present invention, its each functional module can be integrated in one , can also two or more module collection in process chip or modules are individually physically present In Cheng Yi module.Above-mentioned integrated module can both be realized in the form of hardware, it would however also be possible to employ soft The form of part functional module is realized.If the integrated module is realized and made in the form of software function module For independent production marketing or in use, it can also be stored in a computer read/write memory medium, institute It is for example read-only storage, disk or CD etc. to state storage medium.
A kind of component update method, the device and system provided above the embodiment of the present invention have been carried out in detail Introduce, specific case used herein is set forth to the principle and embodiment of the present invention, and the above is real The explanation for applying example is only intended to the method and its core concept for helping to understand the present invention;Simultaneously for this area Technical staff, according to the present invention thought, change is had in specific embodiments and applications Place, in summary, this specification content should not be construed as limiting the invention.

Claims (11)

1. a kind of component update method, it is characterised in that including:
Obtain the corresponding default more new thread of local component to be updated;
Based on the default more new thread, the version information of the component to be updated is determined;
Sent to server and update request, described update asks to carry the version information;
When the server according to it is described update request and determine that the component to be updated needs to update when, from described Server downloads more new file, and updates the component to be updated according to the more new file.
2. component update method according to claim 1, it is characterised in that it is described based on it is described it is default more New thread, determining the version information of the component to be updated includes:
According to the default more new thread, corresponding prefixed time interval is obtained;
According to the prefixed time interval, the version information of the component to be updated is determined.
3. component update method according to claim 1, it is characterised in that described under the server Carrying more new file includes:
Receive the announcement information for the instruction needs renewal that the server is sent;
According to the announcement information, more new file is downloaded from the server.
4. component update method according to claim 1, it is characterised in that described to update text according to described Part updates the component to be updated, including:
By catalogue where the renewal file copy to the component to be updated, redaction component is generated;
After process where the redaction component is restarted, the redaction component is loaded;
When it is determined that after the completion of redaction component loading, determining the redaction component for treating more after updating New Parent.
5. component update method according to claim 4, it is characterised in that it is described will described in more new file Before catalogue where being copied to the component to be updated, in addition to:
It is the first identification information by the renewal file designation;
The component to be updated is named as the second identification information;
After the generation redaction component, in addition to:According to first identification information and second mark Know information, the redaction component is named.
6. a kind of component updating device, it is characterised in that including:
Acquiring unit, the corresponding default more new thread of the to be updated component local for obtaining;
Determining unit, for based on the default more new thread, determining the version information of the component to be updated;
Transmitting element, request is updated for being sent to server, and described update asks to carry the version information;
Download unit, for asking to determine the component needs to be updated according to described update when the server During renewal, more new file is downloaded from the server;
Updating block, the component to be updated is updated for the more new file according to.
7. component updating device according to claim 6, it is characterised in that the determining unit includes:
Subelement is obtained, for according to the default more new thread, obtaining corresponding prefixed time interval;
Determination subelement, for according to the prefixed time interval, determining the version letter of the component to be updated Breath.
8. component updating device according to claim 6, it is characterised in that the download unit includes:
Receiving subelement, the announcement information updated for receiving the instruction that the server is sent to need;
Lower subelements, for according to the announcement information, more new file to be downloaded from the server.
9. component updating device according to claim 6, it is characterised in that the updating block includes:
Subelement is generated, for by catalogue where the renewal file copy to the component to be updated, generating Redaction component;
Subelement is loaded, for after process where the redaction component is restarted, loading to be described Redaction component;
Determination subelement is updated, for after the completion of the redaction component loading is determined, determining the new edition This component is the component to be updated after updating.
10. component updating device according to claim 9, it is characterised in that described device also includes:
Unit is named, for being the first identification information by the renewal file designation, by the component to be updated The second identification information is named as, after the generation subelement generation redaction component, according to described first Identification information and second identification information, are named to the redaction component.
11. a kind of component more new system, it is characterised in that including server and such as claim 6 to 10 Any one component updating device;
The server, it is described to update request for receiving the renewal request that the component updating device is sent The version information of component to be updated is carried, determines that the component to be updated needs renewal according to the version information When, announcement information is sent to the component updating device, so as to be treated more described in component updating device renewal New Parent.
CN201610190155.5A 2016-03-30 2016-03-30 Component updating method, device and system Active CN107291481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610190155.5A CN107291481B (en) 2016-03-30 2016-03-30 Component updating method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610190155.5A CN107291481B (en) 2016-03-30 2016-03-30 Component updating method, device and system

Publications (2)

Publication Number Publication Date
CN107291481A true CN107291481A (en) 2017-10-24
CN107291481B CN107291481B (en) 2020-07-03

Family

ID=60086605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610190155.5A Active CN107291481B (en) 2016-03-30 2016-03-30 Component updating method, device and system

Country Status (1)

Country Link
CN (1) CN107291481B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109766131A (en) * 2017-11-06 2019-05-17 上海宝信软件股份有限公司 The system and method for the intelligent automatic upgrading of software is realized based on multithreading
CN109766127A (en) * 2019-01-16 2019-05-17 上海掌门科技有限公司 Method for updating application version information
CN110069266A (en) * 2018-01-24 2019-07-30 腾讯科技(深圳)有限公司 Application upgrade method, apparatus, computer equipment and storage medium
CN110764805A (en) * 2019-10-28 2020-02-07 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for noninductive upgrade of client
CN110865827A (en) * 2018-08-27 2020-03-06 阿里巴巴集团控股有限公司 Data updating method, device and system
CN110874260A (en) * 2018-09-04 2020-03-10 北京奇虎科技有限公司 File processing method and device based on multi-user machine
CN111831312A (en) * 2020-07-07 2020-10-27 广州市挖米科技有限责任公司 Medical system updating method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716719A (en) * 2013-12-02 2014-04-09 乐视网信息技术(北京)股份有限公司 Multimedia file downloading method and user terminal
CN104038819A (en) * 2014-05-30 2014-09-10 四川长虹电器股份有限公司 Software upgrading system and method of digital set-top box

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716719A (en) * 2013-12-02 2014-04-09 乐视网信息技术(北京)股份有限公司 Multimedia file downloading method and user terminal
CN104038819A (en) * 2014-05-30 2014-09-10 四川长虹电器股份有限公司 Software upgrading system and method of digital set-top box

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109766131A (en) * 2017-11-06 2019-05-17 上海宝信软件股份有限公司 The system and method for the intelligent automatic upgrading of software is realized based on multithreading
CN110069266A (en) * 2018-01-24 2019-07-30 腾讯科技(深圳)有限公司 Application upgrade method, apparatus, computer equipment and storage medium
CN110069266B (en) * 2018-01-24 2022-02-01 腾讯科技(深圳)有限公司 Application upgrading method and device, computer equipment and storage medium
CN110865827A (en) * 2018-08-27 2020-03-06 阿里巴巴集团控股有限公司 Data updating method, device and system
CN110865827B (en) * 2018-08-27 2023-04-25 阿里巴巴集团控股有限公司 Data updating method, device and system
CN110874260B (en) * 2018-09-04 2023-03-10 北京奇虎科技有限公司 File processing method and device based on multi-user machine
CN110874260A (en) * 2018-09-04 2020-03-10 北京奇虎科技有限公司 File processing method and device based on multi-user machine
CN109766127A (en) * 2019-01-16 2019-05-17 上海掌门科技有限公司 Method for updating application version information
CN109766127B (en) * 2019-01-16 2022-06-28 上海掌门科技有限公司 Method for updating application version information
CN110764805A (en) * 2019-10-28 2020-02-07 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for noninductive upgrade of client
CN110764805B (en) * 2019-10-28 2024-01-23 腾讯科技(深圳)有限公司 Client non-inductive upgrading method, device, terminal and storage medium
CN111831312A (en) * 2020-07-07 2020-10-27 广州市挖米科技有限责任公司 Medical system updating method and device
CN111831312B (en) * 2020-07-07 2024-03-22 广州市挖米科技有限责任公司 Medical system updating method and device

Also Published As

Publication number Publication date
CN107291481B (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN107291481A (en) A kind of component update method, device and system
US10291704B2 (en) Networked solutions integration using a cloud business object broker
US8239490B2 (en) Exposing resource capabilities to web applications
EP3944082A1 (en) Extending the kubernetes api in-process
CN114600082A (en) Container instantiation with federated file system layer loads
US20180314620A1 (en) Selective object testing in a client-server environment
US11144469B2 (en) Per-tenant incremental outward distributed proactive caching
US20160335079A1 (en) Zero down-time deployment of new application versions
USRE48851E1 (en) Thin client for mapping system
US20140081901A1 (en) Sharing modeling data between plug-in applications
WO2013166682A1 (en) Meta-app to depict cloud environment dependencies
US7721278B2 (en) Modular server architecture for multi-environment HTTP request processing
CN112930530B (en) Client application for network application execution
EP3126968A1 (en) Data view exposure mechanisms
US9307059B2 (en) Retry mechanism for data loading from on-premise datasource to cloud
US11681585B2 (en) Data migration for a shared database
AU2014200140B2 (en) User initiated data rollback using operating system partitions
US20220237448A1 (en) Resource constraint aware deep learning model optimization for serverless-based inference systems
CN103347059A (en) Method, client-side and system for realizing user configuration parameter transmission
US10990458B2 (en) Event communication between applications
CN112988604A (en) Object testing method, testing system, electronic device and readable storage medium
CN114026540A (en) System and method for supporting and negotiating multiple API versions across multiple products
CN111309367A (en) Method, device, medium and electronic equipment for managing service discovery
US9720710B2 (en) Dynamically provisioning, managing, and executing tasks
CN111771191A (en) Cross-domain inline event handler

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

Effective date of registration: 20221115

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518,101

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right