CN104461612A - Data processing method and device - Google Patents
Data processing method and device Download PDFInfo
- Publication number
- CN104461612A CN104461612A CN201410635774.1A CN201410635774A CN104461612A CN 104461612 A CN104461612 A CN 104461612A CN 201410635774 A CN201410635774 A CN 201410635774A CN 104461612 A CN104461612 A CN 104461612A
- Authority
- CN
- China
- Prior art keywords
- functional characteristic
- rollback
- described user
- upgrading
- specified
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明实施例公开了一种数据处理方法及装置,方法包括:获取新版本的软件包,新版本的软件包中包含各个功能特性的新版本软件包;接收用户下发的升级命令,升级命令中包含用户指定升级的功能特性的标识;在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应新版本目录下;启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级。本发明实施例能够对用户指定升级或回退的功能特性进行升级或回退,以满足用户的不同需求。
The embodiment of the present invention discloses a data processing method and device. The method includes: obtaining a new version of the software package, which contains new versions of software packages with various functional characteristics; receiving an upgrade command issued by the user, and the upgrade command Contains the identity of the user-specified upgrade feature; create a new version directory under the user-specified upgrade feature and decompress the new version software package of the user-specified upgrade feature into the new version directory of the corresponding feature feature; The data and files in the old version directory of the specified upgraded features are upgraded to the corresponding new version directory; the data and files in the new version directory of the features specified by the user are started to complete the upgrade. The embodiments of the present invention can upgrade or roll back the functions and features specified by users to be upgraded or rolled back, so as to meet different needs of users.
Description
技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种数据处理方法及装置。Embodiments of the present invention relate to the field of communication technologies, and in particular, to a data processing method and device.
背景技术Background technique
一个网元通常包含了多个功能特性,网元的发布版本是所有功能特性的全集,发布的新版本可能对原有的部分或全部特性进行了功能增强或缺陷修改,或增加了新的特性等。用户如果需要增强网元的当前功能或修复网元现有的缺陷,则需要将网元的当前版本升级到新版本。A network element usually contains multiple functions and features. The released version of a network element is a complete set of all functions and features. The new version released may enhance or modify some or all of the original features, or add new features. wait. If the user needs to enhance the current function of the network element or repair the existing defects of the network element, it is necessary to upgrade the current version of the network element to a new version.
现有技术一般将网元版本作为一个整体进行升级或回退,不支持将网元版本再细分功能特性进行升级或回退。即如果用户选择版本升级,则将网元整体功能升级到新版本,不支持只升级某部分功能特性;同样如果用户升级后需要回退,只能把网元整体回退到升级前的版本,不能选择只回退某部分功能特性,这种方法存在一定的缺陷。The prior art generally upgrades or rolls back the network element version as a whole, and does not support subdividing the network element version into functions and features for upgrading or rollback. That is, if the user chooses to upgrade the version, the overall function of the network element will be upgraded to the new version, and it is not supported to upgrade only some functions and features; similarly, if the user needs to roll back after the upgrade, the entire network element can only be rolled back to the version before the upgrade. It is not possible to choose to roll back only some features. This method has certain defects.
例如:某些功能特性运行稳定,该功能特性当前运行版本的功能满足需求,不需要使用这些特性在新版本增强的功能,以免新版本增强的功能对当前版本稳定的功能造成影响;再例如,某些特性的缺陷在该运营商使用场景不存在,因此无需更新版本或补丁修复该特性。即在进行版本升级时,对某些功能特性有时候运营商不希望升级,希望保持稳定的运行状态,只升级其它需要升级的功能特性;同样,如果运营商升级了功能特性后,发现某些功能特性运行时存在缺陷,需要回退这些特性,但是其它升级的特性没有问题,不希望所有升级的特性都回退,尽量做到回退影响最小,而现有技术无法满足这一需求,因此,有必要提供一种新的方法解决上述问题。For example: Some features are running stably, and the functions of the current running version of this feature meet the requirements, and there is no need to use the enhanced functions of these features in the new version, so as to avoid the impact of the enhanced functions of the new version on the stable functions of the current version; another example, The defect of some features does not exist in the usage scenario of this operator, so there is no need to update the version or patch to fix this feature. That is to say, when upgrading the version, sometimes the operator does not want to upgrade some functions and features, but wants to maintain a stable running state, and only upgrades other features that need to be upgraded; similarly, if the operator upgrades the functions and features, some There are defects in the operation of functional features, and these features need to be rolled back, but there is no problem with other upgraded features. I don’t want all the upgraded features to be rolled back, and try to minimize the impact of the rollback, and the existing technology cannot meet this requirement, so , it is necessary to provide a new method to solve the above problems.
发明内容Contents of the invention
有鉴于此,本发明实施例提供了一种数据处理方法及装置,能够对用户指定升级或回退的功能特性进行升级或回退,以满足用户的不同需求。In view of this, the embodiments of the present invention provide a data processing method and device, capable of upgrading or rolling back functions and features specified by users to meet different needs of users.
第一方面,本发明实施例提供的数据处理装置,包括:In the first aspect, the data processing device provided by the embodiment of the present invention includes:
获取单元,用于获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包;An acquisition unit, configured to acquire a new version of the software package, the new version of the software package includes a new version of the software package of each functional feature;
接收单元,用于接收用户下发的升级命令,所述升级命令中包含所述用户指定升级的功能特性的标识;A receiving unit, configured to receive an upgrade command issued by a user, wherein the upgrade command includes an identifier of a functional characteristic specified by the user to be upgraded;
创建单元,用于根据所述用户指定升级的功能特性的标识在所述用户指定升级的功能特性下创建新版本目录并将所述用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;A creating unit, configured to create a new version directory under the user-specified upgraded functional features according to the identifier of the user-specified upgraded functional features and decompress the new version software package of the user-specified upgraded functional features to corresponding functions The new version directory of the feature;
处理单元,用于将所述用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;A processing unit, configured to upgrade the data and files in the old version directory of the user-specified upgraded functional characteristics to the corresponding new version directory;
升级单元,用于启动所述用户指定升级的功能特性的新版本目录下的数据和文件完成升级。The upgrade unit is used to start the data and files in the new version directory of the functional characteristics specified by the user to complete the upgrade.
结合第一方面,在第一方面的第一种实施方式中,所述升级单元具体用于:With reference to the first aspect, in the first implementation manner of the first aspect, the upgrading unit is specifically used for:
停止所述用户指定升级的功能特性的进程;Stop the process of the user-specified upgraded features;
将所述用户指定升级的功能特性的主用版本更新为对应功能特性的新版本;updating the main version of the functional features specified by the user to be a new version of the corresponding functional features;
添加所述用户指定升级的功能特性的进程;The process of adding the functional features specified by the user to be upgraded;
启动所述用户指定升级的功能特性的进程完成升级。Initiating the process of the user-specified upgraded features completes the upgrade.
结合第一方面,在第一方面的第二种实施方式中,若第一功能特性依赖第二功能特性,需要调用所述第二功能特性的库文件,则所述第一功能特性的软件包中包含所述第二功能特性的库文件。In combination with the first aspect, in the second implementation manner of the first aspect, if the first functional characteristic depends on the second functional characteristic and needs to call the library file of the second functional characteristic, the software package of the first functional characteristic The library file that contains the second feature in .
结合第一方面,在第一方面的第三种实施方式中,若第一功能特性依赖第二功能特性,需要调用所述第二功能特性提供的服务,则所述第一功能特性的软件包中包含所述第二功能特性的对外接口文件。With reference to the first aspect, in the third implementation manner of the first aspect, if the first functional characteristic depends on the second functional characteristic and needs to call the service provided by the second functional characteristic, the software package of the first functional characteristic contains the external interface file of the second functional feature.
结合第一方面,或第一方面的第一种实施方式,或第一方面的第二种实施方式,或第一方面的第三种实施方式,在第一方面的第四种实施方式中,所述装置还包括:In combination with the first aspect, or the first implementation manner of the first aspect, or the second implementation manner of the first aspect, or the third implementation manner of the first aspect, in the fourth implementation manner of the first aspect, The device also includes:
设置单元,用于为已升级的功能特性设置回退标识以供所述用户查询;A setting unit, configured to set a rollback flag for the upgraded functional characteristics for the user to query;
所述接收单元还用于,接收所述用户下发的回退指令,所述回退指令中包含所述用户指定回退的功能特性的标识;The receiving unit is further configured to receive a rollback instruction issued by the user, where the rollback instruction includes an identifier of a feature specified by the user for rollback;
所述装置还包括:The device also includes:
回退单元,用于启动所述用户指定回退的功能特性的老版本目录下的数据和文件完成回退。The rollback unit is configured to start the rollback of the data and files in the directory of the old version of the functional characteristics specified by the user to roll back.
结合第一方面的第四种实施方式,在第一方面的第五种实施方式中,所述回退单元具体用于:With reference to the fourth implementation manner of the first aspect, in the fifth implementation manner of the first aspect, the rollback unit is specifically configured to:
停止所述用户指定回退的功能特性的进程;stopping the process of said user-specified fallback feature;
将所述用户指定回退的功能特性的主用版本更新为所述用户指定回退的功能特性的老版本;updating the main version of the user-specified rollback feature to an old version of the user-specified rollback feature;
添加所述用户指定回退的功能特性的进程;the process of adding said user-specified fallback feature;
启动所述用户指定回退的功能特性的进程完成回退。The process that started the feature of the user-specified rollback completes the rollback.
结合第一方面的第五种实施方式,在第一方面的第六种实施方式中,所述装置还包括:With reference to the fifth implementation manner of the first aspect, in the sixth implementation manner of the first aspect, the device further includes:
清除单元,用于清除已回退的功能特性的回退标识和/或清除所述已回退的功能特性的无用版本目录。The clearing unit is configured to clear the rollback identification of the rolled back functional features and/or clear the useless version directory of the rolled back functional features.
第二方面,本发明实施例提供的数据处理方法,包括:In the second aspect, the data processing method provided by the embodiment of the present invention includes:
获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包;Obtaining a new version of the software package, the new version of the software package includes a new version of the software package of each functional feature;
接收用户下发的升级命令,所述升级命令中包含所述用户指定升级的功能特性的标识;receiving an upgrade command issued by a user, wherein the upgrade command includes an identifier of a functional characteristic specified by the user to be upgraded;
根据所述用户指定升级的功能特性的标识在所述用户指定升级的功能特性下创建新版本目录并将所述用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;Create a new version directory under the user-specified upgrade function according to the identifier of the user-specified upgrade function and decompress the new version software package of the user-specify upgrade function into a new version directory of the corresponding function feature Down;
将所述用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;Upgrade the data and files in the old version directory of the functional characteristics specified by the user to the corresponding new version directory;
启动所述用户指定升级的功能特性的新版本目录下的数据和文件完成升级。The data and files in the new version directory of the function and characteristic specified by the user to be upgraded are started to complete the upgrade.
结合第二方面,在第二方面的第一种实施方式中,所述启动所述用户指定升级的功能特性的新版本目录下的数据和文件完成升级包括:With reference to the second aspect, in the first implementation manner of the second aspect, the starting of the data and files under the new version directory of the user-specified upgraded functional features to complete the upgrade includes:
停止所述用户指定升级的功能特性的进程;Stop the process of the user-specified upgraded features;
将所述用户指定升级的功能特性的主用版本更新为对应功能特性的新版本;updating the main version of the functional features specified by the user to be a new version of the corresponding functional features;
添加所述用户指定升级的功能特性的进程;The process of adding the functional features specified by the user to be upgraded;
启动所述用户指定升级的功能特性的进程完成升级。Initiating the process of the user-specified upgraded features completes the upgrade.
结合第二方面,在第二方面的第二种实施方式中,若第一功能特性依赖第二功能特性,需要调用所述第二功能特性的库文件,则所述第一功能特性的软件包中包含所述第二功能特性的库文件。With reference to the second aspect, in the second implementation manner of the second aspect, if the first functional characteristic depends on the second functional characteristic and needs to call the library file of the second functional characteristic, then the software package of the first functional characteristic The library file that contains the second feature in .
结合第二方面,在第二方面的第三种实施方式中,若第一功能特性依赖第二功能特性,需要调用所述第二功能特性提供的服务,则所述第一功能特性的软件包中包含所述第二功能特性的对外接口文件。With reference to the second aspect, in the third implementation manner of the second aspect, if the first functional characteristic depends on the second functional characteristic and needs to call the service provided by the second functional characteristic, the software package of the first functional characteristic contains the external interface file of the second functional feature.
结合第二方面,或第二方面的第一种实施方式,或第二方面的第二种实施方式,或第二方面的第三种实施方式,在第二方面的第四种实施方式中,所述方法还包括:In combination with the second aspect, or the first implementation manner of the second aspect, or the second implementation manner of the second aspect, or the third implementation manner of the second aspect, in the fourth implementation manner of the second aspect, The method also includes:
为已升级的功能特性设置回退标识以供所述用户查询;Set a fallback flag for the upgraded functional characteristics for the user to query;
接收所述用户下发的回退指令,所述回退指令中包含所述用户指定回退的功能特性的标识;receiving a rollback instruction issued by the user, where the rollback instruction includes an identifier of the feature specified by the user for rollback;
启动所述用户指定回退的功能特性的老版本目录下的数据和文件完成回退。The data and files in the directory of the old version of the user-specified rollback feature are started to roll back.
结合第二方面的第四种实施方式,在第二方面的第五种实施方式中,所述启动所述用户指定回退的功能特性的老版本目录下的数据和文件完成回退包括:With reference to the fourth implementation manner of the second aspect, in the fifth implementation manner of the second aspect, the rollback of the data and files under the old version directory of the user-specified rollback feature includes:
停止所述用户指定回退的功能特性的进程;stopping the process of said user-specified fallback feature;
将所述用户指定回退的功能特性的主用版本更新为所述用户指定回退的功能特性的老版本;updating the main version of the user-specified rollback feature to an old version of the user-specified rollback feature;
添加所述用户指定回退的功能特性的进程;the process of adding said user-specified fallback feature;
启动所述用户指定回退的功能特性的进程完成回退。The process that started the feature of the user-specified rollback completes the rollback.
结合第二方面的第五种实施方式,在第二方面的第六种实施方式中,所述方法还包括:With reference to the fifth implementation manner of the second aspect, in the sixth implementation manner of the second aspect, the method further includes:
清除已回退的功能特性的回退标识和/或清除所述已回退的功能特性的无用版本目录。Clearing the rollback identifier of the rolled back feature and/or clearing the useless version directory of the rolled back feature.
从以上技术方案可以看出,本发明实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:
本发明实施例中,所获取的新版本的软件包中包含各个功能特性的新版本软件包,在接收到用户下发的升级指令之后,在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下,将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应新版本目录下;启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级。即本发明实施例可以对用户指定的功能特性进行升级,不升级的功能特性不受影响,从而满足了用户的不同需求。In the embodiment of the present invention, the obtained new version software package contains new version software packages with various functional characteristics. After receiving the upgrade instruction issued by the user, a new version directory is created under the user-specified upgraded functional characteristics and The software package of the new version of the function and characteristics specified by the user is decompressed to the new version directory of the corresponding function and characteristics, and the data and files in the directory of the old version of the function and characteristics specified by the user are upgraded to the directory of the corresponding new version; The data and files in the directory of the new version of the upgraded features are upgraded. That is to say, the embodiment of the present invention can upgrade the functions and characteristics specified by the user, and the functions and characteristics that are not upgraded will not be affected, thereby satisfying different requirements of users.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required in the embodiments. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本发明数据处理装置一个实施例示意图;Fig. 1 is a schematic diagram of an embodiment of the data processing device of the present invention;
图2为本发明数据处理装置另一实施例示意图;2 is a schematic diagram of another embodiment of the data processing device of the present invention;
图3为本发明数据处理装置另一实施例示意图;3 is a schematic diagram of another embodiment of the data processing device of the present invention;
图4为本发明数据处理方法一个实施例示意图;Fig. 4 is a schematic diagram of an embodiment of the data processing method of the present invention;
图5为本发明数据处理方法另一实施例示意图;5 is a schematic diagram of another embodiment of the data processing method of the present invention;
图6为本发明网元软件包的构成一实施例示意图;6 is a schematic diagram of an embodiment of the composition of the network element software package of the present invention;
图7为本发明网元软件包初始版本安装时的一个实施例示意图;FIG. 7 is a schematic diagram of an embodiment of the installation of the initial version of the network element software package of the present invention;
图8为本发明网元软件包更新时的一个实施例示意图;FIG. 8 is a schematic diagram of an embodiment of the present invention when the network element software package is updated;
图9为本发明网元软件包回退时的一个实施例示意图。FIG. 9 is a schematic diagram of an embodiment of the rollback of the network element software package according to the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例提供了一种数据处理方法及装置,能够对用户指定升级或回退的功能特性进行升级或回退,以满足用户的不同需求。The embodiments of the present invention provide a data processing method and device, which can upgrade or roll back the functions and features specified by users to meet different needs of users.
请参阅图1,图1是本发明数据处理装置一个实施例示意图,本实施例的数据处理装置100包括:Please refer to FIG. 1. FIG. 1 is a schematic diagram of an embodiment of a data processing device of the present invention. The data processing device 100 of this embodiment includes:
获取单元101,用于获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包;The acquiring unit 101 is configured to acquire a software package of a new version, the software package of the new version includes new software packages of various functional characteristics;
接收单元102,用于接收用户下发的升级命令,所述升级命令中包含所述用户指定升级的功能特性的标识;The receiving unit 102 is configured to receive an upgrade command issued by a user, where the upgrade command includes an identifier of a functional characteristic specified by the user to be upgraded;
创建单元103,用于根据所述用户指定升级的功能特性的标识在所述用户指定升级的功能特性下创建新版本目录并将所述用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;The creating unit 103 is configured to create a new version directory under the user-specified upgraded functional features according to the identifier of the user-specified upgraded functional features and decompress the new version software package of the user-specified upgraded functional features to the corresponding Under the directory of the new version of the function feature;
处理单元104,用于将所述用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;The processing unit 104 is configured to upgrade the data and files in the old version directory of the functional characteristics specified by the user to be upgraded to the corresponding new version directory;
升级单元105,用于启动所述用户指定升级的功能特性的新版本目录下的数据和文件完成升级。The upgrade unit 105 is configured to start the data and files in the new version directory of the user-specified upgrade function to complete the upgrade.
具体实现中,当网元软件包有新版本发布时,获取单元101获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包,每个功能特性的新版本软件包为独立的软件包。用户可根据需求选择需要升级的功能特性并下发升级命令,接收单元102接收所述升级命令,所述升级命令中包含用户指定升级的功能特性的标识。In the specific implementation, when a new version of the network element software package is released, the acquisition unit 101 acquires the new version of the software package, which includes the new version software package of each functional feature, and the new version of each functional feature Packages are stand-alone packages. The user can select the functional characteristics to be upgraded according to requirements and issue an upgrade command, and the receiving unit 102 receives the upgrade command, and the upgrade command includes the identification of the functional characteristics specified by the user to be upgraded.
创建单元103根据接收单元102接收到的升级命令中包含的功能特性的标识在用户指定升级的功能特性下创建新版本目录,并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下,此时新版本目录下只有安装后的缺省数据,处理单元104将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下,以使得新版本能够继承和使用老版本产生的数据,提供相应的功能,升级单元105启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级。Creation unit 103 creates a new version catalog under the functional characteristics specified by the user according to the identification of the functional characteristics contained in the upgrade command received by the receiving unit 102, and decompresses the new version software package of the functional characteristics specified by the user to the corresponding function In the new version directory of the feature, at this time, there is only default data after installation under the new version directory, and the processing unit 104 upgrades the data and files in the old version directory of the functional characteristics specified by the user to the corresponding new version directory, so as to To enable the new version to inherit and use the data generated by the old version and provide corresponding functions, the upgrade unit 105 activates the data and files in the new version directory of the functional characteristics specified by the user to complete the upgrade.
本实施例中,获取单元所获取的新版本的软件包中包含各个功能特性的新版本软件包,在接收单元接收到用户下发的升级指令之后,创建单元在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下,处理单元将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应新版本目录下;升级单元启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级。即本实施例可以按照功能特性粒度进行版本升级,对用户指定升级的功能特性进行升级,不升级的功能特性不受影响,从而满足了用户的不同需求。In this embodiment, the software package of the new version acquired by the acquisition unit contains new version software packages of various functional characteristics. After the receiving unit receives the upgrade instruction issued by the user, the creation unit creates the software package under the functional characteristics specified by the user to upgrade. The new version directory and decompress the new version software package of the functional characteristics specified by the user to the new version directory of the corresponding functional characteristics, and the processing unit upgrades the data and files in the old version directory of the functional characteristics specified by the user to the corresponding new version directory. Under the version directory; the upgrade unit starts the data and files in the new version directory of the functional characteristics specified by the user to complete the upgrade. That is to say, this embodiment can perform version upgrades according to the granularity of functional features, upgrade the functional features specified by the user, and not affect the functional features that are not upgraded, thereby meeting different needs of users.
为便于理解,下面介绍本发明数据处理装置一个具体实施例,请参阅图2,本实施例的数据处理装置200包括:For ease of understanding, a specific embodiment of the data processing device of the present invention is introduced below. Please refer to FIG. 2. The data processing device 200 of this embodiment includes:
获取单元201,用于获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包;The acquiring unit 201 is configured to acquire a new version of the software package, the new version of the software package includes a new version of the software package of each functional feature;
接收单元202,用于接收用户下发的升级命令,所述升级命令中包含所述用户指定升级的功能特性的标识;The receiving unit 202 is configured to receive an upgrade command issued by a user, where the upgrade command includes an identifier of a functional characteristic specified by the user to be upgraded;
创建单元203,用于根据所述用户指定升级的功能特性的标识在所述用户指定升级的功能特性下创建新版本目录并将所述用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;The creating unit 203 is configured to create a new version directory under the user-specified upgraded functional features according to the identifier of the user-specified upgraded functional features and decompress the new version software package of the user-specified upgraded functional features to the corresponding Under the directory of the new version of the function feature;
处理单元204,用于将所述用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;The processing unit 204 is configured to upgrade the data and files in the old version directory of the user-specified upgrade function to the corresponding new version directory;
升级单元205,用于启动所述用户指定升级的功能特性的新版本目录下的数据和文件完成升级;The upgrade unit 205 is used to start the data and files under the new version directory of the functional characteristics specified by the user to upgrade to complete the upgrade;
设置单元206,用于为已升级的功能特性设置回退标识以供所述用户查询;A setting unit 206, configured to set a fallback flag for the upgraded functional characteristics for the user to query;
接收单元201还用于,接收所述用户下发的回退指令,所述回退指令中包含所述用户指定回退的功能特性的标识;The receiving unit 201 is also configured to receive a rollback instruction issued by the user, where the rollback instruction includes an identifier of the feature of the rollback specified by the user;
数据处理装置200还包括:The data processing device 200 also includes:
回退单元207,用于启动所述用户指定回退的功能特性的老版本目录下的数据和文件完成回退;The rollback unit 207 is configured to start the rollback of the data and files in the old version directory of the functional characteristics specified by the user;
清除单元208,用于清除已回退的功能特性的回退标识和/或清除所述已回退的功能特性的无用版本目录。The clearing unit 208 is configured to clear the rollback identification of the rolled back functional features and/or clear the useless version directory of the rolled back functional features.
具体实现中,各个版本的网元软件包兼容,网元软件包中包含各个功能特性的软件包,每个功能特性的软件包独立存在。若不同的功能特性之间存在依赖关系,则在软件开发时给予解决。例如若第一功能特性依赖第二功能特性,需要调用第二功能特性的库文件,则将第二功能特性的库文件打包到第一功能特性的软件包中;若第一功能特性依赖第二功能特性,需要调用第二功能特性提供的服务,则将第二功能特性的对外接口文件打包到第一功能特性的软件包中,这样使得每个功能特性的软件包都可以独立存在。当网元软件包初始版本安装之后,在运行目录下每个功能特性都有一个版本目录,即老版本目录,初始时的主用版本为老版本。In specific implementation, the network element software packages of various versions are compatible, the network element software packages include software packages of various functional characteristics, and the software software packages of each functional characteristic exist independently. If there is a dependency relationship between different functional characteristics, it will be resolved during software development. For example, if the first functional feature depends on the second functional feature, and the library file of the second functional feature needs to be called, then the library file of the second functional feature is packaged into the software package of the first functional feature; if the first functional feature depends on the second If the functional feature needs to call the service provided by the second functional feature, the external interface file of the second functional feature is packaged into the software package of the first functional feature, so that each software package of the functional feature can exist independently. After the initial version of the network element software package is installed, there is a version directory for each feature in the running directory, that is, the old version directory, and the initial main version is the old version.
当开发出新版本的软件包之后,获取单元201可以从服务器获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包,每个功能特性的新版本软件包为独立的软件包。After a new version of the software package is developed, the obtaining unit 201 can obtain the new version of the software package from the server, the new version of the software package includes a new version of the software package of each functional feature, and the new version of the software package of each functional feature as a stand-alone software package.
用户可根据需求下发升级命令,例如可以指定哪些功能特性需要升级,接收单元202接收所述升级命令,所述升级命令中包含用户指定升级的功能特性的标识。The user may issue an upgrade command according to requirements, for example, may specify which functional characteristics need to be upgraded, and the receiving unit 202 receives the upgrade command, and the upgrade command includes the identification of the functional characteristics specified by the user to be upgraded.
创建单元203根据接收单元202接收到的升级命令中包含的功能特性的标识,在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下,此时新版本目录下只有安装后的缺省数据,主用版本目仍然是老版本。处理单元204将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下,以便新版本作为主用版本时,能够继承和使用老版本产生的数据,提供相应的功能。The creating unit 203 creates a new version directory under the user-specified upgraded functional characteristics according to the identification of the functional characteristics contained in the upgrade command received by the receiving unit 202 and decompresses the new version software package of the user-specified upgraded functional characteristics to the corresponding function In the new version directory of the feature, at this time, there is only the default data after installation in the new version directory, and the main version directory is still the old version. The processing unit 204 upgrades the data and files in the old version directory of the user-specified upgraded functional characteristics to the corresponding new version directory, so that when the new version is used as the main version, it can inherit and use the data generated by the old version, and provide corresponding Function.
升级单元205启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级。具体地,升级单元205需要先停止用户指定升级的功能特性的进程,将用户指定升级的功能特性的主用版本更新为对应功能特性的新版本,然互添加用户指定升级的功能特性的进程,最后启动用户指定升级的功能特性的进程完成升级。The upgrade unit 205 activates the data and files in the new version directory of the functional characteristics specified by the user to complete the upgrade. Specifically, the upgrade unit 205 needs to first stop the process of the user-specified upgraded functional features, update the main version of the user-specified upgraded functional features to a new version of the corresponding functional features, and then add the user-specified upgraded functional features to each other. Finally, the process of user-specified upgraded features is started to complete the upgrade.
在升级单元205完成升级之后,设置单元206为已升级的功能特性设置回退标识。用户可向数据处理装置下发查询指令,以查询哪些功能特性有回退版本。当需要对某个功能特性进行回退时,用户可下发回退指令,接收单元201接收所述回退指令,所述回退指令中包含用户指定回退的功能特性的标识,回退单元207启动用户指定回退的功能特性的老版本目录下的数据和文件完成回退。After the upgrade unit 205 completes the upgrade, the setting unit 206 sets a rollback flag for the upgraded functional characteristics. The user can issue a query command to the data processing device to query which functional features have rollback versions. When it is necessary to roll back a certain functional characteristic, the user can issue a rollback instruction, and the receiving unit 201 receives the rollback instruction. 207 Start the rollback of the data and files in the directory of the old version of the feature specified by the user to roll back.
具体地,回退单元207可先停止用户指定回退的功能特性的进程,将用户指定回退的功能特性的主用版本更新为用户指定回退的功能特性的老版本,然后添加用户指定回退的功能特性的进程,最后启动用户指定回退的功能特性的进程完成回退。Specifically, the rollback unit 207 may first stop the process of the user-specified rollback feature, update the main version of the user-specified rollback feature to the old version of the user-specified rollback feature, and then add the user-specified rollback Finally, start the process of the function specified by the user to roll back to complete the rollback.
一般电信网元只需要支持回退一次即可,因此,在回退单元207完成回退之后,清除单元208可清除已回退的功能特性的回退标识和/或清除已回退的功能特性的无用版本目录,以节省存储资源。Generally, the telecommunication network element only needs to support the rollback once. Therefore, after the rollback unit 207 completes the rollback, the clearing unit 208 can clear the rollback flag of the rolled back functional characteristic and/or clear the rolled back functional characteristic Useless version directory to save storage resources.
本实施例中,获取单元所获取的新版本的软件包中包含各个功能特性的新版本软件包,在接收单元接收到用户下发的升级指令之后,创建单元在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下,处理单元将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应新版本目录下,升级单元启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级;在接收单元接收到用户下发的回退指令之后,回退单元启动用户指定回退的功能特性的老版本目录下的数据和文件完成回退。即本实施例可以按照功能特性粒度进行版本升级或回退,可以对用户指定升级或回退的功能特性进行升级或回退,不升级或回退的功能特性不受影响,从而满足了用户的不同需求。In this embodiment, the software package of the new version acquired by the acquisition unit contains new version software packages of various functional characteristics. After the receiving unit receives the upgrade instruction issued by the user, the creation unit creates the software package under the functional characteristics specified by the user to upgrade. The new version directory and decompress the new version software package of the functional characteristics specified by the user to the new version directory of the corresponding functional characteristics, and the processing unit upgrades the data and files in the old version directory of the functional characteristics specified by the user to the corresponding new version directory. Under the version directory, the upgrade unit starts the data and files in the new version directory of the user-specified upgrade function to complete the upgrade; after the receiving unit receives the rollback instruction issued by the user, the rollback unit starts the user-specified rollback function The data and files in the directory of the old version are rolled back. That is, this embodiment can perform version upgrade or rollback according to the granularity of functional features, and can upgrade or roll back the functional features specified by the user to upgrade or roll back, and the functional features that are not upgraded or rolled back are not affected, thus satisfying the user's requirements. different needs.
请参阅图3,本发明数据处理装置另一实施例包括收发器301及处理器302,其中:Referring to FIG. 3, another embodiment of the data processing device of the present invention includes a transceiver 301 and a processor 302, wherein:
收发器301用于获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包;接收用户下发的升级命令,所述升级命令中包含所述用户指定升级的功能特性的标识;The transceiver 301 is used to obtain a new version of the software package, which contains a new version of the software package of each functional feature; receives an upgrade command issued by the user, and the upgrade command includes the upgrade command specified by the user. Identification of functional characteristics;
处理器302用于,根据所述用户指定升级的功能特性的标识在所述用户指定升级的功能特性下创建新版本目录并将所述用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;将所述用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;启动所述用户指定升级的功能特性的新版本目录下的数据和文件完成升级。The processor 302 is configured to create a new version directory under the user-designated upgrade function according to the identifier of the user-designated upgrade function and decompress the new version software package of the user-designated upgrade function into a corresponding Under the new version directory of functional characteristics; upgrade the data and files in the old version directory of the functional characteristics specified by the user to the corresponding new version directory; start the new version directory of the functional characteristics specified by the user to upgrade Data and files are upgraded.
另外,本实施例的数据处理装置300还用于执行前述装置实施例的其他功能,此处不再赘述。In addition, the data processing device 300 in this embodiment is also used to perform other functions of the foregoing device embodiments, which will not be described in detail here.
下面介绍本发明提供的数据处理方法,本发明中,各个版本的网元软件包兼容,网元软件包中包含各个功能特性的软件包,每个功能特性的软件包独立存在。例如可以将网元中的功能特性分为一个或多个基础功能特性,一个或多个业务功能特性。基础功能特性为网元提供基础功能,比如提供统一的网元对外通讯、鉴权、文件传输、操作维护等功能。业务功能特性为网元提供业务功能,比如基站管理,小区管理、移动性管理等,每个功能特性都设置一个独立的软件包。软件包初始安装时,软件包内的每个功能特性的软件包都进行了安装。The data processing method provided by the present invention is introduced below. In the present invention, network element software packages of various versions are compatible, and the network element software packages include software packages of various functional characteristics, and each software package of functional characteristics exists independently. For example, the functional characteristics in the network element can be divided into one or more basic functional characteristics and one or more service functional characteristics. The basic function features provide basic functions for network elements, such as providing unified network element external communication, authentication, file transfer, operation and maintenance and other functions. Service functions and features provide service functions for network elements, such as base station management, cell management, mobility management, etc. Each feature has an independent software package. During the initial installation of the software package, the software packages for each feature in the software package are installed.
请参阅图4,本发明数据处理方法一个实施例包括:Referring to Fig. 4, an embodiment of the data processing method of the present invention includes:
401、获取新版本的软件包;401. Obtain a new version of the software package;
当网元软件包有新版本发布时,数据处理装置获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包,每个功能特性的新版本软件包为独立的软件包。When a new version of the network element software package is released, the data processing device obtains the new version of the software package, which includes a new version of the software package of each function and feature, and each new version of the software package of the function and feature is an independent package.
402、接收用户下发的升级命令;402. Receive an upgrade command issued by the user;
用户可根据需求选择需要升级的功能特性并下发升级命令,所述升级命令中包含用户指定升级的功能特性的标识。The user can select the functional features to be upgraded according to requirements and issue an upgrade command, and the upgrade command includes the identification of the functional features specified by the user to be upgraded.
403、根据用户指定升级的功能特性的标识在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;403. Create a new version directory under the user-specified upgrade feature according to the identifier of the user-specified upgrade feature, and decompress the new version software package of the user-specified upgrade feature into the new version directory of the corresponding feature feature;
此时新版本目录下只有安装后的缺省数据。At this time, there is only the default data after installation in the new version directory.
404、将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;404. Upgrade the data and files in the old version directory of the user-specified upgrade function to the corresponding new version directory;
405、启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级。405 . Start the data and files in the new version directory of the user-specified upgraded features to complete the upgrade.
本实施例中,所获取的新版本的软件包中包含各个功能特性的新版本软件包,在接收到用户下发的升级指令之后,在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下,将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应新版本目录下;启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级。即本实施例可以按照功能特性粒度进行版本升级,可以对用户指定升级的功能特性进行升级,不升级的功能特性不受影响,从而满足了用户的不同需求。In this embodiment, the acquired new version of the software package contains new version software packages with various functional characteristics. After receiving the upgrade instruction issued by the user, a new version directory is created under the functional characteristics specified by the user and stored by the user. Decompress the new version of the software package with the specified upgraded features into the new version directory of the corresponding features, and upgrade the data and files in the old version directory of the features specified by the user to the corresponding new version directory; start the user-specified upgrade The data and files under the directory of the new version of the functional features are upgraded. That is to say, in this embodiment, version upgrades can be performed according to the granularity of functional features, and the functional features specified by the user can be upgraded, and the functional features that are not upgraded will not be affected, thereby meeting different needs of users.
为便于理解,下面以一个具体实施例介绍本发明数据处理方法,请参阅图5,本实施例的方法包括:For ease of understanding, the data processing method of the present invention is described below with a specific embodiment, please refer to Figure 5, the method of this embodiment includes:
501、获取新版本的软件包;501. Obtain a new version of the software package;
在获取新版本的软件包之前,先介绍一下本发明网元软件包的构成情况,具体可参阅图6,网元软件包中包含各个功能特性的软件包,每个功能特性的软件包独立存在。若不同的功能特性之间存在依赖关系,则在软件开发时给予解决。例如若第一功能特性依赖第二功能特性,需要调用第二功能特性的库文件,则将第二功能特性的库文件打包到第一功能特性的软件包中;若第一功能特性依赖第二功能特性,需要调用第二功能特性提供的服务,则将第二功能特性的对外接口文件打包到第一功能特性的软件包中,这样使得每个功能特性的软件包都可以独立存在。网元软件包的安装功能可由install程序提供,启动功能可由start程序提供。Before obtaining the new version of the software package, first introduce the composition of the network element software package of the present invention, specifically refer to Figure 6, the network element software package includes software packages with various functional characteristics, and each functional characteristic software package exists independently . If there is a dependency relationship between different functional characteristics, it will be resolved during software development. For example, if the first functional feature depends on the second functional feature, and the library file of the second functional feature needs to be called, then the library file of the second functional feature is packaged into the software package of the first functional feature; if the first functional feature depends on the second If the functional feature needs to call the service provided by the second functional feature, the external interface file of the second functional feature is packaged into the software package of the first functional feature, so that each software package of the functional feature can exist independently. The installation function of the network element software package can be provided by the install program, and the startup function can be provided by the start program.
在网元软件包初始版本安装时,在运行目录下每个功能特性都有一个版本目录。如图7所示,在active.cfg文件中,存放了每个功能特性当前的主用版本,网元软件包初始版本安装后,每个功能特性的主用版本都是version1,每个功能特性的软件包都解压缩到对应功能特性的software目录下,每个功能特性运行过程中产生的数据,存储在对应功能特性的data目录下。初始版本的启动,需要遍历run目录下的所有功能特性目录下的active.cfg文件,获取功能特性的主用版本目录,将主用版本目录下的进程启动起来。When the initial version of the network element software package is installed, each function and feature has a version directory under the running directory. As shown in Figure 7, in the active.cfg file, the current main version of each feature is stored. After the initial version of the network element software package is installed, the main version of each feature is version1, and each feature All software packages are decompressed into the software directory corresponding to the functional features, and the data generated during the operation of each functional feature is stored in the data directory corresponding to the functional features. To start the initial version, it is necessary to traverse the active.cfg files under all the feature directories under the run directory to obtain the main version directory of the features, and start the process under the main version directory.
当开发出新版本的软件包之后,数据处理装置可以从服务器获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包,每个功能特性的新版本软件包为独立的软件包。After a new version of the software package is developed, the data processing device can obtain the new version of the software package from the server, and the new version of the software package includes a new version of the software package of each functional feature, and the new version of the software package of each functional feature as a stand-alone software package.
502、接收用户下发的升级命令;502. Receive an upgrade command issued by the user;
用户可根据需求下发升级命令,例如可以指定哪些功能特性需要升级,数据处理装置接收所述升级命令,所述升级命令中包含用户指定升级的功能特性的标识。The user can issue an upgrade command according to the requirement, for example, can specify which functional characteristics need to be upgraded, and the data processing device receives the upgrade command, and the upgrade command includes the identification of the functional characteristics specified by the user to be upgraded.
503、根据用户指定升级的功能特性的标识在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;503. Create a new version directory under the user-specified upgrade feature according to the identifier of the user-specified upgrade feature, and decompress the new version software package of the user-specified upgrade feature into the new version directory of the corresponding feature feature;
例如,在步骤502,用户指定功能特性1、2、3需要升级,则数据处理装置在功能特性1、2、3下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下,具体可如图8所示,feature1、feature2及feature3需要升级,则在feature1、feature2及feature3下增加了新版本目录version2的目录,然后将feature1、feature2及feature3的新版本软件包分别解压缩到feature1、feature2及feature3的version2目录下。此时各个version2目录下只有安装后的缺省数据,active.cfg文件里的主用版本目录仍然都是version1。For example, in step 502, the user specifies that functional characteristics 1, 2, and 3 need to be upgraded, and then the data processing device creates a new version directory under functional characteristics 1, 2, and 3 and decompresses the new version software package of the functional characteristics specified by the user to be upgraded Go to the new version directory corresponding to the functional features, as shown in Figure 8, feature1, feature2 and feature3 need to be upgraded, then add the new version directory version2 directory under feature1, feature2 and feature3, and then add feature1, feature2 and feature3 The software packages of the new version are decompressed to the version2 directory of feature1, feature2 and feature3 respectively. At this time, there are only default data after installation in each version2 directory, and the main version directory in the active.cfg file is still version1.
504、将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;504. Upgrade the data and files in the old version directory of the user-specified upgrade function to the corresponding new version directory;
即将feature1的version1的data内的数据和文件升级到version2的data内,以便version2作为主用版本时,能够继承和使用version1产生的数据,提供相应的功能。同理,将feature2的version1的data内的数据和文件升级到version2的data内,以及将feature3的version1的data内的数据和文件升级到version2的data内。That is to upgrade the data and files in the data of version1 of feature1 to the data of version2, so that when version2 is the main version, it can inherit and use the data generated by version1 and provide corresponding functions. Similarly, upgrade the data and files in the data of version1 of feature2 to the data of version2, and upgrade the data and files in the data of version1 of feature3 to the data of version2.
505、启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级;505. Start the data and files in the new version directory of the user-specified upgrade function to complete the upgrade;
具体实现中,数据处理装置实现升级的过程包括:In a specific implementation, the upgrading process of the data processing device includes:
(1)停止用户指定升级的功能特性的进程;例如停止feature1、feature2及feature3的进程。(1) Stop the process of the upgraded functional features specified by the user; for example, stop the processes of feature1, feature2 and feature3.
(2)将用户指定升级的功能特性的主用版本更新为对应功能特性的新版本;例如将active.cfg文件里feature1的主用版本由version1更新为version2,将active.cfg文件里feature2的主用版本由version1更新为version2,以及将active.cfg文件里feature3的主用版本由version1更新为version2。(2) Update the main version of the feature specified by the user to the new version of the corresponding feature; for example, update the main version of feature1 in the active.cfg file from version1 to version2, and update the main version of feature2 in the active.cfg file The active version is updated from version1 to version2, and the main version of feature3 in the active.cfg file is updated from version1 to version2.
(3)添加用户指定升级的功能特性的进程,例如添加feature1、feature2及feature3的进程;(3) Add the process of user-specified upgraded functional features, such as the process of adding feature1, feature2 and feature3;
(4)启动用户指定升级的功能特性的进程完成升级;例如启动feature1、feature2及feature3的进程,由于active.cfg文件中的各个功能特性的主用版本目录已修改,因此启动的进程都是新版本下的进程。(4) Start the process of upgrading the features specified by the user to complete the upgrade; for example, start the process of feature1, feature2 and feature3, because the main version directory of each feature in the active.cfg file has been modified, so the started processes are all new version of the process.
506、为已升级的功能特性设置回退标识;506. Set a rollback flag for the upgraded feature;
上面的例子中,即为feature1、feature2及feature3设置回退标识,如图9所示,可以在feautre1、feature2、feature3目录下增加rollback.cfg文件,里面的回退版本即升级前active.cfg中的主用版本。In the above example, rollback flags are set for feature1, feature2, and feature3, as shown in Figure 9, you can add rollback.cfg files in the directories of feature1, feature2, and feature3, and the rollback version inside is the active.cfg before the upgrade the main version of .
507、接收用户下发的回退指令;507. Receive a rollback instruction issued by the user;
用户可向数据处理装置下发查询指令,以查询哪些功能特性有回退版本,上面的例子中,feautre1、feature2、feature3都可以回退,用户可根据实际需要选择回退的功能特性,并下发回退指令,所述回退指令中包含用户指定回退的功能特性的标识。The user can issue a query command to the data processing device to query which features have a fallback version. In the above example, feature1, feature2, and feature3 can all be rolled back. The user can select the rollback feature according to actual needs, and download A rollback command is sent, and the rollback command includes an identifier of a feature specified by the user to roll back.
508、启动用户指定回退的功能特性的老版本目录下的数据和文件完成回退;508. Start the rollback of the data and files in the old version directory of the user-specified rollback feature;
上面的例子中,若用户指定需要回退feature2,则具体实现中,完成回退的过程包括:In the above example, if the user specifies that feature2 needs to be rolled back, in the specific implementation, the process of completing the rollback includes:
(1)停止用户指定回退的功能特性的进程,即停止feature2的进程;(1) Stop the process of the feature specified by the user for rollback, that is, stop the process of feature2;
(2)将用户指定回退的功能特性的主用版本更新为用户指定回退的功能特性的老版本,即将active.cfg文件中的主用版本目录更新为rollback.cfg中的可回退版本,上面的例子中,即将active.cfg文件中feature2的主用版本由version2更新为version1。(2) Update the main version of the user-specified rollback feature to the old version of the user-specified rollback feature, that is, update the main version directory in the active.cfg file to the rollback version in rollback.cfg , in the above example, the main version of feature2 in the active.cfg file is updated from version2 to version1.
(3)添加用户指定回退的功能特性的进程,即添加feature2的进程;(3) The process of adding the user-specified rollback feature, that is, the process of adding feature2;
(4)启动用户指定回退的功能特性的进程完成回退,即启动feature2的进程,由于active.cfg文件中feature2的主用版本已更新为version1,所以此时启动的进程为version1版本下的进程。(4) The process of starting the feature specified by the user to roll back is completed, that is, the process of feature2 is started. Since the main version of feature2 in the active.cfg file has been updated to version1, the process started at this time is under version1 process.
509、清除已回退的功能特性的回退标识和/或清除已回退的功能特性的无用版本目录。509. Clear the rollback identifier of the rolled back feature and/or clear the useless version directory of the rolled back feature.
一般电信网元只需要支持回退一次即可,上面的例子中,功能特性2已回退,则可以删除功能特性2的回退标识,例如可以删除功能特性2的rollback.cfg,和/或将rollback.cfg的可回退版本号设置为空。另外,还可以清除无用的特性目录,例如功能特性2的version2版本已没有用处,因此可以清除掉。Generally, a telecom network element only needs to support rollback once. In the above example, feature 2 has been rolled back, and the rollback flag of feature 2 can be deleted, for example, rollback.cfg of feature 2 can be deleted, and/or Set the rollbackable version number of rollback.cfg to empty. In addition, useless feature directories can also be cleared, for example, version 2 of feature 2 is useless, so it can be cleared.
另外,需要说明的是,上面的实施例中,只是说明了对用户指定的功能特性进行升级或回退的方法,在实际应用中,还可以利用上述方法对某个功能特性打补丁或补丁回退,具体的处理过程可参阅前述实施例,此处不再赘述。In addition, it should be noted that, in the above embodiments, only the method of upgrading or rolling back the function specified by the user is described. In practical applications, the above method can also be used to patch or patch back a certain function For the specific processing process, reference may be made to the foregoing embodiments, and details are not repeated here.
本实施例中,所获取的新版本的软件包中包含各个功能特性的新版本软件包,在接收到用户下发的升级指令之后,在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下,将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应新版本目录下,启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级;在接收到用户下发的回退指令之后,启动用户指定回退的功能特性的老版本目录下的数据和文件完成回退。即本实施例可以按照功能特性粒度进行版本升级或回退,可以对用户指定升级或回退的功能特性进行升级或回退,不升级或回退的功能特性不受影响,从而满足了用户的不同需求。In this embodiment, the acquired new version of the software package contains new version software packages with various functional characteristics. After receiving the upgrade instruction issued by the user, a new version directory is created under the functional characteristics specified by the user and stored by the user. Decompress the new version of the software package with the specified upgrade features into the new version directory of the corresponding features, upgrade the data and files in the old version directory of the features specified by the user to the corresponding new version directory, and start the user-specified upgrade The data and files in the directory of the new version of the functional features are upgraded; after receiving the rollback command issued by the user, the data and files in the old version directory of the functional features specified by the user are started to roll back. That is, this embodiment can perform version upgrade or rollback according to the granularity of functional features, and can upgrade or roll back the functional features specified by the user to upgrade or roll back, and the functional features that are not upgraded or rolled back are not affected, thus satisfying the user's requirements. different needs.
另外需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本发明提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。In addition, it should be noted that the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be A physical unit can be located in one place, or it can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that they have a communication connection, which can be specifically implemented as one or more communication buses or signal lines. It can be understood and implemented by those skilled in the art without creative effort.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本发明而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be realized by means of software plus necessary general-purpose hardware. Special components, etc. to achieve. In general, all functions completed by computer programs can be easily realized by corresponding hardware, and the specific hardware structure used to realize the same function can also be varied, such as analog circuits, digital circuits or special-purpose circuit etc. However, software program implementation is a better implementation mode for the present invention in most cases. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc., including several instructions to make a computer device (which can be A personal computer, a server, or a network device, etc.) executes the methods described in various embodiments of the present invention.
以上对本发明实施例所提供的一种数据处理方法及装置进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,因此,本说明书内容不应理解为对本发明的限制。The data processing method and device provided by the embodiment of the present invention have been introduced in detail above. For those of ordinary skill in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application scope. , therefore, the content of this specification should not be construed as limiting the present invention.
Claims (14)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410635774.1A CN104461612B (en) | 2014-11-12 | 2014-11-12 | A kind of data processing method and device |
| PCT/CN2015/078953 WO2016074460A1 (en) | 2014-11-12 | 2015-05-14 | Data processing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410635774.1A CN104461612B (en) | 2014-11-12 | 2014-11-12 | A kind of data processing method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104461612A true CN104461612A (en) | 2015-03-25 |
| CN104461612B CN104461612B (en) | 2018-05-04 |
Family
ID=52907717
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410635774.1A Active CN104461612B (en) | 2014-11-12 | 2014-11-12 | A kind of data processing method and device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN104461612B (en) |
| WO (1) | WO2016074460A1 (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105389172A (en) * | 2015-12-07 | 2016-03-09 | 深圳市金锐显数码科技有限公司 | Application upgrading method and apparatus |
| WO2016074460A1 (en) * | 2014-11-12 | 2016-05-19 | 华为技术有限公司 | Data processing method and device |
| CN109240737A (en) * | 2018-08-22 | 2019-01-18 | 杭州数澜科技有限公司 | A kind of method and system of the packing and issuing in big data platform |
| CN109582327A (en) * | 2017-09-29 | 2019-04-05 | 北京国双科技有限公司 | Update method and device |
| CN114265605A (en) * | 2021-12-27 | 2022-04-01 | 中国建设银行股份有限公司 | Version rollback method and device for functional component of business system |
| CN114398056A (en) * | 2021-12-31 | 2022-04-26 | 西安歌尔泰克电子科技有限公司 | Customized upgrading method and device and computer readable storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1710539A (en) * | 2004-06-16 | 2005-12-21 | 华为技术有限公司 | Soft wave renewing method |
| CN1913692A (en) * | 2006-08-16 | 2007-02-14 | 华为技术有限公司 | Method for loading equipment software according to allocation |
| CN101383724A (en) * | 2008-08-29 | 2009-03-11 | 上海华为技术有限公司 | Network element upgrade method and operation and maintenance unit, single board and network element upgrade system |
| CN102193805A (en) * | 2010-03-11 | 2011-09-21 | 华为技术有限公司 | Device and method for upgrading software patches |
| US20120144370A1 (en) * | 2010-12-01 | 2012-06-07 | Sap Ag | System and method for reversibility categories and characteristics |
| CN102968298A (en) * | 2012-10-31 | 2013-03-13 | 山东浪潮齐鲁软件产业股份有限公司 | Software product construction method |
| US20140258998A1 (en) * | 2013-03-08 | 2014-09-11 | Facebook, Inc. | Enlarging control regions to optimize script code compilation |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100544399C (en) * | 2006-12-26 | 2009-09-23 | 深圳市同洲电子股份有限公司 | Method and device for acquiring application data of a set-top box |
| CN101778153A (en) * | 2009-12-31 | 2010-07-14 | 康佳集团股份有限公司 | Method and device for configuring functions of mobile phone |
| CN102081532B (en) * | 2010-10-15 | 2012-12-19 | 福建新大陆通信科技股份有限公司 | Method for dynamically upgrading functions of set top box |
| CN102135895B (en) * | 2010-12-29 | 2013-08-28 | 华为软件技术有限公司 | System upgrading method and system |
| CN103150193A (en) * | 2013-04-10 | 2013-06-12 | 天津三星光电子有限公司 | Software upgrading method for mobile terminal |
| CN104035799A (en) * | 2014-06-19 | 2014-09-10 | 浪潮电子信息产业股份有限公司 | Method for customizable upgrading of software |
| CN104461612B (en) * | 2014-11-12 | 2018-05-04 | 上海华为技术有限公司 | A kind of data processing method and device |
-
2014
- 2014-11-12 CN CN201410635774.1A patent/CN104461612B/en active Active
-
2015
- 2015-05-14 WO PCT/CN2015/078953 patent/WO2016074460A1/en not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1710539A (en) * | 2004-06-16 | 2005-12-21 | 华为技术有限公司 | Soft wave renewing method |
| CN1913692A (en) * | 2006-08-16 | 2007-02-14 | 华为技术有限公司 | Method for loading equipment software according to allocation |
| CN101383724A (en) * | 2008-08-29 | 2009-03-11 | 上海华为技术有限公司 | Network element upgrade method and operation and maintenance unit, single board and network element upgrade system |
| CN102193805A (en) * | 2010-03-11 | 2011-09-21 | 华为技术有限公司 | Device and method for upgrading software patches |
| US20120144370A1 (en) * | 2010-12-01 | 2012-06-07 | Sap Ag | System and method for reversibility categories and characteristics |
| CN102968298A (en) * | 2012-10-31 | 2013-03-13 | 山东浪潮齐鲁软件产业股份有限公司 | Software product construction method |
| US20140258998A1 (en) * | 2013-03-08 | 2014-09-11 | Facebook, Inc. | Enlarging control regions to optimize script code compilation |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2016074460A1 (en) * | 2014-11-12 | 2016-05-19 | 华为技术有限公司 | Data processing method and device |
| CN105389172A (en) * | 2015-12-07 | 2016-03-09 | 深圳市金锐显数码科技有限公司 | Application upgrading method and apparatus |
| CN105389172B (en) * | 2015-12-07 | 2018-09-14 | 深圳市金锐显数码科技有限公司 | Application program updating method and apparatus |
| CN109582327A (en) * | 2017-09-29 | 2019-04-05 | 北京国双科技有限公司 | Update method and device |
| CN109240737A (en) * | 2018-08-22 | 2019-01-18 | 杭州数澜科技有限公司 | A kind of method and system of the packing and issuing in big data platform |
| CN114265605A (en) * | 2021-12-27 | 2022-04-01 | 中国建设银行股份有限公司 | Version rollback method and device for functional component of business system |
| CN114398056A (en) * | 2021-12-31 | 2022-04-26 | 西安歌尔泰克电子科技有限公司 | Customized upgrading method and device and computer readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2016074460A1 (en) | 2016-05-19 |
| CN104461612B (en) | 2018-05-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105867947B (en) | Data processing method and device after preset application program updating | |
| CN101931944B (en) | Method, device and system for updating terminal patches on line | |
| CN102521031B (en) | Management method of mobile terminal preset application program and mobile terminal | |
| CN105335187B (en) | Applied processing method and device | |
| CN104158886B (en) | Flow-type performing method for applications | |
| CN104461612A (en) | Data processing method and device | |
| US9258357B2 (en) | Method for accessing plural cloud storages, electronic apparatus and non-transitory computer readable medium | |
| CN104573093B (en) | A method and device for managing file directories | |
| CN103313229B (en) | Method and device for upgrading aerial downloading technology | |
| CN103365682B (en) | Message processing device and information processing method | |
| CN112463191A (en) | File updating method and device, equipment and storage medium | |
| CN111143023B (en) | Resource changing method and device, equipment and storage medium | |
| WO2015117426A1 (en) | File management method and device | |
| CN106164861A (en) | For the method disposing one group of software application | |
| CN103049287A (en) | Mobile terminal and method for installing mobile terminal applications | |
| CN110750286B (en) | Management method, device, system, equipment and medium for upgrading Mbn through OTA | |
| CN104021052A (en) | Method and device for carrying out data recovery during data transferring between wireless terminals | |
| WO2020143199A1 (en) | Application program plug-in method and system, and related apparatus | |
| US8296399B2 (en) | Connecting galleries to dynamic server-hosted content | |
| WO2015176498A1 (en) | Software upgrade method, mobile terminal and computer storage medium | |
| US9513928B2 (en) | Method of operating multiple operating systems and the electronic device thereof | |
| CN118170431B (en) | Cross-operating system service migration method and device and electronic equipment | |
| CN110968331A (en) | Method and apparatus for running an application | |
| CN113934437A (en) | Method and system for installing application in cloud mobile phone and client cloud mobile phone | |
| CN106293790B (en) | Application program upgrading method and device based on Firefox operating system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |