CN102890646A - Data snapshot method, snapshot restoration method, relevant device and system - Google Patents

Data snapshot method, snapshot restoration method, relevant device and system Download PDF

Info

Publication number
CN102890646A
CN102890646A CN2011102006456A CN201110200645A CN102890646A CN 102890646 A CN102890646 A CN 102890646A CN 2011102006456 A CN2011102006456 A CN 2011102006456A CN 201110200645 A CN201110200645 A CN 201110200645A CN 102890646 A CN102890646 A CN 102890646A
Authority
CN
China
Prior art keywords
data
snapshot
visualized
reduction
attribute
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.)
Granted
Application number
CN2011102006456A
Other languages
Chinese (zh)
Other versions
CN102890646B (en
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.)
Huawei Technologies Co Ltd
Huawei Software Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201110200645.6A priority Critical patent/CN102890646B/en
Publication of CN102890646A publication Critical patent/CN102890646A/en
Application granted granted Critical
Publication of CN102890646B publication Critical patent/CN102890646B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a data snapshot method, a snapshot restoration method, a relevant device and a system. The data snapshot method comprises following steps of receiving a data snapshot starting message, wherein the data snapshot starting message contains target type information of a visualized data target requesting snapshot; judging whether the visualized data supports the data snapshot according to the target type information or not, and acquiring attribute data of the visualized data target if the visualized data target supports the data snapshot, wherein the attribute data contains show metadata and factual data; and storing the acquired attribute data of the visualized data target after being encapsulated. Due to adopting the technical scheme, the interconversion of the data snapshot and the visualized data target can be realized.

Description

Data snapshot method, snapshot method of reducing, relevant apparatus and system
Technical field
The present invention relates to data processing field, relate in particular to data snapshot method, snapshot method of reducing, relevant apparatus and system.
Background technology
Operation analysis system data from business operation support system (BOSS, Business Operation Support System) a plurality of up-stream systems such as, these data are processed through the processing of different technologies means, finally be converted into various types of visual informations in mutual side, so that operation analysis system utilizes these visual informations to carry out a series of ground analytic activity.
Existing SDK (Software Development Kit) (SDK based on the Flex language, Bitmap (bitmap) is provided Software Development Kit), two classes of Bitmap Data (data bitmap), can realize the snapshot sectional drawing to graph object, and be kept in the database entity table after the view data of sectional drawing is converted into binary data, but because sectional drawing is static, sectional drawing only comprises view data in fact, do not preserve business datum corresponding to graph object, interactive, expressive force is poor, and operation analysis system can't carry out the business datum analysis by the binary data that sectional drawing transforms.
Summary of the invention
The embodiment of the invention provides data snapshot method, snapshot method of reducing, relevant apparatus and system, is used for realizing the mutual conversion of data snapshot and visualized data object.
For solving the problems of the technologies described above, the embodiment of the invention provides following technical scheme:
A kind of data snapshot method comprises:
Receive data snapshot initiation message comprises the object-type information of the visualized data object of asking snapshot in the above-mentioned data snapshot initiation message;
Judge whether supported data snapshot of above-mentioned visualized data object according to above-mentioned object-type information,
If, then, obtaining above-mentioned visualized data attribute data, above-mentioned attribute data comprises and represents metadata and factual data;
The above-mentioned visualized data attribute data that get access to are encapsulated rear preservation.
A kind of snapshot method of reducing comprises:
Reception is from the snapshot reduction request message of application layer, and above-mentioned snapshot reduction request message comprises the snapshot data of asking snapshot;
Above-mentioned snapshot data is reduced, above-mentioned snapshot data is reduced to attribute data, what above-mentioned attribute data comprised the visualized data object represents metadata and factual data;
Above-mentioned attribute data is returned to above-mentioned application layer.
A kind of data snapshot device comprises:
Receiving element is used for receive data snapshot initiation message, comprises the object-type information of the visualized data object of asking snapshot in the above-mentioned data snapshot initiation message;
Judging unit is used for judging whether supported data snapshot of above-mentioned visualized data object according to above-mentioned object-type information;
Acquiring unit, be used for when the judged result of above-mentioned judging unit when being, obtain above-mentioned visualized data attribute data, above-mentioned attribute data comprises and represents metadata and factual data;
Package storage unit, the above-mentioned visualized data attribute data that are used for above-mentioned acquiring unit is got access to encapsulate rear preservation.
A kind of snapshot reduction apparatus comprises:
Receiving element is used for receiving the snapshot reduction request message from application layer, and above-mentioned snapshot reduction request message comprises the snapshot data of asking snapshot;
Reduction unit is used for above-mentioned snapshot data is reduced, and above-mentioned snapshot data is reduced to attribute data, and what above-mentioned attribute data comprised the visualized data object represents metadata and factual data;
Transmitting element is used for the attribute data of above-mentioned reduction unit reduction is returned to application layer.
A kind of data snapshot application system comprises:
Data snapshot device and snapshot reduction apparatus, wherein:
Above-mentioned data snapshot device is used for receive data snapshot initiation message, comprises the object-type information of the visualized data object of asking snapshot in the above-mentioned data snapshot initiation message; Judge whether supported data snapshot of above-mentioned visualized data object according to above-mentioned object-type information, if, then, obtaining above-mentioned visualized data attribute data, above-mentioned attribute data comprises and represents metadata and factual data; The above-mentioned visualized data attribute data that get access to are encapsulated rear preservation;
Above-mentioned snapshot reduction apparatus receives the snapshot reduction request message from application layer, and above-mentioned snapshot reduction request message comprises the snapshot data of asking snapshot; Above-mentioned snapshot data is reduced, above-mentioned snapshot data is reduced to attribute data, what above-mentioned attribute data comprised the visualized data object represents metadata and factual data; Above-mentioned attribute data is returned to above-mentioned application layer.
Therefore, the embodiment of the invention is obtained the attribute data that represents metadata and factual data that comprises the visualized data object in data snapshot, and the attribute data that gets access to encapsulated preservation, so that system can be snapshot data by the attribute data that calls above-mentioned encapsulation preservation, restore visualized data object in the data snapshot process and on the interface, represent metamorphosis and data variation, realized the mutual conversion of data snapshot and visualized data object.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Embodiment schematic flow sheet of data snapshot method that Fig. 1-a provides for the embodiment of the invention;
Fig. 1-b is that the visualized data object represents the form schematic diagram under a kind of concrete scene on the page;
Fig. 1-c is the schematic flow sheet based on the information traversing method under the data snapshot method of the embodiment of the invention;
Another embodiment schematic flow sheet of data snapshot method that Fig. 2 provides for the embodiment of the invention;
Embodiment schematic flow sheet of snapshot method of reducing that Fig. 3 provides for the embodiment of the invention;
Another embodiment schematic flow sheet of snapshot method of reducing that Fig. 4 provides for the embodiment of the invention;
Example structure schematic diagram of data snapshot device that Fig. 5 provides for the embodiment of the invention;
Example structure schematic diagram of snapshot reduction apparatus that Fig. 6 provides for the embodiment of the invention;
Example structure schematic diagram of data snapshot application system that Fig. 7 provides for the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of data snapshot method, snapshot method of reducing, relevant apparatus and system.
For so that goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, but not whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The below is described a kind of data snapshot method in the embodiment of the invention, sees also Fig. 1-a, and a kind of data snapshot method embodiment comprises in the embodiment of the invention:
101, receive data snapshot initiation message;
The object-type information that comprises the visualized data object of asking snapshot in the above-mentioned data snapshot initiation message.
In actual applications, the visualized data object for example can be post figure, pie chart, linear graph, combination chart, form, panel board, Boston Matrix or radar map etc., every kind of visualized data object is indicated by specific object-type information, when system request is carried out data snapshot to the visualized data object on certain application interface, application layer sends the data snapshot initiation message to component layer, and the object-type information of in this data snapshot initiation message, carrying this visualized data object, make the component layer that receives this data snapshot initiation message by identifying the object-type information of carrying in this data snapshot initiation message, can know the type of the visualized data object of request snapshot.
102, judge whether supported data snapshot of visualized data object according to object-type information;
After receiving above-mentioned data snapshot initiation message, component layer can be known by the object-type information of carrying in this data snapshot initiation message the type of the visualized data object of request snapshot, further judge whether supported data snapshot of this visualized data object, if, then execution in step 103, if not, execution in step 105 then.
In actual applications, can in component layer, define the high-level interface tool-class of data snapshot and snapshot reduction, with the data snapshot method of formulation visualized data object and the standard of snapshot method of reducing, simultaneously, under the standard of this high-level interface tool-class definition, set corresponding snapshot Interface realization class for dissimilar visualized data object (such as post figure, pie chart, linear graph, combination chart, form, panel board, Boston Matrix or radar map etc.), to realize data snapshot and the snapshot reduction to dissimilar visualized data object.Therefore, can be by judging the local snapshot Interface realization class that whether exists with this visualized data object dispatching, judge whether supported data snapshot of this visualized data object, if the snapshot Interface realization class of local existence and this visualized data object dispatching, then can judge this visualized data object supported data snapshot, execution in step 103, if there is not the snapshot Interface realization class with this visualized data object dispatching in this locality, then can judge not supported data snapshot of this visualized data object, execution in step 105.
103, obtain visualized data attribute data;
Wherein, above-mentioned attribute data comprises and represents metadata and factual data.
In actual applications, by in advance common data attribute and the page properties that represents form (such as post figure, pie chart, line chart, form, combination chart, radar map, Boston Matrix etc.) being defined, can form the separately metadata feature of figure, so that can obtain according to the metadata feature of predefined each figure the metadata that represents of this figure in the data snapshot process.Factual data is the result data that visual data object shows in the data snapshot process.
When component layer is judged the visualized data object supported data snapshot of request snapshot, it can call corresponding assembly, that is, with the snapshot Interface realization class of this visualized data object dispatching this visualized data object is carried out data snapshot, obtain this visualized data attribute data.
In the data snapshot process, if the user has carried out operating (as filtering the operations such as decomposition, lower brill, section) to the visualized data object on the interface, the visualized data object represent metadata and factual data may change, when the representing metadata and factual data and change of visualized data object, represent metadata and factual data with what further obtain the visualized data object that shows after the operation.Illustrate, the visualized data object of supposing the request snapshot is post figure, it is current to represent form shown in Fig. 1-b on the page, that then obtains this post figure on the current page in this step represents metadata (namely on current page represent attribute) and factual data, when the user carries out drill down operator, when clicking the lower DBMS of Xuanwu District expansion, figure will dynamically launch, that will further obtain figure after the expansion this moment represents metadata and factual data, represents metadata and comprises simultaneously the transition special efficacy kind that figure dynamically launches.
104, the visualized data attribute data that get access to are encapsulated rear preservation;
The visualized data attribute data that get access to are encapsulated rear the preservation according to predefined form, for example can adopt extend markup language (XML, eXtensible Markup Language) preserves after the visualized data attribute data encapsulation that gets access to being become the snapshot data of XML form, further, snapshot data after also can adopting snapshot identifier to encapsulation carries out unique identification, to distinguish different snapshot datas.
In the data snapshot process, the user may operate the visualized data object and (as filter decomposition, lower brill, the operations such as section), operation along with the user, the visualized data attribute data that step 103 gets access to may change, therefore, in actual applications, this step can be before the user carries out next operation, the visualized data attribute data that get access to are encapsulated first preservation, perhaps, also can be when receiving data snapshot and stop message, disposable will shining soon from log-on data receives this data snapshot and stops all properties data that message gets access in this time period and encapsulate rear preservation, is not construed as limiting herein.
105, end data snapshot flow process;
When the visualized data object of judging the request snapshot in the step 102 not during the supported data snapshot, end data snapshot flow process, further, this visualized data object of exportable indication warning information of supported data snapshot not also.This warning information can be literal, figure, audio frequency etc., is not construed as limiting herein.
Need to prove, data snapshot method based on the embodiment of the invention, in actual applications, the visualized data attribute data (being snapshot data) that encapsulation is preserved can be pushed to other application platform, realize cross-platform real-time information transmission or the workflow of cross-system.Illustrate, shown in Fig. 1-c, suppose in using A, to find valuable (being shared such as a unusual or hope) visualized data object, can initiate the data snapshot that the data snapshot flow process intercepts this visualized data object this moment, and select to wish that (the present embodiment provides the information of dual mode to pass through for mode that this data snapshot is used, a kind of is point-to-point information pushing, can in the structured message that pushes, add the descriptor of this visualized data object, select one or more propelling movement people; Another kind is that workflow is initiated mode, the working template that i.e. selection pre-sets, with the initiation item of this data snapshot as flow process), the structuring that will comprise this data snapshot is passed through information exchange and is crossed information and pass through the receiving end that server push is delivered to intended application, namely uses B.
Therefore, the embodiment of the invention is obtained the attribute data that represents metadata and factual data that comprises the visualized data object in data snapshot, and the attribute data that gets access to encapsulated preservation, so that system can be snapshot data by the attribute data that calls above-mentioned encapsulation preservation, restore visualized data object in the data snapshot process and on the interface, represent metamorphosis and data variation, realized the mutual conversion of data snapshot and visualized data object.
The below is described the data snapshot method in the embodiment of the invention take the reciprocal process of application layer and component layer as example, sees also Fig. 2, and another embodiment of data snapshot method comprises in the embodiment of the invention:
201, application layer sends the data snapshot initiation message to component layer;
The object-type information that comprises the visualized data object of asking snapshot in the above-mentioned data snapshot initiation message.
In actual applications, the visualized data object for example can be post figure, pie chart, linear graph, combination chart, form, panel board, Boston Matrix or radar map etc., every kind of visualized data object is indicated by specific object-type information, when system request is carried out data snapshot to the visualized data object on certain application interface, can initiate the data snapshot flow process by the data snapshot button of clicking on the application interface, this moment, application layer sent the data snapshot initiation message to component layer, and the object-type information of in this data snapshot initiation message, carrying this visualized data object, make the component layer that receives this data snapshot initiation message by identifying the object-type information of carrying in this data snapshot initiation message, can know the type of the visualized data object of request snapshot.
202, component layer is judged whether supported data snapshot of this visualized data object;
After receiving above-mentioned data snapshot initiation message, component layer can be known by the object-type information of carrying in this data snapshot initiation message the type of visualized data object of request snapshot, further judges whether supported data snapshot of this visualized data object.
In actual applications, can in component layer, define the high-level interface tool-class of data snapshot and snapshot reduction, with the data snapshot method of formulation visualized data object and the standard of snapshot method of reducing, simultaneously, under the standard of this high-level interface tool-class definition, set corresponding snapshot Interface realization class for dissimilar visualized data object (such as post figure, pie chart, linear graph, combination chart, form, panel board, Boston Matrix or radar map etc.), to realize data snapshot and the snapshot reduction to dissimilar visualized data object.Therefore, can be by judging the local snapshot Interface realization class that whether exists with this visualized data object dispatching, judge whether supported data snapshot of this visualized data object, if do not support, then execution in step 203, if support, then execution in step 204.
203, to application layer outputting alarm information, end data snapshot flow process;
The visualized data object of judging the request snapshot when component layer is during the supported data snapshot, to this visualized data object of application layer output indication warning information of supported data snapshot not, end data snapshot flow process.This warning information can be literal, figure, audio frequency etc., is not construed as limiting herein.
204, component layer log-on data snapshot obtains visualized data attribute data;
When component layer is judged the visualized data object supported data snapshot of request snapshot, it can call corresponding assembly, namely, with the snapshot Interface realization class of this visualized data object dispatching this visualized data object is carried out data snapshot, obtain these visualized data attribute data on the application layer applications interface, wherein, attribute data comprises and represents metadata and factual data.
In the data snapshot process, if having carried out operating to the visualized data object, the user (as filters decomposition on the interface, lower brill, the operations such as section), the visualized data object represent metadata and factual data may change, when the representing metadata and factual data and change of visualized data object, what component layer will further be obtained the visualized data object that shows after the operation represents metadata and factual data, represent the transition special efficacy kind of the metamorphosis that comprises front and rear-viewedization of operation data object in the metadata, decompose as filtering, lower brill, section etc.
205, application layer stops message to component layer transmission data snapshot;
Application layer sends data snapshot to component layer and stops message, stops this data snapshot flow process.
206, the attribute data that gets access to is encapsulated rear preservation; ,
When component layer receives data snapshot from application layer and stops message, stop execution in step 204, to shine soon from log-on data and receive data snapshot and stop visualized data attribute data that message getting access in this time period and preserve after according to predefined form encapsulation, preserve after for example can adopting XML the visualized data attribute data encapsulation that gets access to be become the snapshot data of XML form, further, snapshot data after also can adopting snapshot identifier to encapsulation carries out unique identification, to distinguish the different snapshot datas of preserving.
Further, component layer also can report preservation state information to application layer, the preservation state of indication snapshot data (as successfully preserving or preserve the state that unsuccessfully waits).
Therefore, the embodiment of the invention is obtained the attribute data that represents metadata and factual data that comprises the visualized data object in data snapshot, and the attribute data that gets access to encapsulated preservation, so that system can be snapshot data by the attribute data that calls above-mentioned encapsulation preservation, restore visualized data object in the data snapshot process and on the interface, represent metamorphosis and data variation, realized the mutual conversion of data snapshot and visualized data object.
The below is described a kind of snapshot method of reducing in the embodiment of the invention, sees also Fig. 3, and a kind of snapshot method of reducing embodiment comprises in the embodiment of the invention:
301, reception is from the snapshot reduction request message of application layer;
Wherein, this snapshot reduction request message comprises the snapshot data of asking snapshot.
The encapsulation format of above-mentioned snapshot data for example can be the XML form.
Under a kind of application scenarios, every part of snapshot data can be identified by different snapshot identifiers, snapshot identifier is corresponding one by one with snapshot data, to distinguish different snapshot datas, application layer can be chosen the snapshot data that needs reduction from the snapshot data of preserving, initiate snapshot reduction request message to component layer, concrete, can comprise the steps A1~A4 before the step 301:
A1. receive the snapshot data list request message from application layer.
A2. return the snapshot data tabulation to above-mentioned application layer,
When component layer receives the snapshot data list request message of application layer, return the snapshot data tabulation to application layer, wherein, the snapshot data tabulation can comprise the snapshot identifier of local all snapshot datas of preserving, perhaps also can be the snapshot identifier of the local part snapshot data of preserving, be not construed as limiting herein.
A3. receive the snapshot data request message from above-mentioned application layer;
Application layer can be chosen the snapshot identifier of the snapshot data that needs reduction from the snapshot data tabulation that component layer is returned, be carried in the snapshot data request message and send to component layer.
A4. the snapshot data corresponding with the snapshot identifier that comprises in the snapshot data request message returned to this application layer;
Component layer can return to application layer with the snapshot data corresponding with the snapshot identifier that comprises in the snapshot data request message, so that application layer determines whether and will the snapshot data that component layer is returned be reduced after receiving the snapshot data request message.
302, above-mentioned snapshot data is reduced;
When receiving above-mentioned snapshot reduction request message, component layer is reduced to the snapshot data in the above-mentioned snapshot reduction request message, restores visualized data attribute data, and wherein, attribute data comprises and represents metadata and factual data;
In actual applications, can in component layer, define the high-level interface tool-class of data snapshot and snapshot reduction, with the data snapshot method of formulation visualized data object and the standard of snapshot method of reducing, simultaneously, under the standard of this high-level interface tool-class definition, set corresponding snapshot Interface realization class for dissimilar visualized data object (such as post figure, pie chart, linear graph, combination chart, form, panel board, Boston Matrix or radar map etc.), to realize data snapshot and the snapshot reduction to dissimilar visualized data object.In actual applications, can be by calling corresponding reduction assembly, that is, the snapshot Interface realization adaptive with the snapshot data that receives comes this snapshot data is reduced.
Under a kind of application scenarios, can be before snapshot data be reduced, judge the local snapshot reduction of whether supporting this snapshot data, if support, just execution in step 303 if do not support, then finishes this snapshot reduction flow process, further, also this snapshot data of exportable indication is not supported the warning information that snapshot reduces.Concrete, can be by judging the local snapshot Interface realization class adaptive with this snapshot data that whether exist, judge the local snapshot reduction of supporting above-mentioned snapshot data, when there be the snapshot Interface realization class adaptive with this snapshot data in this locality, can judge the local snapshot reduction of supporting this snapshot data, when there be not the snapshot Interface realization class adaptive with this snapshot data in this locality, can judge the local snapshot reduction of not supporting this snapshot data.
303, the attribute data that restores is returned to above-mentioned application layer;
After the reduction of finishing snapshot data, the visualized data attribute data that restore are returned to above-mentioned application layer, so that application layer is utilized the above-mentioned visualized data attribute data of returning to carry out webpage representation, Page Template setting or generated report etc.
Therefore, the embodiment of the invention is obtained the attribute data that represents metadata and factual data that comprises the visualized data object in data snapshot, and the attribute data that gets access to encapsulated preservation, so that system can be snapshot data by the attribute data that calls above-mentioned encapsulation preservation, restore visualized data object in the data snapshot process and on the interface, represent metamorphosis and data variation, realized the mutual conversion of data snapshot and visualized data object.
The below is described the snapshot method of reducing in the embodiment of the invention take the reciprocal process of application layer and component layer as example, sees also Fig. 4, and another embodiment of snapshot method of reducing comprises in the embodiment of the invention:
401, application layer sends the snapshot data list request message to component layer.
402, component layer is returned the snapshot data tabulation to application layer;
The tabular form of this snapshot data tabulation for example can be tree structure, and the snapshot data tabulation can comprise the snapshot identifier of local all snapshot datas of preserving, perhaps also can be the snapshot identifier of the local part snapshot data of preserving, and is not construed as limiting herein.
403, application layer sends the snapshot data request message to component layer;
Carry the snapshot identifier of the snapshot data of request reduction in this snapshot data request message.
404, component layer is returned snapshot data to application layer;
Component layer can return to application layer with the snapshot data corresponding with the snapshot identifier that comprises in the snapshot data request message after receiving the snapshot data request message.
405, application layer sends snapshot reduction request message to component layer;
Application layer can send snapshot reduction request message to component layer after affirmation is reduced to the snapshot data that receives, and carries the snapshot data of request snapshot in snapshot reduction request message.
406, component layer is judged the local snapshot reduction of whether supporting this snapshot data;
Component layer is judged the local snapshot reduction of whether supporting this snapshot data, concrete, component layer can be by judging the local snapshot Interface realization class adaptive with this snapshot data that whether exist, judge the local snapshot reduction of supporting above-mentioned snapshot data, if there be not the snapshot Interface realization class adaptive with this snapshot data in this locality, then can judge the local snapshot reduction of not supporting this snapshot data, execution in step 407, if the snapshot Interface realization class that local existence is adaptive with this snapshot data, then can judge the local snapshot reduction of supporting this snapshot data, execution in step 408.
407, to application layer outputting alarm information, finish snapshot reduction flow process;
The visualized data object of judging the request snapshot when component layer during the supported data snapshot, is not supported the warning information of snapshot reduction to this snapshot data of application layer output indication, finish snapshot reduction flow process.This warning information can be literal, figure, audio frequency etc., is not construed as limiting herein.
408, above-mentioned snapshot data is reduced;
Component layer is reduced to the snapshot data in the above-mentioned snapshot reduction request message, restores visualized data attribute data, and wherein, attribute data comprises and represents metadata and factual data;
In actual applications, can in component layer, define the high-level interface tool-class of data snapshot and snapshot reduction, with the data snapshot method of formulation visualized data object and the standard of snapshot method of reducing, simultaneously, under the standard of this high-level interface tool-class definition, set corresponding snapshot Interface realization class for dissimilar visualized data object (such as post figure, pie chart, linear graph, combination chart, form, panel board, Boston Matrix or radar map etc.), to realize data snapshot and the snapshot reduction to dissimilar visualized data object.
409, component layer returns to above-mentioned application layer with the attribute data that restores;
After the reduction of finishing snapshot data, the visualized data attribute data that restore are returned to above-mentioned application layer, so that application layer is utilized the above-mentioned visualized data attribute data of returning to carry out webpage representation, Page Template setting or generated report etc.
Therefore, the embodiment of the invention is obtained the attribute data that represents metadata and factual data that comprises the visualized data object in data snapshot, and the attribute data that gets access to encapsulated preservation, so that system can be snapshot data by the attribute data that calls above-mentioned encapsulation preservation, restore visualized data object in the data snapshot process and on the interface, represent metamorphosis and data variation, realized the mutual conversion of data snapshot and visualized data object.
The below is described a kind of data snapshot device in the embodiment of the invention, sees also Fig. 5, and a kind of data snapshot device 500 comprises in the embodiment of the invention:
Receiving element 501 is used for receive data snapshot initiation message, wherein, comprises the object-type information of the visualized data object of asking snapshot in the data snapshot initiation message;
In actual applications, the visualized data object is such as being post figure, pie chart, linear graph, combination chart, form, panel board, Boston Matrix or radar map etc., and every kind of visualized data object is indicated by specific object-type information.
Judging unit 502, the object-type information that the data snapshot initiation message that is used for receiving according to receiving element 501 comprises are judged whether supported data snapshot of the visualized data object corresponding with this object-type information;
In actual applications, judging unit 502 can be by judging the local snapshot Interface realization class that whether exists with this visualized data object dispatching, judge whether supported data snapshot of this visualized data object, if the snapshot Interface realization class of local existence and this visualized data object dispatching, then can judge this visualized data object supported data snapshot, trigger acquiring unit 503.
Acquiring unit 503, be used for when the judged result of judging unit 502 when being, obtain visualized data attribute data, wherein, attribute data comprises and represents metadata and factual data;
In actual applications, by in advance common data attribute and the page properties that represents form (such as post figure, pie chart, line chart, form, combination chart, radar map, Boston Matrix etc.) being defined, can form the separately metadata feature of figure, so that can obtain according to the metadata feature of predefined each figure the metadata that represents of this figure in the data snapshot process.Factual data is the result data that visual data object shows in the data snapshot process.
When judging unit 502 is judged the visualized data object supported data snapshot of request snapshot, acquiring unit 503 can call corresponding assembly, namely, with the snapshot Interface realization class of this visualized data object dispatching this visualized data object is carried out data snapshot, obtain this visualized data attribute data.
In the data snapshot process, if the user has carried out operating (as filtering the operations such as decomposition, lower brill, section) to the visualized data object on the interface, the visualized data object represent metadata and factual data may change, when the representing metadata and factual data and change of visualized data object, what acquiring unit 503 will further obtain the visualized data object that shows after the operation represents metadata and factual data.
In actual applications, receiving element 501 also stops message for the receive data snapshot;
When receiving element 501 received above-mentioned data snapshot and stops message, acquiring unit 503 stopped to obtain above-mentioned visualized data attribute data.
Package storage unit 504, the visualized data attribute data that are used for acquiring unit 503 is got access to encapsulate rear preservation.
Package storage unit 504 is preserved after the visualized data attribute data that get access to are encapsulated according to predefined form, preserve after for example can adopting XML the visualized data attribute data encapsulation that gets access to be become the snapshot data of XML form, further, snapshot data after also can adopting snapshot identifier to encapsulation carries out unique identification, to distinguish different snapshot datas.
In the data snapshot process, the user may operate the visualized data object and (as filter decomposition, lower brill, the operations such as section), operation along with the user, the visualized data attribute data that acquiring unit 503 gets access to may change, therefore, in actual applications, package storage unit 504 can be before the user carries out next operation, the visualized data attribute data that acquiring unit 503 is got access to encapsulate first preservation, perhaps, also can be when receiving element 501 receives data snapshot and stops message, disposable acquiring unit 503 is shone soon from log-on data receives this data snapshot and stops all properties data that message gets access in this time period and encapsulate rear preservation, is not construed as limiting herein.
In actual applications, data snapshot device 500 also can comprise output unit, and during the supported data snapshot, the not warning information of supported data snapshot of this visualized data object is not indicated in output to the visualized data object that is used for judging the request snapshot when judging unit 502.
Need to prove, the data snapshot device 500 of the present embodiment can be such as the component layer in the above-mentioned data snapshot embodiment of the method, can be used for realizing whole technical schemes of above-mentioned data snapshot embodiment of the method, the function of its each functional module can be according to the method specific implementation in the above-mentioned data snapshot embodiment of the method, its specific implementation process can with reference to the associated description in above-described embodiment, repeat no more herein.
The below is described a kind of snapshot reduction apparatus in the embodiment of the invention, sees also Fig. 6, and a kind of snapshot reduction apparatus 600 comprises in the embodiment of the invention:
Receiving element 601 is used for receiving the snapshot reduction request message from application layer;
Wherein, above-mentioned snapshot reduction request message comprises the snapshot data of asking snapshot, and the encapsulation format of snapshot data for example can be the XML form.
Reduction unit 602, the snapshot data that is used for receiving element 601 is received reduces, and this snapshot data is reduced to attribute data;
What above-mentioned attribute data comprised the visualized data object represents metadata and factual data.In actual applications, reduction unit specifically can be by calling corresponding reduction assembly, that is, the snapshot Interface realization adaptive with the snapshot data that receives reduces to this snapshot data.
Under a kind of application scenarios, data snapshot device 600 also can comprise judging unit, is used for before 602 pairs of snapshot datas of reduction unit reduce, and judges the local snapshot reduction of whether supporting this snapshot data, if support, then triggers reduction unit 602.Concrete, judging unit can be by judging the local snapshot Interface realization class adaptive with this snapshot data that whether exist, judge the local snapshot reduction of supporting above-mentioned snapshot data, when this locality exists with the adaptive snapshot Interface realization class of this snapshot data, can judge the local snapshot reduction of supporting this snapshot data, when this locality does not exist with the adaptive snapshot Interface realization class of this snapshot data, can judge the local snapshot reduction of not supporting this snapshot data.
Transmitting element 603 is used for the attribute data of reduction unit 602 reduction is returned to application layer.
After the reduction of finishing snapshot data, transmitting element 603 returns to above-mentioned application layer with the visualized data attribute data that restore, so that the visualized data attribute data that the application layer utilization is returned are carried out webpage representation, Page Template setting or generated report etc.
Under a kind of application scenarios, every part of snapshot data can be identified by different snapshot identifiers, and snapshot identifier is corresponding one by one with snapshot data, to distinguish different snapshot datas.Receiving element 601 also can be used for receiving the snapshot data list request message from application layer; Transmitting element 603 can be when receiving element 601 receives above-mentioned snapshot data list request message, return the snapshot data tabulation to application layer, wherein, the snapshot data tabulation can comprise the snapshot identifier of local all snapshot datas of preserving, perhaps also can be the snapshot identifier of the local part snapshot data of preserving, be not construed as limiting herein; Receiving element 601 also can be used for receiving the snapshot data request message from application layer, and this snapshot data request message comprises above-mentioned snapshot identifier; When transmitting element also is used in receiving element 601 and receives above-mentioned snapshot data request message, the snapshot data corresponding with the snapshot identifier that this snapshot data request message comprises returned to application layer.
Under a kind of application scenarios, data snapshot device 600 also can comprise output unit, be used for when above-mentioned judgment unit judges goes out the local snapshot reduction of not supporting the snapshot data that receiving element 601 receives, this snapshot data of output indication is not supported the warning information that snapshot reduces.
Need to prove, the snapshot reduction apparatus 600 of the present embodiment can be such as the component layer among the above-mentioned snapshot method of reducing embodiment, can be used for realizing whole technical schemes of above-mentioned snapshot method of reducing embodiment, the function of its each functional module can be according to the method specific implementation in the above-mentioned data snapshot embodiment of the method, its specific implementation process can with reference to the associated description in above-described embodiment, repeat no more herein.
The below is described a kind of data snapshot application system in the embodiment of the invention, sees also Fig. 7, and data snapshot application system 700 comprises:
Data snapshot device 701 and snapshot reduction apparatus 702;
Wherein, data snapshot device 701 can with Fig. 5 in data snapshot device 500 similar, repeat no more herein; Snapshot reduction apparatus 702 can with Fig. 6 in snapshot reduction apparatus 600 similar, repeat no more herein.
The those skilled in the art can be well understood to, and is the convenience described and succinct, the system of foregoing description, and the specific works process of device and unit can with reference to the corresponding process among the preceding method embodiment, not repeat them here.
In several embodiment that the application provides, should be understood that, disclosed system, apparatus and method can realize by another way.For example, device embodiment described above only is schematic, for example, the division of described unit, only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, the shown or coupling each other discussed or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
Described unit as separating component explanation can or can not be physically to separate also, and the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of unit to realize the purpose of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing unit, also can be that the independent physics of unit exists, and also can be integrated in the unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding, part or all or part of of this technical scheme that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out all or part of step of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), the various media that can be program code stored such as random access memory (RAM, Random Access Memory), magnetic disc or CD.
Above a kind of data snapshot method provided by the present invention, snapshot method of reducing, relevant apparatus and system are described in detail, for one of ordinary skill in the art, thought according to the embodiment of the invention, all will change in specific embodiments and applications, to sum up, this description should not be construed as limitation of the present invention.

Claims (27)

1. a data snapshot method is characterized in that, comprising:
Receive data snapshot initiation message comprises the object-type information of the visualized data object of asking snapshot in the described data snapshot initiation message;
Judge whether supported data snapshot of described visualized data object according to described object-type information,
If, then, obtaining described visualized data attribute data, described attribute data comprises and represents metadata and factual data;
The described visualized data attribute data that get access to are encapsulated rear preservation.
2. method according to claim 1 is characterized in that,
Described judge described visualized data object whether the step of supported data snapshot comprise:
Whether judgement this locality exists the snapshot Interface realization class with described visualized data object dispatching,
If then judge described visualized data object supported data snapshot;
If not, then judge not supported data snapshot of described visualized data object.
3. method according to claim 2 is characterized in that,
The described step of obtaining described visualized data attribute data is specially:
Call with the snapshot Interface realization class of described visualized data object dispatching and obtain described visualized data attribute data.
4. according to claim 1 to 3 each described methods, it is characterized in that,
The step that the described described visualized data attribute data that will get access to encapsulate rear preservation comprises before:
The receive data snapshot stops message;
The step that the described described visualized data attribute data that will get access to encapsulate rear preservation comprises:
To shine soon from log-on data and receive described data snapshot and stop the described visualized data attribute data that message gets access in this time period and encapsulate rear preservation.
5. method according to claim 4 is characterized in that,
The step that the described described visualized data attribute data that will get access to encapsulate rear preservation comprises:
The described visualized data attribute data encapsulation that adopts expandable mark language XML to get access to becomes the snapshot data of XML form;
Preserve described snapshot data.
6. method according to claim 5 is characterized in that,
The step of the described snapshot data of described preservation also comprises:
Adopt snapshot identifier that described snapshot data is carried out unique identification.
7. according to claim 1 to 3 each described methods, it is characterized in that,
The step of described end data snapshot flow process also comprises:
The described visualized data object of output indication is the warning information of supported data snapshot not.
8. a snapshot method of reducing is characterized in that, comprising:
Reception is from the snapshot reduction request message of application layer, and described snapshot reduction request message comprises the snapshot data of asking snapshot;
Described snapshot data is reduced, described snapshot data is reduced to attribute data, what described attribute data comprised the visualized data object represents metadata and factual data;
Described attribute data is returned to described application layer.
9. method according to claim 8 is characterized in that,
Comprise before the step of described reception from the snapshot reduction request message of application layer:
Reception is from the snapshot data list request message of application layer;
Return the snapshot data tabulation to described application layer, described snapshot data tabulation comprises snapshot identifier, and described snapshot identifier is corresponding one by one with snapshot data;
Reception is from the snapshot data request message of described application layer, and described snapshot data request message comprises described snapshot identifier;
The snapshot data corresponding with the snapshot identifier that described snapshot data request message comprises returned to described application layer.
10. according to claim 8 or 9 described methods, it is characterized in that,
The described step that described snapshot data is reduced comprises before:
Judge the local snapshot reduction of whether supporting described snapshot data,
If then described snapshot data is reduced.
11. method according to claim 10 is characterized in that,
Whether described this locality supports the step of the snapshot reduction of described snapshot data to comprise:
Judge the local snapshot Interface realization class adaptive with described snapshot data that whether exist,
If then judge the local snapshot reduction of supporting described snapshot data;
If not, then judge the local snapshot reduction of not supporting described snapshot data.
12. method according to claim 11 is characterized in that,
The described step that described snapshot data is reduced comprises:
Call with the adaptive snapshot Interface realization class of described snapshot data to come described snapshot data is reduced.
13. method according to claim 12 is characterized in that,
The encapsulation format of described snapshot data is the expandable mark language XML form.
14. method according to claim 10 is characterized in that,
The step of described end snapshot data reduction flow process comprises:
The described snapshot data of output indication is not supported the warning information of snapshot reduction.
15. a data snapshot device is characterized in that, comprising:
Receiving element is used for receive data snapshot initiation message, comprises the object-type information of the visualized data object of asking snapshot in the described data snapshot initiation message;
Judging unit is used for judging whether supported data snapshot of described visualized data object according to described object-type information;
Acquiring unit, be used for when the judged result of described judging unit when being, obtain described visualized data attribute data, described attribute data comprises and represents metadata and factual data;
Package storage unit, the described visualized data attribute data that are used for described acquiring unit is got access to encapsulate rear preservation.
16. device according to claim 15 is characterized in that,
Described judging unit specifically is used for judging the local snapshot Interface realization class that whether exists with described visualized data object dispatching according to described object-type information,
If then judge described visualized data object supported data snapshot;
If not, then judge not supported data snapshot of described visualized data object.
17. device according to claim 16 is characterized in that,
Described acquiring unit specifically is used for calling with the snapshot Interface realization class of described visualized data object dispatching and obtaining described visualized data attribute data when described judgment unit judges goes out described visualized data object supported data snapshot.
18. to 17 each described devices, it is characterized in that according to claim 15,
Described receiving element also is used for the receive data snapshot and stops message;
Described acquiring unit is used for stopping to obtain described visualized data attribute data when described receiving element receives described data snapshot and stops message;
Described package storage unit specifically is used for: described acquiring unit is shone soon from log-on data receive described data snapshot and stop the described visualized data attribute data that message gets access in this time period and encapsulate rear preservation.
19. device according to claim 18 is characterized in that,
Described package storage unit specifically is used for: the described visualized data attribute data encapsulation that adopts expandable mark language XML that described acquiring unit is got access to becomes the snapshot data of XML form; Preserve described snapshot data.
20. to 17 each described devices, it is characterized in that according to claim 15,
Also comprise:
Output unit is used for going out described visualized data object not during the supported data snapshot when described judgment unit judges, and the not warning information of supported data snapshot of described visualized data object is indicated in output.
21. a snapshot reduction apparatus is characterized in that, comprising:
Receiving element is used for receiving the snapshot reduction request message from application layer, and described snapshot reduction request message comprises the snapshot data of asking snapshot;
Reduction unit is used for described snapshot data is reduced, and described snapshot data is reduced to attribute data, and what described attribute data comprised the visualized data object represents metadata and factual data;
Transmitting element is used for the attribute data of described reduction unit reduction is returned to application layer.
22. device according to claim 21 is characterized in that,
Described receiving element also is used for receiving the snapshot data list request message from application layer;
Described transmitting element also is used for returning the snapshot data tabulation to described application layer when described receiving element receives described snapshot data list request message, and described snapshot data tabulation comprises snapshot identifier, and described snapshot identifier is corresponding one by one with snapshot data;
Described receiving element also is used for receiving the snapshot data request message from described application layer, and described snapshot data request message comprises described snapshot identifier;
Described transmitting element also is used for when described receiving element receives described snapshot data request message the snapshot data corresponding with the snapshot identifier that described snapshot data request message comprises being returned to described application layer.
23. according to claim 21 or 22 described devices, it is characterized in that,
Also comprise: judging unit is used for judging the local snapshot reduction of whether supporting described snapshot data;
Described reduction unit specifically is used for: when described judgment unit judges goes out described snapshot data and supports the snapshot reduction, described snapshot data is reduced, described snapshot data is reduced to attribute data, described attribute data comprises and represents metadata and factual data.
24. device according to claim 23 is characterized in that,
Described judging unit specifically is used for: judge the local snapshot Interface realization class adaptive with described snapshot data that whether exist, if then judge the local snapshot reduction of supporting described snapshot data; If not, then judge the local snapshot reduction of not supporting described snapshot data.
25. device according to claim 24 is characterized in that,
Described reduction unit is specifically by calling with the adaptive snapshot Interface realization class of described snapshot data to come described snapshot data is reduced.
26. device according to claim 23 is characterized in that,
Also comprise: output unit, be used for when described judgment unit judges goes out the local snapshot reduction of not supporting described snapshot data, the described snapshot data of output indication is not supported the warning information that snapshot reduces.
27. a data snapshot application system is characterized in that, comprising:
Data snapshot device and snapshot reduction apparatus, wherein:
Described data snapshot device is used for receive data snapshot initiation message, comprises the object-type information of the visualized data object of asking snapshot in the described data snapshot initiation message; Judge whether supported data snapshot of described visualized data object according to described object-type information, if, then, obtaining described visualized data attribute data, described attribute data comprises and represents metadata and factual data; The described visualized data attribute data that get access to are encapsulated rear preservation;
Described snapshot reduction apparatus receives the snapshot reduction request message from application layer, and described snapshot reduction request message comprises the snapshot data of asking snapshot; Described snapshot data is reduced, described snapshot data is reduced to attribute data, what described attribute data comprised the visualized data object represents metadata and factual data; Described attribute data is returned to described application layer.
CN201110200645.6A 2011-07-18 2011-07-18 Data snapshot method, snapshot restoration, relevant apparatus and system Expired - Fee Related CN102890646B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110200645.6A CN102890646B (en) 2011-07-18 2011-07-18 Data snapshot method, snapshot restoration, relevant apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110200645.6A CN102890646B (en) 2011-07-18 2011-07-18 Data snapshot method, snapshot restoration, relevant apparatus and system

Publications (2)

Publication Number Publication Date
CN102890646A true CN102890646A (en) 2013-01-23
CN102890646B CN102890646B (en) 2016-03-30

Family

ID=47534154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110200645.6A Expired - Fee Related CN102890646B (en) 2011-07-18 2011-07-18 Data snapshot method, snapshot restoration, relevant apparatus and system

Country Status (1)

Country Link
CN (1) CN102890646B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030182301A1 (en) * 2002-03-19 2003-09-25 Hugo Patterson System and method for managing a plurality of snapshots
US20060106878A1 (en) * 2004-11-17 2006-05-18 Hidehisa Shitomi System and method for creating an object-level snapshot in a storage system
US20080140623A1 (en) * 2006-12-11 2008-06-12 Microsoft Corporation Recursive reporting via a spreadsheet
CN101777014A (en) * 2010-02-03 2010-07-14 华为终端有限公司 Backup processing method and device
US20110161299A1 (en) * 2009-12-31 2011-06-30 Anand Prahlad Systems and methods for performing data management operations using snapshots

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030182301A1 (en) * 2002-03-19 2003-09-25 Hugo Patterson System and method for managing a plurality of snapshots
US20060106878A1 (en) * 2004-11-17 2006-05-18 Hidehisa Shitomi System and method for creating an object-level snapshot in a storage system
US20080140623A1 (en) * 2006-12-11 2008-06-12 Microsoft Corporation Recursive reporting via a spreadsheet
US20110161299A1 (en) * 2009-12-31 2011-06-30 Anand Prahlad Systems and methods for performing data management operations using snapshots
CN101777014A (en) * 2010-02-03 2010-07-14 华为终端有限公司 Backup processing method and device

Also Published As

Publication number Publication date
CN102890646B (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN1713180B (en) Combining multidimensional expressions and data mining extensions to mine OLAP cubes
CN109542997B (en) Motion trail display method and device
WO2017222898A1 (en) Workflow visualization platform
CN101102565B (en) A processing method, device and equipment of user data in communication terminal
US10922361B2 (en) Identifying and structuring related data
WO2014145084A1 (en) Methods for managing applications using semantic modeling and tagging and devices thereof
CN105787077A (en) Data synchronizing method and device
CN104899225A (en) Object relational mapping method and device as well as processor
CN102467414A (en) State machine control method, device and state machine system
CN102436498A (en) Report form generating method and relative device
CN102812427A (en) Unlocking method of terminal device and terminal device
CN103714141A (en) Information pushing method and device
CN104516794A (en) Database document backup method, device and system
CN105227347A (en) A kind of general O&M method for supervising and O&M supervisory control system
CN102982049A (en) Methods and systems for implementing email recipient templates
CN104750872A (en) Method and device for searching service object
CN103076955A (en) Method, device and terminal for adjusting characters of application
CN105491078A (en) Data processing method and device in SOA system, and SOA system
CN103135988B (en) Data processing method and system
AU2014203425B2 (en) Social workflow engine
CN103098055A (en) Recursive navigation in mobile customer relations management
CN102890646A (en) Data snapshot method, snapshot restoration method, relevant device and system
US10360234B2 (en) Recursive extractor framework for forensics and electronic discovery
CN114675931A (en) Resource monitoring method and monitoring device for integrated platform instance
CN102708144B (en) Method and device for information processing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160330

Termination date: 20170718