WO2019033740A1 - 一种内存数据的更新方法、终端、设备以及可读存储介质 - Google Patents

一种内存数据的更新方法、终端、设备以及可读存储介质 Download PDF

Info

Publication number
WO2019033740A1
WO2019033740A1 PCT/CN2018/077127 CN2018077127W WO2019033740A1 WO 2019033740 A1 WO2019033740 A1 WO 2019033740A1 CN 2018077127 W CN2018077127 W CN 2018077127W WO 2019033740 A1 WO2019033740 A1 WO 2019033740A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
memory
updated
original data
original
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.)
Ceased
Application number
PCT/CN2018/077127
Other languages
English (en)
French (fr)
Inventor
林博
戴开云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Publication of WO2019033740A1 publication Critical patent/WO2019033740A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45583Memory management, e.g. access or allocation

Definitions

  • the present application relates to the field of computer technologies, and in particular, to a method, a terminal, a device, and a readable storage medium for updating an in-memory data.
  • the embodiment of the present application provides a method for updating memory data, a terminal, a device, and a readable storage medium, which can clearly record the data change in the Center, and update the original data in the memory according to the changed data, which can be reduced.
  • the operation and maintenance personnel troubleshoot the fault and improve the efficiency of handling the operation and maintenance problems.
  • the embodiment of the present application provides a method for updating memory data, where the method includes:
  • the original data in the memory is updated according to the updated data.
  • the embodiment of the present application further provides an update terminal for memory data, where the terminal includes:
  • a first obtaining unit configured to acquire original data in each of the independent classes and cache the data into the memory
  • a first determining unit configured to determine whether the original data in the independent classes has been updated
  • a second obtaining unit configured to acquire updated data in each of the independent classes if the original data in the independent classes has been updated
  • a comparing unit configured to compare the updated data in the independent classes with the original data in the memory
  • an updating unit configured to update the original data in the memory according to the updated data if the updated data is different from the original data in the memory.
  • the embodiment of the present application further provides an update device for memory data, including:
  • a memory for storing a program that implements an update of the memory data
  • a processor for running an update of the memory data stored in the memory to perform the following operations:
  • the original data in the memory is updated according to the updated data.
  • an embodiment of the present application further provides a computer readable storage medium storing one or more computer programs, the one or more computer programs being readable by one or more processors Execute to implement the following steps:
  • the original data in the memory is updated according to the updated data.
  • the components in the VCenter are abstracted into independent classes, and the original data in the independent classes are obtained and cached in the memory to determine whether the original data in the independent classes has been updated. If the original data in the independent classes has been updated, the updated data in the independent classes is obtained, and the updated data in the independent classes is compared with the original data in the memory, if The updated data is different from the original data, and the original data in the memory is updated according to the updated data, so that the data change in the VCenter can be clearly recorded, and the memory is changed according to the changed data.
  • the original data is updated to further reduce the workload of operation and maintenance personnel, reduce the difficulty of operation and maintenance personnel, and improve the efficiency of handling operation and maintenance problems.
  • FIG. 1 is a schematic flowchart of a method for updating memory data according to an embodiment of the present application.
  • FIG. 2 is another schematic flowchart of a method for updating memory data according to an embodiment of the present application.
  • FIG. 3 is another schematic flowchart of a method for updating memory data according to an embodiment of the present application.
  • FIG. 4 is another schematic flowchart of a method for updating memory data according to an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a method for updating memory data according to another embodiment of the present application.
  • FIG. 6 is a schematic block diagram of an update terminal for memory data according to an embodiment of the present application.
  • FIG. 7 is another schematic block diagram of an update terminal for memory data according to an embodiment of the present application.
  • FIG. 8 is another schematic block diagram of an update terminal for memory data according to an embodiment of the present application.
  • FIG. 9 is another schematic block diagram of an update terminal for memory data according to an embodiment of the present application.
  • FIG. 10 is another schematic block diagram of an update terminal for memory data according to an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a device for updating an in-memory data according to an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a method for updating memory data according to an embodiment of the present application.
  • the method can be run on terminals such as smart phones (such as Android phones, IOS phones, etc.), tablets, laptops, and smart devices.
  • the method is mainly, yes.
  • the steps of the method include S101 to S106.
  • each component in the VCenter includes a data center, a host, a virtual machine, a network, a storage, etc., and abstracts these components into independent classes, for example, data.
  • the center abstracts into a DataCenterMO independent class, a host abstraction into a HostMO independent class, a virtual machine abstraction into a VmMO independent class, a network abstraction into a NetworkMO independent class, and a storage abstraction into a DataStoreMO independent class.
  • the original data of each independent class is stored in a specific manager, for example, the DataCenterMO independent class is stored in the data center manager, the HostMO independent class is stored in the host manager, and the VmMO is independent.
  • the class is stored in the virtual machine manager; taking the original data in the DataCenterMO independent class as an example for further description, the corresponding raw data can be obtained according to the incoming fetch instruction by passing the fetch instruction to the data center manager.
  • the original data in the independent classes is cached into the memory, including but not limited to the following manners: (1) the original data is cached into the memory by using the high and low low principles, and the so-called high and low low-level principle refers to the memory.
  • the upper bit of the data stores the upper bits of the data
  • the lower bits of the memory store the lower bits of the data.
  • the original data is 0xA5A1, where A5 is the high bit and A1 is the low bit.
  • the A1 cache is at the 0x4000 position
  • A5 is Cache is in the 0x4001 position
  • the high bit is cached in the high address of the memory
  • the low bit is cached in the low address
  • the high and low low principle is used to cache the original data into the memory.
  • the so-called high and low high principle refers to the in-memory
  • the upper bit stores the lower bits of the data, and the lower bits in the memory store the upper bits of the data.
  • the original data is 0xA5A1, where A5 is the high bit and A1 is the low bit.
  • A1 is cached at the 0x4001 position, and A5 is cached.
  • the high bit is cached in the low address of the memory and the low bit is cached in the high address.
  • step S102 includes steps S201 to S204.
  • the pre- The detection mechanism may be a waitforupdate mechanism of the VSphere itself, and the waitforupdate mechanism may detect whether the original data in the independent classes is updated in real time.
  • the updated original data in each independent class is stored in a specific manager, for example, the DataCenterMO independent class is stored in the data center manager, and the HostMO independent class is stored in the host manager.
  • the VmMO independent class is stored in the virtual machine manager; taking the original data updated in the DataCenterMO independent class as an example for further description, the acquisition instruction can be obtained by passing the acquisition instruction to the data center manager, and obtaining the phase according to the obtained acquisition instruction. Corresponding updated raw data.
  • step S105 includes steps S301 to S302.
  • the preset comparison mechanism may be to construct a map by using the updated data or the original data, and construct a data type such as a basic type or a String type in the data, or an attribute name. Key of the map, and construct a multi-layer map in this way; the comparison of the updated data with the original data, ie, the map of the updated data and the The map of the raw data is compared.
  • the updated data is updated into the memory through the waitforupdate mechanism, where
  • the method of updating the updated data into memory includes, but is not limited to, the following method: creating an insert sql statement with the updated data, the time when the data is updated, and updating the updated data to the memory by executing the created insert sql statement.
  • step S106 includes steps S401 to S402.
  • the embodiment of the present application abstracts the components in the VCenter into independent classes, obtains the original data in the independent classes, and caches the original data, and determines whether the original data in the independent classes has been updated.
  • the original data in each of the independent classes is updated, the updated data in the independent classes is obtained, and the updated data in the independent classes is compared with the original data in the memory, if the The updated data is different from the original data, and the original data in the memory is updated according to the updated data, and the data change in the VCenter can be clearly recorded, and the data in the memory is changed according to the changed data.
  • the original data is updated to further reduce the workload of O&M personnel operation and maintenance, reduce the difficulty of operation and maintenance personnel in troubleshooting, and improve the efficiency of handling operation and maintenance problems.
  • FIG. 5 is a schematic flowchart of a method for updating memory data according to an embodiment of the present application.
  • the method can be run on terminals such as smart phones (such as Android phones, IOS phones, etc.), tablets, laptops, and smart devices.
  • the method is mainly, yes.
  • the steps of the method include S501 to S508.
  • each component in the VCenter includes a data center, a host, a virtual machine, a network, a storage, etc., and abstracts these components into independent classes, for example, data.
  • the center abstracts into a DataCenterMO independent class, a host abstraction into a HostMO independent class, a virtual machine abstraction into a VmMO independent class, a network abstraction into a NetworkMO independent class, and a storage abstraction into a DataStoreMO independent class.
  • the original data of each independent class is stored in a specific manager, for example, the DataCenterMO independent class is stored in the data center manager, the HostMO independent class is stored in the host manager, and the VmMO is independent.
  • the class is stored in the virtual machine manager; taking the original data in the DataCenterMO independent class as an example for further description, the corresponding raw data can be obtained according to the incoming fetch instruction by passing the fetch instruction to the data center manager.
  • the original data in the independent classes is cached into the memory, including but not limited to the following manners: (1) the original data is cached into the memory by using the high and low low principles, and the so-called high and low low-level principle refers to the memory.
  • the upper bit of the data stores the upper bits of the data
  • the lower bits of the memory store the lower bits of the data.
  • the original data is 0xA5A1, where A5 is the high bit and A1 is the low bit.
  • the A1 cache is at the 0x4000 position
  • A5 is Cache is in the 0x4001 position
  • the high bit is cached in the high address of the memory
  • the low bit is cached in the low address
  • the high and low low principle is used to cache the original data into the memory.
  • the so-called high and low high principle refers to the in-memory
  • the upper bit stores the lower bits of the data, and the lower bits in the memory store the upper bits of the data.
  • the original data is 0xA5A1, where A5 is the high bit and A1 is the low bit.
  • A1 is cached at the 0x4001 position, and A5 is cached.
  • the high bit is cached in the low address of the memory and the low bit is cached in the high address.
  • the pre- The detection mechanism may be a waitforupdate mechanism of the VSphere itself, and the waitforupdate mechanism may detect whether the original data in the independent classes is updated in real time.
  • the original data of each independent class is stored in a specific manager, for example, the DataCenterMO independent class is stored in the data center manager, the HostMO independent class is stored in the host manager, and the VmMO is independent.
  • the class is stored in the virtual machine manager; taking the original data in the DataCenterMO independent class as an example for further description, the corresponding raw data can be obtained according to the incoming fetch instruction by passing the fetch instruction to the data center manager.
  • the updated data is updated into the memory through the waitforupdate mechanism, where
  • the method of updating the updated data into memory includes, but is not limited to, the following method: creating an insert sql statement with the updated data, the time when the data is updated, and updating the updated data to the memory by executing the created insert sql statement.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • the embodiment of the present application further provides an update terminal for the in-memory data, where the terminal 100 includes: an abstracting unit 101, a first obtaining unit 102, and a first determining unit 103.
  • the second obtaining unit 104, the comparing unit 105, and the updating unit 106 are included in the terminal 100.
  • the abstracting unit 101 is configured to abstract each component in the VCenter into an independent class.
  • the first obtaining unit 102 is configured to obtain original data in the independent classes and cache the data in the memory.
  • the first determining unit 103 For determining whether the original data in the independent classes has been updated; the second obtaining unit 104 is configured to obtain updated data in the independent classes if the original data in the independent classes has been updated;
  • the unit 105 is configured to compare the updated data in the independent classes with the original data in the memory; the updating unit 106 is configured to: if the updated data is different from the original data in the memory And updating the original data in the memory according to the updated data.
  • the first obtaining unit 102 includes: a receiving unit 1021, configured to receive a raw data cache request; a second determining unit 1022, configured to determine whether the cached data exists in the memory; The determining unit 1023 is configured to determine, if the cached data exists in the memory, whether the cached data is the same as the requested original data, and the buffer unit 1024 is configured to: if the cached data and the requested data The raw data is different and the raw data is cached in memory.
  • the comparing unit 105 includes: a third obtaining unit 1051, configured to acquire the buffered original data in the memory; and a comparing subunit 1052, configured to: according to a preset comparison mechanism, the The updated data is compared to the original data.
  • the update unit 106 includes: a calling unit 1061, configured to call a preset data interface if the updated data is different from the original data; and the writing unit 1062 is configured to A preset data interface writes the updated data into the memory.
  • the embodiment of the present application further provides an update terminal for the in-memory data, where the terminal 200 includes: an abstracting unit 201, a first obtaining unit 202, and a first determining unit 203.
  • the abstracting unit 201 is configured to abstract each component in the VCenter into an independent class.
  • the first obtaining unit 202 is configured to acquire original data in the independent classes and cache the data in the memory.
  • the first determining unit 203 For determining whether the original data in the independent classes has been updated; the second obtaining unit 204 is configured to obtain updated data in the independent classes if the original data in the independent classes has been updated;
  • the unit 205 is configured to compare the updated data in the independent classes with the original data in the memory, and the updating unit 206 is configured to: if the updated data is different from the original data in the memory Updating the original data in the memory according to the updated data;
  • the fourth obtaining unit 207 is configured to: if the updated data is different from the original data, acquire the updated data and The difference data between the original data; the saving unit 208 is configured to save the difference data into a preset database.
  • the above abstract unit 101, the first obtaining unit 102, the first determining unit 103, the second obtaining unit 104, the comparing unit 105, the updating unit 106, and the like may be embedded in hardware or independent of the data processing device.
  • the program may also be stored in the memory of the data processing device in software, so that the processor invokes the operations corresponding to the above respective units.
  • the processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
  • FIG. 11 is a schematic structural diagram of an apparatus for updating an in-memory data according to the present application.
  • the device 500 can include an input device 501, an output device 502, a transceiver 503, a memory 504, and a processor 505, where:
  • the input device 501 is configured to receive input data of an external access control device.
  • the input device 501 described in the embodiment of the present application may include a keyboard, a mouse, a photoelectric input device, a sound input device, a touch input device, a scanner, and the like.
  • the output device 502 is configured to output output data of the access control device to the outside.
  • the output device 502 described in this embodiment of the present application may include a display, a speaker, a printer, and the like.
  • the transceiver device 503 is configured to send data to or receive data from other devices through a communication link.
  • the transceiver 503 of the embodiment of the present application may include a transceiver device such as a radio frequency antenna.
  • the memory 504 is configured to store an update program that implements the memory data.
  • the memory 504 of an embodiment of the present application may be a system memory such as volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.), or a combination of both.
  • the memory 504 of the embodiment of the present application may also be an external memory outside the system, such as a magnetic disk, an optical disk, a magnetic tape, or the like.
  • the processor 505 is configured to run an update program for implementing the memory data stored in the memory 504, and perform the following operations: abstracting components in the VCenter into independent classes; acquiring original data in the independent classes and buffering Go to the memory; determine whether the original data in the independent classes has been updated; if the original data in the independent classes has been updated, obtain the updated data in the independent classes; The updated data is compared with the original data in the memory; if the updated data is different from the original data in the memory, the original data in the memory is updated according to the updated data .
  • the acquiring the original data in the independent classes and caching them into the memory includes: receiving a raw data cache request; determining whether the cached data exists in the memory; if the cache exists in the memory Data, determining whether the cached data is identical to the requested original data; if the cached data is different from the requested original data, the raw data is cached into the memory.
  • comparing the updated data in the independent classes with the original data in the memory including: acquiring the cached original data in the memory; and comparing the The updated data is compared to the original data.
  • updating the original data in the memory according to the updated data including: if the updated data and the The original data is different, and the preset data interface is called; the updated data is written into the memory according to a preset data interface.
  • the processor 505 further performs: if the updated data is different from the original data, acquiring difference data between the updated data and the original data; The data is saved to the default database.
  • the embodiment of the update device of the memory data shown in FIG. 11 does not constitute a limitation on the specific configuration of the update device of the memory data.
  • the update device of the memory data may include a comparison diagram. Show more or fewer parts, or combine some parts, or different parts.
  • the update device of the memory data may include only the memory and the processor. In such an embodiment, the structure and function of the memory and the processor are the same as those in the embodiment shown in FIG. .
  • the application provides a computer readable storage medium storing one or more computer programs, the one or more computer programs being executable by one or more processors to implement the above-described in-memory data Update method.
  • the foregoing storage medium of the present application includes: a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), and the like, which can store a program code.
  • the units in all the embodiments of the present application may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit), or by an ASIC (Application Specific Integrated Circuit).
  • a general-purpose integrated circuit such as a CPU (Central Processing Unit), or by an ASIC (Application Specific Integrated Circuit).
  • the steps in the method for updating the memory data in the embodiment of the present application may be sequentially adjusted, merged, and deleted according to actual needs.
  • the units in the update terminal of the memory data in the embodiment of the present application may be combined, divided, and deleted according to actual needs.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请实施例公开了一种内存数据的更新方法、终端、设备以及可读存储介质,其中所述方法包括:将VCenter中各组件抽象成独立类;获取各独立类中的原始数据并缓存至内存中;判断各独立类中的原始数据是否已更新;若各独立类中的原始数据已更新,获取各独立类中已更新的数据;将各独立类中已更新的数据与内存中的原始数据进行比较;若已更新的数据与内存中的原始数据不相同,根据已更新的数据对内存中的原始数据进行更新。本申请可以清楚的记录VCenter中数据变化的情况,并根据所变化的数据对内存中的原始数据进行更新,能够减少运维人员运维工作的工作量,降低运维人员排查故障的难度,并提高处理运维问题的效率。

Description

一种内存数据的更新方法、终端、设备以及可读存储介质
本申请要求于2017年8月18日提交中国专利局、申请号为CN 201710714568.3、申请名称为“一种内存数据的更新方法、终端、设备以及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及一种内存数据的更新方法、终端、设备以及可读存储介质。
背景技术
随着使用云服务的人越来越多,虚拟机的数量也越来越多,运维的成本和难度都随着不断的增加,特别是发生故障的时候,对于普通的运维人员来说,有些问题无法做到快速定位并制定解决方案,这不仅会对用户的应用造成严重的影响,也是对运维人员的专业技能的一个挑战。然而,使用VSphere客户端或者VSphere网页端分析故障通常都不足以满足需求,也看不出故障的问题,这时我们通常都会求助一些专业人士或者有经验的人寻求解决方法,但是这过程耗时太长,而且经常会被一些无用的信息困扰,影响效率。
发明内容
本申请实施例提供一种内存数据的更新方法、终端、设备以及可读存储介质,可以清楚的记录Center中数据变化的情况,并根据所变化的数据对内存中的原始数据进行更新,能够降低运维人员排查故障的难度,并提高处理运维问题的效率。
一方面,本申请实施例提供了一种内存数据的更新方法,该方法包括:
将VCenter中各组件抽象成独立类;
获取所述各独立类中的原始数据并缓存至内存中;
判断所述各独立类中的原始数据是否已更新;
若所述各独立类中的原始数据已更新,获取所述各独立类中已更新的数据;
将所述各独立类中已更新的数据与所述内存中的原始数据进行比较;
若所述已更新的数据与所述内存中的原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新。
另一方面,本申请实施例还提供了一种内存数据的更新终端,该终端包括:
抽象单元,用于将VCenter中各组件抽象成独立类;
第一获取单元,用于获取所述各独立类中的原始数据并缓存至内存中;
第一判断单元,用于判断所述各独立类中的原始数据是否已更新;
第二获取单元,用于若所述各独立类中的原始数据已更新,获取所述各独立类中已更新的数据;
比较单元,用于将所述各独立类中已更新的数据与所述内存中的原始数据进行比较;
更新单元,用于若所述已更新的数据与所述内存中的原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新。
又一方面,本申请实施例还提供了一种内存数据的更新设备,包括:
存储器,用于存储实现内存数据的更新的程序;以及
处理器,用于运行所述存储器中存储的实现内存数据的更新的程序,以执行以下操作:
将VCenter中各组件抽象成独立类;
获取所述各独立类中的原始数据并缓存至内存中;
判断所述各独立类中的原始数据是否已更新;
若所述各独立类中的原始数据已更新,获取所述各独立类中已更新的数据;
将所述各独立类中已更新的数据与所述内存中的原始数据进行比较;
若所述已更新的数据与所述内存中的原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新。
再一方面,本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质存储有一个或者一个以上计算机程序,所述一个或者一个以上计算机程序可被一个或者一个以上的处理器执行,以实现以下步骤:
将VCenter中各组件抽象成独立类;
获取所述各独立类中的原始数据并缓存至内存中;
判断所述各独立类中的原始数据是否已更新;
若所述各独立类中的原始数据已更新,获取所述各独立类中已更新的数据;
将所述各独立类中已更新的数据与所述内存中的原始数据进行比较;
若所述已更新的数据与所述内存中的原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新。
综上所述,本申请实施例通过将VCenter中各组件抽象成独立类,获取所述各独立类中的原始数据并缓存至内存中,判断所述各独立类中的原始数据是否已更新,若所述各独立类中的原始数据已更新,获取所述各独立类中已更新的数据,将所述各独立类中已更新的数据与所述内存中的原始数据进行比较,若所述已更新的数据与所述原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新,可以清楚的记录VCenter中数据变化的情况,并根据所变化的数据对内存中的原始数据进行更新,进一步地可以减少运维人员运维工作的工作量,降低运维人员排查故障的难度,并提高处理运维问题的效率。
附图说明
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种内存数据的更新方法的示意流程图。
图2是本申请实施例提供的一种内存数据的更新方法的另一示意流程图。
图3是本申请实施例提供的一种内存数据的更新方法的另一示意流程图。
图4是本申请实施例提供的一种内存数据的更新方法的另一示意流程图。
图5是本申请另一实施例提供的一种内存数据的更新方法的示意流程图。
图6是本申请实施例提供的一种内存数据的更新终端的示意性框图。
图7是本申请实施例提供的一种内存数据的更新终端的另一示意性框图。
图8是本申请实施例提供的一种内存数据的更新终端的另一示意性框图。
图9是本申请实施例提供的一种内存数据的更新终端的另一示意性框图。
图10是本申请实施例提供的一种内存数据的更新终端的另一示意性框图。
图11是本申请实施例提供的一种内存数据的更新设备结构组成示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
请参阅图1,图1是本申请实施例提供的一种内存数据的更新方法的示意流程图。该方法可以运行在智能手机(如Android手机、IOS手机等)、平板电脑、笔记本电脑以及智能设备等终端中。该方法主要是,可以。如图1所示,该方法的步骤包括S101~S106。
S101,将VCenter中各组件抽象成独立类。
在本申请实施例中,所述VCenter(VMware VCenter Server,虚拟化管理服务器平台)中的各组件包括数据中心、主机、虚拟机、网络、存储等,将这些组件抽象成独立类,例如将数据中心抽象成DataCenterMO独立类、主机抽象成HostMO独立类、虚拟机抽象成VmMO独立类、网络抽象成NetworkMO独立类、存储抽象成DataStoreMO独立类等。
S102,获取所述各独立类中的原始数据并缓存至内存中。
在本申请实施例中,在VCenter中,各独立类的原始数据存储在特定的管理器中,例如,DataCenterMO独立类存储在数据中心管理器中、HostMO独立类存储在主机管理器中、VmMO独立类存储在虚拟机管理器中;以获取DataCenterMO独立类中的原始数据为例进一步说明,可以通过向数据中心管理器中传入获取指令,根据所传入的获取指令获取相对应的原始数据。将所述各独立类中的原始数据缓存至内存中,具体包括但不限于以下方式:(1)采用高高低低原则将所述原始数据缓存至内存中,所谓高高低低原则指的是内存中的高位存放数据的高位,内存中的低位存放数据的低位,例如,原始数据为0xA5A1,其中,A5是高位,A1是低位,缓存到内存中的时候,A1缓存在0x4000这个位置,而A5缓存在0x4001这个位置,高位缓存在内存的高地址中,低位缓存在低地址中;(2)高低低高原则将所述原始数据缓存至内存中,所谓高低低高原则指的是内存中的高位存放数据的低位,内存中的低位存放数据的高位,例如,原始数据为0xA5A1,其中,A5是高位,A1是低位,缓存到内存中的时候,A1缓存在0x4001这个位置,而A5缓存在0x4000这个位置,高位缓存在内存的低 地址中,低位缓存在高地址中。
进一步地,如图2所示,步骤S102包括步骤S201~S204。
S201,接收原始数据缓存请求。
S202,判断所述内存中是否存在已缓存的数据。
S203,若所述内存中存在已缓存的数据,判断所述已缓存的数据与所请求的原始数据是否相同。
S204,若所述已缓存的数据与所请求的原始数据不相同,将所述原始数据缓存至内存中。
S103,判断所述各独立类中的原始数据是否已更新。
在本申请实施例中,需要检测所述各独立类中的原始数据是否已更新,可以通过WEBUI中的预设检测机制检测所述各独立类中的原始数据是否发生更新,具体地,该预设检测机制可以是VSphere本身的waitforupdate机制,该waitforupdate机制可以实时检测所述各独立类中的原始数据是否发生更新。
S104,若所述各独立类中的原始数据已更新,获取所述各独立类中已更新的数据。
在本申请实施例中,在VCenter中,各独立类中已更新的原始数据存储在特定的管理器中,例如,DataCenterMO独立类存储在数据中心管理器中、HostMO独立类存储在主机管理器中、VmMO独立类存储在虚拟机管理器中;以获取DataCenterMO独立类中已更新的原始数据为例进一步说明,可以通过向数据中心管理器中传入获取指令,根据所传入的获取指令获取相对应的已更新的原始数据。
S105,将所述各独立类中已更新的数据与所述内存中的原始数据进行比较。
进一步地,如图3所示,步骤S105包括步骤S301~S302。
S301,获取所述内存中已缓存的原始数据。
S302,根据预设的比较机制对所述已更新的数据与所述原始数据进行比较。
在本申请实施例中,所述预设的比较机制可以是将所述已更新的数据或者所述原始数据构建map,将数据中的基本类型、String类型等数据类型,或者属性名作为所构建的map的key,并以这种规律构建出一个多层的map;所述对所述已更新的数据与所述原始数据进行比较,即,将所述已更新的数据构建的map和所述原始数据构建的map进行比较。
S106,若所述已更新的数据与所述内存中的原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新。
在本申请实施例中,若所述已更新的数据构建的map与所述内存中的原始数据构建的map不相同,在VCenter中,通过waitforupdate机制将已更新的数据更新到内存中,其中,将已更新的数据更新到内存中的方法包括但不限于以下方式:以更新的数据、更新数据的时间作为对象创建insert sql语句,通过执行所创建的insert sql语句将已更新的数据更新到内存中,例如,{“powerState”:{“newValue”:“POWERED_OFF”,“oldValue”:“POWERED_ON”}},该insert sql语句表示将主机的状态从“关机”更新为“开机”;在更新的过程中,若内存中的部分原始数据与所述各独立类中已更新的数据相同,只更新不相同的部分数据;若内存中的原始数据与所述各独立类中的已更新的数据完全不相同,自动将所述各独立类中已更新的数据全部写入内存中以更新内存中的数据。具体地,由于数据的复杂度以及数据大小不同,所述内存的更新时间也会不相同。
进一步地,如图4所示,步骤S106包括步骤S401~S402。
S401,若所述已更新的数据与所述原始数据不相同,调用预设的数据接口。
S402,根据预设的数据接口将所述已更新的数据写入所述内存中。
由以上可见,本申请实施例通过将VCenter中各组件抽象成独立类,获取所述各独立类中的原始数据并缓存至内存中,判断所述各独立类中的原始数据是否已更新,若所述各独立类中的原始数据已更新,获取所述各独立类中已更新的数据,将所述各独立类中已更新的数据与所述内存中的原始数据进行比较,若所述已更新的数据与所述原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新,可以清楚的记录VCenter中数据变化的情况,并根据所变化的数据对内存中的原始数据进行更新,进一步地可以减少运维人员运维工作的工作量,降低运维人员排查故障的难度,并提高处理运维问题的效率。
请参阅图5,图5是本申请实施例提供的一种内存数据的更新方法的示意流程图。该方法可以运行在智能手机(如Android手机、IOS手机等)、平板电脑、笔记本电脑以及智能设备等终端中。该方法主要是,可以。如图5所示,该方法的步骤包括S501~S508。
S501,将VCenter中各组件抽象成独立类。
在本申请实施例中,所述VCenter(VMware VCenter Server,虚拟化管理服 务器平台)中的各组件包括数据中心、主机、虚拟机、网络、存储等,将这些组件抽象成独立类,例如将数据中心抽象成DataCenterMO独立类、主机抽象成HostMO独立类、虚拟机抽象成VmMO独立类、网络抽象成NetworkMO独立类、存储抽象成DataStoreMO独立类等。
S502,获取所述各独立类中的原始数据并缓存至内存中。
在本申请实施例中,在VCenter中,各独立类的原始数据存储在特定的管理器中,例如,DataCenterMO独立类存储在数据中心管理器中、HostMO独立类存储在主机管理器中、VmMO独立类存储在虚拟机管理器中;以获取DataCenterMO独立类中的原始数据为例进一步说明,可以通过向数据中心管理器中传入获取指令,根据所传入的获取指令获取相对应的原始数据。将所述各独立类中的原始数据缓存至内存中,具体包括但不限于以下方式:(1)采用高高低低原则将所述原始数据缓存至内存中,所谓高高低低原则指的是内存中的高位存放数据的高位,内存中的低位存放数据的低位,例如,原始数据为0xA5A1,其中,A5是高位,A1是低位,缓存到内存中的时候,A1缓存在0x4000这个位置,而A5缓存在0x4001这个位置,高位缓存在内存的高地址中,低位缓存在低地址中;(2)高低低高原则将所述原始数据缓存至内存中,所谓高低低高原则指的是内存中的高位存放数据的低位,内存中的低位存放数据的高位,例如,原始数据为0xA5A1,其中,A5是高位,A1是低位,缓存到内存中的时候,A1缓存在0x4001这个位置,而A5缓存在0x4000这个位置,高位缓存在内存的低地址中,低位缓存在高地址中。
S503,判断所述各独立类中的原始数据是否已更新。
在本申请实施例中,需要检测所述各独立类中的原始数据是否已更新,可以通过WEBUI中的预设检测机制检测所述各独立类中的原始数据是否发生更新,具体地,该预设检测机制可以是VSphere本身的waitforupdate机制,该waitforupdate机制可以实时检测所述各独立类中的原始数据是否发生更新。
S504,若所述各独立类中的原始数据已更新,获取所述各独立类中已更新的数据。
在本申请实施例中,在VCenter中,各独立类的原始数据存储在特定的管理器中,例如,DataCenterMO独立类存储在数据中心管理器中、HostMO独立类存储在主机管理器中、VmMO独立类存储在虚拟机管理器中;以获取 DataCenterMO独立类中的原始数据为例进一步说明,可以通过向数据中心管理器中传入获取指令,根据所传入的获取指令获取相对应的原始数据。
S505,将所述各独立类中已更新的数据与所述内存中的原始数据进行比较。
S506,若所述已更新的数据与所述内存中的原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新。
在本申请实施例中,若所述已更新的数据构建的map与所述内存中的原始数据构建的map不相同,在VCenter中,通过waitforupdate机制将已更新的数据更新到内存中,其中,将已更新的数据更新到内存中的方法包括但不限于以下方式:以更新的数据、更新数据的时间作为对象创建insert sql语句,通过执行所创建的insert sql语句将已更新的数据更新到内存中,例如,{“powerState”:{“newValue”:“POWERED_OFF”,“oldValue”:“POWERED_ON”}},该insert sql语句表示将主机的状态从“关机”更新为“开机”;在更新的过程中,若内存中的部分原始数据与所述各独立类中已更新的数据相同,只更新不相同的部分数据;若内存中的原始数据与所述各独立类中的已更新的数据完全不相同,自动将所述各独立类中已更新的数据全部写入内存中以更新内存中的数据。具体地,由于数据的复杂度以及数据大小不同,所述内存的更新时间也会不相同。
S507,若所述已更新的数据与所述原始数据不相同,获取所述已更新的数据与所述原始数据之间的差异数据。
S508,将所述差异数据保存至预设数据库中。
本领域普通技术员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
请参阅图6,对应上述一种内存数据的更新方法,本申请实施例还提出一种内存数据的更新终端,该终端100包括:抽象单元101、第一获取单元102、第一判断单元103、第二获取单元104、比较单元105、更新单元106。
其中,所述抽象单元101,用于将VCenter中各组件抽象成独立类;第一获取单元102,用于获取所述各独立类中的原始数据并缓存至内存中;第一判断单元103,用于判断所述各独立类中的原始数据是否已更新;第二获取单元104, 用于若所述各独立类中的原始数据已更新,获取所述各独立类中已更新的数据;比较单元105,用于将所述各独立类中已更新的数据与所述内存中的原始数据进行比较;更新单元106,用于若所述已更新的数据与所述内存中的原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新。
如图7所示,所述第一获取单元102,包括:接收单元1021,用于接收原始数据缓存请求;第二判断单元1022,用于判断所述内存中是否存在已缓存的数据;第三判断单元1023,用于若所述内存中存在已缓存的数据,判断所述已缓存的数据与所请求的原始数据是否相同;缓存单元1024,用于若所述已缓存的数据与所请求的原始数据不相同,将所述原始数据缓存至内存中。
如图8所示,所述比较单元105,包括:第三获取单元1051,用于获取所述内存中已缓存的原始数据;比较子单元1052,用于根据预设的比较机制对所述已更新的数据与所述原始数据进行比较。
如图9所示,所述更新单元106,包括:调用单元1061,用于若所述已更新的数据与所述原始数据不相同,调用预设的数据接口;写入单元1062,用于根据预设的数据接口将所述已更新的数据写入所述内存中。
请参阅图10,对应上述一种内存数据的更新方法,本申请实施例还提出一种内存数据的更新终端,该终端200包括:抽象单元201、第一获取单元202、第一判断单元203、第二获取单元204、比较单元205、更新单元206、第四获取单元207、保存单元208。
其中,所述抽象单元201,用于将VCenter中各组件抽象成独立类;第一获取单元202,用于获取所述各独立类中的原始数据并缓存至内存中;第一判断单元203,用于判断所述各独立类中的原始数据是否已更新;第二获取单元204,用于若所述各独立类中的原始数据已更新,获取所述各独立类中已更新的数据;比较单元205,用于将所述各独立类中已更新的数据与所述内存中的原始数据进行比较;更新单元206,用于若所述已更新的数据与所述内存中的原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新;第四获取单元207,用于若所述已更新的数据与所述原始数据不相同,获取所述已更新的数据与所述原始数据之间的差异数据;保存单元208,用于将所述差异数据保存至预设数据库中。
在硬件实现上,以上抽象单元101、第一获取单元102、第一判断单元103、 第二获取单元104、比较单元105、更新单元106等可以以硬件形式内嵌于或独立于数据处理的装置中,也可以以软件形式存储于数据处理装置的存储器中,以便处理器调用执行以上各个单元对应的操作。该处理器可以为中央处理单元(CPU)、微处理器、单片机等。
图11为本申请一种内存数据的更新设备的结构组成示意图。如图11所示,该设备500可包括:输入装置501、输出装置502、收发装置503、存储器504以及处理器505,其中:
所述输入装置501,用于接收外部访问控制设备的输入数据。具体实现中,本申请实施例所述的输入装置501可包括键盘、鼠标、光电输入装置、声音输入装置、触摸式输入装置、扫描仪等。
所述输出装置502,用于对外输出访问控制设备的输出数据。具体实现中,本申请实施例所述的输出装置502可包括显示器、扬声器、打印机等。
所述收发装置503,用于通过通信链路向其他设备发送数据或者从其他设备接收数据。具体实现中,本申请实施例的收发装置503可包括射频天线等收发器件。
所述存储器504,用于存储实现内存数据的更新程序。本申请实施例的存储器504可以是系统存储器,比如,挥发性的(诸如RAM),非易失性的(诸如ROM,闪存等),或者两者的结合。具体实现中,本申请实施例的存储器504还可以是系统之外的外部存储器,比如,磁盘、光盘、磁带等。
所述处理器505,用于运行所述存储器504中存储的实现内存数据的更新程序,并执行如下操作:将VCenter中各组件抽象成独立类;获取所述各独立类中的原始数据并缓存至内存中;判断所述各独立类中的原始数据是否已更新;若所述各独立类中的原始数据已更新,获取所述各独立类中已更新的数据;将所述各独立类中已更新的数据与所述内存中的原始数据进行比较;若所述已更新的数据与所述内存中的原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新。
进一步地,所述获取所述各独立类中的原始数据并缓存至内存中,包括:接收原始数据缓存请求;判断所述内存中是否存在已缓存的数据;若所述内存中存在已缓存的数据,判断所述已缓存的数据与所请求的原始数据是否相同;若所述已缓存的数据与所请求的原始数据不相同,将所述原始数据缓存至内存 中。
进一步地,所述将所述各独立类中已更新的数据与所述内存中的原始数据进行比较,包括:获取所述内存中已缓存的原始数据;根据预设的比较机制对所述已更新的数据与所述原始数据进行比较。
进一步地,所述若所述已更新的数据与所述原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新,包括:若所述已更新的数据与所述原始数据不相同,调用预设的数据接口;根据预设的数据接口将所述已更新的数据写入所述内存中。
进一步地,所述处理器505还执行如下操作:若所述已更新的数据与所述原始数据不相同,获取所述已更新的数据与所述原始数据之间的差异数据;将所述差异数据保存至预设数据库中。
本领域技术人员可以理解,图11中示出的内存数据的更新设备的实施例并不构成对内存数据的更新设备具体构成的限定,在其他实施例中,内存数据的更新设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,内存数据的更新设备可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图11所示实施例一致,在此不再赘述。
本申请提供了一种计算机可读存储介质,计算机可读存储介质存储有一个或者一个以上计算机程序,所述一个或者一个以上计算机程序可被一个或者一个以上的处理器执行,以实现上述内存数据的更新方法。
本申请前述的存储介质包括:磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等各种可以存储程序代码的介质。
本申请所有实施例中的单元可以通过通用集成电路,例如CPU(Central Processing Unit,中央处理器),或通过ASIC(Application Specific Integrated Circuit,专用集成电路)来实现。
本申请实施例内存数据的更新方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本申请实施例内存数据的更新终端中的单元可以根据实际需要进行合并、划分和删减。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (20)

  1. 一种内存数据的更新方法,其特征在于,所述方法包括:
    将VCenter中各组件抽象成独立类;
    获取所述各独立类中的原始数据并缓存至内存中;
    判断所述各独立类中的原始数据是否已更新;
    若所述各独立类中的原始数据已更新,获取所述各独立类中已更新的数据;
    将所述各独立类中已更新的数据与所述内存中的原始数据进行比较;
    若所述已更新的数据与所述内存中的原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新。
  2. 如权利要求1所述的方法,其特征在于,所述获取所述各独立类中的原始数据并缓存至内存中,包括:
    接收原始数据缓存请求;
    判断所述内存中是否存在已缓存的数据;
    若所述内存中存在已缓存的数据,判断所述已缓存的数据与所请求的原始数据是否相同;
    若所述已缓存的数据与所请求的原始数据不相同,将所述原始数据缓存至内存中。
  3. 如权利要求1所述的方法,其特征在于,所述将所述各独立类中已更新的数据与所述内存中的原始数据进行比较,包括:
    获取所述内存中已缓存的原始数据;
    根据预设的比较机制对所述已更新的数据与所述原始数据进行比较。
  4. 如权利要求1所述的方法,其特征在于,所述若所述已更新的数据与所述原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新,包括:
    若所述已更新的数据与所述原始数据不相同,调用预设的数据接口;
    根据预设的数据接口将所述已更新的数据写入所述内存中。
  5. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    若所述已更新的数据与所述原始数据不相同,获取所述已更新的数据与所述原始数据之间的差异数据;
    将所述差异数据保存至预设数据库中。
  6. 一种内存数据的更新终端,其特征在于,所述终端包括:
    抽象单元,用于将VCenter中各组件抽象成独立类;
    第一获取单元,用于获取所述各独立类中的原始数据并缓存至内存中;
    第一判断单元,用于判断所述各独立类中的原始数据是否已更新;
    第二获取单元,用于若所述各独立类中的原始数据已更新,获取所述各独立类中已更新的数据;
    比较单元,用于将所述各独立类中已更新的数据与所述内存中的原始数据进行比较;
    更新单元,用于若所述已更新的数据与所述内存中的原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新。
  7. 如权利要求6所述的终端,其特征在于,所述第一获取单元,包括:
    接收单元,用于接收原始数据缓存请求;
    第二判断单元,用于判断所述内存中是否存在已缓存的数据;
    第三判断单元,用于若所述内存中存在已缓存的数据,判断所述已缓存的数据与所请求的原始数据是否相同;
    缓存单元,用于若所述已缓存的数据与所请求的原始数据不相同,将所述原始数据缓存至内存中。
  8. 如权利要求6所述的终端,其特征在于,所述比较单元,包括:
    第三获取单元,用于获取所述内存中已缓存的原始数据;
    比较子单元,用于根据预设的比较机制对所述已更新的数据与所述原始数据进行比较。
  9. 如权利要求6所述的终端,其特征在于,所述更新单元,包括:
    调用单元,用于若所述已更新的数据与所述原始数据不相同,调用预设的数据接口;
    写入单元,用于根据预设的数据接口将所述已更新的数据写入所述内存中。
  10. 如权利要求6所述的终端,其特征在于,所述终端,还包括:
    第四获取单元,用于若所述已更新的数据与所述原始数据不相同,获取所述已更新的数据与所述原始数据之间的差异数据;
    保存单元,用于将所述差异数据保存至预设数据库中。
  11. 一种内存数据的更新设备,其特征在于,包括:
    存储器,用于存储实现内存数据的更新的程序;以及
    处理器,用于运行所述存储器中存储的实现内存数据的更新的程序,以执行以下操作:
    将VCenter中各组件抽象成独立类;
    获取所述各独立类中的原始数据并缓存至内存中;
    判断所述各独立类中的原始数据是否已更新;
    若所述各独立类中的原始数据已更新,获取所述各独立类中已更新的数据;
    将所述各独立类中已更新的数据与所述内存中的原始数据进行比较;
    若所述已更新的数据与所述内存中的原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新。
  12. 如权利要求11所述的设备,其特征在于,所述获取所述各独立类中的原始数据并缓存至内存中,包括:
    接收原始数据缓存请求;
    判断所述内存中是否存在已缓存的数据;
    若所述内存中存在已缓存的数据,判断所述已缓存的数据与所请求的原始数据是否相同;
    若所述已缓存的数据与所请求的原始数据不相同,将所述原始数据缓存至内存中。
  13. 如权利要求11所述的设备,其特征在于,所述将所述各独立类中已更新的数据与所述内存中的原始数据进行比较,包括:
    获取所述内存中已缓存的原始数据;
    根据预设的比较机制对所述已更新的数据与所述原始数据进行比较。
  14. 如权利要求11所述的设备,其特征在于,所述若所述已更新的数据与所述原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新,包括:
    若所述已更新的数据与所述原始数据不相同,调用预设的数据接口;
    根据预设的数据接口将所述已更新的数据写入所述内存中。
  15. 如权利要求11所述的设备,其特征在于,所述处理器还执行以下操作:
    若所述已更新的数据与所述原始数据不相同,获取所述已更新的数据与所 述原始数据之间的差异数据;
    将所述差异数据保存至预设数据库中。
  16. 一种计算机可读存储介质,其特征在于,计算机可读存储介质存储有一个或者一个以上计算机程序,所述一个或者一个以上计算机程序可被一个或者一个以上的处理器执行,以实现以下步骤:
    将VCenter中各组件抽象成独立类;
    获取所述各独立类中的原始数据并缓存至内存中;
    判断所述各独立类中的原始数据是否已更新;
    若所述各独立类中的原始数据已更新,获取所述各独立类中已更新的数据;
    将所述各独立类中已更新的数据与所述内存中的原始数据进行比较;
    若所述已更新的数据与所述内存中的原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新。
  17. 如权利要求16所述的计算机可读存储介质,其特征在于,所述获取所述各独立类中的原始数据并缓存至内存中,包括:
    接收原始数据缓存请求;
    判断所述内存中是否存在已缓存的数据;
    若所述内存中存在已缓存的数据,判断所述已缓存的数据与所请求的原始数据是否相同;
    若所述已缓存的数据与所请求的原始数据不相同,将所述原始数据缓存至内存中。
  18. 如权利要求16所述的计算机可读存储介质,其特征在于,所述将所述各独立类中已更新的数据与所述内存中的原始数据进行比较,包括:
    获取所述内存中已缓存的原始数据;
    根据预设的比较机制对所述已更新的数据与所述原始数据进行比较。
  19. 如权利要求16所述的计算机可读存储介质,其特征在于,所述若所述已更新的数据与所述原始数据不相同,根据所述已更新的数据对所述内存中的原始数据进行更新,包括:
    若所述已更新的数据与所述原始数据不相同,调用预设的数据接口;
    根据预设的数据接口将所述已更新的数据写入所述内存中。
  20. 如权利要求16所述的计算机可读存储介质,其特征在于,所述步骤还包 括:
    若所述已更新的数据与所述原始数据不相同,获取所述已更新的数据与所述原始数据之间的差异数据;
    将所述差异数据保存至预设数据库中。
PCT/CN2018/077127 2017-08-18 2018-02-24 一种内存数据的更新方法、终端、设备以及可读存储介质 Ceased WO2019033740A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710714568.3A CN107748749A (zh) 2017-08-18 2017-08-18 一种内存数据的更新方法、终端、设备以及可读存储介质
CN201710714568.3 2017-08-18

Publications (1)

Publication Number Publication Date
WO2019033740A1 true WO2019033740A1 (zh) 2019-02-21

Family

ID=61255400

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/077127 Ceased WO2019033740A1 (zh) 2017-08-18 2018-02-24 一种内存数据的更新方法、终端、设备以及可读存储介质

Country Status (2)

Country Link
CN (1) CN107748749A (zh)
WO (1) WO2019033740A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1573688A (zh) * 2003-06-10 2005-02-02 微软公司 动态运行时间环境中使用标签化类型的系统和方法
CN103888420A (zh) * 2012-12-20 2014-06-25 中国农业银行股份有限公司广东省分行 一种虚拟服务器系统
CN104537119A (zh) * 2015-01-26 2015-04-22 浪潮通信信息系统有限公司 一种缓存数据的更新方法、数据使用端和系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7051324B2 (en) * 2003-01-16 2006-05-23 International Business Machines Corporation Externalized classloader information for application servers
CN103607418B (zh) * 2013-07-25 2016-12-28 上海和辰信息技术有限公司 基于云服务数据特征的大规模数据分割系统及分割方法
US20150347170A1 (en) * 2014-05-27 2015-12-03 Vmware, Inc. Grouping virtual machines in a cloud application

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1573688A (zh) * 2003-06-10 2005-02-02 微软公司 动态运行时间环境中使用标签化类型的系统和方法
CN103888420A (zh) * 2012-12-20 2014-06-25 中国农业银行股份有限公司广东省分行 一种虚拟服务器系统
CN104537119A (zh) * 2015-01-26 2015-04-22 浪潮通信信息系统有限公司 一种缓存数据的更新方法、数据使用端和系统

Also Published As

Publication number Publication date
CN107748749A (zh) 2018-03-02

Similar Documents

Publication Publication Date Title
CN114925084B (zh) 分布式事务处理方法、系统、设备及可读存储介质
CN106980625B (zh) 一种数据同步方法、装置及系统
US10678583B2 (en) Guest controlled virtual device packet filtering
WO2020181810A1 (zh) 应用于集群内多级缓存的数据处理方法和装置
WO2019153549A1 (zh) Api接口动态生成方法、装置、计算机设备及存储介质
WO2021169129A1 (zh) 虚拟机在线迁移方法、装置、设备及计算机可读存储介质
US10031948B1 (en) Idempotence service
WO2019179026A1 (zh) 电子装置、集群访问域名自动生成方法及存储介质
TW201401092A (zh) 動態調整記錄資料等級模組的方法、電腦裝置與程式產品
US20150058829A1 (en) Testing a software interface for a streaming hardware device
WO2020042769A1 (zh) 图像信息的传输方法、装置、存储介质及电子设备
WO2019153553A1 (zh) 跨广域网数据回导方法、装置、计算机设备及存储介质
US20150222664A1 (en) Conflict resolution in extension induced modifications to web requests and web page content
WO2020233045A1 (zh) 一种插件更新方法、设备、服务器及计算机可读存储介质
US9158690B2 (en) Performing zero-copy sends in a networked file system with cryptographic signing
CN110554998A (zh) 一种通过替换函数内部指令的钩子方法、装置、终端及存储介质
WO2022048358A1 (zh) 数据处理方法、装置及存储介质
CN115136133A (zh) 按需代码执行的单次使用执行环境
CN107368498A (zh) 优化MySQL悲观锁的锁等待超时时间的方法及装置
CN116431578A (zh) 文件清理方法、装置、电子设备及存储介质
US11032371B2 (en) Data migration using read function triggers
CN110377328A (zh) 一种数据获取方法、装置、设备以及存储介质
CN106371878A (zh) 实例系统免安装运行应用的装置及方法
US20190238603A1 (en) Response caching
WO2019033740A1 (zh) 一种内存数据的更新方法、终端、设备以及可读存储介质

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07.10.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18846929

Country of ref document: EP

Kind code of ref document: A1