WO2016074460A1 - 一种数据处理方法及装置 - Google Patents

一种数据处理方法及装置 Download PDF

Info

Publication number
WO2016074460A1
WO2016074460A1 PCT/CN2015/078953 CN2015078953W WO2016074460A1 WO 2016074460 A1 WO2016074460 A1 WO 2016074460A1 CN 2015078953 W CN2015078953 W CN 2015078953W WO 2016074460 A1 WO2016074460 A1 WO 2016074460A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
feature
functional
specified
upgrade
Prior art date
Application number
PCT/CN2015/078953
Other languages
English (en)
French (fr)
Inventor
朱湘毅
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016074460A1 publication Critical patent/WO2016074460A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to a data processing method and apparatus.
  • a network element usually contains multiple functional features.
  • the released version of the network element is a complete set of all the functional features.
  • the released new version may perform functional enhancement or defect modification on some or all of the original features, or add new features. Wait. If you need to enhance the current function of the NE or repair the existing defects of the NE, you need to upgrade the current version of the NE to the new version.
  • the NE version is upgraded or rolled back as a whole. It is not supported to upgrade or roll back the NE version. That is, if the user selects the version upgrade, the overall function of the NE is upgraded to the new version. It is not supported to upgrade only some features. If the user needs to roll back after the upgrade, the NE can only be rolled back to the pre-upgrade version. There is no way to choose to only roll back some of the features. This method has certain drawbacks.
  • some features run stably.
  • the features of the currently running version of the feature meet the requirements. You do not need to use the features enhanced by the new version to prevent the new version from enhancing the functionality of the current version.
  • the defect of some features does not exist in this carrier usage scenario, so there is no need to update the version or patch to fix this feature. That is, when a version is upgraded, sometimes the operator does not want to upgrade some features. It is hoped that the system will maintain a stable running state and only upgrade other features that need to be upgraded. Similarly, if the operator upgrades the features, it finds certain The features are faulty at runtime and need to be rolled back. However, other upgraded features are fine. It is not desirable for all upgraded features to be rolled back. Try to minimize the impact of rollback, and the prior art cannot meet this requirement. It is necessary to provide a new way to solve the above problems.
  • an embodiment of the present invention provides a data processing method and apparatus, which can refer to a user.
  • the features of the upgrade or rollback are upgraded or rolled back to meet the different needs of users.
  • a data processing apparatus provided by an embodiment of the present invention includes:
  • An obtaining unit configured to obtain a new version of the software package, where 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 the user, where the upgrade command includes an identifier of a function characteristic that the user specifies to upgrade;
  • a creating unit configured to create a new version directory under the functional characteristics of the user-specified upgrade according to the identifier of the user-specified upgraded function, and decompress the new version package of the functional feature specified by the user to the corresponding function The new version of the feature directory;
  • a processing unit configured to upgrade data and files in an old version directory of the functional features specified by the user to a corresponding new version directory
  • the upgrade unit which is used to start the upgrade of the data and files in the new version directory of the user-specified upgraded feature.
  • the upgrading unit is specifically configured to:
  • the first functional characteristic software package A library file containing the second functional characteristic.
  • the first functional characteristic software package An external interface file containing the second functional characteristic.
  • the device also includes:
  • a setting unit configured to set a fallback identifier for the upgraded feature to be queried by the user
  • the receiving unit is further configured to receive a back-off instruction sent by the user, where the back-off instruction packet is included An identifier containing the functional characteristics of the user-specified fallback;
  • the device also includes:
  • the rollback unit is configured to start the data and file completion in the old version directory of the function feature specified by the user to be rolled back.
  • the back-off unit is specifically configured to:
  • the device further includes:
  • the clearing unit is used to clear the rollback identifier of the rolled back feature and/or to clear the useless version directory of the rolled back feature.
  • a data processing method provided by an embodiment of the present invention includes:
  • the data and files in the new version directory of the user-specified upgrade feature are upgraded.
  • the data and file completion upgrade in the new version directory that starts the functional feature of the user-specified upgrade includes:
  • the first functional characteristic software package A library file containing the second functional characteristic.
  • the first functional characteristic software package An external interface file containing the second functional characteristic.
  • the method further includes:
  • the data and file in the old version directory of the function specified by the user to be rolled back are started to roll back.
  • the data and file completion rollback in the old version directory that starts the function feature of the user specified rollback includes:
  • the method further includes:
  • the obtained new version of the software package includes a new version of the software package
  • the new version directory is created under the function of the user specified upgrade and
  • the new version of the package specified by the user is extracted into the new version of the corresponding feature.
  • the data and files in the old version of the user-specified upgrade feature are upgraded to the corresponding new version.
  • the data and files in the new version directory of the upgraded features are upgraded. That is, the embodiment of the present invention can upgrade the functional characteristics specified by the user, and the functional features that are not upgraded are not affected, thereby satisfying different needs of the user.
  • FIG. 1 is a schematic diagram of an embodiment of a data processing apparatus according to the present invention.
  • FIG. 2 is a schematic diagram of another embodiment of a data processing apparatus according to the present invention.
  • FIG. 3 is a schematic diagram of another embodiment of a data processing apparatus according to the present invention.
  • FIG. 4 is a schematic diagram of an embodiment of a data processing method according to the present invention.
  • FIG. 5 is a schematic diagram of another embodiment of a data processing method according to the present invention.
  • FIG. 6 is a schematic diagram of an embodiment of a network element software package according to the present invention.
  • FIG. 7 is a schematic diagram of an embodiment of an initial version of a network element software package according to the present invention.
  • FIG. 8 is a schematic diagram of an embodiment of a network element software package update according to the present invention.
  • FIG. 9 is a schematic diagram of an embodiment of a network element software package being rolled back according to the present invention.
  • the embodiment of the invention provides a data processing method and device, which can specify an upgrade or a back to the user.
  • the retired features are upgraded or rolled back to meet the different needs of users.
  • FIG. 1 is a schematic diagram of an embodiment of a data processing apparatus according to the present invention.
  • the data processing apparatus 100 of this embodiment includes:
  • the obtaining unit 101 is configured to acquire a new version of the software package, where the new version of the software package includes a new version of the software package of each functional feature;
  • the receiving unit 102 is configured to receive an upgrade command issued by the user, where the upgrade command includes an identifier of the function feature that the user specifies the upgrade;
  • a creating unit 103 configured to create a new version directory under the functional characteristics of the user-specified upgrade according to the identifier of the user-specified upgraded functional characteristic, and decompress the new version software package of the user-specified upgraded functional characteristic to the corresponding a new version of the feature set;
  • the processing unit 104 is configured to upgrade data and files in the old version directory of the functional features specified by the user to the corresponding new version directory;
  • the upgrading unit 105 is configured to start the data and file completion upgrade under the new version directory of the functional feature specified by the user.
  • the obtaining unit 101 acquires a new version of the software package, where the new version of the software package includes a new version of each functional feature, and a new version of each functional feature.
  • the package is a separate package.
  • the user can select the function to be upgraded and deliver the upgrade command according to the requirement, and the receiving unit 102 receives the upgrade command, where the upgrade command includes the identifier of the function feature specified by the user.
  • the creating unit 103 creates a new version directory under the function of the user-specified upgrade according to the identifier of the function characteristic included in the upgrade command received by the receiving unit 102, and decompresses the new version package of the function feature specified by the user to the corresponding function.
  • the new version directory of the feature the new version directory has only the default data after the installation, and the processing unit 104 upgrades the data and files in the old version directory of the user-specified upgraded feature to the corresponding new version directory.
  • the new version enables the data generated by the old version to be inherited and used, and the corresponding function is provided.
  • the upgrading unit 105 starts the data and file upgrade in the new version directory of the user-specified upgraded feature.
  • the new version of the software package acquired by the acquiring unit includes a new version of the software package of each function feature.
  • the creating unit creates the function that the user specifies the upgrade.
  • the new version directory decompresses the new version package of the user-specified upgraded feature to the new version directory of the corresponding feature, and the processing unit assigns the user the upgraded work.
  • the data and files in the old version directory of the feature can be upgraded to the corresponding new version directory; the upgrade unit starts the upgrade of the data and files in the new version directory of the user-specified upgrade feature. That is, in this embodiment, the version upgrade can be performed according to the granularity of the functional characteristics, and the functional features specified by the user are upgraded, and the functional features that are not upgraded are not affected, thereby satisfying different requirements of the user.
  • the data processing apparatus 200 of this embodiment includes:
  • the obtaining unit 201 is configured to obtain a new version of the software package, where the new version of the software package includes a new version of the software package of each functional feature;
  • the receiving unit 202 is configured to receive an upgrade command issued by the user, where the upgrade command includes an identifier of the function feature that the user specifies the upgrade;
  • the creating unit 203 is configured to: according to the identifier of the functional feature specified by the user to be upgraded, create a new version directory under the functional feature of the user-specified upgrade, and decompress the new version software package of the functional feature specified by the user to the corresponding a new version of the feature set;
  • the processing unit 204 is configured to upgrade data and files in the old version directory of the functional features specified by the user to the corresponding new version directory;
  • the upgrading unit 205 is configured to start data and file completion upgrade in a new version directory of the function feature specified by the user to be upgraded;
  • the setting unit 206 is configured to set a fallback identifier for the upgraded function feature for the user to query
  • the receiving unit 201 is further configured to receive a back-off instruction sent by the user, where the back-off instruction includes an identifier of a function characteristic that the user specifies to fall back;
  • the data processing device 200 further includes:
  • the rollback unit 207 is configured to start data back and back in the old version directory of the function feature that the user specifies to fall back;
  • the clearing unit 208 is configured to clear the back-off identifier of the function feature that has been rolled back and/or to clear the useless version directory of the function feature that has been rolled back.
  • each version of the network element software package is compatible, and the network element software package includes software packages of various functional characteristics, and the software package of each functional characteristic exists independently. If there is a dependency between different functional characteristics, it will be solved during software development. For example, if the first function feature depends on the second function feature, and the library file of the second function feature needs to be called, the library file of the second function feature is packaged into the first function. In the software package of the feature; if the first function feature depends on the second function feature, and the service provided by the second function feature needs to be invoked, the external interface file of the second function feature is packaged into the software package of the first function feature, so that Software packages for each feature can exist independently. After the initial version of the NE package is installed, each feature in the running directory has a version directory, that is, the old version directory. The initial version is the old version.
  • the obtaining unit 201 can obtain a new version of the software package from the server, the new version of the software package contains a new version of the software package for each functional feature, and a new version software package for each functional feature. As a standalone package.
  • the user can issue an upgrade command according to the requirements, for example, which functional features need to be upgraded, and the receiving unit 202 receives the upgrade command, where the upgrade command includes an identifier of the functional feature specified by the user.
  • the creating unit 203 creates a new version directory under the function characteristic specified by the user, and decompresses the new version package of the function feature specified by the user to the corresponding function.
  • the processing unit 204 upgrades the data and files in the old version directory of the functional features specified by the user to the corresponding new version directory, so that when the new version is used as the main version, the data generated by the old version can be inherited and used, and corresponding data is provided.
  • the upgrade unit 205 starts the data and file completion upgrade under the new version directory of the user-specified upgraded feature. Specifically, the upgrading unit 205 needs to stop the process of the user-specified upgraded feature, update the primary version of the upgraded functional feature to a new version of the corresponding functional feature, and add the process of the user-specified upgraded feature. Finally, the process of starting the user-specified upgrade feature completes the upgrade.
  • the setting unit 206 sets a fallback identifier for the upgraded feature.
  • the user can issue a query command to the data processing device to query which functional features have a fallback version.
  • the user may send a rollback command, and the receiving unit 201 receives the back-off command, where the back-off command includes an identifier of a function feature that the user specifies to fall back, and the back-off unit 207 starts the data and file in the old version directory of the user-specified fallback feature to complete the rollback.
  • the backoff unit 207 may first stop the process of the user designating the function feature of the rollback, and the user is The active version of the feature that specifies the rollback is updated to the old version of the feature that the user specifies to roll back, and then the process of the feature that the user specifies to fall back is added. Finally, the process that starts the function specified by the user to complete the rollback is completed.
  • the telecommunication network element only needs to support the rollback once. Therefore, after the backoff unit 207 completes the rollback, the clearing unit 208 can clear the rollback identifier of the rolled back function feature and/or clear the backed off function feature. Useless version directories to save storage resources.
  • the new version of the software package acquired by the acquiring unit includes a new version of the software package of each function feature.
  • the creating unit creates the function that the user specifies the upgrade.
  • the new version directory decompresses the new version package of the user-specified upgraded feature to the new version directory of the corresponding feature.
  • the processing unit upgrades the data and files in the old version directory of the user-specified upgraded feature to the corresponding new In the version directory, the upgrade unit starts the upgrade of the data and files in the new version directory of the user-specified upgrade feature.
  • the rollback unit starts the function of the user-specified rollback.
  • the data and files under the old version directory complete the rollback. That is, in this embodiment, the version upgrade or rollback can be performed according to the granularity of the feature features, and the function of the upgrade or rollback specified by the user can be upgraded or rolled back, and the functions of the upgrade or rollback are not affected, thereby satisfying the user. Different needs.
  • another embodiment of the data processing apparatus of the present invention includes a transceiver 301 and a processor 302, wherein:
  • the transceiver 301 is configured to acquire a new version of the software package, where the new version of the software package includes a new version of the software package, and the upgrade command is sent by the user. Identification of functional characteristics;
  • the processor 302 is configured to: according to the identifier of the function feature specified by the user to be upgraded, create a new version directory under the function feature specified by the user, and decompress the new version package of the function feature specified by the user to the corresponding
  • the new version of the feature is upgraded; the data and files in the old version directory of the user-specified upgraded feature are upgraded to the corresponding new version directory; and the new version of the user-specified upgrade feature is started.
  • the data and files are upgraded.
  • data processing device 300 of the embodiment is further configured to perform other functions of the foregoing device embodiments, and details are not described herein again.
  • each version of the network element software package is compatible, and the network element software package includes software packages of various functional characteristics, and the software package of each functional characteristic is independent. presence.
  • the functional characteristics in the network element can be divided into one or more basic functional characteristics, one or more business functional characteristics.
  • the basic function provides basic functions for the NE, such as providing unified NE external communication, authentication, file transfer, operation and maintenance functions.
  • the service function provides service functions for the network element, such as base station management, cell management, mobility management, etc.
  • Each function feature is provided with a separate software package. When the package is initially installed, the packages for each feature within the package are installed.
  • an embodiment of the data processing method of the present invention includes:
  • the data processing apparatus acquires a new version of the software package, and the new version of the software package includes a new version of the software package of each function feature, and the new version software package of each function feature is independent. Package.
  • the upgrade command contains the identifier of the feature that the user specifies to upgrade.
  • the obtained new version of the software package includes a new version of the software package, and after receiving the upgrade instruction issued by the user, the new version directory is created and the user is created under the function of the user specified upgrade.
  • the new version of the package that specifies the upgraded features is decompressed to the new version of the corresponding feature.
  • the data and files in the old version of the upgraded feature are upgraded to the corresponding new version.
  • the user-specified upgrade is started.
  • the data and files under the new version of the feature are upgraded. That is, in this embodiment, the version upgrade can be performed according to the granularity of the functional features, and the functional features specified by the user can be upgraded, and the functional features that are not upgraded are not affected, thereby satisfying different requirements of the user.
  • the data processing method of the present invention is described in a specific embodiment. Referring to FIG. 5, the method in this embodiment includes:
  • the network element software package includes software packages of various functional characteristics, and the software package of each functional characteristic exists independently. . If there is a dependency between different functional characteristics, it will be solved during software development.
  • the library file of the second functional characteristic is packaged into the software package of the first functional characteristic; if the first functional characteristic depends on the second
  • the function is that the service provided by the second function feature needs to be invoked, and the external interface file of the second function feature is packaged into the software package of the first function feature, so that the software package of each 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.
  • each feature there is a version directory for each feature in the run directory.
  • the active.cfg file the current active version of each feature is stored.
  • the primary version of each feature is version1, and each feature is The software packages are decompressed into the software directory corresponding to the functional features, and the data generated during the running of each functional feature is stored in the data directory of the corresponding functional characteristics.
  • the data processing device can obtain a new version of the software package from the server, the new version of the software package contains a new version of each functional feature, a new version of each feature As a standalone package.
  • the user can issue an upgrade command according to the requirement, for example, which functional features need to be upgraded, and the data processing device receives the upgrade command, where the upgrade command includes an identifier of the functional feature specified by the user.
  • step 502 the user specifies that the functional characteristics 1, 2, and 3 need to be upgraded, and the data processing device is loaded.
  • the new version of the package that is created under the features 1, 2, and 3 and the user-specified upgraded feature is decompressed into the new version of the corresponding feature, as shown in Figure 8, feature1, feature2 And feature3 needs to be upgraded, then add the new version directory version2 directory under feature1, feature2 and feature3, and then decompress the new version packages of feature1, feature2 and feature3 to the version2 directory of feature1, feature2 and feature3 respectively.
  • each version 2 directory has only the default data after installation, and the main version directory in the active.cfg file is still version1.
  • the data and files in the version1 data of feature1 are upgraded to the data of version2, so that when version2 is used as the main version, the data generated by version1 can be inherited and used to provide corresponding functions.
  • the data and files in the version1 data of feature2 are upgraded to the data of version2, and the data and files in the data of version1 of feature3 are upgraded to the data of version2.
  • the process of upgrading the data processing device includes:
  • the fallback flag is set for feature1, feature2, and feature3, as shown in Figure 9.
  • the rollback version is the active version in active.cfg before the upgrade.
  • the user can send a query command to the data processing device to query which functional features have a rollback version.
  • fetress1, feature2, and feature3 can be rolled back.
  • the user can select the function of the fallback function according to actual needs, and A rollback command is sent, and the rollback command includes an identifier of a function feature that the user specifies to fall back.
  • the process of completing the rollback includes:
  • the telecommunication network element only needs to support the rollback once.
  • the rollback identifier of the feature 2 can be deleted.
  • the rollback.cfg of the feature 2 can be deleted, and/or Set the rollback version of rollback.cfg to null.
  • the obtained new version of the software package includes a new version of the software package, and after receiving the upgrade instruction issued by the user, the new version directory is created and the user is created under the function of the user specified upgrade.
  • the new version of the package that specifies the upgraded features is decompressed to the new version of the corresponding feature.
  • the data and files in the old version of the upgraded feature are upgraded to the corresponding new version.
  • the data and files in the new version of the function are upgraded.
  • the data and files in the old version directory of the function specified by the user are started to roll back.
  • the version upgrade or rollback can be performed according to the granularity of the feature features, and the function of the upgrade or rollback specified by the user can be upgraded or rolled back, and the functions of the upgrade or rollback are not affected, thereby satisfying the user. Different needs.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be Physical units can be located in one place or distributed to multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • the connection relationship between the modules indicates that there is a communication connection between them, and specifically, one or more communication buses or signal lines can be realized.
  • the present invention can be implemented by means of software plus necessary general hardware, and of course, dedicated hardware, dedicated CPU, dedicated memory, dedicated memory, Special components and so on.
  • functions performed by computer programs can be easily implemented with the corresponding hardware, and the specific hardware structure used to implement the same function can be various, such as analog circuits, digital circuits, or dedicated circuits. Circuits, etc.
  • software program implementation is a better implementation in more cases.
  • the technical solution of the present invention which is essential or contributes to the prior art, can be embodied in the form of a software product 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), disk or optical disk, etc., including a number of instructions to make a computer device (may be A personal computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.
  • a computer device may be A personal computer, server, or network device, etc.

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

一种数据处理方法及装置,方法包括:获取新版本的软件包(401),新版本的软件包中包含各个功能特性的新版本软件包;接收用户下发的升级命令(402),升级命令中包含用户指定升级的功能特性的标识;在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下(403);将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应新版本目录下(404);启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级(405)。该方法及装置能够对用户指定升级或回退的功能特性进行升级或回退,以满足用户的不同需求。

Description

一种数据处理方法及装置
本申请要求于2014年11月12日提交中国专利局、申请号为201410635774.1、发明名称为“一种数据处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及通信技术领域,尤其涉及一种数据处理方法及装置。
背景技术
一个网元通常包含了多个功能特性,网元的发布版本是所有功能特性的全集,发布的新版本可能对原有的部分或全部特性进行了功能增强或缺陷修改,或增加了新的特性等。用户如果需要增强网元的当前功能或修复网元现有的缺陷,则需要将网元的当前版本升级到新版本。
现有技术一般将网元版本作为一个整体进行升级或回退,不支持将网元版本再细分功能特性进行升级或回退。即如果用户选择版本升级,则将网元整体功能升级到新版本,不支持只升级某部分功能特性;同样如果用户升级后需要回退,只能把网元整体回退到升级前的版本,不能选择只回退某部分功能特性,这种方法存在一定的缺陷。
例如:某些功能特性运行稳定,该功能特性当前运行版本的功能满足需求,不需要使用这些特性在新版本增强的功能,以免新版本增强的功能对当前版本稳定的功能造成影响;再例如,某些特性的缺陷在该运营商使用场景不存在,因此无需更新版本或补丁修复该特性。即在进行版本升级时,对某些功能特性有时候运营商不希望升级,希望保持稳定的运行状态,只升级其它需要升级的功能特性;同样,如果运营商升级了功能特性后,发现某些功能特性运行时存在缺陷,需要回退这些特性,但是其它升级的特性没有问题,不希望所有升级的特性都回退,尽量做到回退影响最小,而现有技术无法满足这一需求,因此,有必要提供一种新的方法解决上述问题。
发明内容
有鉴于此,本发明实施例提供了一种数据处理方法及装置,能够对用户指 定升级或回退的功能特性进行升级或回退,以满足用户的不同需求。
第一方面,本发明实施例提供的数据处理装置,包括:
获取单元,用于获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包;
接收单元,用于接收用户下发的升级命令,所述升级命令中包含所述用户指定升级的功能特性的标识;
创建单元,用于根据所述用户指定升级的功能特性的标识在所述用户指定升级的功能特性下创建新版本目录并将所述用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;
处理单元,用于将所述用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;
升级单元,用于启动所述用户指定升级的功能特性的新版本目录下的数据和文件完成升级。
结合第一方面,在第一方面的第一种实施方式中,所述升级单元具体用于:
停止所述用户指定升级的功能特性的进程;
将所述用户指定升级的功能特性的主用版本更新为对应功能特性的新版本;
添加所述用户指定升级的功能特性的进程;
启动所述用户指定升级的功能特性的进程完成升级。
结合第一方面,在第一方面的第二种实施方式中,若第一功能特性依赖第二功能特性,需要调用所述第二功能特性的库文件,则所述第一功能特性的软件包中包含所述第二功能特性的库文件。
结合第一方面,在第一方面的第三种实施方式中,若第一功能特性依赖第二功能特性,需要调用所述第二功能特性提供的服务,则所述第一功能特性的软件包中包含所述第二功能特性的对外接口文件。
结合第一方面,或第一方面的第一种实施方式,或第一方面的第二种实施方式,或第一方面的第三种实施方式,在第一方面的第四种实施方式中,所述装置还包括:
设置单元,用于为已升级的功能特性设置回退标识以供所述用户查询;
所述接收单元还用于,接收所述用户下发的回退指令,所述回退指令中包 含所述用户指定回退的功能特性的标识;
所述装置还包括:
回退单元,用于启动所述用户指定回退的功能特性的老版本目录下的数据和文件完成回退。
结合第一方面的第四种实施方式,在第一方面的第五种实施方式中,所述回退单元具体用于:
停止所述用户指定回退的功能特性的进程;
将所述用户指定回退的功能特性的主用版本更新为所述用户指定回退的功能特性的老版本;
添加所述用户指定回退的功能特性的进程;
启动所述用户指定回退的功能特性的进程完成回退。
结合第一方面的第五种实施方式,在第一方面的第六种实施方式中,所述装置还包括:
清除单元,用于清除已回退的功能特性的回退标识和/或清除所述已回退的功能特性的无用版本目录。
第二方面,本发明实施例提供的数据处理方法,包括:
获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包;
接收用户下发的升级命令,所述升级命令中包含所述用户指定升级的功能特性的标识;
根据所述用户指定升级的功能特性的标识在所述用户指定升级的功能特性下创建新版本目录并将所述用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;
将所述用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;
启动所述用户指定升级的功能特性的新版本目录下的数据和文件完成升级。
结合第二方面,在第二方面的第一种实施方式中,所述启动所述用户指定升级的功能特性的新版本目录下的数据和文件完成升级包括:
停止所述用户指定升级的功能特性的进程;
将所述用户指定升级的功能特性的主用版本更新为对应功能特性的新版本;
添加所述用户指定升级的功能特性的进程;
启动所述用户指定升级的功能特性的进程完成升级。
结合第二方面,在第二方面的第二种实施方式中,若第一功能特性依赖第二功能特性,需要调用所述第二功能特性的库文件,则所述第一功能特性的软件包中包含所述第二功能特性的库文件。
结合第二方面,在第二方面的第三种实施方式中,若第一功能特性依赖第二功能特性,需要调用所述第二功能特性提供的服务,则所述第一功能特性的软件包中包含所述第二功能特性的对外接口文件。
结合第二方面,或第二方面的第一种实施方式,或第二方面的第二种实施方式,或第二方面的第三种实施方式,在第二方面的第四种实施方式中,所述方法还包括:
为已升级的功能特性设置回退标识以供所述用户查询;
接收所述用户下发的回退指令,所述回退指令中包含所述用户指定回退的功能特性的标识;
启动所述用户指定回退的功能特性的老版本目录下的数据和文件完成回退。
结合第二方面的第四种实施方式,在第二方面的第五种实施方式中,所述启动所述用户指定回退的功能特性的老版本目录下的数据和文件完成回退包括:
停止所述用户指定回退的功能特性的进程;
将所述用户指定回退的功能特性的主用版本更新为所述用户指定回退的功能特性的老版本;
添加所述用户指定回退的功能特性的进程;
启动所述用户指定回退的功能特性的进程完成回退。
结合第二方面的第五种实施方式,在第二方面的第六种实施方式中,所述方法还包括:
清除已回退的功能特性的回退标识和/或清除所述已回退的功能特性的无用版本目录。
从以上技术方案可以看出,本发明实施例具有以下优点:
本发明实施例中,所获取的新版本的软件包中包含各个功能特性的新版本软件包,在接收到用户下发的升级指令之后,在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下,将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应新版本目录下;启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级。即本发明实施例可以对用户指定的功能特性进行升级,不升级的功能特性不受影响,从而满足了用户的不同需求。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明数据处理装置一个实施例示意图;
图2为本发明数据处理装置另一实施例示意图;
图3为本发明数据处理装置另一实施例示意图;
图4为本发明数据处理方法一个实施例示意图;
图5为本发明数据处理方法另一实施例示意图;
图6为本发明网元软件包的构成一实施例示意图;
图7为本发明网元软件包初始版本安装时的一个实施例示意图;
图8为本发明网元软件包更新时的一个实施例示意图;
图9为本发明网元软件包回退时的一个实施例示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供了一种数据处理方法及装置,能够对用户指定升级或回 退的功能特性进行升级或回退,以满足用户的不同需求。
请参阅图1,图1是本发明数据处理装置一个实施例示意图,本实施例的数据处理装置100包括:
获取单元101,用于获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包;
接收单元102,用于接收用户下发的升级命令,所述升级命令中包含所述用户指定升级的功能特性的标识;
创建单元103,用于根据所述用户指定升级的功能特性的标识在所述用户指定升级的功能特性下创建新版本目录并将所述用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;
处理单元104,用于将所述用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;
升级单元105,用于启动所述用户指定升级的功能特性的新版本目录下的数据和文件完成升级。
具体实现中,当网元软件包有新版本发布时,获取单元101获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包,每个功能特性的新版本软件包为独立的软件包。用户可根据需求选择需要升级的功能特性并下发升级命令,接收单元102接收所述升级命令,所述升级命令中包含用户指定升级的功能特性的标识。
创建单元103根据接收单元102接收到的升级命令中包含的功能特性的标识在用户指定升级的功能特性下创建新版本目录,并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下,此时新版本目录下只有安装后的缺省数据,处理单元104将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下,以使得新版本能够继承和使用老版本产生的数据,提供相应的功能,升级单元105启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级。
本实施例中,获取单元所获取的新版本的软件包中包含各个功能特性的新版本软件包,在接收单元接收到用户下发的升级指令之后,创建单元在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下,处理单元将用户指定升级的功 能特性的老版本目录下的数据和文件升级到对应新版本目录下;升级单元启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级。即本实施例可以按照功能特性粒度进行版本升级,对用户指定升级的功能特性进行升级,不升级的功能特性不受影响,从而满足了用户的不同需求。
为便于理解,下面介绍本发明数据处理装置一个具体实施例,请参阅图2,本实施例的数据处理装置200包括:
获取单元201,用于获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包;
接收单元202,用于接收用户下发的升级命令,所述升级命令中包含所述用户指定升级的功能特性的标识;
创建单元203,用于根据所述用户指定升级的功能特性的标识在所述用户指定升级的功能特性下创建新版本目录并将所述用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;
处理单元204,用于将所述用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;
升级单元205,用于启动所述用户指定升级的功能特性的新版本目录下的数据和文件完成升级;
设置单元206,用于为已升级的功能特性设置回退标识以供所述用户查询;
接收单元201还用于,接收所述用户下发的回退指令,所述回退指令中包含所述用户指定回退的功能特性的标识;
数据处理装置200还包括:
回退单元207,用于启动所述用户指定回退的功能特性的老版本目录下的数据和文件完成回退;
清除单元208,用于清除已回退的功能特性的回退标识和/或清除所述已回退的功能特性的无用版本目录。
具体实现中,各个版本的网元软件包兼容,网元软件包中包含各个功能特性的软件包,每个功能特性的软件包独立存在。若不同的功能特性之间存在依赖关系,则在软件开发时给予解决。例如若第一功能特性依赖第二功能特性,需要调用第二功能特性的库文件,则将第二功能特性的库文件打包到第一功能 特性的软件包中;若第一功能特性依赖第二功能特性,需要调用第二功能特性提供的服务,则将第二功能特性的对外接口文件打包到第一功能特性的软件包中,这样使得每个功能特性的软件包都可以独立存在。当网元软件包初始版本安装之后,在运行目录下每个功能特性都有一个版本目录,即老版本目录,初始时的主用版本为老版本。
当开发出新版本的软件包之后,获取单元201可以从服务器获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包,每个功能特性的新版本软件包为独立的软件包。
用户可根据需求下发升级命令,例如可以指定哪些功能特性需要升级,接收单元202接收所述升级命令,所述升级命令中包含用户指定升级的功能特性的标识。
创建单元203根据接收单元202接收到的升级命令中包含的功能特性的标识,在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下,此时新版本目录下只有安装后的缺省数据,主用版本目仍然是老版本。处理单元204将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下,以便新版本作为主用版本时,能够继承和使用老版本产生的数据,提供相应的功能。
升级单元205启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级。具体地,升级单元205需要先停止用户指定升级的功能特性的进程,将用户指定升级的功能特性的主用版本更新为对应功能特性的新版本,然互添加用户指定升级的功能特性的进程,最后启动用户指定升级的功能特性的进程完成升级。
在升级单元205完成升级之后,设置单元206为已升级的功能特性设置回退标识。用户可向数据处理装置下发查询指令,以查询哪些功能特性有回退版本。当需要对某个功能特性进行回退时,用户可下发回退指令,接收单元201接收所述回退指令,所述回退指令中包含用户指定回退的功能特性的标识,回退单元207启动用户指定回退的功能特性的老版本目录下的数据和文件完成回退。
具体地,回退单元207可先停止用户指定回退的功能特性的进程,将用户 指定回退的功能特性的主用版本更新为用户指定回退的功能特性的老版本,然后添加用户指定回退的功能特性的进程,最后启动用户指定回退的功能特性的进程完成回退。
一般电信网元只需要支持回退一次即可,因此,在回退单元207完成回退之后,清除单元208可清除已回退的功能特性的回退标识和/或清除已回退的功能特性的无用版本目录,以节省存储资源。
本实施例中,获取单元所获取的新版本的软件包中包含各个功能特性的新版本软件包,在接收单元接收到用户下发的升级指令之后,创建单元在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下,处理单元将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应新版本目录下,升级单元启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级;在接收单元接收到用户下发的回退指令之后,回退单元启动用户指定回退的功能特性的老版本目录下的数据和文件完成回退。即本实施例可以按照功能特性粒度进行版本升级或回退,可以对用户指定升级或回退的功能特性进行升级或回退,不升级或回退的功能特性不受影响,从而满足了用户的不同需求。
请参阅图3,本发明数据处理装置另一实施例包括收发器301及处理器302,其中:
收发器301用于获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包;接收用户下发的升级命令,所述升级命令中包含所述用户指定升级的功能特性的标识;
处理器302用于,根据所述用户指定升级的功能特性的标识在所述用户指定升级的功能特性下创建新版本目录并将所述用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;将所述用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;启动所述用户指定升级的功能特性的新版本目录下的数据和文件完成升级。
另外,本实施例的数据处理装置300还用于执行前述装置实施例的其他功能,此处不再赘述。
下面介绍本发明提供的数据处理方法,本发明中,各个版本的网元软件包兼容,网元软件包中包含各个功能特性的软件包,每个功能特性的软件包独立 存在。例如可以将网元中的功能特性分为一个或多个基础功能特性,一个或多个业务功能特性。基础功能特性为网元提供基础功能,比如提供统一的网元对外通讯、鉴权、文件传输、操作维护等功能。业务功能特性为网元提供业务功能,比如基站管理,小区管理、移动性管理等,每个功能特性都设置一个独立的软件包。软件包初始安装时,软件包内的每个功能特性的软件包都进行了安装。
请参阅图4,本发明数据处理方法一个实施例包括:
401、获取新版本的软件包;
当网元软件包有新版本发布时,数据处理装置获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包,每个功能特性的新版本软件包为独立的软件包。
402、接收用户下发的升级命令;
用户可根据需求选择需要升级的功能特性并下发升级命令,所述升级命令中包含用户指定升级的功能特性的标识。
403、根据用户指定升级的功能特性的标识在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;
此时新版本目录下只有安装后的缺省数据。
404、将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;
405、启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级。
本实施例中,所获取的新版本的软件包中包含各个功能特性的新版本软件包,在接收到用户下发的升级指令之后,在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下,将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应新版本目录下;启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级。即本实施例可以按照功能特性粒度进行版本升级,可以对用户指定升级的功能特性进行升级,不升级的功能特性不受影响,从而满足了用户的不同需求。
为便于理解,下面以一个具体实施例介绍本发明数据处理方法,请参阅图5,本实施例的方法包括:
501、获取新版本的软件包;
在获取新版本的软件包之前,先介绍一下本发明网元软件包的构成情况,具体可参阅图6,网元软件包中包含各个功能特性的软件包,每个功能特性的软件包独立存在。若不同的功能特性之间存在依赖关系,则在软件开发时给予解决。例如若第一功能特性依赖第二功能特性,需要调用第二功能特性的库文件,则将第二功能特性的库文件打包到第一功能特性的软件包中;若第一功能特性依赖第二功能特性,需要调用第二功能特性提供的服务,则将第二功能特性的对外接口文件打包到第一功能特性的软件包中,这样使得每个功能特性的软件包都可以独立存在。网元软件包的安装功能可由install程序提供,启动功能可由start程序提供。
在网元软件包初始版本安装时,在运行目录下每个功能特性都有一个版本目录。如图7所示,在active.cfg文件中,存放了每个功能特性当前的主用版本,网元软件包初始版本安装后,每个功能特性的主用版本都是version1,每个功能特性的软件包都解压缩到对应功能特性的software目录下,每个功能特性运行过程中产生的数据,存储在对应功能特性的data目录下。初始版本的启动,需要遍历run目录下的所有功能特性目录下的active.cfg文件,获取功能特性的主用版本目录,将主用版本目录下的进程启动起来。
当开发出新版本的软件包之后,数据处理装置可以从服务器获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包,每个功能特性的新版本软件包为独立的软件包。
502、接收用户下发的升级命令;
用户可根据需求下发升级命令,例如可以指定哪些功能特性需要升级,数据处理装置接收所述升级命令,所述升级命令中包含用户指定升级的功能特性的标识。
503、根据用户指定升级的功能特性的标识在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;
例如,在步骤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。
504、将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;
即将feature1的version1的data内的数据和文件升级到version2的data内,以便version2作为主用版本时,能够继承和使用version1产生的数据,提供相应的功能。同理,将feature2的version1的data内的数据和文件升级到version2的data内,以及将feature3的version1的data内的数据和文件升级到version2的data内。
505、启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级;
具体实现中,数据处理装置实现升级的过程包括:
(1)停止用户指定升级的功能特性的进程;例如停止feature1、feature2及feature3的进程。
(2)将用户指定升级的功能特性的主用版本更新为对应功能特性的新版本;例如将active.cfg文件里feature1的主用版本由version1更新为version2,将active.cfg文件里feature2的主用版本由version1更新为version2,以及将active.cfg文件里feature3的主用版本由version1更新为version2。
(3)添加用户指定升级的功能特性的进程,例如添加feature1、feature2及feature3的进程;
(4)启动用户指定升级的功能特性的进程完成升级;例如启动feature1、feature2及feature3的进程,由于active.cfg文件中的各个功能特性的主用版本目录已修改,因此启动的进程都是新版本下的进程。
506、为已升级的功能特性设置回退标识;
上面的例子中,即为feature1、feature2及feature3设置回退标识,如图9 所示,可以在feautre1、feature2、feature3目录下增加rollback.cfg文件,里面的回退版本即升级前active.cfg中的主用版本。
507、接收用户下发的回退指令;
用户可向数据处理装置下发查询指令,以查询哪些功能特性有回退版本,上面的例子中,feautre1、feature2、feature3都可以回退,用户可根据实际需要选择回退的功能特性,并下发回退指令,所述回退指令中包含用户指定回退的功能特性的标识。
508、启动用户指定回退的功能特性的老版本目录下的数据和文件完成回退;
上面的例子中,若用户指定需要回退feature2,则具体实现中,完成回退的过程包括:
(1)停止用户指定回退的功能特性的进程,即停止feature2的进程;
(2)将用户指定回退的功能特性的主用版本更新为用户指定回退的功能特性的老版本,即将active.cfg文件中的主用版本目录更新为rollback.cfg中的可回退版本,上面的例子中,即将active.cfg文件中feature2的主用版本由version2更新为version1。
(3)添加用户指定回退的功能特性的进程,即添加feature2的进程;
(4)启动用户指定回退的功能特性的进程完成回退,即启动feature2的进程,由于active.cfg文件中feature2的主用版本已更新为version1,所以此时启动的进程为version1版本下的进程。
509、清除已回退的功能特性的回退标识和/或清除已回退的功能特性的无用版本目录。
一般电信网元只需要支持回退一次即可,上面的例子中,功能特性2已回退,则可以删除功能特性2的回退标识,例如可以删除功能特性2的rollback.cfg,和/或将rollback.cfg的可回退版本号设置为空。另外,还可以清除无用的特性目录,例如功能特性2的version2版本已没有用处,因此可以清除掉。
另外,需要说明的是,上面的实施例中,只是说明了对用户指定的功能特性进行升级或回退的方法,在实际应用中,还可以利用上述方法对某个功能特性打补丁或补丁回退,具体的处理过程可参阅前述实施例,此处不再赘述。
本实施例中,所获取的新版本的软件包中包含各个功能特性的新版本软件包,在接收到用户下发的升级指令之后,在用户指定升级的功能特性下创建新版本目录并将用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下,将用户指定升级的功能特性的老版本目录下的数据和文件升级到对应新版本目录下,启动用户指定升级的功能特性的新版本目录下的数据和文件完成升级;在接收到用户下发的回退指令之后,启动用户指定回退的功能特性的老版本目录下的数据和文件完成回退。即本实施例可以按照功能特性粒度进行版本升级或回退,可以对用户指定升级或回退的功能特性进行升级或回退,不升级或回退的功能特性不受影响,从而满足了用户的不同需求。
另外需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本发明提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本发明而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
以上对本发明实施例所提供的一种数据处理方法及装置进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应 用范围上均会有改变之处,因此,本说明书内容不应理解为对本发明的限制。

Claims (14)

  1. 一种数据处理装置,其特征在于,包括:
    获取单元,用于获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包;
    接收单元,用于接收用户下发的升级命令,所述升级命令中包含所述用户指定升级的功能特性的标识;
    创建单元,用于根据所述用户指定升级的功能特性的标识在所述用户指定升级的功能特性下创建新版本目录并将所述用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;
    处理单元,用于将所述用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;
    升级单元,用于启动所述用户指定升级的功能特性的新版本目录下的数据和文件完成升级。
  2. 如权利要求1所述的装置,其特征在于,所述升级单元具体用于:
    停止所述用户指定升级的功能特性的进程;
    将所述用户指定升级的功能特性的主用版本更新为对应功能特性的新版本;
    添加所述用户指定升级的功能特性的进程;
    启动所述用户指定升级的功能特性的进程完成升级。
  3. 如权利要求1所述的装置,其特征在于,若第一功能特性依赖第二功能特性,需要调用所述第二功能特性的库文件,则所述第一功能特性的软件包中包含所述第二功能特性的库文件。
  4. 如权利要求1所述的装置,其特征在于,若第一功能特性依赖第二功能特性,需要调用所述第二功能特性提供的服务,则所述第一功能特性的软件包中包含所述第二功能特性的对外接口文件。
  5. 如权利要求1至4任意一项所述的装置,其特征在于,所述装置还包括:
    设置单元,用于为已升级的功能特性设置回退标识以供所述用户查询;
    所述接收单元还用于,接收所述用户下发的回退指令,所述回退指令中包 含所述用户指定回退的功能特性的标识;
    所述装置还包括:
    回退单元,用于启动所述用户指定回退的功能特性的老版本目录下的数据和文件完成回退。
  6. 如权利要求5所述的装置,其特征在于,所述回退单元具体用于:
    停止所述用户指定回退的功能特性的进程;
    将所述用户指定回退的功能特性的主用版本更新为所述用户指定回退的功能特性的老版本;
    添加所述用户指定回退的功能特性的进程;
    启动所述用户指定回退的功能特性的进程完成回退。
  7. 如权利要求6所述的装置,其特征在于,所述装置还包括:
    清除单元,用于清除已回退的功能特性的回退标识和/或清除所述已回退的功能特性的无用版本目录。
  8. 一种数据处理方法,其特征在于,包括:
    获取新版本的软件包,所述新版本的软件包中包含各个功能特性的新版本软件包;
    接收用户下发的升级命令,所述升级命令中包含所述用户指定升级的功能特性的标识;
    根据所述用户指定升级的功能特性的标识在所述用户指定升级的功能特性下创建新版本目录并将所述用户指定升级的功能特性的新版本软件包解压缩到对应功能特性的新版本目录下;
    将所述用户指定升级的功能特性的老版本目录下的数据和文件升级到对应的新版本目录下;
    启动所述用户指定升级的功能特性的新版本目录下的数据和文件完成升级。
  9. 如权利要求8所述的方法,其特征在于,所述启动所述用户指定升级的功能特性的新版本目录下的数据和文件完成升级包括:
    停止所述用户指定升级的功能特性的进程;
    将所述用户指定升级的功能特性的主用版本更新为对应功能特性的新版本;
    添加所述用户指定升级的功能特性的进程;
    启动所述用户指定升级的功能特性的进程完成升级。
  10. 如权利要求8所述的方法,其特征在于,若第一功能特性依赖第二功能特性,需要调用所述第二功能特性的库文件,则所述第一功能特性的软件包中包含所述第二功能特性的库文件。
  11. 如权利要求8所述的方法,其特征在于,若第一功能特性依赖第二功能特性,需要调用所述第二功能特性提供的服务,则所述第一功能特性的软件包中包含所述第二功能特性的对外接口文件。
  12. 如权利要求8至11任意一项所述的方法,其特征在于,所述方法还包括:
    为已升级的功能特性设置回退标识以供所述用户查询;
    接收所述用户下发的回退指令,所述回退指令中包含所述用户指定回退的功能特性的标识;
    启动所述用户指定回退的功能特性的老版本目录下的数据和文件完成回退。
  13. 如权利要求12所述的方法,其特征在于,所述启动所述用户指定回退的功能特性的老版本目录下的数据和文件完成回退包括:
    停止所述用户指定回退的功能特性的进程;
    将所述用户指定回退的功能特性的主用版本更新为所述用户指定回退的功能特性的老版本;
    添加所述用户指定回退的功能特性的进程;
    启动所述用户指定回退的功能特性的进程完成回退。
  14. 如权利要求13所述的方法,其特征在于,所述方法还包括:
    清除已回退的功能特性的回退标识和/或清除所述已回退的功能特性的无用版本目录。
PCT/CN2015/078953 2014-11-12 2015-05-14 一种数据处理方法及装置 WO2016074460A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410635774.1 2014-11-12
CN201410635774.1A CN104461612B (zh) 2014-11-12 2014-11-12 一种数据处理方法及装置

Publications (1)

Publication Number Publication Date
WO2016074460A1 true WO2016074460A1 (zh) 2016-05-19

Family

ID=52907717

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078953 WO2016074460A1 (zh) 2014-11-12 2015-05-14 一种数据处理方法及装置

Country Status (2)

Country Link
CN (1) CN104461612B (zh)
WO (1) WO2016074460A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461612B (zh) * 2014-11-12 2018-05-04 上海华为技术有限公司 一种数据处理方法及装置
CN105389172B (zh) * 2015-12-07 2018-09-14 深圳市金锐显数码科技有限公司 应用程序升级方法和装置
CN109582327A (zh) * 2017-09-29 2019-04-05 北京国双科技有限公司 更新方法及装置
CN109240737A (zh) * 2018-08-22 2019-01-18 杭州数澜科技有限公司 一种在大数据平台上打包发布的方法和系统

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212546A (zh) * 2006-12-26 2008-07-02 深圳市同洲电子股份有限公司 一种机顶盒的应用数据获取方法与装置
CN101778153A (zh) * 2009-12-31 2010-07-14 康佳集团股份有限公司 一种手机功能配置方法及装置
CN102081532A (zh) * 2010-10-15 2011-06-01 福建新大陆通信科技股份有限公司 一种机顶盒功能动态升级的方法
CN102135895A (zh) * 2010-12-29 2011-07-27 华为软件技术有限公司 系统升级方法及系统
CN103150193A (zh) * 2013-04-10 2013-06-12 天津三星光电子有限公司 一种移动终端的软件升级方法
CN104035799A (zh) * 2014-06-19 2014-09-10 浪潮电子信息产业股份有限公司 一种软件可定制升级的方法
CN104461612A (zh) * 2014-11-12 2015-03-25 上海华为技术有限公司 一种数据处理方法及装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1329822C (zh) * 2004-06-16 2007-08-01 华为技术有限公司 软件更新方法
CN100403263C (zh) * 2006-08-16 2008-07-16 华为技术有限公司 按配置下载设备软件的方法
CN101383724B (zh) * 2008-08-29 2011-04-13 上海华为技术有限公司 网元升级方法及操作维护单元和网元升级系统
CN102193805B (zh) * 2010-03-11 2014-05-07 华为技术有限公司 一种软件补丁升级装置及方法
US9098629B2 (en) * 2010-12-01 2015-08-04 Sap Se System and method for reversibility categories and characteristics of computer application functions
CN102968298A (zh) * 2012-10-31 2013-03-13 山东浪潮齐鲁软件产业股份有限公司 一种软件产品构建方法
US9552195B2 (en) * 2013-03-08 2017-01-24 Facebook, Inc. Enlarging control regions to optimize script code compilation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212546A (zh) * 2006-12-26 2008-07-02 深圳市同洲电子股份有限公司 一种机顶盒的应用数据获取方法与装置
CN101778153A (zh) * 2009-12-31 2010-07-14 康佳集团股份有限公司 一种手机功能配置方法及装置
CN102081532A (zh) * 2010-10-15 2011-06-01 福建新大陆通信科技股份有限公司 一种机顶盒功能动态升级的方法
CN102135895A (zh) * 2010-12-29 2011-07-27 华为软件技术有限公司 系统升级方法及系统
CN103150193A (zh) * 2013-04-10 2013-06-12 天津三星光电子有限公司 一种移动终端的软件升级方法
CN104035799A (zh) * 2014-06-19 2014-09-10 浪潮电子信息产业股份有限公司 一种软件可定制升级的方法
CN104461612A (zh) * 2014-11-12 2015-03-25 上海华为技术有限公司 一种数据处理方法及装置

Also Published As

Publication number Publication date
CN104461612A (zh) 2015-03-25
CN104461612B (zh) 2018-05-04

Similar Documents

Publication Publication Date Title
AU2016404863B2 (en) Patch-upgrade-based file processing method and apparatus, terminal, and storage medium
CN106537338B (zh) 自扩展云
US10447814B2 (en) Joint servicing of software packages
US9009663B2 (en) Cartridge-based package management
US20230393840A1 (en) File update method and apparatus, device and storage medium
WO2016058350A1 (zh) 一种基站软件版本管理方法和设备
WO2016074460A1 (zh) 一种数据处理方法及装置
WO2020143199A1 (zh) 一种应用程序插件化的方法、系统以及相关装置
CN104918114A (zh) 一种操作系统升级方法及装置
US8769521B2 (en) Calendar aware adaptive patching of a computer program
CN111666134A (zh) 一种分布式任务调度的方法和系统
WO2014134989A2 (zh) 一种Android终端及其实现升级的方法
WO2023169035A1 (zh) 操作系统的升级方法、电子设备及存储介质
US10078532B2 (en) Resource management method and device for terminal system among multiple operating systems
CN111752577B (zh) 一种系统版本的升级方法及设备
US8806477B2 (en) Space efficient software package management
CN106293790B (zh) 基于Firefox操作系统的应用程序升级方法和装置
US11416233B1 (en) Software upgrade system and method for a baseboard management controller configured in an information handling system
WO2019183806A1 (zh) 资源权限处理方法、装置、存储介质及芯片
WO2018010603A1 (zh) 基于视频云存储系统的存储模式升级方法、装置和系统
US8683460B2 (en) Grandfathering configurations in a distributed environment
US11144312B2 (en) Management method for preset third-party applications, intelligent terminal and storage medium
CN112084254A (zh) 一种数据同步方法和系统
WO2023050947A1 (zh) 网络升级方法、电子设备及存储介质
US20240143318A1 (en) Efficient configuration management in continuous deployment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15858418

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15858418

Country of ref document: EP

Kind code of ref document: A1