CN113703827B - A dependency package management method, system, device and computer-readable storage medium - Google Patents
A dependency package management method, system, device and computer-readable storage medium Download PDFInfo
- Publication number
- CN113703827B CN113703827B CN202110876906.XA CN202110876906A CN113703827B CN 113703827 B CN113703827 B CN 113703827B CN 202110876906 A CN202110876906 A CN 202110876906A CN 113703827 B CN113703827 B CN 113703827B
- Authority
- CN
- China
- Prior art keywords
- target
- data center
- version information
- business
- dependency package
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请公开了一种依赖包管理方法、系统、设备及计算机可读存储介质,应用于目标数据中心,获取待通信的另一数据中心中目标业务的业务版本信息;基于业务版本信息,确定目标业务的目标依赖包;加载目标依赖包;基于目标依赖包与另一数据中心进行业务交互。本申请中,目标数据中心可以获取另一数据中心中目标业务的业务版本信息,并根据业务版本信息加载目标业务的目标依赖包,可以使得目标数据中心的业务版本与另一数据中心的目标业务的版本一致,从而可以与另一数据中心正常进行业务交互,便于业务在数据中心的快速开展。本申请提供的一种依赖包管理系统、设备及计算机可读存储介质也解决了相应技术问题。
This application discloses a dependency package management method, system, equipment and computer-readable storage medium, which are applied to a target data center to obtain the business version information of the target business in another data center to be communicated; based on the business version information, the target is determined The target dependency package of the business; load the target dependency package; conduct business interaction with another data center based on the target dependency package. In this application, the target data center can obtain the business version information of the target business in another data center, and load the target dependency package of the target business according to the business version information, which can make the business version of the target data center consistent with the target business of the other data center. The versions are consistent, so that business interactions with another data center can be carried out normally, which facilitates the rapid development of business in the data center. The dependent package management system, equipment and computer-readable storage medium provided by this application also solve corresponding technical problems.
Description
技术领域Technical field
本申请涉及计算机技术领域,更具体地说,涉及一种依赖包管理方法、系统、设备及计算机可读存储介质。The present application relates to the field of computer technology, and more specifically, to a dependency package management method, system, device and computer-readable storage medium.
背景技术Background technique
随着通信技术的发展,分布在不同地区的数据中心间可以进行数据互传,比如进行Kafka消息发送等,这里所描述的Kafka是一种高吞吐量的分布式发布订阅消息系统,它可以处理消费者在网站中的所有动作流数据,然而,不同的数据中心所部署的数据平台差异较大,业务服务版本可能不同,导致在不同数据中心安装同一个业务的话,需要业务的项目代码中包含不同版本的依赖包,容易出现依赖包冲突与异常的情况,还会影响业务在数据中心的部署效率,不利于业务功能在数据中心的开展。With the development of communication technology, data centers distributed in different regions can transmit data to each other, such as sending Kafka messages. The Kafka described here is a high-throughput distributed publish-subscribe message system that can process All actions of consumers on the website stream data. However, the data platforms deployed in different data centers are quite different, and the business service versions may be different. As a result, if the same business is installed in different data centers, the project code of the business needs to be included. Different versions of dependency packages are prone to dependency package conflicts and exceptions, and will also affect the efficiency of business deployment in the data center, which is not conducive to the development of business functions in the data center.
综上所述,如何在数据中心快速开展业务是目前本领域技术人员亟待解决的问题。To sum up, how to quickly carry out business in a data center is an urgent problem that technicians in the field need to solve.
发明内容Contents of the invention
本申请的目的是提供一种依赖包管理方法,其能在一定程度上解决如何在数据中心快速开展业务的技术问题。本申请还提供了一种依赖包管理系统、设备及计算机可读存储介质。The purpose of this application is to provide a dependency package management method, which can solve to a certain extent the technical problem of how to quickly conduct business in a data center. This application also provides a dependency package management system, equipment and computer-readable storage media.
为了实现上述目的,本申请提供如下技术方案:In order to achieve the above objectives, this application provides the following technical solutions:
一种依赖包管理方法,应用于目标数据中心,包括:A dependency package management method applied to the target data center, including:
获取待通信的另一数据中心中目标业务的业务版本信息;Obtain the service version information of the target service in another data center to be communicated;
基于所述业务版本信息,确定所述目标业务的目标依赖包;Based on the service version information, determine the target dependency package of the target service;
加载所述目标依赖包;Load the target dependency package;
基于所述目标依赖包与所述另一数据中心进行业务交互。Perform business interaction with the other data center based on the target dependency package.
优选的,所述基于所述业务版本信息,确定所述目标业务的目标依赖包,包括:Preferably, determining the target dependency package of the target service based on the service version information includes:
基于所述业务版本信息,确定所述目标依赖包的依赖包存储地址;Based on the business version information, determine the dependency package storage address of the target dependency package;
从所述依赖包存储地址处下载所述目标依赖包。Download the target dependency package from the dependency package storage address.
优选的,所述从所述依赖包存储地址处下载所述目标依赖包,包括:Preferably, downloading the target dependency package from the dependency package storage address includes:
从所述依赖包存储地址处下载压缩后的所述目标依赖包。Download the compressed target dependency package from the dependency package storage address.
优选的,所述基于所述业务版本信息,确定所述目标依赖包的依赖包存储地址,包括:Preferably, determining the dependency package storage address of the target dependency package based on the service version information includes:
基于所述业务版本信息,确定所述目标依赖包在HDFS目录下的依赖包存储地址。Based on the service version information, the dependency package storage address of the target dependency package in the HDFS directory is determined.
优选的,所述加载所述目标依赖包,包括:Preferably, loading the target dependency package includes:
基于类加载器加载所述目标依赖包至自身与所述目标业务对应的目标目录下。Load the target dependency package to its own target directory corresponding to the target business based on a class loader.
优选的,所述获取待通信的另一数据中心中目标业务的业务版本信息,包括:Preferably, the obtaining the service version information of the target service in another data center to be communicated includes:
获取所述另一数据中心的登录信息、安全协议;Obtain the login information and security protocol of the other data center;
基于所述登录信息及所述安全协议获取所述另一数据中心的登录认证文件;Obtain the login authentication file of the other data center based on the login information and the security protocol;
基于所述登录认证文件获取对所述另一数据中心的访问权限;Obtain access rights to the other data center based on the login authentication file;
基于所述访问权限获取所述业务版本信息。Obtain the service version information based on the access permission.
优选的,所述基于所述业务版本信息,确定所述目标业务的目标依赖包,包括:Preferably, determining the target dependency package of the target service based on the service version information includes:
基于所述业务版本信息在自身MySql数据库中查询,确定所述目标业务的所述目标依赖包。Query in its own MySql database based on the service version information to determine the target dependency package of the target service.
一种依赖包管理系统,应用于目标数据中心,包括:A dependency package management system applied to the target data center, including:
第一获取模块,用于获取待通信的另一数据中心中目标业务的业务版本信息;The first acquisition module is used to acquire the service version information of the target service in another data center to be communicated;
第一确定模块,用于基于所述业务版本信息,确定所述目标业务的目标依赖包;A first determination module, configured to determine the target dependency package of the target service based on the service version information;
第一加载模块,用于加载所述目标依赖包;The first loading module is used to load the target dependency package;
第一交互模块,用于基于所述目标依赖包与所述另一数据中心进行业务交互。The first interaction module is used for business interaction with the other data center based on the target dependency package.
一种依赖包管理设备,包括:A dependency package management device, including:
存储器,用于存储计算机程序;Memory, used to store computer programs;
处理器,用于执行所述计算机程序时实现如上任一所述依赖包管理方法的步骤。A processor, configured to implement the steps of any of the above dependency package management methods when executing the computer program.
一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现如上任一所述依赖包管理方法的步骤。A computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the steps of any one of the above dependency package management methods are implemented.
本申请提供的一种依赖包管理方法,应用于目标数据中心,获取待通信的另一数据中心中目标业务的业务版本信息;基于业务版本信息,确定目标业务的目标依赖包;加载目标依赖包;基于目标依赖包与另一数据中心进行业务交互。本申请中,目标数据中心可以获取另一数据中心中目标业务的业务版本信息,并根据业务版本信息加载目标业务的目标依赖包,可以使得目标数据中心的业务版本与另一数据中心的目标业务的版本一致,从而可以与另一数据中心正常进行业务交互,便于业务在数据中心的快速开展。本申请提供的一种依赖包管理系统、设备及计算机可读存储介质也解决了相应技术问题。This application provides a dependency package management method that is applied to a target data center to obtain the business version information of the target business in another data center to be communicated; based on the business version information, determine the target dependency package of the target business; load the target dependency package ;Conduct business interaction with another data center based on the target dependency package. In this application, the target data center can obtain the business version information of the target business in another data center, and load the target dependency package of the target business according to the business version information, which can make the business version of the target data center consistent with the target business of the other data center. The versions are consistent, so that business interactions with another data center can be carried out normally, which facilitates the rapid development of business in the data center. The dependent package management system, equipment and computer-readable storage medium provided by this application also solve corresponding technical problems.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present application or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only This is an embodiment of the present application. For those of ordinary skill in the art, other drawings can be obtained based on the provided drawings without exerting creative efforts.
图1为本申请实施例提供的一种依赖包管理方法的流程图;Figure 1 is a flow chart of a dependency package management method provided by an embodiment of the present application;
图2为本申请实施例提供的一种依赖包管理系统的结构示意图;Figure 2 is a schematic structural diagram of a dependency package management system provided by an embodiment of the present application;
图3为本申请实施例提供的一种依赖包管理设备的结构示意图;Figure 3 is a schematic structural diagram of a dependency package management device provided by an embodiment of the present application;
图4为本申请实施例提供的一种依赖包管理设备的另一结构示意图。Figure 4 is another schematic structural diagram of a dependency package management device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
请参阅图1,图1为本申请实施例提供的一种依赖包管理方法的流程图。Please refer to Figure 1, which is a flow chart of a dependency package management method provided by an embodiment of the present application.
本申请实施例提供的一种依赖包管理方法,应用于目标数据中心,可以包括以下步骤:The dependency package management method provided by the embodiment of this application is applied to the target data center and may include the following steps:
步骤S101:获取待通信的另一数据中心中目标业务的业务版本信息。Step S101: Obtain the service version information of the target service in another data center to be communicated with.
实际应用中,目标数据中心与另一数据中心进行业务交互的话,业务版本需一致,而这需要了解另一数据中心的业务版本信息,所以目标数据中心可以先获取待通信的另一数据中心中目标业务的业务版本信息。In actual applications, if the target data center interacts with another data center, the business version must be consistent, and this requires knowing the business version information of the other data center. Therefore, the target data center can first obtain the business version information of the other data center to be communicated with. Business version information of the target business.
需要说明的是,数据中心及目标业务的种类、类型等均可以根据实际需要确定,本申请在此不做具体限定。此外,可以预先在目标数据中心及另一数据中心中均设置可以相互通信的通信模块,使得目标数据中心可以借助该通信模块来获取所需的业务版本信息。It should be noted that the types and types of data centers and target services can be determined according to actual needs, and are not specifically limited in this application. In addition, a communication module that can communicate with each other can be set in advance in both the target data center and another data center, so that the target data center can obtain the required service version information by means of the communication module.
步骤S102:基于业务版本信息,确定目标业务的目标依赖包。Step S102: Based on the service version information, determine the target dependency package of the target service.
实际应用中,业务版本的更新、升级等均需依据相应的依赖包,所以目标数据中心在获取待通信的另一数据中心中目标业务的业务版本信息之后,为了使得自身业务版本与另一数据中心的业务版本一致,还需基于业务版本信息,确定目标业务的目标依赖包。In actual applications, updates and upgrades of business versions must be based on corresponding dependency packages. Therefore, after the target data center obtains the business version information of the target business in another data center to be communicated, in order to make its own business version consistent with the other data If the business version of the center is consistent, it is also necessary to determine the target dependency package of the target business based on the business version information.
步骤S103:加载目标依赖包。Step S103: Load the target dependency package.
实际应用中,目标数据中心在基于业务版本信息,确定目标业务的目标依赖包之后,便可以加载目标依赖包,以基于该目标依赖包使得自身业务版本与另一数据中心的业务版本一致。In actual applications, after the target data center determines the target dependency package of the target service based on the business version information, it can load the target dependency package to make its own business version consistent with that of another data center based on the target dependency package.
步骤S104:基于目标依赖包与另一数据中心进行业务交互。Step S104: Perform business interaction with another data center based on the target dependency package.
实际应用中,目标数据中心在加载目标依赖包之后,便可以基于目标依赖包与另一数据中心进行业务交互,In actual applications, after the target data center loads the target dependency package, it can conduct business interactions with another data center based on the target dependency package.
本申请提供的一种依赖包管理方法,应用于目标数据中心,获取待通信的另一数据中心中目标业务的业务版本信息;基于业务版本信息,确定目标业务的目标依赖包;加载目标依赖包;基于目标依赖包与另一数据中心进行业务交互。本申请中,目标数据中心可以获取另一数据中心中目标业务的业务版本信息,并根据业务版本信息加载目标业务的目标依赖包,可以使得目标数据中心的业务版本与另一数据中心的目标业务的版本一致,从而可以与另一数据中心正常进行业务交互,便于业务在数据中心的快速开展。This application provides a dependency package management method that is applied to a target data center to obtain the business version information of the target business in another data center to be communicated; based on the business version information, determine the target dependency package of the target business; load the target dependency package ;Conduct business interaction with another data center based on the target dependency package. In this application, the target data center can obtain the business version information of the target business in another data center, and load the target dependency package of the target business according to the business version information, which can make the business version of the target data center consistent with the target business of the other data center. The versions are consistent, so that business interactions with another data center can be carried out normally, which facilitates the rapid development of business in the data center.
本申请实施例提供的一种依赖包管理方法中,目标数据中心在基于业务版本信息,确定目标业务的目标依赖包的过程中,为了快速确定目标依赖包,可以基于业务版本信息,确定目标依赖包的依赖包存储地址;从依赖包存储地址处下载目标依赖包。In a dependency package management method provided by an embodiment of the present application, in the process of determining the target dependency package of the target service based on the business version information, the target data center can determine the target dependency package based on the business version information in order to quickly determine the target dependency package. The package's dependent package storage address; download the target dependent package from the dependent package storage address.
需要说明的是,目标依赖包的存储位置可以根据实际需要确定,比如目标依赖包可以直接存储在目标数据中心的数据库中,也可以存储在云端服务器中等,本申请在此不做具体限定。It should be noted that the storage location of the target dependency package can be determined according to actual needs. For example, the target dependency package can be directly stored in the database of the target data center, or can be stored in a cloud server, etc. This application does not make specific limitations here.
实际应用中,目标数据中心在从依赖包存储地址处下载目标依赖包的过程中,为了避免依赖包的数据量过大,影响目标数据中心获取目标依赖包的效率,可以预先对目标依赖包进行压缩,相应的,目标数据中心需从依赖包存储地址处下载压缩后的目标依赖包,并且在下载压缩后的目标依赖包之后,还需对其进行解压缩得到原始的目标依赖包。In actual applications, when the target data center downloads the target dependency package from the dependency package storage address, in order to avoid the excessive data volume of the dependency package and affecting the efficiency of the target data center in obtaining the target dependency package, the target dependency package can be pre-processed. Compression, correspondingly, the target data center needs to download the compressed target dependency package from the dependency package storage address, and after downloading the compressed target dependency package, it needs to decompress it to obtain the original target dependency package.
实际应用中,目标数据中心在基于业务版本信息,确定目标依赖包的依赖包存储地址的过程中,为了便于管理目标依赖包,可以借助HDFS(Hadoop Distributed FileSystem,分布式文件系统)来存储相应业务的依赖包,比如可以存储各个业务各个版本的依赖包,相应的,目标数据中心可以基于业务版本信息,确定目标依赖包在HDFS目录下的依赖包存储地址。In actual applications, in the process of determining the storage address of the target dependency package based on the business version information, the target data center can use HDFS (Hadoop Distributed File System) to store the corresponding business in order to facilitate the management of the target dependency package. For example, the dependency packages of various versions of each business can be stored. Correspondingly, the target data center can determine the dependency package storage address of the target dependency package in the HDFS directory based on the business version information.
本申请实施例提供的一种依赖包管理方法中,目标数据中心在加载目标依赖包的过程中,为了便于加载目标依赖包,且便于目标依赖包发挥作用,目标数据中心可以基于类加载器加载目标依赖包至自身与目标业务对应的目标目录下。In a dependency package management method provided by an embodiment of the present application, during the process of loading the target dependency package, the target data center can load the target dependency package based on the class loader in order to facilitate the loading of the target dependency package and the function of the target dependency package. The target dependency package is placed in the target directory corresponding to the target business.
本申请实施例提供的一种依赖包管理方法中,目标数据中心在获取待通信的另一数据中心中目标业务的业务版本信息的过程中,在另一数据中心设置访问权限的情况下,为了便于目标数据中旬获取到业务版本信息,目标数据中心可以先获取另一数据中心的登录信息、安全协议;基于登录信息及安全协议获取另一数据中心的登录认证文件;基于登录认证文件获取对另一数据中心的访问权限;基于访问权限获取业务版本信息。In a dependency package management method provided by an embodiment of the present application, in the process of obtaining the service version information of the target service in another data center to be communicated, the target data center sets access permissions in the other data center in order to To facilitate the target data to obtain the business version information in the middle, the target data center can first obtain the login information and security protocol of another data center; obtain the login authentication file of the other data center based on the login information and security protocol; obtain the login authentication file of the other data center based on the login authentication file. Access permissions of a data center; obtain business version information based on access permissions.
本申请实施例提供的一种依赖包管理方法中,目标数据中心在基于业务版本信息,确定目标业务的目标依赖包的过程中,为了快速确定目标依赖包,目标数据中心可以在自身MySql(关系型数据库管理系统)数据库中设置业务的版本信息与依赖包间的对应关系,这样,目标数据中心之后可以基于业务版本信息在自身MySql数据库中查询,来确定目标业务的目标依赖包。In a dependency package management method provided by the embodiment of the present application, in the process of determining the target dependency package of the target business based on the business version information, the target data center can quickly determine the target dependency package in its own MySql (relationship A database management system) sets the corresponding relationship between the business version information and the dependent packages in the database. In this way, the target data center can then query its own MySql database based on the business version information to determine the target dependent packages of the target business.
请参阅图2,图2为本申请实施例提供的一种依赖包管理系统的结构示意图。Please refer to Figure 2, which is a schematic structural diagram of a dependency package management system provided by an embodiment of the present application.
本申请实施例提供的一种依赖包管理系统,应用于目标数据中心,可以包括:The dependency package management system provided by the embodiment of this application is applied to the target data center and may include:
第一获取模块101,用于获取待通信的另一数据中心中目标业务的业务版本信息;The first acquisition module 101 is used to acquire the service version information of the target service in another data center to be communicated;
第一确定模块102,用于基于业务版本信息,确定目标业务的目标依赖包;The first determination module 102 is used to determine the target dependency package of the target service based on the service version information;
第一加载模块103,用于加载目标依赖包;The first loading module 103 is used to load target dependency packages;
第一交互模块104,用于基于目标依赖包与另一数据中心进行业务交互。The first interaction module 104 is used for business interaction with another data center based on the target dependency package.
本申请实施例提供的一种依赖包管理系统,应用于目标数据中心,第一确定模块可以包括:The embodiment of this application provides a dependency package management system, which is applied to the target data center. The first determination module may include:
第一确定子模块,用于基于业务版本信息,确定目标依赖包的依赖包存储地址;The first determination sub-module is used to determine the dependency package storage address of the target dependency package based on the business version information;
第一下载子模块,用于从依赖包存储地址处下载目标依赖包。The first download submodule is used to download the target dependency package from the dependency package storage address.
本申请实施例提供的一种依赖包管理系统,应用于目标数据中心,第一下载子模块可以包括:The embodiment of this application provides a dependency package management system, which is applied to the target data center. The first download sub-module may include:
第一下载单元,用于从依赖包存储地址处下载压缩后的目标依赖包。The first download unit is used to download the compressed target dependency package from the dependency package storage address.
本申请实施例提供的一种依赖包管理系统,应用于目标数据中心,第一确定子模块可以包括:The embodiment of this application provides a dependency package management system, which is applied to the target data center. The first determination sub-module may include:
第一确定单元,用于基于业务版本信息,确定目标依赖包在HDFS目录下的依赖包存储地址。The first determination unit is used to determine the dependency package storage address of the target dependency package in the HDFS directory based on the business version information.
本申请实施例提供的一种依赖包管理系统,应用于目标数据中心,第一加载模块可以包括:The embodiment of this application provides a dependency package management system, which is applied to the target data center. The first loading module may include:
第一加载单元,用于基于类加载器加载目标依赖包至自身与目标业务对应的目标目录下。The first loading unit is used to load the target dependency package to its own target directory corresponding to the target business based on the class loader.
本申请实施例提供的一种依赖包管理系统,应用于目标数据中心,第一获取模块可以包括:The embodiment of this application provides a dependency package management system, which is applied to the target data center. The first acquisition module may include:
第一获取单元,用于获取另一数据中心的登录信息、安全协议;The first acquisition unit is used to acquire the login information and security protocol of another data center;
第二获取单元,用于基于登录信息及安全协议获取另一数据中心的登录认证文件;The second acquisition unit is used to acquire the login authentication file of another data center based on the login information and security protocol;
第三获取单元,用于基于登录认证文件获取对另一数据中心的访问权限;The third acquisition unit is used to acquire access rights to another data center based on the login authentication file;
第四获取单元,用于基于访问权限获取业务版本信息。The fourth acquisition unit is used to acquire business version information based on access rights.
本申请实施例提供的一种依赖包管理系统,应用于目标数据中心,第一确定模块可以包括:The embodiment of this application provides a dependency package management system, which is applied to the target data center. The first determination module may include:
第二确定单元,用于基于业务版本信息在自身MySql数据库中查询,确定目标业务的目标依赖包。The second determination unit is used to query in its own MySql database based on the business version information to determine the target dependency package of the target business.
本申请还提供了一种依赖包管理设备及计算机可读存储介质,其均具有本申请实施例提供的一种依赖包管理方法具有的对应效果。请参阅图3,图3为本申请实施例提供的一种依赖包管理设备的结构示意图。The present application also provides a dependency package management device and a computer-readable storage medium, both of which have the corresponding effects of the dependency package management method provided by the embodiments of the present application. Please refer to Figure 3, which is a schematic structural diagram of a dependency package management device provided by an embodiment of the present application.
本申请实施例提供的一种依赖包管理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:A dependency package management device provided by an embodiment of the present application includes a memory 201 and a processor 202. A computer program is stored in the memory 201. When the processor 202 executes the computer program, the following steps are implemented:
获取待通信的另一数据中心中目标业务的业务版本信息;Obtain the service version information of the target service in another data center to be communicated;
基于业务版本信息,确定目标业务的目标依赖包;Based on the business version information, determine the target dependency package of the target business;
加载目标依赖包;Load target dependency packages;
基于目标依赖包与另一数据中心进行业务交互。Conduct business interactions with another data center based on target dependency packages.
本申请实施例提供的一种依赖包管理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:基于业务版本信息,确定目标依赖包的依赖包存储地址;从依赖包存储地址处下载目标依赖包。A dependency package management device provided by an embodiment of the present application includes a memory 201 and a processor 202. A computer program is stored in the memory 201. When the processor 202 executes the computer program, the following steps are implemented: based on the business version information, determine the target dependency package. Dependency package storage address; download the target dependency package from the dependency package storage address.
本申请实施例提供的一种依赖包管理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:从依赖包存储地址处下载压缩后的目标依赖包。A dependency package management device provided by an embodiment of the present application includes a memory 201 and a processor 202. A computer program is stored in the memory 201. When the processor 202 executes the computer program, it implements the following steps: download the compressed package from the dependency package storage address. Target dependency package.
本申请实施例提供的一种依赖包管理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:基于业务版本信息,确定目标依赖包在HDFS目录下的依赖包存储地址。A dependency package management device provided by an embodiment of the present application includes a memory 201 and a processor 202. A computer program is stored in the memory 201. When the processor 202 executes the computer program, it implements the following steps: Based on the business version information, determine where the target dependency package is. The storage address of dependent packages in the HDFS directory.
本申请实施例提供的一种依赖包管理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:基于类加载器加载目标依赖包至自身与目标业务对应的目标目录下。A dependency package management device provided by an embodiment of the present application includes a memory 201 and a processor 202. A computer program is stored in the memory 201. When the processor 202 executes the computer program, it implements the following steps: loads the target dependency package to itself based on the class loader. In the target directory corresponding to the target business.
本申请实施例提供的一种依赖包管理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:获取另一数据中心的登录信息、安全协议;基于登录信息及安全协议获取另一数据中心的登录认证文件;基于登录认证文件获取对另一数据中心的访问权限;基于访问权限获取业务版本信息。A dependent package management device provided by an embodiment of the present application includes a memory 201 and a processor 202. A computer program is stored in the memory 201. When the processor 202 executes the computer program, it implements the following steps: obtaining login information of another data center, security protocol; obtain the login authentication file of another data center based on the login information and security protocol; obtain the access rights to another data center based on the login authentication file; obtain the business version information based on the access rights.
本申请实施例提供的一种依赖包管理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:基于业务版本信息在自身MySql数据库中查询,确定目标业务的目标依赖包。A dependency package management device provided by an embodiment of the present application includes a memory 201 and a processor 202. A computer program is stored in the memory 201. When the processor 202 executes the computer program, it implements the following steps: querying in its own MySql database based on business version information. , determine the target dependency packages of the target business.
请参阅图4,本申请实施例提供的另一种依赖包管理设备中还可以包括:与处理器202连接的输入端口203,用于传输外界输入的命令至处理器202;与处理器202连接的显示单元204,用于显示处理器202的处理结果至外界;与处理器202连接的通信模块205,用于实现依赖包管理设备与外界的通信。显示单元204可以为显示面板、激光扫描使显示器等;通信模块205所采用的通信方式包括但不局限于移动高清链接技术(HML)、通用串行总线(USB)、高清多媒体接口(HDMI)、无线连接:无线保真技术(WiFi)、蓝牙通信技术、低功耗蓝牙通信技术、基于IEEE802.11s的通信技术。Referring to Figure 4, another dependency package management device provided by the embodiment of the present application may also include: an input port 203 connected to the processor 202 for transmitting commands input from the outside to the processor 202; The display unit 204 is used to display the processing results of the processor 202 to the outside world; the communication module 205 connected to the processor 202 is used to implement communication between the dependent package management device and the outside world. The display unit 204 can be a display panel, a laser scanning display, etc.; the communication methods used by the communication module 205 include but are not limited to mobile high-definition link technology (HML), universal serial bus (USB), high-definition multimedia interface (HDMI), Wireless connection: wireless fidelity technology (WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, communication technology based on IEEE802.11s.
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:An embodiment of the present application provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the following steps are implemented:
获取待通信的另一数据中心中目标业务的业务版本信息;Obtain the service version information of the target service in another data center to be communicated;
基于业务版本信息,确定目标业务的目标依赖包;Based on the business version information, determine the target dependency package of the target business;
加载目标依赖包;Load target dependency packages;
基于目标依赖包与另一数据中心进行业务交互。Conduct business interactions with another data center based on target dependency packages.
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:基于业务版本信息,确定目标依赖包的依赖包存储地址;从依赖包存储地址处下载目标依赖包。An embodiment of the present application provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the following steps are implemented: based on business version information, determine the dependency package storage address of the target dependency package. ; Download the target dependency package from the dependency package storage address.
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:从依赖包存储地址处下载压缩后的目标依赖包。An embodiment of the present application provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the following steps are implemented: Download the compressed target dependency package from the dependency package storage address.
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:基于业务版本信息,确定目标依赖包在HDFS目录下的依赖包存储地址。An embodiment of the present application provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the following steps are implemented: Based on the business version information, determine the target dependency package in the HDFS directory. Dependency package storage address.
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:基于类加载器加载目标依赖包至自身与目标业务对应的目标目录下。An embodiment of the present application provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the following steps are implemented: Based on the class loader, the target dependency package is loaded to itself and corresponds to the target business. in the target directory.
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:获取另一数据中心的登录信息、安全协议;基于登录信息及安全协议获取另一数据中心的登录认证文件;基于登录认证文件获取对另一数据中心的访问权限;基于访问权限获取业务版本信息。An embodiment of the present application provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the following steps are implemented: Obtain the login information and security protocol of another data center; Based on the login Information and security protocols obtain the login authentication file of another data center; obtain access rights to another data center based on the login authentication file; obtain business version information based on the access rights.
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:基于业务版本信息在自身MySql数据库中查询,确定目标业务的目标依赖包。An embodiment of the present application provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the following steps are implemented: query in its own MySql database based on business version information to determine the target business. The target dependency package.
本申请所涉及的计算机可读存储介质包括随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质。Computer-readable storage media involved in this application include random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM , or any other form of storage medium known in the technical field.
本申请实施例提供的一种依赖包管理系统、设备及计算机可读存储介质中相关部分的说明请参见本申请实施例提供的一种依赖包管理方法中对应部分的详细说明,在此不再赘述。另外,本申请实施例提供的上述技术方案中与现有技术中对应技术方案实现原理一致的部分并未详细说明,以免过多赘述。For descriptions of relevant parts of a dependency package management system, equipment and computer-readable storage media provided by embodiments of the present application, please refer to the detailed description of corresponding parts of a dependency package management method provided by embodiments of the present application, which will not be repeated here. Repeat. In addition, the parts of the above technical solutions provided by the embodiments of the present application that are consistent with the implementation principles of corresponding technical solutions in the prior art have not been described in detail to avoid excessive redundancy.
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is no such actual relationship or sequence between them. Furthermore, the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also those not expressly listed other elements, or elements inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or apparatus that includes the stated element.
对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables those skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be practiced in other embodiments without departing from the spirit or scope of the application. Therefore, the present application is not to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110876906.XA CN113703827B (en) | 2021-07-31 | 2021-07-31 | A dependency package management method, system, device and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110876906.XA CN113703827B (en) | 2021-07-31 | 2021-07-31 | A dependency package management method, system, device and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113703827A CN113703827A (en) | 2021-11-26 |
CN113703827B true CN113703827B (en) | 2024-02-09 |
Family
ID=78651169
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110876906.XA Active CN113703827B (en) | 2021-07-31 | 2021-07-31 | A dependency package management method, system, device and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113703827B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8719815B1 (en) * | 2005-12-09 | 2014-05-06 | Crimson Corporation | Systems and methods for distributing a computer software package using a pre-requisite query |
CN111522577A (en) * | 2020-04-13 | 2020-08-11 | 京东数字科技控股有限公司 | Dependency package version management method, device, equipment and storage medium |
CN112748946A (en) * | 2019-10-30 | 2021-05-04 | 腾讯科技(深圳)有限公司 | Application program installation file generation method and device, computing equipment and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10121790B4 (en) * | 2000-06-03 | 2006-11-23 | International Business Machines Corp. | Software configuration method for use in a computer system |
US8713096B2 (en) * | 2011-05-10 | 2014-04-29 | Microsoft Corporation | State control of remote hosts for management of distributed applications |
-
2021
- 2021-07-31 CN CN202110876906.XA patent/CN113703827B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8719815B1 (en) * | 2005-12-09 | 2014-05-06 | Crimson Corporation | Systems and methods for distributing a computer software package using a pre-requisite query |
CN112748946A (en) * | 2019-10-30 | 2021-05-04 | 腾讯科技(深圳)有限公司 | Application program installation file generation method and device, computing equipment and storage medium |
CN111522577A (en) * | 2020-04-13 | 2020-08-11 | 京东数字科技控股有限公司 | Dependency package version management method, device, equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
基于数据中心共享标准化和监控自动化的技术研究;冉冉;刘鹏宇;王浩;韩雨彤;兰亮;李鸿宝;;电气应用(S1);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113703827A (en) | 2021-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108108181B (en) | Function updating method and device of application program and computer readable storage medium | |
CN108170740B (en) | Data migration method, system and computer readable storage medium | |
CN101714201B (en) | Code signing system and method | |
CN106331135B (en) | A partial interface updating method, system, client and server | |
EP3337219A1 (en) | Carrier configuration processing method, device and system, and computer storage medium | |
CN110333876A (en) | A kind of data clearing method and control equipment | |
US10078532B2 (en) | Resource management method and device for terminal system among multiple operating systems | |
CN111857736B (en) | Cloud computing product generation method, device, equipment and storage medium | |
CN109656572A (en) | Packaging method and device, computer equipment, the storage medium of installation kit | |
CN104090946A (en) | Method and device for adding information to application installation package | |
CN109213533B (en) | A method, device and terminal for dynamically loading advertisement SDK | |
CN111079125A (en) | Method and device for calling third-party library dynamic lifting authority by application program | |
CN113448756B (en) | Inter-process communication system and method and computing device | |
CN115220767A (en) | A software upgrade method, system, electronic device and storage medium | |
CN108845800B (en) | Method, device, equipment and storage medium for realizing component extension function | |
CN113703827B (en) | A dependency package management method, system, device and computer-readable storage medium | |
CN108008970A (en) | Application upgrade method and device | |
CN112527377B (en) | Application generation processing method, device, computer equipment and storage medium | |
CN111722857A (en) | Software development kit update method, device, electronic device and storage medium | |
CN112988176A (en) | Channel package generation method and device, storage medium and electronic equipment | |
CN115113898B (en) | Micro-application dynamic update method, device, computer equipment and storage medium | |
CN111078571A (en) | Test method, terminal device and computer-readable storage medium for simulated response | |
CN113076128B (en) | Method, device, electronic equipment and storage medium for robot configuration | |
CN116233254A (en) | Business cut-off method, device, computer equipment and storage medium | |
CN116820663A (en) | Image construction method, equipment, storage media and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |