WO2015024371A1 - 一种云平台用户界面适配方法及适配器 - Google Patents

一种云平台用户界面适配方法及适配器 Download PDF

Info

Publication number
WO2015024371A1
WO2015024371A1 PCT/CN2014/072059 CN2014072059W WO2015024371A1 WO 2015024371 A1 WO2015024371 A1 WO 2015024371A1 CN 2014072059 W CN2014072059 W CN 2014072059W WO 2015024371 A1 WO2015024371 A1 WO 2015024371A1
Authority
WO
WIPO (PCT)
Prior art keywords
differentiated
adaptation
user interface
item
configuration file
Prior art date
Application number
PCT/CN2014/072059
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 WO2015024371A1 publication Critical patent/WO2015024371A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Definitions

  • the present invention relates to the field of cloud computing, and in particular, to a cloud platform user interface adaptation method and an adapter. Background technique
  • the cloud platform integrates multiple heterogeneous virtualization products and can greatly facilitate users.
  • the usual management level is shown in Figure 1.
  • Heterogeneous management of the cloud platform is mainly to pool resources, and then use pooled resources to implement the process of service issuance and realize operational management.
  • the unified operation and maintenance management of the cloud platform will encounter technical problems of differentiated processing, especially the user interface. The problem of differentiated processing.
  • the embodiment of the present invention provides a cloud platform user interface adaptation method and an adapter, so as to implement user interface differentiation processing in each virtualization environment.
  • the first aspect provides a cloud platform user interface adaptation method, including:
  • the adaptation result is output to the user interface.
  • the specific package when the at least one virtualized environment adaptation instruction for the application requirement is received, obtaining a differentiated configuration file corresponding to the virtualized environment, the specific package Includes:
  • the differentiated item includes an identifier, a name, a user interface display manner, and a value and/or a difference of the differentiated item.
  • the script includes
  • the user interface of the virtualized environment is differently adapted according to the differentiated configuration file, including:
  • each of the at least one adaptation instruction is configured to search for the at least one differentiating item After the name of the differentiated item consistent with the adaptation instruction
  • a cloud platform user interface adapter including:
  • a first obtaining unit configured to acquire a differentiated configuration file corresponding to the virtualized environment when receiving the at least one virtualized environment adaptation instruction for the application requirement
  • a first adapting unit configured to perform differential adaptation on a user interface of the virtualized environment according to the differentiated configuration file
  • an output unit configured to output an adaptation result to the user interface.
  • the first acquiring unit is specifically configured to: query, according to the virtualized environment identifier carried by the adaptation instruction, a difference corresponding to the virtualized environment identifier. a configuration file, the differentiated configuration file including at least one differentiated item.
  • the differentiated item includes an identifier, a name, a user interface display manner, and a value and/or a difference of the differentiated item.
  • the script includes
  • the first adaptation unit includes:
  • a searching unit configured, for each of the at least one adaptation instruction, to search for a name of the differentiated item consistent with the adaptation instruction in the at least one differentiation item; And obtaining a value and/or a differentiation script corresponding to the name of the differentiated item;
  • a second adaptation unit configured to perform differential adaptation on a user interface of the at least one virtualization environment according to the value and/or the differentiation script.
  • the adapter further includes:
  • a fourth obtaining unit configured to acquire the differentiated script according to the differentiated script path.
  • the cloud platform user interface adaptation method and the adapter technical solution provided by the embodiment of the present invention can be implemented by setting a differentiated configuration file and differentiating the user interface of the virtualized environment according to the differentiated configuration file. User interface differentiation in each virtualized environment.
  • FIG. 1 is a schematic diagram of a management hierarchy of a heterogeneous management virtualization technology in the prior art
  • FIG. 2 is a flowchart of an embodiment of a cloud platform user interface adaptation method according to the present invention
  • FIG. 3 is a view of the embodiment shown in FIG. A flow chart for further refinement of an embodiment of a cloud platform user interface adaptation method is invented
  • FIG. 4 is a schematic diagram of a system architecture of a cloud platform for managing heterogeneous virtual resources according to the present invention
  • FIG. 5 is a schematic structural diagram of an embodiment of a cloud platform user interface adapter according to the present invention.
  • Figure 6 is a block diagram showing a further refinement of an embodiment of a cloud platform user interface adapter of the present invention shown in Figure 5. detailed description
  • FIG. 2 is a flowchart of an embodiment of a cloud platform user interface adaptation method according to the present invention. As shown in Figure 2, the method includes the following steps:
  • Step S101 Acquire a differentiated configuration file corresponding to the virtualization environment when receiving at least one virtualization environment adaptation instruction for the application requirement.
  • the user interface (UI) design refers to the overall design of the human-computer interaction, operation logic, and interface aesthetics of the software.
  • UI user interface
  • the system administrator configures one or more virtual resources according to application requirements on the user interface to construct a virtualized environment.
  • the cloud platform constitutes multiple virtual resources by resource pooling resources of various heterogeneous virtualization products.
  • the cloud platform has an adapter, receives the virtualized environment adaptation instruction, and adapts the result to the user interface.
  • Step S102 Perform differential adaptation on the user interface of the virtualized environment according to the differentiated configuration file.
  • the user interface of the virtualized environment is differentiated according to the differentiated configuration file, and a virtualized environment with differences is constructed.
  • the user interface of the virtualized environment is differentiated, only minor changes to the universal adapter are required, which can greatly reduce the workload of the administrator.
  • Step S103 Output the adaptation result to the user interface.
  • the adaptation result is output to the user interface, so that the user can operate the virtual resource in the virtualization environment through the user interface.
  • the virtualized environment can be realized.
  • User interface differentiation by setting a differentiated configuration file, and differentiating the user interface of the virtualized environment according to the differentiated configuration file, the virtualized environment can be realized.
  • FIG. 3 is a flow chart for further refinement of an embodiment of a cloud platform user interface adaptation method of the present invention shown in FIG. 2. As shown in FIG. 3, the method includes the following steps:
  • Step S201 when receiving at least one virtualized environment adaptation instruction for the application requirement, querying a differentiated configuration file corresponding to the virtualized environment identifier according to the virtualized environment identifier carried by the adaptation instruction,
  • the differentiated profile includes at least one differentiated item.
  • Step S202 Search, for each adaptation instruction of the at least one adaptation instruction, a name of the differentiated item consistent with the adaptation instruction in the at least one differentiation item.
  • Step S204 Acquire the differentiated script according to the differentiated script path.
  • Step S205 Obtain a value corresponding to the name of the differentiated item.
  • Step S206 Perform differential adaptation on the user interface of the at least one virtualization environment according to the value and/or the differentiation script.
  • Step S207 Output the adaptation result to the user interface.
  • FIG. 4 is a schematic diagram of a system architecture of a cloud platform for managing heterogeneous virtual resources according to the present invention.
  • Figure 4 As shown, the entire cloud platform is divided into three levels: UI, resource pool management, resource adaptation layer, and adapters for each heterogeneous system.
  • UI user interface
  • resource pool management resource pool management
  • resource adaptation layer resource adaptation layer
  • adapters for each heterogeneous system.
  • a UI differentiation adaptation package is additionally added, and the UI differentiation adaptation package includes a plurality of differentization items of the UI differentiation configuration file.
  • the UI implements general handling of differences by parsing the differentiated configuration file.
  • the virtualized environment adaptation instruction carries the identifier of the virtualized environment, and according to the identifier, the corresponding differentiated configuration file can be queried.
  • An example of a differentiated configuration file is shown in Table 1 below:
  • Adapter tab can contain multiple adapters
  • This configuration file contains multiple UI differentiation items.
  • Each UI differentiation item corresponds to a ⁇ param/> tag, and each differentiation item includes:
  • Identification of differentiated items Uniquely identifies a differentiated item and cannot be repeated.
  • the name of the differentiation item The name of the differentiation item to help identify the purpose of the differentiation item.
  • Value of the differentiation item Define the difference between the upper and lower limits of the interface parameters, the default values, and so on.
  • Differentiated display mode Determine the presentation mode of the corresponding UI interface on the interface (for example: normal display (1), hidden (2), ash (3)).
  • JS Hypertext Markup Language
  • HTML Hypertext Markup Language
  • Differentiated script path When the interface differentiation is large, the UI differentiation script is placed in the UI differentiation adaptation package, and the UI obtains the script path, and when the corresponding UI is presented, the corresponding difference script is loaded.
  • Example 1 The CPU core limit of the vmware VM is 64, the CPU core limit of FusionCompute is 16 , and the CPU core limit of XenServer is 32.
  • the differentiated entry for Vmware's differentiated profile is:
  • the differentiated items of XenServer's differentiated files are:
  • the differentiated item obtain its value value, use the value as the upper limit of the number of CPU cores, and output the adaptation result to the UI.
  • the differentiated items of Vmware's differentiated configuration file are:
  • the differentiated items of the FusionCompute's differentiated configuration file are:
  • the differentiated items of Xenserver's differentiated configuration file are:
  • the differential script in the differentiated item is loaded, or according to the difference Differentiate the script path in the project, find and load the differentiated script, differentiate the user interface of the virtualized environment, and output the adaptation result to the UI.
  • the adaptation instructions find the differentiating items corresponding to the adaptation instructions, and adapt them one by one until the completion of the construction of the virtualized environment, and output the complete adaptation result of the user interface of the virtualized environment to the UI.
  • a cloud platform user interface adaptation method is configured to differentiate a user interface of a virtualized environment according to a differentiated configuration file by setting a differentiated configuration file. Adaptation, can achieve user interface differentiation processing in each virtualized environment.
  • FIG. 5 is a schematic structural diagram of an embodiment of a cloud platform user interface adapter according to the present invention. As shown in FIG. 5, the cloud platform user interface adapter 1000 includes:
  • the first obtaining unit 11 is configured to acquire a differentiated configuration file corresponding to the virtualization environment when receiving at least one virtualization environment adaptation instruction for the application requirement.
  • the user interface (UI) design refers to the overall design of the human-computer interaction, operation logic, and interface aesthetics of the software.
  • UI user interface
  • the system administrator configures one or more virtual resources according to application requirements on the user interface to construct a virtualized environment.
  • the cloud platform constitutes multiple virtual resources by resource pooling resources of various heterogeneous virtualization products.
  • the cloud platform has an adapter, receives the virtualized environment adaptation instruction, and adapts the result to the user interface.
  • the first obtaining unit 11 can obtain a differentiated configuration file corresponding to the virtualized environment according to the virtualization environment adaptation instruction.
  • the first adapting unit 12 is configured to perform differential adaptation on the user interface of the virtualized environment according to the differentiated configuration file.
  • the first adaptation unit 12 differentiates the user interface of the virtualized environment according to the differentiated configuration file, and constructs a virtualized environment with differences.
  • the user interface of the virtualized environment is differentiated, only minor changes to the universal adapter are required, which can greatly reduce the workload of the administrator.
  • the output unit 13 is configured to output an adaptation result to the user interface.
  • the output unit 13 outputs the adaptation result to the user interface, so that the user can operate the virtual resource in the virtualized environment through the user interface.
  • FIG. 6 is a schematic diagram showing a further refinement of an embodiment of a cloud platform user interface adapter of the present invention shown in FIG.
  • the cloud platform user interface adapter 2000 includes:
  • the first obtaining unit 21 is configured to acquire a differentiated configuration file corresponding to the virtualized environment when receiving at least one virtualization environment adaptation instruction for the application requirement.
  • the first adapting unit 22 is configured to perform differential adaptation on the user interface of the virtualized environment according to the differentiated configuration file.
  • the first adaptation unit 22 includes a lookup unit 221, a second acquisition unit 222, and a second adaptation unit 223.
  • a searching unit 221, configured to, for each of the at least one adaptation instruction, look up a name of the differentiated item consistent with the adaptation instruction in the at least one differentiation item;
  • the second obtaining unit 222 is configured to obtain a value and/or a differentiation script corresponding to the name of the differentiated item
  • the second adaptation unit 223 is configured to perform differential adaptation on the user interface of the at least one virtualization environment according to the value and/or the differentiation script. path.
  • the fourth obtaining unit 24 is configured to obtain the differentiated script according to the differentiated script path.
  • the output unit 25 is configured to output an adaptation result to the user interface.
  • the user interface in each virtualized environment can be implemented by setting a differentiated configuration file and differentiating the user interface of the virtualized environment according to the differentiated configuration file. Differentiation processing.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative
  • the division of the modules is only a logical function division, and the actual implementation may have another division manner, for example, multiple modules or components may be combined or integrated into another device, or some features may be ignored. , or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or module, and may be in an electrical, mechanical or other form.
  • the modules described as separate components may or may not be physically separate.
  • the components displayed as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种云平台用户界面适配方法及适配器。其中的适配方法包括:当接收到针对应用需求的至少一个虚拟化环境适配指令时,获取对应虚拟化环境的差异化配置文件;根据所述差异化配置文件对所述虚拟化环境的用户界面进行差异化适配;将适配结果输出给所述用户界面。还公开了相应的适配器。采用本发明实施例提供的一种云平台用户界面适配方法及适配器的技术方案,通过设置差异化配置文件,根据差异化配置文件对虚拟化环境的用户界面进行差异化适配,可以实现各个虚拟化环境下的用户界面差异化处理。

Description

一种云平台用户界面适配方法及适配器 技术领域
本发明涉及云计算领域, 尤其涉及一种云平台用户界面适配方法及适 配器。 背景技术
随着云计算技术的发展, 各种虚拟化产品较多, 例如 Xenserver, Hyper- V 和 VMware, 同一个客户可能同时会购买和部署不同的虚拟化产品, 釆用异构 化管理技术, 通过一套云平台将多种异构虚拟化产品统一管理, 可以极大地 方便用户, 其通常的管理层次如图 1所示。 云平台进行异构管理主要是将资源 池化, 然后利用池化的资源实现业务发放的流程, 实现运营的管理。 但是, 由于各个虚拟化产品的管理差异较大, 在异构管理上会存在较多的差异化处 理, 在云平台实现统一的运维管理会遇到差异化处理的技术问题, 尤其是用 户界面差异化处理的问题。
发明内容
有鉴于此, 本发明实施例提供一种云平台用户界面适配方法及适配 器, 以实现各个虚拟化环境下的用户界面差异化处理。
第一方面, 提供了一种云平台用户界面适配方法, 包括:
当接收到针对应用需求的至少一个虚拟化环境适配指令时, 获取对应 虚拟化环境的差异化配置文件;
根据所述差异化配置文件对所述虚拟化环境的用户界面进行差异化 适配;
将适配结果输出给所述用户界面。
在第一种可能的实现方式中, 所述当接收到针对应用需求的至少一个 虚拟化环境适配指令时, 获取对应虚拟化环境的差异化配置文件, 具体包 括:
根据所述适配指令携带的虚拟化环境标识, 查询与所述虚拟化环境标 识对应的差异化配置文件, 所述差异化配置文件包括至少一个差异化项。
结合第一方面的第一种可能的实现方式, 在第二种可能的实现方式 中, 所述差异化项包括所述差异化项的标识、 名称、 用户界面显示方式以 及取值和 /或差异化脚本。
结合第一方面的第二种可能的实现方式, 在第三种可能的实现方式 中, 所述根据所述差异化配置文件对所述虚拟化环境的用户界面进行差异 化适配, 包括:
针对所述至少一个适配指令的每一个适配指令, 在所述至少一个差异 化项中查找与所述适配指令一致的所述差异化项的名称;
获取对应所述差异化项的名称的取值和 /或差异化脚本;
根据所述取值和 /或差异化脚本,对所述至少一个虚拟化环境的用户界 面进行差异化适配。
结合第一方面的第三种可能的实现方式, 在第四种可能的实现方式 中, 所述针对所述至少一个适配指令的每一个适配指令, 在所述至少一个 差异化项中查找与所述适配指令一致的所述差异化项的名称之后, 以及所
根据所述差异化脚本路径, 获取所述差异化脚本。 第二方面, 提供了一种云平台用户界面适配器, 包括:
第一获取单元, 用于当接收到针对应用需求的至少一个虚拟化环境适 配指令时, 获取对应虚拟化环境的差异化配置文件;
第一适配单元, 用于根据所述差异化配置文件对所述虚拟化环境的用 户界面进行差异化适配;
输出单元, 用于将适配结果输出给所述用户界面。
在第一种可能的实现方式中, 所述第一获取单元具体用于根据所述适 配指令携带的虚拟化环境标识, 查询与所述虚拟化环境标识对应的差异化 配置文件, 所述差异化配置文件包括至少一个差异化项。
结合第二方面的第一种可能的实现方式, 在第二种可能的实现方式 中, 所述差异化项包括所述差异化项的标识、 名称、 用户界面显示方式以 及取值和 /或差异化脚本。
结合第二方面的第二种可能的实现方式, 在第三种可能的实现方式 中, 所述第一适配单元包括:
查找单元, 用于针对所述至少一个适配指令的每一个适配指令, 在所 述至少一个差异化项中查找与所述适配指令一致的所述差异化项的名称; 第二获取单元 ,用于获取对应所述差异化项的名称的取值和 /或差异化 脚本;
第二适配单元, 用于根据所述取值和 /或差异化脚本,对所述至少一个 虚拟化环境的用户界面进行差异化适配。
结合第二方面的第三种可能的实现方式, 在第四种可能的实现方式 中, 所述适配器还包括:
径;
第四获取单元,用于根据所述差异化脚本路径,获取所述差异化脚本。
釆用本发明实施例提供的一种云平台用户界面适配方法及适配器的 技术方案, 通过设置差异化配置文件, 根据差异化配置文件对虚拟化环境 的用户界面进行差异化适配, 可以实现各个虚拟化环境下的用户界面差异 化处理。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附 图。 图 1为现有技术的异构化管理虚拟化技术管理层次示意图; 图 2为本发明一种云平台用户界面适配方法的一个实施例的流程图; 图 3为对图 2所示的本发明一种云平台用户界面适配方法的一个实施 例的进一步细化的流程图;
图 4为本发明的云平台管理异构虚拟资源的系统架构示意图; 图 5为本发明一种云平台用户界面适配器的一个实施例的结构示意 图;
图 6为对图 5所示的本发明一种云平台用户界面适配器的一个实施例 的进一步细化的结构示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。
图 2为本发明一种云平台用户界面适配方法的一个实施例的流程图。 如图 2所示, 该方法包括以下步骤:
步骤 S101 , 当接收到针对应用需求的至少一个虚拟化环境适配指令 时, 获取对应虚拟化环境的差异化配置文件。
用户界面 (User Interface , UI)设计是指对软件的人机交互、 操作逻辑、 界面美观的整体设计。 在统一管理多种异构虚拟化产品的云平台中也有一 个用户界面, 系统管理员在用户界面上根据应用需求对虚拟资源进行一种 或多种配置, 构建一个虚拟化环境, 虚拟资源是指云平台通过将各种异构 虚拟化产品的资源进行资源池化, 构成了多个虚拟资源。 在云平台中具有 适配器, 接收虚拟化环境适配指令, 适配后将结果输出给用户界面。
由于在云计算领域, 需要接受各种应用需求对虚拟资源进行配置, 各 种应用需求之间往往只有较小的差异, 如果为每个差异设置一个适配器, 将会导致适配资源过于庞大, 因此, 为每个虚拟化环境存储一个差异化配 置文件, 里面只存储与通用的适配文件存在差异的差异化配置文件, 仅需 占用较小的存储空间。 根据虚拟化环境适配指令, 可以获取对应该虚拟化 环境的差异化配置文件。
步骤 S102 ,根据所述差异化配置文件对所述虚拟化环境的用户界面进 行差异化适配。
在适配层, 根据差异化配置文件对虚拟化环境的用户界面进行差异化 适配, 构建了具有差异的虚拟化环境。 对虚拟化环境的用户界面进行差异 化适配时, 仅需对通用适配器做小的差异化改动, 可以大大减少管理员的 工作量。
步骤 S103 , 将适配结果输出给所述用户界面。
将适配结果输出给用户界面, 以使用户可以通过该用户界面在该虚拟 化环境下对虚拟资源进行操作。
根据本发明实施例提供的一种云平台用户界面适配方法, 通过设置差 异化配置文件, 根据差异化配置文件对虚拟化环境的用户界面进行差异化 适配, 可以实现各个虚拟化环境下的用户界面差异化处理。
图 3为对图 2所示的本发明一种云平台用户界面适配方法的一个实施 例的进一步细化的流程图。 如图 3所示, 该方法包括以下步骤:
步骤 S201 , 当接收到针对应用需求的至少一个虚拟化环境适配指令 时, 根据所述适配指令携带的虚拟化环境标识, 查询与所述虚拟化环境标 识对应的差异化配置文件, 所述差异化配置文件包括至少一个差异化项。
步骤 S202 ,针对所述至少一个适配指令的每一个适配指令,在所述至 少一个差异化项中查找与所述适配指令一致的所述差异化项的名称。 步骤 S204 , 根据所述差异化脚本路径, 获取所述差异化脚本。
步骤 S205 , 获取对应所述差异化项的名称的取值。
步骤 S206 , 根据所述取值和 /或差异化脚本, 对所述至少一个虚拟化 环境的用户界面进行差异化适配。
步骤 S207 , 将适配结果输出给所述用户界面。
图 4为本发明的云平台管理异构虚拟资源的系统架构示意图。 如图 4 所示, 整个云平台划分了三个层次: UI, 资源池管理, 资源适配层以及针 对各个异构系统的适配器。 在各个适配器中, 额外增加了 UI差异化适配 包, 该 UI差异化适配包中包含了 UI差异化配置文件的多个差异化项。 UI 通过解析差异化配置文件实现对差异的通用处理。 差异化配置文件中具有 虚拟化环境的标识例如类型和 /或名称,虚拟化环境适配指令中携带有虚拟 化环境的标识, 根据该标识, 可以查询到对应的差异化配置文件。 差异化 配置文件示例如下表 1所示:
表 1 差异化配置文件示例
<?xml version:" 1.0" encoding="UTF-8"?>
<drivers> - 适配器标签, 可以包含多个适配器
<driver name=" VMWARE DIRVER 5.1.0— BEFORE"
type="VMware" alias="VMware"> - 适配器基本信息, 包括名称, 虚 拟化环境类型, 别名, 包含多个虚拟化环境的实例
<hypervisor version="5.1.0" protocol="https">
- 虚拟化环境实例, 包括版本和连接协议
<param id="l" namelabel="vmCpuCoreMax" value="64"
displaytype="l" script="" scriptpath=""/>
具体的 UI差异化项, 包括: id, 名称, 值, 显示类型 (正常 显示, 隐藏, 灰化), 差异化脚本(小段的 html,或 JS脚本), scriptpath (脚 本路径)
<param id="2" namelabel="vmCpuCoreMin" value:" 1 " displaytype="l " script:"" scriptpath='"7>
</hypervisor>
</driver>
</drivers> 该配置文件中包含多个 UI差异化项,每个 UI差异化项即对应了一个 <param/>标签, 每个差异化项中包括了:
差异化项的标识: 唯一标识一个差异化项, 不能重复。 差异化项的名称: 该差异化项的名称, 帮助识别该差异化项的用途。 差异化项的值: 定义界面参数上下限值、 默认值等有差异的值。
差异化显示方式: 决定界面上对应的 UI界面的呈现方式(例如: 正 常显示 (1 ) , 隐藏(2 ) , 灰化 (3 ) ) 。
差异化脚本: 对于界面差异有小段处理有差异时, 配置小段的差异化
JS或 HTML代码, UI解析并执行该小段差异化 JavaScript (—种基于对象 和事件驱动并具有相对安全性的客户端脚本语言, JS)或超文本标记语言 (Hypertext Markup Language , HTML)。
差异化脚本路径: 对于界面差异化较大时, 在 UI差异化适配包中放 置 UI的差异化脚本, UI获取该脚本路径, 在呈现对应的 UI时, 加载对 应的差异化脚本。
对于差异化配置项, 根据具体的功能点进行定制处理。
举例一: vmware虚拟机的 CPU核数上限为 64 , FusionCompute的 CPU核数上限为 16 , XenServer 的 CPU核数上限为 32。 对于这种情况: Vmware的差异化配置文件的差异化项为:
<param id="l" namelabel="vmCpuCoreMax" value="64"
displaytype="l" script="" scriptpath=""/>
FusionCompute的差异化文件的差异化项为:
<param id="l" namelabel="vmCpuCoreMax" value:" 16"
displaytype="l" script="" scriptpath='"7>
XenServer的差异化文件的差异化项为:
<param id="l" namelabel="vmCpuCoreMax" value="32"
displaytype="l" script="" scriptpath=""/>
在系统管理员打开修改该虚拟化环境下各虚拟机 CPU核数时, 适配 器获取该虚拟机所属的虚拟化环境下对应的差异化文件, 根据差异化项中 id = 1或 namlabel=" vmCpuCoreMax"的差异化项, 获取其 value值, 将该 值作为 CPU核数的上限值, 输出适配结果给 UI。
后继如果有新的虚拟化环境例如: Hyper- V, KVM的 CPU核数最大值 有差异, 在差异化文件中配置 id=l namelabel = "vmCpuCoreMax,,, 并设置 value值为对应的值即可。 UI无需做相关的改动。 举例二: Vmware和 FusionCompute支持配置虚拟机的 CPU的预留值 和上限值, 而 Xenserver不支持。 对于这种情况:
Vmware的差异化配置文件的差异化项为:
<param id="2" namelabel="vmCpuConfig" value:"" displaytype="l" script="" scriptpath='"7>
FusionCompute的差异化配置文件的差异化项为:
<param id="2" namelabel="vmCpuConfig" value:"" displaytype="l" script="" scriptpath='"7>
Xenserver的差异化配置文件的差异化项为:
<param id="2" namelabel="vmCpuConfig" value:"" displaytype="2" script="" scriptpath='"7>
在系统管理员打开修改该虚拟化环境下的虚拟机 CPU配置时, 适配 器获取该虚拟机所属的虚拟化环境下对应的差异化文件, 根据差异化项中 id = 2或 namlabel=" vmCpuConfig"的差异化项 , 获取 displaytype值, 如果 displaytype值为 1 , 则界面正常显示修改 cpu配置的页面, 如果为 0 , 则隐 藏修改 cpu配置的页面, 输出适配结果给 UI。
如果不是或不仅是对差异化项的取值进行修改, 还对控制该虚拟化环 境下的虚拟资源进行运算操作动作要进行差异化处理, 则加载差异化项中 的差异化脚本, 或根据差异化项中的差异化脚本路径, 查找并加载差异化 脚本, 对虚拟化环境的用户界面进行差异化适配, 输出适配结果给 UI。
构建一个符合应用需求的虚拟化环境, 可能不止一个虚拟化环境适配 指令, 而在该虚拟化环境下的差异化配置文件中, 包含了对应每个适配指 令的差异化项,则针对每个适配指令,查找到对应该适配指令的差异化项, 逐一进行适配, 直至完成虚拟化环境的构建, 输出完整的该虚拟化环境的 用户界面的适配结果给 UI即可。
根据本发明实施例提供的一种云平台用户界面适配方法, 通过设置差 异化配置文件, 根据差异化配置文件对虚拟化环境的用户界面进行差异化 适配, 可以实现各个虚拟化环境下的用户界面差异化处理。
图 5为本发明一种云平台用户界面适配器的一个实施例的结构示意 图。 如图 5所示, 该云平台用户界面适配器 1000包括:
第一获取单元 11 ,用于当接收到针对应用需求的至少一个虚拟化环境 适配指令时, 获取对应虚拟化环境的差异化配置文件。
用户界面 (User Interface , UI)设计是指对软件的人机交互、 操作逻辑、 界面美观的整体设计。 在统一管理多种异构虚拟化产品的云平台中也有一 个用户界面, 系统管理员在用户界面上根据应用需求对虚拟资源进行一种 或多种配置, 构建一个虚拟化环境, 虚拟资源是指云平台通过将各种异构 虚拟化产品的资源进行资源池化, 构成了多个虚拟资源。 在云平台中具有 适配器, 接收虚拟化环境适配指令, 适配后将结果输出给用户界面。
由于在云计算领域, 需要接受各种应用需求对虚拟资源进行配置, 各 种应用需求之间往往只有较小的差异, 如果为每个差异设置一个适配器, 将会导致适配资源过于庞大, 因此, 为每个虚拟化环境存储一个差异化配 置文件, 里面只存储与通用的适配文件存在差异的差异化配置文件, 仅需 占用较小的存储空间。 第一获取单元 11根据虚拟化环境适配指令, 可以 获取对应该虚拟化环境的差异化配置文件。
第一适配单元 12 ,用于根据所述差异化配置文件对所述虚拟化环境的 用户界面进行差异化适配。
在适配层, 第一适配单元 12根据差异化配置文件对虚拟化环境的用 户界面进行差异化适配, 构建了具有差异的虚拟化环境。 对虚拟化环境的 用户界面进行差异化适配时, 仅需对通用适配器做小的差异化改动, 可以 大大减少管理员的工作量。
输出单元 13 , 用于将适配结果输出给所述用户界面。
输出单元 13将适配结果输出给用户界面, 以使用户可以通过该用户 界面在该虚拟化环境下对虚拟资源进行操作。
根据本发明实施例提供的一种云平台用户界面适配器, 通过设置差异 化配置文件, 根据差异化配置文件对虚拟化环境的用户界面进行差异化适 配, 可以实现各个虚拟化环境下的用户界面差异化处理。 图 6为对图 5所示的本发明一种云平台用户界面适配器的一个实施例 的进一步细化的结构示意图。 如图 6所示, 该云平台用户界面适配器 2000 包括:
第一获取单元 21 ,用于当接收到针对应用需求的至少一个虚拟化环境 适配指令时, 获取对应虚拟化环境的差异化配置文件。
第一适配单元 22 ,用于根据所述差异化配置文件对所述虚拟化环境的 用户界面进行差异化适配。
在本实施例中, 第一适配单元 22包括查找单元 221、 第二获取单元 222和第二适配单元 223。
查找单元 221 , 用于针对所述至少一个适配指令的每一个适配指令, 在所述至少一个差异化项中查找与所述适配指令一致的所述差异化项的 名称;
第二获取单元 222 , 用于获取对应所述差异化项的名称的取值和 /或差 异化脚本;
第二适配单元 223 , 用于根据所述取值和 /或差异化脚本, 对所述至少 一个虚拟化环境的用户界面进行差异化适配。 径。
第四获取单元 24 , 用于根据所述差异化脚本路径, 获取所述差异化脚 本。
输出单元 25 , 用于将适配结果输出给所述用户界面。
根据本发明实施例提供的一种云平台用户界面适配器, 通过设置差异 化配置文件, 根据差异化配置文件对虚拟化环境的用户界面进行差异化适 配, 可以实现各个虚拟化环境下的用户界面差异化处理。
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述 描述的设备和模块的具体工作过程, 可以参考前述方法实施例中的对应过 程描述, 在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性 的, 例如, 所述模块的划分, 仅仅为一种逻辑功能划分, 实际实现时可以 有另外的划分方式, 例如多个模块或组件可以结合或者可以集成到另一个 设备中, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互 之间的耦合或直接耦合或通信连接可以是通过一些通信接口, 装置或模块 的间接耦合或通信连接, 可以是电性, 机械或其它的形式。
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的, 作为模块显示的部件可以是或者也可以不是物理单元, 即可以位于一个地 方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的 部分或者全部, 模块来实现本实施例方案的目的。
另外, 在本发明各个实施例中的各功能模块可以集成在一个处理模块 中, 也可以是各个模块单独物理存在, 也可以两个或两个以上模块集成在 一个模块中。
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到各 实施方式可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通 过硬件。 基于这样的理解, 上述技术方案本质上或者说对现有技术做出贡 献的部分可以以软件设备的形式体现出来, 该计算机软件设备可以存储在 计算机可读存储介质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令用 以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等) 执行各个实施例或者实施例的某些部分所述的方法。
以上所述的实施方式, 并不构成对该技术方案保护范围的限定。 任何 在上述实施方式的精神和原则之内所作的修改、 等同替换和改进等, 均应 包含在该技术方案的保护范围之内。

Claims

权利要求书
1、 一种云平台用户界面适配方法, 其特征在于, 包括:
当接收到针对应用需求的至少一个虚拟化环境适配指令时, 获取对应 虚拟化环境的差异化配置文件;
根据所述差异化配置文件对所述虚拟化环境的用户界面进行差异化 适配;
将适配结果输出给所述用户界面。
2、 如权利要求 1所述的方法, 其特征在于, 所述当接收到针对应用 需求的至少一个虚拟化环境适配指令时, 获取对应虚拟化环境的差异化配 置文件, 具体包括:
根据所述适配指令携带的虚拟化环境标识, 查询与所述虚拟化环境标 识对应的差异化配置文件, 所述差异化配置文件包括至少一个差异化项。
3、 如权利要求 2所述的方法, 其特征在于, 所述差异化项包括所述 差异化项的标识、 名称、 用户界面显示方式以及取值和 /或差异化脚本。
4、 如权利要求 3所述的方法, 其特征在于, 所述根据所述差异化配 置文件对所述虚拟化环境的用户界面进行差异化适配, 包括:
针对所述至少一个适配指令的每一个适配指令, 在所述至少一个差异 化项中查找与所述适配指令一致的所述差异化项的名称;
获取对应所述差异化项的名称的取值和 /或差异化脚本;
根据所述取值和 /或差异化脚本,对所述至少一个虚拟化环境的用户界 面进行差异化适配。
5、 如权利要求 4所述的方法, 其特征在于, 所述差异化项还包括差 异化脚本路径, 所述针对所述至少一个适配指令的每一个适配指令, 在所 述至少一个差异化项中查找与所述适配指令一致的所述差异化项的名称 根据所述差异化脚本路径, 获取所述差异化脚本。
6、 一种云平台用户界面适配器, 其特征在于, 包括:
第一获取单元, 用于当接收到针对应用需求的至少一个虚拟化环境适 配指令时, 获取对应虚拟化环境的差异化配置文件;
第一适配单元, 用于根据所述差异化配置文件对所述虚拟化环境的用 户界面进行差异化适配;
输出单元, 用于将适配结果输出给所述用户界面。
7、 如权利要求 6所述的适配器, 其特征在于, 所述第一获取单元具 体用于根据所述适配指令携带的虚拟化环境标识, 查询与所述虚拟化环境 标识对应的差异化配置文件, 所述差异化配置文件包括至少一个差异化 项。
8、 如权利要求 7所述的适配器, 其特征在于, 所述差异化项包括所 述差异化项的标识、 名称、 用户界面显示方式以及取值和 /或差异化脚本。
9、 如权利要求 8所述的适配器, 其特征在于, 所述第一适配单元包 括:
查找单元, 用于针对所述至少一个适配指令的每一个适配指令, 在所 述至少一个差异化项中查找与所述适配指令一致的所述差异化项的名称; 第二获取单元 ,用于获取对应所述差异化项的名称的取值和 /或差异化 脚本;
第二适配单元, 用于根据所述取值和 /或差异化脚本,对所述至少一个 虚拟化环境的用户界面进行差异化适配。
10、 如权利要求 9所述的适配器, 其特征在于, 还包括: 径;
第四获取单元, 用于根据所述差异化脚本路径, 获取所述差异化脚本。
PCT/CN2014/072059 2013-08-21 2014-02-13 一种云平台用户界面适配方法及适配器 WO2015024371A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310367571.4A CN104423933B (zh) 2013-08-21 2013-08-21 一种云平台用户界面适配方法及适配器
CN201310367571.4 2013-08-21

Publications (1)

Publication Number Publication Date
WO2015024371A1 true WO2015024371A1 (zh) 2015-02-26

Family

ID=52483018

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/072059 WO2015024371A1 (zh) 2013-08-21 2014-02-13 一种云平台用户界面适配方法及适配器

Country Status (2)

Country Link
CN (1) CN104423933B (zh)
WO (1) WO2015024371A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111555922A (zh) * 2020-05-08 2020-08-18 中国通信服务股份有限公司 物联网设备主动适配接入的方法、装置、设备及存储介质
CN111556158A (zh) * 2020-05-08 2020-08-18 中国通信服务股份有限公司 物联网平台的接入方法、接入装置、接入设备及存储介质
CN112055062A (zh) * 2020-08-21 2020-12-08 深圳市信锐网科技术有限公司 数据通信方法、装置、设备及可读存储介质
CN114070734A (zh) * 2021-11-15 2022-02-18 厦门市易联众易惠科技有限公司 一种云平台适配框架、方法、设备和存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534306A (zh) * 2016-11-14 2017-03-22 北京大学(天津滨海)新代信息技术研究院 一种可扩展的异构云平台适配方法及其系统
CN109729145A (zh) * 2018-11-28 2019-05-07 国云科技股份有限公司 一种基于多云平台的功能模块差异化展示方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010090883A1 (en) * 2009-02-04 2010-08-12 Citrix Systems, Inc. Methods and systems for providing translations of data retrieved from a storage system in a cloud computing environment
CN102520944A (zh) * 2011-12-06 2012-06-27 北京航空航天大学 Windows应用程序虚拟化的实现方法
CN102937911A (zh) * 2011-08-16 2013-02-20 中兴通讯股份有限公司 虚拟机资源的管理方法及系统
CN103051710A (zh) * 2012-12-20 2013-04-17 中国科学院深圳先进技术研究院 一种虚拟云平台管理系统及方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8607054B2 (en) * 2010-10-15 2013-12-10 Microsoft Corporation Remote access to hosted virtual machines by enterprise users
CN102255964B (zh) * 2011-07-01 2014-03-05 清华大学 一种互联网应用软件的测试方法和系统
US20130074064A1 (en) * 2011-09-15 2013-03-21 Microsoft Corporation Automated infrastructure provisioning
CN103136101A (zh) * 2012-12-31 2013-06-05 博彦科技(上海)有限公司 软件自动化测试统一运营平台

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010090883A1 (en) * 2009-02-04 2010-08-12 Citrix Systems, Inc. Methods and systems for providing translations of data retrieved from a storage system in a cloud computing environment
CN102937911A (zh) * 2011-08-16 2013-02-20 中兴通讯股份有限公司 虚拟机资源的管理方法及系统
CN102520944A (zh) * 2011-12-06 2012-06-27 北京航空航天大学 Windows应用程序虚拟化的实现方法
CN103051710A (zh) * 2012-12-20 2013-04-17 中国科学院深圳先进技术研究院 一种虚拟云平台管理系统及方法

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111555922A (zh) * 2020-05-08 2020-08-18 中国通信服务股份有限公司 物联网设备主动适配接入的方法、装置、设备及存储介质
CN111556158A (zh) * 2020-05-08 2020-08-18 中国通信服务股份有限公司 物联网平台的接入方法、接入装置、接入设备及存储介质
CN111555922B (zh) * 2020-05-08 2023-05-16 中国通信服务股份有限公司 物联网设备主动适配接入的方法、装置、设备及存储介质
CN112055062A (zh) * 2020-08-21 2020-12-08 深圳市信锐网科技术有限公司 数据通信方法、装置、设备及可读存储介质
CN112055062B (zh) * 2020-08-21 2024-04-09 深圳市信锐网科技术有限公司 数据通信方法、装置、设备及可读存储介质
CN114070734A (zh) * 2021-11-15 2022-02-18 厦门市易联众易惠科技有限公司 一种云平台适配框架、方法、设备和存储介质
CN114070734B (zh) * 2021-11-15 2023-06-20 厦门市易联众易惠科技有限公司 一种云平台适配框架、方法、设备和存储介质

Also Published As

Publication number Publication date
CN104423933A (zh) 2015-03-18
CN104423933B (zh) 2018-01-19

Similar Documents

Publication Publication Date Title
WO2015024371A1 (zh) 一种云平台用户界面适配方法及适配器
US8990809B1 (en) Creating a virtual appliance using existing installation manifest
US9229759B2 (en) Virtual machine provisioning using replicated containers
US9244720B2 (en) Automated technique to configure and provision components of a converged infrastructure
US9003001B2 (en) Bios parameter virtualization via BIOS configuration profiles
US10241824B2 (en) Identifying application usage roles for devices provided to virtual machines
US11080244B2 (en) Inter-version mapping of distributed file systems
CN109634718B (zh) 云平台创建镜像的方法及系统
US20170185609A1 (en) Universal adaptor for rapid development of web-based data visualizations
WO2017049769A1 (zh) 一种用于在移动应用中提供目标页面的方法与设备
US10009213B2 (en) System and method for isolation of multi-tenant platform customization using child processes
US9984086B2 (en) Performing actions on objects as a result of applying tags to the objects
US20160197779A1 (en) Information processing device and system design support method
US20110145591A1 (en) Adaptive virtual environment management system
US20180210768A1 (en) Api-based service command invocation
US9456011B1 (en) Dynamic service and registry for management infrastructure
RU2580079C2 (ru) Инфраструктура активации приложений
US20160274874A1 (en) Method and apparatus for processing request
KR20120096741A (ko) 가상단말 클라우드 네트워크 시스템 및 이기종 단말 플랫폼 어플리케이션 제공방법
JP2013190983A (ja) 情報処理装置、クライアント管理システム、およびクライアント管理方法
US20130067066A1 (en) Best practices analysis of zones and components in a network
US9813305B2 (en) Enabling a tag to show status
US20200089512A1 (en) Method and Apparatus for Invoking Input Method, Server, and Terminal
US10198220B2 (en) Storage resource provisioning for a test framework
JP2014123360A (ja) 仮想マシンのタグ分類システム及び方法

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: 14838145

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: 14838145

Country of ref document: EP

Kind code of ref document: A1