CN103019752B - The upgrade method of application program and device - Google Patents

The upgrade method of application program and device Download PDF

Info

Publication number
CN103019752B
CN103019752B CN201110279972.5A CN201110279972A CN103019752B CN 103019752 B CN103019752 B CN 103019752B CN 201110279972 A CN201110279972 A CN 201110279972A CN 103019752 B CN103019752 B CN 103019752B
Authority
CN
China
Prior art keywords
application program
virtual environment
operating system
upgrading
environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110279972.5A
Other languages
Chinese (zh)
Other versions
CN103019752A (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201110279972.5A priority Critical patent/CN103019752B/en
Publication of CN103019752A publication Critical patent/CN103019752A/en
Application granted granted Critical
Publication of CN103019752B publication Critical patent/CN103019752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The upgrade method of a kind of application program, comprises the steps: to clone the operating system at application program place to obtain the virtual environment corresponding with described operating system;Described virtual environment is upgraded described application program;The access environment of described application program is switched to the virtual environment after upgrading by described operating system.The operating system at application program place is cloned by upgrade method and the device of above-mentioned application program, by the upgrading of virtual Environment Implementation application program duplicate with operating system on the premise of not destroying operating system environment, and then the access environment of application program is switched to the virtual environment after upgrading by operating system, there is not any change in operating system during upgrading, remain the environment before upgrading, even if escalation process there occurs, mistake also is able to return to the environment of operating system before upgrading, improve stability.

Description

The upgrade method of application program and device
[technical field]
The present invention relates to computer processing technology, particularly relate to upgrade method and the device of a kind of application program.
[background technology]
Application program is usually upgraded to meet various demand, and traditional upgrading mode has been generally comprised after directly upgrading in the machine and upgraded by another server and replaced original server.For the directly application program updating mode of upgrading in the machine, after manually or automatically initiating upgrade request, ROMPaq downloaded and be installed in the machine;If replacing original environment after being upgraded by another server, needing the upgraded version of disposing application program on that server, after application program after upgrading is properly functioning, this server being replaced original server, it is achieved the upgrading of application program.
But, if the mode directly upgraded in the machine is upgraded, unsuccessfully the machine will be unable to the state before returning to upgrading, and owing to being difficult to ensure that this server and the concordance of environment in former server by the way of replacing original server after another server is upgraded, the situation that application program updating is made mistakes also happens occasionally.Therefore, either by directly upgrading or replacing original server after being upgraded by another server realizes the upgrading of application program in the machine, all there is the defect of deficient in stability.
[summary of the invention]
Based on this, it is necessary to provide the upgrade method of a kind of application program that can improve stability.
Additionally, there is a need to provide the update device of a kind of application program that can improve stability.
The upgrade method of a kind of application program, comprises the steps:
The operating system at application program place is cloned and obtains the virtual environment corresponding with described operating system;
Described virtual environment is upgraded described application program;
The access environment of described application program is switched to the virtual environment after upgrading by described operating system.
Preferably, described in described virtual environment, upgrade described application program process be:
The upgrading data of described application program are downloaded in described virtual environment;
The upgrading data that described download obtains are installed.
Preferably, also include before the step of the described upgrading data downloading described application program in described virtual environment:
Isolate the virtual environment that described clone obtains.
Preferably, described the access environment of described application program is switched to upgrading by described operating system after virtual environment step after also include:
Test the virtual environment after described upgrading the most normal, if it is not, then
The access environment of described application program is switched to described operating system by the virtual environment after described upgrading.
A kind of update device of application program, including:
Cloning module, obtains the virtual environment corresponding with described operating system for cloning the operating system at application program place;
Upgraded module, for upgrading described application program in described virtual environment;
Handover module, for being switched to the virtual environment after upgrading by the access environment of described application program by described operating system.
Preferably, described upgraded module includes:
Download unit, for downloading the upgrading data of described application program in described virtual environment;
Installation unit, for installing the upgrading data that described download obtains.
Preferably, described upgraded module also includes:
Isolated location, for isolating the virtual environment that described clone obtains.
Preferably, also include:
Test module, the virtual environment after testing described upgrading is the most normal, if it is not, then notify described handover module;
Described handover module is additionally operable to by the virtual environment after described upgrading, the access environment of described application program is switched to described operating system.
The operating system at application program place is cloned by upgrade method and the device of above-mentioned application program, by the upgrading of virtual Environment Implementation application program duplicate with described operating system on the premise of not destroying described operating system environment, and then the access environment of application program is switched to the virtual environment after upgrading by described operating system, there is not any change in described operating system during upgrading, remain the environment before upgrading, even if escalation process there occurs, mistake also is able to return to the environment of operating system before upgrading, improve stability.
[accompanying drawing explanation]
Fig. 1 is the flow chart of the upgrade method of application program in an embodiment;
Fig. 2 be in Fig. 1 in virtual environment the method flow diagram of upgrade applications;
Fig. 3 is the flow chart of the upgrade method of application program in another embodiment;
Fig. 4 is the structural representation of the update device of application program in an embodiment;
Fig. 5 is the structural representation of upgraded module in an embodiment;
Fig. 6 is the structural representation of upgraded module in another embodiment.
[detailed description of the invention]
Fig. 1 shows the upgrade method of application program in an embodiment, comprises the steps:
Step S110, clones the operating system at application program place and obtains the virtual environment corresponding with described operating system.
In the present embodiment, application program is installed in operating system, and this operating system can be arranged in physical server or virtual machine, and user is by setting up this application program of connected reference with operating system.
When receiving the upgrade command of automatic upgrade command or manager's initiation, clone for target with the operating system at application program place, produce and the living virtual environment of operating system.Such as, in this virtual platform of VMwarevsphere, virtual machine management program (the VMMVirtualMachineManager in virtual platform is connected by this interface of WebServiceAPI, VMM), cloning process (such as VirtualMachine.CloneVM_Task) is called by virtual machine management program, to start the clone of operating system, and the parameter cloned is specified by VirtualMachineCloneSpec;After completing the clone of operating system, produce corresponding virtual environment, and the successful message of clone will be returned to virtual machine management program, now, upgrade management program in virtual platform is set up with the upgrade management program in virtual environment and is connected and communication, the upgrading of the upgrade management program adapter application program in virtual environment.
Step S130, upgrade applications in virtual environment.
In the present embodiment, after the upgrading of the upgrade management program adapter application program in virtual environment, carried out the upgrading of application program by virtual environment.
In one embodiment, as in figure 2 it is shown, the detailed process of above-mentioned steps S130 is:
Step S131, downloads the upgrading data of application program in virtual environment.
In the present embodiment, the download of upgrading data is carried out by virtual environment, and the upgrading data not carrying out application program are downloaded by operating system, so that the environment in operating system can't change because of the upgrading of application program, the environment before upgrading when preventing from escalation process makes a mistake, can be rolled back to.
Step S133, installs and downloads the upgrading data obtained.
In the present embodiment, after having downloaded, install in virtual environment and download the upgrading data obtained, to realize the upgrading of application program in virtual environment.
In another embodiment, further comprises the step of the virtual environment that isolation clone obtains before above-mentioned steps S131.
In the present embodiment, before downloading upgrading data, forbidding that outer bound pair virtual environment conducts interviews, the virtual environment that isolation clone obtains, to ensure to be disturbed by the external world.Specifically, the isolation to virtual environment can be realized by network settings, and virtual environment such as, is arranged in network in the VLAN of some independent isolation (VirtualLocalAreaNetwork is called for short VLAN).
Step S150, by the access environment of application program by the virtual environment after operating system switching upgrading.
In the present embodiment, after the application program updating realized by virtual environment is completed, the upgrade management program in virtual environment sends context swap, and access environment is switched to the virtual environment after upgrading by operating system by calling interface.Context swap includes change reference address and the relevant order arranged, and such as, reference address can be corresponding ICP/IP protocol address, i.e. IP address.
The handoff procedure of access environment is that the operating system that user accesses originally is switched to virtual environment, and now, user does not visit again operating system, but conducts interviews virtual environment, and then realizes the access to the application program after upgrading.Such as, if the reference address of operating system is 192.168.1.100/24, virtual environment is isolated from another VLAN, and corresponding reference address is 192.168.2.100/24, and the now switching of access environment can realize by exchanging the reference address in operating system and virtual environment.
Application program user being accessed by handover access environment is the application program after upgrading; and time that handover access environment is spent is extremely short; produce downtime hardly, also do not interfere with the user's normal access to application program even at the state upgraded.
In another embodiment, as it is shown on figure 3, further comprises following steps after step S150 of the upgrade method of application program:
Step S301, the virtual environment after test upgrading is the most normal, if it is not, then enter step S303, the most then terminates.
In the present embodiment, after virtual environment completes the upgrading of application program, also need to the virtual environment after upgrading is tested, judge whether the virtual environment after upgrading is in normal condition, if it is not, then need to roll back to the state before upgrading, i.e. enter step S303, if learning that the virtual environment after upgrading is normal by detection, the application program in virtual environment is available after the upgrade, will terminate the escalation process of whole application program.
Step S303, is switched to operating system by the access environment of application program by the virtual environment after upgrading.
In the present embodiment, after the virtual environment after test to upgrading may have occurred mistake, it should the access environment of application program is switched to operating system by the virtual environment after upgrading, to ensure that user is able to access that application program.
Fig. 4 shows the update device of application program in an embodiment, including cloning module 10, upgraded module 30 and handover module 50.
Cloning module 10, obtains the virtual environment corresponding with operating system for cloning the operating system at application program place.
In the present embodiment, application program is installed in operating system, and this operating system is generally disposed in physical server or virtual machine, and user is by setting up this application program of connected reference with operating system.Cloning module 10, when receiving the upgrade command of automatic upgrade command or manager's initiation, is cloned with the operating system at application program place for target, produces and the living virtual environment of operating system.
Such as, in this virtual platform of VMwarevsphere, cloning module 10 connects the virtual machine management program in virtual platform by this interface of WebServiceAPI, and call cloning process (such as VirtualMachine.CloneVM_Task) by virtual machine management program, to start the clone of operating system, and the parameter cloned is specified by VirtualMachineCloneSpec;After completing the clone of operating system, produce corresponding virtual environment, and the successful message of clone will be returned to virtual machine management program, now, upgrade management program in virtual platform is set up with the upgrade management program in virtual environment and is connected and communication, the upgrading of the upgrade management program adapter application program in virtual environment.
Upgraded module 30, for upgrade applications in virtual environment.
In the present embodiment, after the upgrading of the upgrade management program adapter application program in virtual environment, upgraded module 30 carries out the upgrading of application program by virtual environment.
In one embodiment, as it is shown in figure 5, upgraded module 30 includes download unit 310 and installation unit 330.
Download unit 310, for downloading the upgrading data of application program in virtual environment.
In the present embodiment, download unit 310 carries out the download of upgrading data by virtual environment, and the upgrading data not carrying out application program are downloaded by operating system, so that the environment in operating system can't change because of the upgrading of application program, the environment before upgrading when can effectively prevent from escalation process makes a mistake, can be rolled back to.
Installation unit 330, downloads, for installing, the upgrading data obtained.
In the present embodiment, after having downloaded, installation unit 330 is installed in virtual environment and is downloaded the upgrading data obtained, to realize the upgrading of application program in virtual environment.
In another embodiment, as shown in Figure 6, above-mentioned upgraded module 30 further comprises isolated location 350.
Isolated location 350, for isolating the virtual environment that clone obtains.
In the present embodiment, before downloading upgrading data, forbidding that outer bound pair virtual environment conducts interviews, the virtual environment that isolated location 350 isolation clone obtains, to ensure to be disturbed by the external world.Specifically, the isolation of virtual environment can be realized by isolated location 350 by network settings, such as, virtual environment is arranged in network in the VLAN of some independent isolation.
Handover module 50, for being switched to the virtual environment after upgrading by the access environment of application program by operating system.
In the present embodiment, after the application program updating realized by virtual environment is completed, the handover module 50 upgrade management program in virtual environment sends context swap, and access environment is switched to the virtual environment after upgrading by operating system by calling interface.Context swap includes change reference address and the relevant order arranged, and such as, reference address can be corresponding ICP/IP protocol address, i.e. IP address.
The operating system that user accesses originally is switched to virtual environment by handover module 50, and now, user does not visit again operating system, but conducts interviews virtual environment, and then realizes the access to the application program after upgrading.Such as, if the reference address of operating system is 192.168.1.100/24, virtual environment is isolated from another VLAN, and corresponding reference address is 192.168.2.100/24, the reference address during now handover module 50 exchanges operating system and virtual environment.
The application program that handover module 50 makes user access is the application program after upgrading, and the time that handover access environment is spent is extremely short, produces downtime hardly, does not also interfere with the user's normal access to application program even at the state upgraded.
In another embodiment, the update device of above-mentioned application program also includes testing module, and this test module virtual environment after testing upgrading is the most normal, if it is not, then notice handover module 50.
In the present embodiment, after virtual environment completes the upgrading of application program, also need to test module the virtual environment after upgrading is tested, judge whether the virtual environment after upgrading is in normal condition, if it is not, then need to roll back to the state before upgrading, i.e. enter step S303, if learning that the virtual environment after upgrading is normal by detection, the application program in virtual environment is available after the upgrade, will terminate the escalation process of whole application program.
Handover module 50 is additionally operable to by the virtual environment after upgrading, the access environment of application program is switched to operating system.
In the present embodiment, after the virtual environment after test to upgrading may have occurred mistake, the access environment of application program should be switched to operating system by the virtual environment after upgrading by handover module 50, to ensure that user is able to access that application program.
The update device of above-mentioned application program is realized by virtual machine, to ensure quickly upgrading and the stability thereof of application program.During traditional application program updating, the application program making original version is supplemented unloading or covers, if the redaction installed goes wrong and whole application program will be caused to be destroyed, it is impossible to use by the upgrading of application program.And the upgrade method of above-mentioned application program and device carry out the upgrading of application program by virtual machine, and the application program in operating system does not changes, remain able to when upgrading there occurs mistake roll back to the environment between upgrading, i.e. application program in operating system, it is ensured that stability.
The operating system at application program place is cloned by upgrade method and the device of above-mentioned application program, by the upgrading of virtual Environment Implementation application program duplicate with operating system on the premise of not destroying operating system environment, and then the access environment of application program is switched to the virtual environment after upgrading by operating system, there is not any change in operating system during upgrading, remain the environment before upgrading, even if escalation process there occurs, mistake also is able to return to the environment of operating system before upgrading, improve stability.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that, for the person of ordinary skill of the art, without departing from the inventive concept of the premise, it is also possible to make some deformation and improvement, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (8)

1. a upgrade method for application program, comprises the steps:
Cloning the operating system at application program place and obtain the virtual environment corresponding with described operating system, described operating system is arranged in physical server or virtual machine, and user is by setting up this application program of connected reference with described operating system;
Described virtual environment is upgraded described application program;
The access environment of described application program is switched to the virtual environment after upgrading by described operating system;Described the detailed process of the virtual environment after upgrading is switched to include by operating system: the upgrade management program in virtual environment sends context swap, and access environment is switched to the virtual environment after upgrading, described context swap to include changing the order of reference address by operating system by calling interface.
The upgrade method of application program the most according to claim 1, it is characterised in that described in described virtual environment, upgrade described application program process be:
The upgrading data of described application program are downloaded in described virtual environment;
The upgrading data that described download obtains are installed.
The upgrade method of application program the most according to claim 2, it is characterised in that also include before the step of the described upgrading data downloading described application program in described virtual environment:
Isolate the virtual environment that described clone obtains.
The upgrade method of application program the most according to claim 1, it is characterised in that described the access environment of described application program is switched to upgrading by described operating system after virtual environment step after also include:
Test the virtual environment after described upgrading the most normal, if it is not, then
The access environment of described application program is switched to described operating system by the virtual environment after described upgrading.
5. the update device of an application program, it is characterised in that including:
Cloning module, the virtual environment corresponding with described operating system is obtained for the operating system at application program place is cloned, described operating system is arranged in physical server or virtual machine, and user is by setting up this application program of connected reference with described operating system;
Upgraded module, for upgrading described application program in described virtual environment;
Handover module, for being switched to the virtual environment after upgrading by the access environment of described application program by described operating system;Described the detailed process of the virtual environment after upgrading is switched to include by operating system: the upgrade management program in virtual environment sends context swap, and access environment is switched to the virtual environment after upgrading, described context swap to include change reference address and the relevant order arranged by operating system by calling interface.
The update device of application program the most according to claim 5, it is characterised in that described upgraded module includes:
Download unit, for downloading the upgrading data of described application program in described virtual environment;
Installation unit, for installing the upgrading data that described download obtains.
The update device of application program the most according to claim 6, it is characterised in that described upgraded module also includes:
Isolated location, for isolating the virtual environment that described clone obtains.
The update device of application program the most according to claim 5, it is characterised in that also include:
Test module, the virtual environment after testing described upgrading is the most normal, if it is not, then notify described handover module;
Described handover module is additionally operable to by the virtual environment after described upgrading, the access environment of described application program is switched to described operating system.
CN201110279972.5A 2011-09-20 2011-09-20 The upgrade method of application program and device Active CN103019752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110279972.5A CN103019752B (en) 2011-09-20 2011-09-20 The upgrade method of application program and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110279972.5A CN103019752B (en) 2011-09-20 2011-09-20 The upgrade method of application program and device

Publications (2)

Publication Number Publication Date
CN103019752A CN103019752A (en) 2013-04-03
CN103019752B true CN103019752B (en) 2016-08-03

Family

ID=47968390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110279972.5A Active CN103019752B (en) 2011-09-20 2011-09-20 The upgrade method of application program and device

Country Status (1)

Country Link
CN (1) CN103019752B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701924A (en) * 2013-12-31 2014-04-02 曙光云计算技术有限公司 Method and system for changing configuration during application and operation of PASS (platform-as-a-service) platform
CN105653338B (en) * 2015-12-30 2019-02-12 Oppo广东移动通信有限公司 A kind of update method and device of application
CN106648671B (en) * 2016-12-27 2020-05-19 宇龙计算机通信科技(深圳)有限公司 Application upgrading method and terminal
CN106933618B (en) * 2017-01-25 2020-03-27 上海蔚来汽车有限公司 System upgrade evaluation method based on system parameter correlation coefficient
CN107291490A (en) * 2017-05-03 2017-10-24 上海上讯信息技术股份有限公司 A kind of method and apparatus of system upgrade

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858704A (en) * 2006-02-07 2006-11-08 华为技术有限公司 Method of upgrading sequence
CN101334825A (en) * 2007-06-29 2008-12-31 联想(北京)有限公司 Application program management and operation system and method
CN101408856A (en) * 2008-11-21 2009-04-15 清华大学 System and method for tolerance disaster backup(disaster-tolerant backup)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7000229B2 (en) * 2002-07-24 2006-02-14 Sun Microsystems, Inc. Method and system for live operating environment upgrades
CN101217401B (en) * 2008-01-10 2010-11-10 华为技术有限公司 Base station controller upgrade, backup method and device
CN101583147B (en) * 2009-06-17 2011-01-05 哈尔滨工业大学 Segmental online support vector regression method applied in traffic prediction
CN102081540B (en) * 2011-01-18 2014-04-16 杭州华三通信技术有限公司 Distributed dual-master control network equipment software updating method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858704A (en) * 2006-02-07 2006-11-08 华为技术有限公司 Method of upgrading sequence
CN101334825A (en) * 2007-06-29 2008-12-31 联想(北京)有限公司 Application program management and operation system and method
CN101408856A (en) * 2008-11-21 2009-04-15 清华大学 System and method for tolerance disaster backup(disaster-tolerant backup)

Also Published As

Publication number Publication date
CN103019752A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN103019752B (en) The upgrade method of application program and device
US7007077B1 (en) Remote maintenance method of an information processing apparatus
CN102238093B (en) Service interruption prevention method and device
US8855627B2 (en) System and method for enhanced diagnostics on mobile communication devices
CN103377094A (en) Abnormity monitoring method and abnormity monitoring device
CN102195817B (en) Software upgrading method and device and software rollback method and device
CN109491698A (en) Method for updating system and device based on hot patch
JP2006268172A (en) Server system and method for updating online software
JP2003288226A (en) Method and system for remotely updating household device
CN105426213B (en) Oftware updating method and system
CN104750515A (en) Firmware version upgrading method and system
CN105517015A (en) Upgrading method, device of wifi product by over the air OTA and terminal
CN108536464A (en) A kind of hot restorative procedure and device of application program
CN109144532A (en) Upgrade method and device
CN106303709A (en) A kind of Set Top Box and application program updating method, system
US10606632B2 (en) Preventing interruption during virtual machine reboot
CN109002305A (en) A kind of update method and its system of device program
WO2000079390A1 (en) Updating microprocessor boot software
CN104780408B (en) A kind of Intelligent television control method and system based on intelligent terminal
CN106028142A (en) Upgrading control method and upgrading control apparatus for playing devices
EP3043262A1 (en) Method and device for remote base station version installation
CN105704707A (en) Slave equipment and air upgrading method thereof
CN111769966B (en) Clone upgrading method, system and application
CN113050960A (en) OTA (over the air) upgrading method and device, vehicle-mounted terminal and storage medium
CN101022636A (en) Device updating method and hardware device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant