CN107748749A - A kind of update method of internal storage data, terminal, equipment and readable storage medium storing program for executing - Google Patents
A kind of update method of internal storage data, terminal, equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN107748749A CN107748749A CN201710714568.3A CN201710714568A CN107748749A CN 107748749 A CN107748749 A CN 107748749A CN 201710714568 A CN201710714568 A CN 201710714568A CN 107748749 A CN107748749 A CN 107748749A
- Authority
- CN
- China
- Prior art keywords
- data
- updated
- internal memory
- initial data
- separate class
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/23—Updating
- G06F16/2379—Updates performed during online database operations; commit processing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45583—Memory management, e.g. access or allocation
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
The embodiment of the invention discloses a kind of update method of internal storage data, terminal, equipment and readable storage medium storing program for executing, wherein methods described includes:Each component in VCenter is abstracted into separate class;Obtain the initial data in each separate class and cache into internal memory;Judge whether the initial data in each separate class has updated;If the initial data in each separate class has updated, updated data in each separate class are obtained;By updated data in each separate class compared with the initial data in internal memory;If updated data differ with the initial data in internal memory, the initial data in internal memory is updated according to updated data.The present invention can clearly record the situation of data variation in VCenter, and the initial data in internal memory is updated according to the data changed, the workload of operation maintenance personnel maintenance work can be reduced, reduces the difficulty of operation maintenance personnel investigation failure, and improves the efficiency of processing O&M problem.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of update method of internal storage data, terminal, equipment and
Readable storage medium storing program for executing.
Background technology
With using, the people of cloud service is more and more, and the quantity of virtual machine is also more and more, and the cost and difficulty of O&M are all
With continuous increase, when particularly breaking down, for common operation maintenance personnel, some problems can not accomplish soon
Speed positions and formulates solution, and this can not only cause serious influence, and the specialty to operation maintenance personnel to the application of user
One challenge of technical ability.Generally all it is not enough to completely however, analyzing failure using VSphere clients or VSphere page ends
Sufficient demand, the problem of also not seeing failure, at this moment we generally can seek help some professional persons or veteran seeks
Solution method, but this process takes oversize, and is often perplexed by some useless information, influences efficiency.
The content of the invention
The embodiment of the present invention provides a kind of update method of internal storage data, terminal, equipment and readable storage medium storing program for executing, can be with
The situation of data variation in Center is clearly recorded, and the initial data in internal memory is carried out more according to the data changed
Newly, the difficulty of operation maintenance personnel investigation failure can be reduced, and improves the efficiency of processing O&M problem.
On the one hand, the embodiments of the invention provide a kind of update method of internal storage data, this method to include:
Each component in VCenter is abstracted into separate class;
Obtain the initial data in each separate class and cache into internal memory;
Judge whether the initial data in each separate class has updated;
If the initial data in each separate class has updated, updated data in each separate class are obtained;
By updated data in each separate class compared with the initial data in the internal memory;
If the updated data differ with the initial data in the internal memory, according to the updated data pair
Initial data in the internal memory is updated.
Further, the initial data obtained in each separate class and cache into internal memory, including:
Receive primary data cache request;
Judge in the internal memory with the presence or absence of the data cached;
If the data cached in the internal memory be present, the data cached described in judgement are with the initial data asked
It is no identical;
If the data cached differ with the initial data asked, by the primary data cache to internal memory
In.
Further, it is described to be compared updated data in each separate class with the initial data in the internal memory
Compared with, including:
Obtain the initial data cached in the internal memory;
According to default comparison mechanism to the updated data compared with the initial data.
Further, if the updated data differ with the initial data, according to described updated
Data are updated to the initial data in the internal memory, including:
If the updated data differ with the initial data, default data-interface is called;
The updated data are write in the internal memory according to default data-interface.
Further, methods described also includes:
If the updated data differ with the initial data, obtain the updated data with it is described original
Variance data between data;
The variance data is preserved into presetting database.
On the other hand, the embodiment of the present invention additionally provides a kind of more new terminal of internal storage data, and the terminal includes:
Abstraction unit, for each component in VCenter to be abstracted into separate class;
First acquisition unit, for obtaining the initial data in each separate class and caching into internal memory;
First judging unit, for judging whether the initial data in each separate class has updated;
Second acquisition unit, if having been updated for the initial data in each separate class, obtain in each separate class
Updated data;
Comparing unit, for updated data in each separate class to be compared with the initial data in the internal memory
Compared with;
Updating block, if being differed for the updated data with the initial data in the internal memory, according to described
Updated data are updated to the initial data in the internal memory.
Further, the first acquisition unit, including:
Receiving unit, for receiving primary data cache request;
Second judging unit, for judging in the internal memory with the presence or absence of the data cached;
3rd judging unit, if for the data that have cached in the internal memory be present, judge the data cached and
Whether the initial data asked is identical;
Buffer unit, if being differed for the data cached with the initial data asked, by the original number
According to caching into internal memory.
Further, the comparing unit, including:
3rd acquiring unit, for obtaining the initial data cached in the internal memory;
Comparing subunit, for being carried out according to default comparison mechanism to the updated data and the initial data
Compare.
Further, the updating block, including:
Call unit, if being differed for the updated data with the initial data, default data are called to connect
Mouthful;
Writing unit, for being write the updated data in the internal memory according to default data-interface;
The terminal, in addition to:
4th acquiring unit, if being differed for the updated data with the initial data, described in acquisition more
Variance data between new data and the initial data;
Storage unit, for the variance data to be preserved into presetting database.
Another aspect, the embodiment of the present invention additionally provide a kind of more new equipment of internal storage data, including:
Memory, for storing the program for the renewal for realizing internal storage data;And
Processor, for running the program of the renewal for realizing internal storage data stored in the memory, to perform as above
Methods described.
Another further aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, computer-readable storage medium
Matter is stored with one or more than one program, and one either more than one program can be by one or more than one place
Manage device to perform, to realize method as described above.
In summary, the invention has the advantages that:The embodiment of the present invention is by the way that each component in VCenter is abstracted
Into separate class, obtain the initial data in each separate class and cache into internal memory, judge original in each separate class
Whether data have updated, if the initial data in each separate class has updated, obtain updated number in each separate class
According to by updated data in each separate class compared with the initial data in the internal memory, if described updated
Data are differed with the initial data, and the initial data in the internal memory is updated according to the updated data,
The situation of data variation in VCenter can be clearly recorded, and the initial data in internal memory is entered according to the data changed
Row renewal, the workload of operation maintenance personnel maintenance work can be further reduced, reduce the difficulty of operation maintenance personnel investigation failure, and
Improve the efficiency of processing O&M problem.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it is required in being described below to embodiment to use
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of the update method of internal storage data provided in an embodiment of the present invention.
Fig. 2 is a kind of another schematic flow diagram of the update method of internal storage data provided in an embodiment of the present invention.
Fig. 3 is a kind of another schematic flow diagram of the update method of internal storage data provided in an embodiment of the present invention.
Fig. 4 is a kind of another schematic flow diagram of the update method of internal storage data provided in an embodiment of the present invention.
Fig. 5 is a kind of schematic flow diagram of the update method for internal storage data that another embodiment of the present invention provides.
Fig. 6 is a kind of schematic block diagram of the more new terminal of internal storage data provided in an embodiment of the present invention.
Fig. 7 is a kind of another schematic block diagram of the more new terminal of internal storage data provided in an embodiment of the present invention.
Fig. 8 is a kind of another schematic block diagram of the more new terminal of internal storage data provided in an embodiment of the present invention.
Fig. 9 is a kind of another schematic block diagram of the more new terminal of internal storage data provided in an embodiment of the present invention.
Figure 10 is a kind of another schematic block diagram of the more new terminal of internal storage data provided in an embodiment of the present invention.
Figure 11 is a kind of renewal device structure composition schematic diagram of internal storage data provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but it is not precluded from one or more of the other feature, whole
Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow diagram of the update method of internal storage data provided in an embodiment of the present invention.
This method may operate in smart mobile phone (such as Android phone, IOS mobile phones), tablet personal computer, notebook computer and intelligence
In the terminals such as equipment.This method is mainly, can be with.As shown in figure 1, the step of this method, includes S101~S106.
S101, each component in VCenter is abstracted into separate class.
In embodiments of the present invention, the VCenter (put down by VMware VCenter Server, virtual management server
Platform) in each component include data center, main frame, virtual machine, network, storage etc., these components are abstracted into separate class, such as
Data center is abstracted into DataCenterMO separate class, that main frame is abstracted into HostMO separate class, virtual machine abstraction is only into VmMO
Vertical class, network abstraction are abstracted into DataStoreMO separate class etc. into NetworkMO separate class, storage.
S102, obtain the initial data in each separate class and cache into internal memory.
In embodiments of the present invention, in VCenter, the initial data of each separate class is stored in specific manager,
For example, DataCenterMO separate class is stored in data center manager, HostMO separate class is stored in host manager,
VmMO separate class is stored in virtual machine manager;Exemplified by obtaining the initial data in DataCenterMO separate class further
Illustrate, instruction can be obtained by being passed into data center manager, obtained according to be passed to acquisition instruction corresponding
Initial data.By the primary data cache in each separate class into internal memory, in the following manner is specifically including but not limited to:(1)
Using height, just for low principle by the primary data cache into internal memory, so-called just low principle refers to the high position in internal memory
A high position for data is deposited, the low level of the low level storage data in internal memory, for example, initial data be 0xA5A1, wherein, A5 is height
Position, A1 is low level, and when being cached in internal memory, A1 is buffered in this position of 0x4000, and A5 is buffered in this position of 0x4001
Put, a high position is buffered in the high address of internal memory, and low level is buffered in low address;(2) the low high principle of height is by the initial data
For caching into internal memory, the low high principle of so-called height refers to the low level of the high-order storage data in internal memory, and the low level in internal memory is deposited
A high position for data is put, for example, initial data is 0xA5A1, wherein, A5 is high-order, and A1 is low level, when being cached in internal memory,
A1 is buffered in this position of 0x4001, and A5 is buffered in this position of 0x4000, and a high position is buffered in the low address of internal memory, low level
It is buffered in high address.
Further, as shown in Fig. 2 step S102 includes step S201~S204.
S201, receive primary data cache request.
S202, judge in the internal memory with the presence or absence of the data cached.
S203, if the data that have cached in the internal memory be present, judge described in the data that have cached with asked it is original
Whether data are identical.
S204, if the data cached differ with the initial data asked, by the primary data cache extremely
In internal memory.
S103, judges whether the initial data in each separate class has updated.
In embodiments of the present invention, it is necessary to which whether the initial data detected in each separate class has updated, can pass through
Whether the initial data that the default testing mechanism in WEBUI is detected in each separate class updates, specifically, the default inspection
Survey mechanism can be the waitforupdate mechanism of VSphere in itself, and the waitforupdate mechanism can detect institute in real time
State whether the initial data in each separate class updates.
S104, if the initial data in each separate class has updated, obtain updated data in each separate class.
In embodiments of the present invention, in VCenter, updated initial data is stored in specific pipe in each separate class
Manage in device, for example, DataCenterMO separate class is stored in data center manager, HostMO separate class is stored in main frame pipe
Manage in device, VmMO separate class is stored in virtual machine manager;It is updated original in DataCenterMO separate class to obtain
Data instance further illustrates, can obtain instruction by being passed into data center manager, be referred to according to be passed to acquisition
Order obtains corresponding updated initial data.
S105, by updated data in each separate class compared with the initial data in the internal memory.
Further, as shown in figure 3, step S105 includes step S301~S302.
S301, obtain the initial data cached in the internal memory.
S302, according to default comparison mechanism to the updated data compared with the initial data.
In embodiments of the present invention, the default comparison mechanism can be by the updated data or the original
Beginning data build map, by data types such as the fundamental type in data, String types, or attribute-name be used as constructed by
Map key, and construct with this rule the map of a multilayer;It is described to the updated data and the initial data
It is compared, i.e. be compared the map of the updated data structure and the initial data structure map.
S106, if the updated data differ with the initial data in the internal memory, according to described updated
Data are updated to the initial data in the internal memory.
In embodiments of the present invention, if the map and the initial data structure in the internal memory of the updated data structure
The map built is differed, and in VCenter, is updated updated data into internal memory by waitforupdate mechanism, its
In, updated data are updated to the method in internal memory and include but is not limited in the following manner:With the data of renewal, update the data
Time as Object Creation insert sql sentences, by performing created insert sql sentences by updated data
Update in internal memory, for example, { " powerState ":{“newValue”:" POWERED_OFF ", " oldValue ":
" POWERED_ON " } }, the insertsql sentences represent to be updated to " start shooting " from " shutdown " by the state of main frame;In the mistake of renewal
Cheng Zhong, if the part initial data in internal memory is identical with updated data in each separate class, only update the portion differed
Divided data;If the initial data in internal memory differs completely with the updated data in each separate class, automatically by described in
Updated data are all write in internal memory to update the data in internal memory in each separate class.Specifically, due to the complexity of data
Degree and size of data are different, and the renewal time of the internal memory can also differ.
Further, as shown in figure 4, step S106 includes step S401~S402.
S401, if the updated data differ with the initial data, call default data-interface.
S402, the updated data are write in the internal memory according to default data-interface.
As seen from the above, the embodiment of the present invention is obtained described each only by the way that each component in VCenter is abstracted into separate class
Initial data and caching in vertical class judge whether the initial data in each separate class has updated, if described into internal memory
Initial data in each separate class has updated, and obtains updated data in each separate class, by each separate class
The data of renewal are compared with the initial data in the internal memory, if the updated data and the initial data not phase
Together, the initial data in the internal memory is updated according to the updated data, clearly can recorded in VCenter
The situation of data variation, and the initial data in internal memory is updated according to the data changed, it can further reduce
The workload of operation maintenance personnel maintenance work, reduces the difficulty of operation maintenance personnel investigation failure, and improves the efficiency of processing O&M problem.
Referring to Fig. 5, Fig. 5 is a kind of schematic flow diagram of the update method of internal storage data provided in an embodiment of the present invention.
This method may operate in smart mobile phone (such as Android phone, IOS mobile phones), tablet personal computer, notebook computer and intelligence
In the terminals such as equipment.This method is mainly, can be with.As shown in figure 5, the step of this method, includes S501~S508.
S501, each component in VCenter is abstracted into separate class.
In embodiments of the present invention, the VCenter (put down by VMware VCenter Server, virtual management server
Platform) in each component include data center, main frame, virtual machine, network, storage etc., these components are abstracted into separate class, such as
Data center is abstracted into DataCenterMO separate class, that main frame is abstracted into HostMO separate class, virtual machine abstraction is only into VmMO
Vertical class, network abstraction are abstracted into DataStoreMO separate class etc. into NetworkMO separate class, storage.
S502, obtain the initial data in each separate class and cache into internal memory.
In embodiments of the present invention, in VCenter, the initial data of each separate class is stored in specific manager,
For example, DataCenterMO separate class is stored in data center manager, HostMO separate class is stored in host manager,
VmMO separate class is stored in virtual machine manager;Exemplified by obtaining the initial data in DataCenterMO separate class further
Illustrate, instruction can be obtained by being passed into data center manager, obtained according to be passed to acquisition instruction corresponding
Initial data.By the primary data cache in each separate class into internal memory, in the following manner is specifically including but not limited to:(1)
Using height, just for low principle by the primary data cache into internal memory, so-called just low principle refers to the high position in internal memory
A high position for data is deposited, the low level of the low level storage data in internal memory, for example, initial data be 0xA5A1, wherein, A5 is height
Position, A1 is low level, and when being cached in internal memory, A1 is buffered in this position of 0x4000, and A5 is buffered in this position of 0x4001
Put, a high position is buffered in the high address of internal memory, and low level is buffered in low address;(2) the low high principle of height is by the initial data
For caching into internal memory, the low high principle of so-called height refers to the low level of the high-order storage data in internal memory, and the low level in internal memory is deposited
A high position for data is put, for example, initial data is 0xA5A1, wherein, A5 is high-order, and A1 is low level, when being cached in internal memory,
A1 is buffered in this position of 0x4001, and A5 is buffered in this position of 0x4000, and a high position is buffered in the low address of internal memory, low level
It is buffered in high address.
S503, judges whether the initial data in each separate class has updated.
In embodiments of the present invention, it is necessary to which whether the initial data detected in each separate class has updated, can pass through
Whether the initial data that the default testing mechanism in WEBUI is detected in each separate class updates, specifically, the default inspection
Survey mechanism can be the waitforupdate mechanism of VSphere in itself, and the waitforupdate mechanism can detect institute in real time
State whether the initial data in each separate class updates.
S504, if the initial data in each separate class has updated, obtain updated data in each separate class.
In embodiments of the present invention, in VCenter, the initial data of each separate class is stored in specific manager,
For example, DataCenterMO separate class is stored in data center manager, HostMO separate class is stored in host manager,
VmMO separate class is stored in virtual machine manager;Exemplified by obtaining the initial data in DataCenterMO separate class further
Illustrate, instruction can be obtained by being passed into data center manager, obtained according to be passed to acquisition instruction corresponding
Initial data.
S505, by updated data in each separate class compared with the initial data in the internal memory.
S506, if the updated data differ with the initial data in the internal memory, according to described updated
Data are updated to the initial data in the internal memory.
In embodiments of the present invention, if the map and the initial data structure in the internal memory of the updated data structure
The map built is differed, and in VCenter, is updated updated data into internal memory by waitforupdate mechanism, its
In, updated data are updated to the method in internal memory and include but is not limited in the following manner:With the data of renewal, update the data
Time as Object Creation insert sql sentences, by performing created insert sql sentences by updated data
Update in internal memory, for example, { " powerState ":{“newValue”:" POWERED_OFF ", " oldValue ":
" POWERED_ON " } }, the insertsql sentences represent to be updated to " start shooting " from " shutdown " by the state of main frame;In the mistake of renewal
Cheng Zhong, if the part initial data in internal memory is identical with updated data in each separate class, only update the portion differed
Divided data;If the initial data in internal memory differs completely with the updated data in each separate class, automatically by described in
Updated data are all write in internal memory to update the data in internal memory in each separate class.Specifically, due to the complexity of data
Degree and size of data are different, and the renewal time of the internal memory can also differ.
S507, if the updated data differ with the initial data, obtain the updated data and institute
State the variance data between initial data.
S508, the variance data is preserved into presetting database.
Those having ordinary skill in the art is appreciated that to realize all or part of flow in above-described embodiment method, is to lead to
Computer program is crossed to instruct the hardware of correlation to complete, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Referring to Fig. 6, a kind of corresponding above-mentioned update method of internal storage data, the embodiment of the present invention also propose a kind of internal memory number
According to more new terminal, the terminal 100 includes:Abstraction unit 101, first acquisition unit 102, the first judging unit 103, second are obtained
Take unit 104, comparing unit 105, updating block 106.
Wherein, the abstraction unit 101, for each component in VCenter to be abstracted into separate class.
First acquisition unit 102, for obtaining the initial data in each separate class and caching into internal memory.
First judging unit 103, for judging whether the initial data in each separate class has updated.
Second acquisition unit 104, if having been updated for the initial data in each separate class, obtain each separate class
In updated data.
Comparing unit 105, for updated data in each separate class to be entered with the initial data in the internal memory
Row compares.
Updating block 106, if being differed for the updated data with the initial data in the internal memory, according to institute
Updated data are stated to be updated the initial data in the internal memory.
As shown in fig. 7, the first acquisition unit 102, including:
Receiving unit 1021, for receiving primary data cache request.
Second judging unit 1022, for judging in the internal memory with the presence or absence of the data cached.
3rd judging unit 1023, if for the data cached, the number cached described in judgement in the internal memory be present
It is whether identical according to the initial data with being asked.
Buffer unit 1024, if being differed for the data cached with the initial data asked, by the original
Beginning, data buffer storage was into internal memory.
As shown in figure 8, the comparing unit 105, including:
3rd acquiring unit 1051, for obtaining the initial data cached in the internal memory.
Comparing subunit 1052, for according to default comparison mechanism to the updated data and the initial data
It is compared.
As shown in figure 9, the updating block 106, including:
Call unit 1061, if being differed for the updated data with the initial data, call default number
According to interface.
Writing unit 1062, for being write the updated data in the internal memory according to default data-interface.
Referring to Fig. 10, a kind of corresponding above-mentioned update method of internal storage data, the embodiment of the present invention also propose a kind of internal memory
The more new terminal of data, the terminal 200 include:Abstraction unit 201, first acquisition unit 202, the first judging unit 203, second
Acquiring unit 204, comparing unit 205, updating block 206, the 4th acquiring unit 207, storage unit 208.
Wherein, the abstraction unit 201, for each component in VCenter to be abstracted into separate class.
First acquisition unit 202, for obtaining the initial data in each separate class and caching into internal memory.
First judging unit 203, for judging whether the initial data in each separate class has updated.
Second acquisition unit 204, if having been updated for the initial data in each separate class, obtain each separate class
In updated data.
Comparing unit 205, for updated data in each separate class to be entered with the initial data in the internal memory
Row compares.
Updating block 206, if being differed for the updated data with the initial data in the internal memory, according to institute
Updated data are stated to be updated the initial data in the internal memory.
4th acquiring unit 207, if being differed for the updated data with the initial data, described in acquisition
Variance data between the data of renewal and the initial data.
Storage unit 208, for the variance data to be preserved into presetting database.
In hardware realization, above abstraction unit 101, first acquisition unit 102, the first judging unit 103, second obtain
Unit 104, comparing unit 105, updating block 106 etc. can be embedded in the form of hardware or the device independently of data processing
In, it can also be stored in a software form in the memory of data processing equipment, each list above is performed so that processor calls
Operated corresponding to first.The processor can be CPU (CPU), microprocessor, single-chip microcomputer etc..
Figure 11 is a kind of structure composition schematic diagram of the more new equipment of internal storage data of the present invention.As shown in figure 11, the equipment
500 may include:Input unit 501, output device 502, R-T unit 503, memory 504 and processor 505, wherein:
The input unit 501, for receiving the input data of outside access control device.It is in the specific implementation, of the invention
Input unit 501 described in embodiment may include keyboard, mouse, photoelectricity input unit, acoustic input dephonoprojectoscope, touch input dress
Put, scanner etc..
The output device 502, the output data for external output access control device.It is in the specific implementation, of the invention
Output device 502 described in embodiment may include display, loudspeaker, printer etc..
The R-T unit 503, for sending data to other equipment by communication link or being received from other equipment
Data.In the specific implementation, the R-T unit 503 of the embodiment of the present invention may include the transceiving devices such as radio-frequency antenna.
The memory 504, the more new procedures of internal storage data are realized for storing.The memory 504 of the embodiment of the present invention
Can be system storage, such as, volatile (such as RAM), non-volatile (such as ROM, flash memory etc.), or both
With reference to.In the specific implementation, the memory 504 of the embodiment of the present invention can also be the external memory storage outside system, such as, magnetic
Disk, CD, tape etc..
The processor 505, for running the more new procedures for realizing internal storage data stored in the memory 504, and
Perform following operation:
Each component in VCenter is abstracted into separate class;
Obtain the initial data in each separate class and cache into internal memory;
Judge whether the initial data in each separate class has updated;
If the initial data in each separate class has updated, updated data in each separate class are obtained;
By updated data in each separate class compared with the initial data in the internal memory;
If the updated data differ with the initial data in the internal memory, according to the updated data pair
Initial data in the internal memory is updated.
Further, the initial data obtained in each separate class and cache into internal memory, including:
Receive primary data cache request;
Judge in the internal memory with the presence or absence of the data cached;
If the data cached in the internal memory be present, the data cached described in judgement are with the initial data asked
It is no identical;
If the data cached differ with the initial data asked, by the primary data cache to internal memory
In.
Further, it is described to be compared updated data in each separate class with the initial data in the internal memory
Compared with, including:
Obtain the initial data cached in the internal memory;
According to default comparison mechanism to the updated data compared with the initial data.
Further, if the updated data differ with the initial data, according to described updated
Data are updated to the initial data in the internal memory, including:
If the updated data differ with the initial data, default data-interface is called;
The updated data are write in the internal memory according to default data-interface.
Further, the processor 505 also performs following operation:
If the updated data differ with the initial data, obtain the updated data with it is described original
Variance data between data;
The variance data is preserved into presetting database.
It will be understood by those skilled in the art that the embodiment of the more new equipment of the internal storage data shown in Figure 11 is not formed
The restriction specifically formed to the more new equipment of internal storage data, in other embodiments, the more new equipment of internal storage data can include
Than illustrating more or less parts, some parts or different parts arrangement are either combined.For example, in some embodiments
In, the more new equipment of internal storage data can only include memory and processor, in such embodiments, memory and processor
Structure and function it is consistent with embodiment illustrated in fig. 11, will not be repeated here.
The invention provides a kind of computer-readable recording medium, computer-readable recording medium storage has one or one
Individual procedure above, one either more than one program can by one or more than one computing device, with realize with
Lower step:
Each component in VCenter is abstracted into separate class;
Obtain the initial data in each separate class and cache into internal memory;
Judge whether the initial data in each separate class has updated;
If the initial data in each separate class has updated, updated data in each separate class are obtained;
By updated data in each separate class compared with the initial data in the internal memory;
If the updated data differ with the initial data in the internal memory, according to the updated data pair
Initial data in the internal memory is updated.
Further, the initial data obtained in each separate class and cache into internal memory, including:
Receive primary data cache request;
Judge in the internal memory with the presence or absence of the data cached;
If the data cached in the internal memory be present, the data cached described in judgement are with the initial data asked
It is no identical;
If the data cached differ with the initial data asked, by the primary data cache to internal memory
In.
Further, it is described to be compared updated data in each separate class with the initial data in the internal memory
Compared with, including:
Obtain the initial data cached in the internal memory;
According to default comparison mechanism to the updated data compared with the initial data.
Further, if the updated data differ with the initial data, according to described updated
Data are updated to the initial data in the internal memory, including:
If the updated data differ with the initial data, default data-interface is called;
The updated data are write in the internal memory according to default data-interface.
Further, the step also includes:
If the updated data differ with the initial data, obtain the updated data with it is described original
Variance data between data;
The variance data is preserved into presetting database.
The foregoing storage medium of the present invention includes:Magnetic disc, CD, read-only memory (Read-Only Memory,
ROM) or random access memory (Random Access Memory, RAM) etc. is various can be with the medium of store program codes.
Unit in all embodiments of the invention can pass through universal integrated circuit, such as CPU (Central
Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated
Circuit, application specific integrated circuit) realize.
Step in the update method of internal storage data of the embodiment of the present invention can be according to being actually needed the adjustment of carry out order, close
And and delete.
Unit in the more new terminal of internal storage data of the embodiment of the present invention can according to be actually needed merge, divide and
Delete.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced
Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain be defined.
Claims (10)
1. a kind of update method of internal storage data, it is characterised in that methods described includes:
Each component in VCenter is abstracted into separate class;
Obtain the initial data in each separate class and cache into internal memory;
Judge whether the initial data in each separate class has updated;
If the initial data in each separate class has updated, updated data in each separate class are obtained;
By updated data in each separate class compared with the initial data in the internal memory;
If the updated data differ with the initial data in the internal memory, according to the updated data to described
Initial data in internal memory is updated.
2. the method as described in claim 1, it is characterised in that the initial data and caching obtained in each separate class
Into internal memory, including:
Receive primary data cache request;
Judge in the internal memory with the presence or absence of the data cached;
If the data that have cached in the internal memory be present, judge described in the data that have cached and the initial data asked whether phase
Together;
If the data cached differ with the initial data asked, by the primary data cache into internal memory.
3. the method as described in claim 1, it is characterised in that it is described by updated data in each separate class with it is described
Initial data in internal memory is compared, including:
Obtain the initial data cached in the internal memory;
According to default comparison mechanism to the updated data compared with the initial data.
4. the method as described in claim 1, it is characterised in that if the updated data and the initial data are not
It is identical, the initial data in the internal memory is updated according to the updated data, including:
If the updated data differ with the initial data, default data-interface is called;
The updated data are write in the internal memory according to default data-interface.
5. the method as described in claim 1, it is characterised in that methods described also includes:
If the updated data differ with the initial data, the updated data and the initial data are obtained
Between variance data;
The variance data is preserved into presetting database.
6. the more new terminal of a kind of internal storage data, it is characterised in that the terminal includes:
Abstraction unit, for each component in VCenter to be abstracted into separate class;
First acquisition unit, for obtaining the initial data in each separate class and caching into internal memory;
First judging unit, for judging whether the initial data in each separate class has updated;
Second acquisition unit, if having been updated for the initial data in each separate class, in acquisition each separate class more
New data;
Comparing unit, for by updated data in each separate class compared with the initial data in the internal memory;
Updating block, if being differed for the updated data with the initial data in the internal memory, according to it is described more
New data are updated to the initial data in the internal memory.
7. terminal as claimed in claim 6, it is characterised in that the first acquisition unit, including:
Receiving unit, for receiving primary data cache request;
Second judging unit, for judging in the internal memory with the presence or absence of the data cached;
3rd judging unit, if for the data cached in the internal memory be present, the data cached described in judgement are with asking
Whether the initial data asked is identical;
Buffer unit, if being differed for the data cached with the initial data asked, the initial data is delayed
Deposit into internal memory.
8. terminal as claimed in claim 6, it is characterised in that
The comparing unit, including:
3rd acquiring unit, for obtaining the initial data cached in the internal memory;
Comparing subunit, for being compared according to default comparison mechanism with the initial data the updated data
Compared with;
The updating block, including:
Call unit, if being differed for the updated data with the initial data, call default data-interface;
Writing unit, for being write the updated data in the internal memory according to default data-interface;
The terminal, in addition to:
4th acquiring unit, if being differed for the updated data with the initial data, obtain described updated
Variance data between data and the initial data;
Storage unit, for the variance data to be preserved into presetting database.
A kind of 9. more new equipment of internal storage data, it is characterised in that including:
Memory, for storing the program for the renewal for realizing internal storage data;And
Processor, will to perform right such as running the program of the renewal for realizing internal storage data stored in the memory
Seek the method described in any one of 1-5.
10. a kind of computer-readable recording medium, it is characterised in that computer-readable recording medium storage has one or one
Procedure above, one either more than one program can such as be weighed by one or more than one computing device with realizing
Profit requires the method described in any one of 1-5.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710714568.3A CN107748749A (en) | 2017-08-18 | 2017-08-18 | A kind of update method of internal storage data, terminal, equipment and readable storage medium storing program for executing |
| PCT/CN2018/077127 WO2019033740A1 (en) | 2017-08-18 | 2018-02-24 | Memory data update method, terminal and device, and readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710714568.3A CN107748749A (en) | 2017-08-18 | 2017-08-18 | A kind of update method of internal storage data, terminal, equipment and readable storage medium storing program for executing |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107748749A true CN107748749A (en) | 2018-03-02 |
Family
ID=61255400
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710714568.3A Pending CN107748749A (en) | 2017-08-18 | 2017-08-18 | A kind of update method of internal storage data, terminal, equipment and readable storage medium storing program for executing |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107748749A (en) |
| WO (1) | WO2019033740A1 (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7761862B2 (en) * | 2003-01-16 | 2010-07-20 | International Business Machines Corporation | Externalized classloader information for application servers |
| CN103607418A (en) * | 2013-07-25 | 2014-02-26 | 上海和辰信息技术有限公司 | Large-scale data partitioning system and partitioning method based on cloud service data characteristics |
| CN104537119A (en) * | 2015-01-26 | 2015-04-22 | 浪潮通信信息系统有限公司 | Update method of cache data, data use terminal and system |
| CN106663023A (en) * | 2014-05-27 | 2017-05-10 | 威睿公司 | Grouping virtual machines in a cloud application |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7168063B2 (en) * | 2003-06-10 | 2007-01-23 | Microsoft Corporation | Systems and methods for employing tagged types in a dynamic runtime environment |
| CN103888420A (en) * | 2012-12-20 | 2014-06-25 | 中国农业银行股份有限公司广东省分行 | Virtual server system |
-
2017
- 2017-08-18 CN CN201710714568.3A patent/CN107748749A/en active Pending
-
2018
- 2018-02-24 WO PCT/CN2018/077127 patent/WO2019033740A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7761862B2 (en) * | 2003-01-16 | 2010-07-20 | International Business Machines Corporation | Externalized classloader information for application servers |
| CN103607418A (en) * | 2013-07-25 | 2014-02-26 | 上海和辰信息技术有限公司 | Large-scale data partitioning system and partitioning method based on cloud service data characteristics |
| CN106663023A (en) * | 2014-05-27 | 2017-05-10 | 威睿公司 | Grouping virtual machines in a cloud application |
| CN104537119A (en) * | 2015-01-26 | 2015-04-22 | 浪潮通信信息系统有限公司 | Update method of cache data, data use terminal and system |
Non-Patent Citations (4)
| Title |
|---|
| 何剑: "《大小端存储模式对编程的影响及对策》", 《扬州职业大学学报》 * |
| 孙娟: "基于服务质量的任务调度算法设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
| 张文雯: "《SQL Server 更新数据》", 《信息工程》 * |
| 许波等: "《云计算中虚拟机管理系统的研究与开发》", 《南京师大学报( 自然科学版)》 * |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2019033740A1 (en) | 2019-02-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2725764B1 (en) | Data storage method and data storage device | |
| US20210342354A1 (en) | Stream browser for data streams | |
| EP3451193B1 (en) | Electronic device and file data journaling method of electronic device | |
| CN113535721B (en) | Data writing method and device | |
| CN107329741A (en) | A kind of software distribution upgrade method and device based on fingerprint recognition | |
| US11934660B1 (en) | Tiered data storage with ephemeral and persistent tiers | |
| CN107479922A (en) | A kind of flash data management method, device and computer-readable recording medium | |
| US20180307847A1 (en) | Selective encoding method and electronic device using same | |
| US8935474B1 (en) | Policy based storage of object fragments in a multi-tiered storage system | |
| US20170102881A1 (en) | Point-in-time copy with chain cloning | |
| CN109740083A (en) | A kind of method and device of page jump | |
| US11543985B2 (en) | Zone segment drive management | |
| US20140359222A1 (en) | General Storage Cache Functionality Extension | |
| CN111767270A (en) | Data migration method, device, server and storage medium | |
| US11853284B2 (en) | In-place updates with concurrent reads in a decomposed state | |
| CN109271564A (en) | Declaration form querying method and equipment | |
| CN113272785A (en) | Method for mounting file system, terminal equipment and storage medium | |
| CN108108126A (en) | A kind of data processing method, device and equipment | |
| CN108304142B (en) | A data management method and device | |
| CN109597707A (en) | Clone volume data copying method, device and computer readable storage medium | |
| KR20150139017A (en) | Apparatus and method for controlling memory | |
| US20030162559A1 (en) | Mobile communications terminal, information transmitting system and information receiving method | |
| CN107748749A (en) | A kind of update method of internal storage data, terminal, equipment and readable storage medium storing program for executing | |
| CN106020616A (en) | Updating method and device for desktop quick linking icons | |
| KR20200121986A (en) | A computer program for providing space managrment for data storage in a database management system |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180302 |
|
| RJ01 | Rejection of invention patent application after publication |