CN102890646B - Data snapshot method, snapshot restoration, relevant apparatus and system - Google Patents

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

Info

Publication number
CN102890646B
CN102890646B CN201110200645.6A CN201110200645A CN102890646B CN 102890646 B CN102890646 B CN 102890646B CN 201110200645 A CN201110200645 A CN 201110200645A CN 102890646 B CN102890646 B CN 102890646B
Authority
CN
China
Prior art keywords
snapshot
data
visualized
attribute
data object
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.)
Expired - Fee Related
Application number
CN201110200645.6A
Other languages
Chinese (zh)
Other versions
CN102890646A (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
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

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of data snapshot method, snapshot restoration, relevant apparatus and system.Wherein, a kind of data snapshot method comprises: receive data snapshot initiation message, comprises the object-type information of the visualized data object of request snapshot in described data snapshot initiation message; Judge described visualized data object whether supported data snapshot according to described object-type information, if so, then, obtain the attribute data of described visualized data object, described attribute data comprises and represents metadata and factual data; The attribute data of the described visualized data object got is carried out encapsulating rear preservation.Technical scheme provided by the invention can realize the mutual conversion of data snapshot and visualized data object.

Description

Data snapshot method, snapshot restoration, relevant apparatus and system
Technical field
The present invention relates to data processing field, particularly relate to data snapshot method, snapshot restoration, relevant apparatus and system.
Background technology
Operation analysis system data from business operation support system (BOSS, multiple up-stream system such as BusinessOperationSupportSystem), these data are through the processing process of different technologies means, finally be converted into various types of visual information 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) (the SDK based on Flex language, SoftwareDevelopmentKit) Bitmap (bitmap) is provided in, BitmapData (data bitmap) two classes, the snapshot sectional drawing to graph object can be realized, and be kept in 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, the binary data that operation analysis system cannot be transformed by sectional drawing carries out business datum analysis.
Summary of the invention
Embodiments provide data snapshot method, snapshot restoration, relevant apparatus and system, 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 present invention provides following technical scheme:
A kind of data snapshot method, comprising:
Receive data snapshot initiation message, in above-mentioned data snapshot initiation message, comprise the object-type information of the visualized data object of request snapshot;
Above-mentioned visualized data object whether supported data snapshot is judged according to above-mentioned object-type information,
If so, then, obtain the attribute data of above-mentioned visualized data object, above-mentioned attribute data comprises and represents metadata and factual data;
The attribute data of the above-mentioned visualized data object got is carried out encapsulating rear preservation.
A kind of snapshot restoration, comprising:
Receive the snapshot reduction request message from application layer, above-mentioned snapshot reduction request message comprises the snapshot data of request snapshot;
Reduce to above-mentioned snapshot data, above-mentioned snapshot data is reduced to attribute data, what above-mentioned attribute data comprised 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, comprising:
Receiving element, for receiving data snapshot initiation message, comprises the object-type information of the visualized data object of request snapshot in above-mentioned data snapshot initiation message;
Judging unit, for judging above-mentioned visualized data object whether supported data snapshot according to above-mentioned object-type information;
Acquiring unit, for when the judged result of above-mentioned judging unit is for being, obtain the attribute data of above-mentioned visualized data object, above-mentioned attribute data comprises and represents metadata and factual data;
Package storage unit, the attribute data for the above-mentioned visualized data object got by above-mentioned acquiring unit carries out encapsulating rear preservation.
A kind of snapshot reduction apparatus, comprising:
Receiving element, for receiving the snapshot reduction request message from application layer, above-mentioned snapshot reduction request message comprises the snapshot data of request snapshot;
Reduction unit, for reducing to above-mentioned snapshot data, is reduced to attribute data by above-mentioned snapshot data, and what above-mentioned attribute data comprised visualized data object represents metadata and factual data;
Transmitting element, returns to application layer for the attribute data reduced by above-mentioned reduction unit.
A kind of data snapshot application system, comprising:
Data snapshot device and snapshot reduction apparatus, wherein:
Above-mentioned data snapshot device, for receiving data snapshot initiation message, comprises the object-type information of the visualized data object of request snapshot in above-mentioned data snapshot initiation message; Judge above-mentioned visualized data object whether supported data snapshot according to above-mentioned object-type information, if so, then, obtain the attribute data of above-mentioned visualized data object, above-mentioned attribute data comprises and represents metadata and factual data; The attribute data of the above-mentioned visualized data object got is carried out encapsulating 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 request snapshot; Reduce to above-mentioned snapshot data, above-mentioned snapshot data is reduced to attribute data, what above-mentioned attribute data comprised visualized data object represents metadata and factual data; Above-mentioned attribute data is returned to above-mentioned application layer.
Therefore, the embodiment of the present invention obtains the attribute data representing metadata and factual data comprising visualized data object in data snapshot, and the attribute data got is carried out encapsulation preservation, make system by calling attribute data and the snapshot data of above-mentioned encapsulation preservation, restore visualized data object in data snapshot process and represent metamorphosis and data variation on interface, achieve the mutual conversion of data snapshot and visualized data object.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Data snapshot method embodiment schematic flow sheet that Fig. 1-a provides for the embodiment of the present invention;
Fig. 1-b is that under a kind of concrete scene, visualized data object represents form schematic diagram 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 present invention;
Another embodiment schematic flow sheet of data snapshot method that Fig. 2 provides for the embodiment of the present invention;
Snapshot restoration embodiment schematic flow sheet that Fig. 3 provides for the embodiment of the present invention;
Another embodiment schematic flow sheet of snapshot restoration that Fig. 4 provides for the embodiment of the present invention;
Data snapshot device example structure schematic diagram that Fig. 5 provides for the embodiment of the present invention;
Snapshot reduction apparatus example structure schematic diagram that Fig. 6 provides for the embodiment of the present invention;
Data snapshot application system example structure schematic diagram that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Embodiments provide a kind of data snapshot method, snapshot restoration, relevant apparatus and system.
For making 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 present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, and not all embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Be described data snapshot method a kind of in the embodiment of the present invention below, refer to Fig. 1-a, in the embodiment of the present invention, an a kind of embodiment of data snapshot method comprises:
101, data snapshot initiation message is received;
The object-type information of the visualized data object of request snapshot is comprised in above-mentioned data snapshot initiation message.
In actual applications, visualized data object can be such as post figure, pie chart, linear graph, combination chart, form, panel board, Boston Matrix or radar map etc., often kind of visualized data object is indicated by specific object-type information, when system request carries out data snapshot to the visualized data object on certain application interface, application layer sends data snapshot initiation message to component layer, and in this data snapshot initiation message, carry the object-type information of this visualized data object, make the component layer of this data snapshot initiation message of reception by identifying the object-type information of carrying in this data snapshot initiation message, the type of the visualized data object of request snapshot can be known.
102, visualized data object whether supported data snapshot is judged according to object-type information;
After receiving above-mentioned data snapshot initiation message, component layer knows the type of the visualized data object of request snapshot by the object-type information of carrying in this data snapshot initiation message, judge this visualized data object whether supported data snapshot further, if, then perform step 103, if not, then step 105 is performed.
In actual applications, the high-level interface tool-class of data snapshot and snapshot reduction can be defined in component layer, with the standard of the data snapshot method and snapshot restoration of formulating visualized data object, simultaneously, under the standard of this high-level interface tool-class definition, corresponding snapshot Interface realization class is set, to realize reducing to the data snapshot of dissimilar visualized data object and snapshot for dissimilar visualized data object (as post figure, pie chart, linear graph, combination chart, form, panel board, Boston Matrix or radar map etc.).Therefore, by judging whether this locality exists the snapshot Interface realization class with this visualized data object dispatching, judge this visualized data object whether supported data snapshot, the snapshot Interface realization class with this visualized data object dispatching is there is if local, then can judge this visualized data object supported data snapshot, perform step 103, if there is not the snapshot Interface realization class with this visualized data object dispatching in this locality, then can judge this visualized data object not supported data snapshot, perform step 105.
103, the attribute data of visualized data object is obtained;
Wherein, above-mentioned attribute data comprises and represents metadata and factual data.
In actual applications, by defining the common data attribute representing form (such as: post figure, pie chart, line chart, form, combination chart, radar map, Boston Matrix etc.) and page properties in advance, the metadata feature of respective figure can be formed so that this figure can be obtained according to the metadata feature of predefined each figure in data snapshot process represent metadata.The result data that factual data and visual data object show in data snapshot process.
When component layer judges the visualized data object supported data snapshot of asking snapshot, it can call corresponding assembly, that is, with the snapshot Interface realization class of this visualized data object dispatching, data snapshot is carried out to this visualized data object, obtain the attribute data of this visualized data object.
In data snapshot process, if user has carried out operating (as carrying out the operations such as filtration decomposition, lower brill, section) to visualized data object on interface, visualized data object represent metadata and factual data may change, when visualized data object represent metadata and factual data change time, the visualized data object shown after obtaining operation further represented metadata and factual data.Illustrate, suppose that the visualized data object of asking snapshot is post figure, it is current represents form as shown in Fig. 1-b on the page, what then obtain this post figure on current page in this step represents metadata (namely on current page represent attribute) and factual data, when user carries out drill down operator, when lower DBMS is launched in click Xuanwu District, figure will dynamically launch, now represent metadata and factual data by what obtain the figure after expansion further, represent metadata and comprise the transition special efficacy kind that figure dynamically launches simultaneously.
104, the attribute data of the visualized data object got is carried out encapsulating rear preservation;
The attribute data of the visualized data object got is preserved according to after predefined form encapsulation, such as can adopt extend markup language (XML, eXtensibleMarkupLanguage) preserve after the attribute data of the visualized data object got being packaged into the snapshot data of XML format, further, snapshot identifier also can be adopted to carry out unique identification, to distinguish different snapshot datas to the snapshot data after encapsulation.
In data snapshot process, user may operate visualized data object (as carry out filtration decomposition, lower brill, the operations such as section), along with the operation of user, the attribute data of the visualized data object that step 103 gets may change, therefore, in actual applications, this step can before user performs next operation, first carry out encapsulation to the attribute data of the visualized data object got to preserve, or, also can be when receiving data snapshot and stopping message, disposablely all properties data got in this time period of message are stopped to carry out encapsulating rear preservation by from starting data snapshot to receiving this data snapshot, be not construed as limiting herein.
105, end data snapshot flow process;
When the visualized data object judging to ask snapshot in step 102 not supported data snapshot time, end data snapshot flow process, further, the also warning information of this visualized data object of exportable instruction not supported data snapshot.This warning information can be word, figure, audio frequency etc., is not construed as limiting herein.
It should be noted that, based on the data snapshot method of the embodiment of the present invention, in actual applications, the attribute data (i.e. snapshot data) of visualized data object encapsulation can preserved pushes to other application platform, realizes the cross-platform real-time information transmission of cross-system or workflow.Illustrate, as shown in fig 1-c, suppose in application A, find valuable (as abnormal or hope an are shared) visualized data object, now can initiate the data snapshot that data snapshot flow process intercepts this visualized data object, and select to wish that (the present embodiment provides the information of two kinds of modes to pass through to this data snapshot by the mode that uses, one is point-to-point information transmission, the descriptor of this visualized data object can be added in the structured message pushed, select one or more propelling movement people; Another kind of is workflow initiation mode, namely the working template pre-seted is selected, using the initiation item of this data snapshot as flow process), information of the structuring comprising this data snapshot being passed through passes through by information the receiving end that server push delivers to intended application, namely applies B.
Therefore, the embodiment of the present invention obtains the attribute data representing metadata and factual data comprising visualized data object in data snapshot, and the attribute data got is carried out encapsulation preservation, make system by calling attribute data and the snapshot data of above-mentioned encapsulation preservation, restore visualized data object in data snapshot process and represent metamorphosis and data variation on interface, achieve the mutual conversion of data snapshot and visualized data object.
Below for the reciprocal process of application layer and component layer, be described the data snapshot method in the embodiment of the present invention, refer to Fig. 2, in the embodiment of the present invention, another embodiment of data snapshot method comprises:
201, application layer sends data snapshot initiation message to component layer;
The object-type information of the visualized data object of request snapshot is comprised in above-mentioned data snapshot initiation message.
In actual applications, visualized data object can be such as post figure, pie chart, linear graph, combination chart, form, panel board, Boston Matrix or radar map etc., often kind of visualized data object is indicated by specific object-type information, when system request carries out data snapshot to the visualized data object on certain application interface, data snapshot flow process is initiated by the data snapshot button clicked on application interface, now application layer sends data snapshot initiation message to component layer, and in this data snapshot initiation message, carry the object-type information of this visualized data object, make the component layer of this data snapshot initiation message of reception by identifying the object-type information of carrying in this data snapshot initiation message, the type of the visualized data object of request snapshot can be known.
202, component layer judges this visualized data object whether supported data snapshot;
After receiving above-mentioned data snapshot initiation message, component layer knows the type of visualized data object of request snapshot by the object-type information of carrying in this data snapshot initiation message, judges this visualized data object whether supported data snapshot further.
In actual applications, the high-level interface tool-class of data snapshot and snapshot reduction can be defined in component layer, with the standard of the data snapshot method and snapshot restoration of formulating visualized data object, simultaneously, under the standard of this high-level interface tool-class definition, corresponding snapshot Interface realization class is set, to realize reducing to the data snapshot of dissimilar visualized data object and snapshot for dissimilar visualized data object (as post figure, pie chart, linear graph, combination chart, form, panel board, Boston Matrix or radar map etc.).Therefore, by judging local whether to there is the snapshot Interface realization class with this visualized data object dispatching, judging this visualized data object whether supported data snapshot, if do not support, then performing step 203, if support, then perform step 204.
203, to application layer outputting alarm information, end data snapshot flow process;
When the visualized data object that component layer judges to ask snapshot not supported data snapshot time, export the warning information of this visualized data object of instruction not supported data snapshot to application layer, end data snapshot flow process.This warning information can be word, figure, audio frequency etc., is not construed as limiting herein.
204, component layer starts data snapshot, obtains the attribute data of visualized data object;
When component layer judges the visualized data object supported data snapshot of asking snapshot, it can call corresponding assembly, namely, with the snapshot Interface realization class of this visualized data object dispatching, data snapshot is carried out to this visualized data object, obtain the attribute data of this visualized data object on application layer applications interface, wherein, attribute data comprises and represents metadata and factual data.
In data snapshot process, if user has carried out operating to visualized data object and (as has carried out filtration and decompose on interface, lower brill, the operations such as section), visualized data object represent metadata and factual data may change, when visualized data object represent metadata and factual data change time, component layer represents metadata and factual data by the visualized data object shown after obtaining operation further, represent in metadata the transition special efficacy kind of the metamorphosis comprising operation front and rear-viewedization data object, as filtered decomposition, lower brill, section etc.
205, application layer sends data snapshot stopping message to component layer;
Application layer sends data snapshot to component layer and stops message, stops this data snapshot flow process.
206, rear preservation is encapsulated to the attribute data got; ,
When component layer receives the data snapshot stopping message from application layer, stop performing step 204, the attribute data of the visualized data object got in this time period of message is stopped to preserve from starting data snapshot according to after predefined form encapsulation to receiving data snapshot, such as, preserve after can adopting XML that the attribute data of the visualized data object got is packaged into the snapshot data of XML format, further, snapshot identifier also can be adopted to carry out unique identification, to distinguish the different snapshot datas of preservation to the snapshot data after encapsulation.
Further, component layer also can report preservation state information to application layer, the preservation state (as successfully preserved or preserving the state such as unsuccessfully) of instruction snapshot data.
Therefore, the embodiment of the present invention obtains the attribute data representing metadata and factual data comprising visualized data object in data snapshot, and the attribute data got is carried out encapsulation preservation, make system by calling attribute data and the snapshot data of above-mentioned encapsulation preservation, restore visualized data object in data snapshot process and represent metamorphosis and data variation on interface, achieve the mutual conversion of data snapshot and visualized data object.
Be described snapshot restoration a kind of in the embodiment of the present invention below, refer to Fig. 3, in the embodiment of the present invention, an a kind of embodiment of snapshot restoration comprises:
301, the snapshot reduction request message from application layer is received;
Wherein, this snapshot reduction request message comprises the snapshot data of request snapshot.
The encapsulation format of above-mentioned snapshot data can be such as XML format.
Under a kind of application scenarios, every part of snapshot data can be identified by different snapshot identifier, snapshot identifier and snapshot data one_to_one corresponding, to distinguish different snapshot datas, application layer can choose the snapshot data needing reduction from the snapshot data preserved, snapshot reduction request message is initiated to component layer, concrete, can A1 ~ A4 be comprised the steps before step 301:
A1. the snapshot data list request message from application layer is received.
A2. snapshot data list is returned to above-mentioned application layer,
When component layer receives the snapshot data list request message of application layer, snapshot data list is returned to application layer, wherein, snapshot data list can comprise the snapshot identifier of the local all snapshot datas preserved, or also can be the snapshot identifier of the local part snapshot data preserved, be not construed as limiting herein.
A3. the snapshot data request message from above-mentioned application layer is received;
Choose the snapshot identifier of the snapshot data needing reduction the snapshot data list that application layer can return from component layer, be carried in snapshot data request message and send to component layer.
A4. the snapshot data corresponding with the snapshot identifier comprised in snapshot data request message is returned to this application layer;
The snapshot data corresponding with the snapshot identifier comprised in snapshot data request message, after receiving snapshot data request message, can be returned to application layer by component layer, so that application layer determines whether to reduce to the snapshot data that component layer returns.
302, above-mentioned snapshot data is reduced;
When receiving above-mentioned snapshot reduction request message, component layer is reduced to the snapshot data in above-mentioned snapshot reduction request message, and restore the attribute data of visualized data object, wherein, attribute data comprises and represents metadata and factual data;
In actual applications, the high-level interface tool-class of data snapshot and snapshot reduction can be defined in component layer, with the standard of the data snapshot method and snapshot restoration of formulating visualized data object, simultaneously, under the standard of this high-level interface tool-class definition, corresponding snapshot Interface realization class is set, to realize reducing to the data snapshot of dissimilar visualized data object and snapshot for dissimilar visualized data object (as post figure, pie chart, linear graph, combination chart, form, panel board, Boston Matrix or radar map etc.).In actual applications, reduce assembly accordingly by calling, that is, with the snapshot Interface realization of the snapshot data adaptation received, this snapshot data is reduced.
Under a kind of application scenarios, can before snapshot data be reduced, judge whether this locality supports that the snapshot of this snapshot data reduces, if support, just perform step 303, if do not support, then terminate this snapshot reduction flow process, further, also this snapshot data of exportable instruction does not support the warning information that snapshot reduces.Concrete, by judging whether this locality exists the snapshot Interface realization class with this snapshot data adaptation, judge the local snapshot reduction supporting above-mentioned snapshot data, when this locality exists the snapshot Interface realization class with this snapshot data adaptation, the local snapshot reduction supporting this snapshot data can be judged, when this locality does not exist the snapshot Interface realization class with this snapshot data adaptation, can judge that this locality does not support that the snapshot of this snapshot data reduces.
303, the attribute data restored is returned to above-mentioned application layer;
After the reduction completing snapshot data, the attribute data of the visualized data object restored is returned to above-mentioned application layer, so that application layer utilizes, the attribute data of the above-mentioned visualized data object returned carries out webpage representation, Page Template is arranged or generate report etc.
Therefore, the embodiment of the present invention obtains the attribute data representing metadata and factual data comprising visualized data object in data snapshot, and the attribute data got is carried out encapsulation preservation, make system by calling attribute data and the snapshot data of above-mentioned encapsulation preservation, restore visualized data object in data snapshot process and represent metamorphosis and data variation on interface, achieve the mutual conversion of data snapshot and visualized data object.
Below for the reciprocal process of application layer and component layer, be described the snapshot restoration in the embodiment of the present invention, refer to Fig. 4, in the embodiment of the present invention, another embodiment of snapshot restoration comprises:
401, application layer sends snapshot data list request message to component layer.
402, component layer returns snapshot data list to application layer;
The tabular form of this snapshot data list can be such as tree structure, and snapshot data list can comprise the snapshot identifier of the local all snapshot datas preserved, or also can be the snapshot identifier of the local part snapshot data preserved, and is not construed as limiting herein.
403, application layer sends snapshot data request message to component layer;
The snapshot identifier of the snapshot data of request reduction is carried in this snapshot data request message.
404, component layer returns snapshot data to application layer;
The snapshot data corresponding with the snapshot identifier comprised in snapshot data request message, after receiving snapshot data request message, can be returned to application layer by component layer.
405, application layer sends snapshot reduction request message to component layer;
Application layer, after confirmation is reduced to the snapshot data received, can send snapshot reduction request message to component layer, and carry the snapshot data of request snapshot in snapshot reduction request message.
406, component layer judges whether this locality supports that the snapshot of this snapshot data reduces;
Component layer judges whether this locality supports that the snapshot of this snapshot data reduces, concrete, component layer is by judging whether this locality exists the snapshot Interface realization class with this snapshot data adaptation, judge the local snapshot reduction supporting above-mentioned snapshot data, if there is not the snapshot Interface realization class with this snapshot data adaptation in this locality, then can judge that this locality does not support that the snapshot of this snapshot data reduces, perform step 407, the snapshot Interface realization class with this snapshot data adaptation is there is if local, then can judge the local snapshot reduction supporting this snapshot data, perform step 408.
407, to application layer outputting alarm information, snapshot reduction flow process is terminated;
When component layer judge ask snapshot visualized data object not supported data snapshot time, to application layer export instruction this snapshot data do not support the warning information that snapshot reduce, terminate snapshot reduce flow process.This warning information can be word, 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 above-mentioned snapshot reduction request message, and restore the attribute data of visualized data object, wherein, attribute data comprises and represents metadata and factual data;
In actual applications, the high-level interface tool-class of data snapshot and snapshot reduction can be defined in component layer, with the standard of the data snapshot method and snapshot restoration of formulating visualized data object, simultaneously, under the standard of this high-level interface tool-class definition, corresponding snapshot Interface realization class is set, to realize reducing to the data snapshot of dissimilar visualized data object and snapshot for dissimilar visualized data object (as post figure, pie chart, linear graph, combination chart, form, panel board, Boston Matrix or radar map etc.).
409, the attribute data restored is returned to above-mentioned application layer by component layer;
After the reduction completing snapshot data, the attribute data of the visualized data object restored is returned to above-mentioned application layer, so that application layer utilizes, the attribute data of the above-mentioned visualized data object returned carries out webpage representation, Page Template is arranged or generate report etc.
Therefore, the embodiment of the present invention obtains the attribute data representing metadata and factual data comprising visualized data object in data snapshot, and the attribute data got is carried out encapsulation preservation, make system by calling attribute data and the snapshot data of above-mentioned encapsulation preservation, restore visualized data object in data snapshot process and represent metamorphosis and data variation on interface, achieve the mutual conversion of data snapshot and visualized data object.
Be described data snapshot device a kind of in the embodiment of the present invention below, refer to Fig. 5, in the embodiment of the present invention, a kind of data snapshot device 500 comprises:
Receiving element 501, for receiving data snapshot initiation message, wherein, comprises the object-type information of the visualized data object of request snapshot in data snapshot initiation message;
In actual applications, visualized data object can be such as post figure, pie chart, linear graph, combination chart, form, panel board, Boston Matrix or radar map etc., and often kind of visualized data object is indicated by specific object-type information.
Judging unit 502, object-type information that the data snapshot initiation message for receiving according to receiving element 501 comprises judges the visualized data object corresponding with this object-type information whether supported data snapshot;
In actual applications, judging unit 502 is by judging whether this locality exists the snapshot Interface realization class with this visualized data object dispatching, judge this visualized data object whether supported data snapshot, the snapshot Interface realization class with this visualized data object dispatching is there is if local, then can judge this visualized data object supported data snapshot, trigger acquiring unit 503.
Acquiring unit 503, for when the judged result of judging unit 502 is for being, obtain the attribute data of visualized data object, wherein, attribute data comprises and represents metadata and factual data;
In actual applications, by defining the common data attribute representing form (such as: post figure, pie chart, line chart, form, combination chart, radar map, Boston Matrix etc.) and page properties in advance, the metadata feature of respective figure can be formed so that this figure can be obtained according to the metadata feature of predefined each figure in data snapshot process represent metadata.The result data that factual data and visual data object show in data snapshot process.
When judging unit 502 judges the visualized data object supported data snapshot of asking snapshot, acquiring unit 503 can call corresponding assembly, namely, with the snapshot Interface realization class of this visualized data object dispatching, data snapshot is carried out to this visualized data object, obtain the attribute data of this visualized data object.
In data snapshot process, if user has carried out operating (as carrying out the operations such as filtration decomposition, lower brill, section) to visualized data object on interface, visualized data object represent metadata and factual data may change, when visualized data object represent metadata and factual data change time, acquiring unit 503 represents metadata and factual data by the visualized data object shown after obtaining operation further.
In actual applications, receiving element 501 also stops message for receiving data snapshot;
When receiving element 501 receives above-mentioned data snapshot stopping message, acquiring unit 503 stops the attribute data obtaining above-mentioned visualized data object.
Package storage unit 504, the attribute data for the visualized data object got by acquiring unit 503 carries out encapsulating rear preservation.
The attribute data of the visualized data object got is preserved according to after predefined form encapsulation by package storage unit 504, such as, preserve after can adopting XML that the attribute data of the visualized data object got is packaged into the snapshot data of XML format, further, snapshot identifier also can be adopted to carry out unique identification, to distinguish different snapshot datas to the snapshot data after encapsulation.
In data snapshot process, user may operate visualized data object (as carry out filtration decomposition, lower brill, the operations such as section), along with the operation of user, the attribute data of the visualized data object that acquiring unit 503 gets may change, therefore, in actual applications, package storage unit 504 can before user performs next operation, first carry out encapsulation to the attribute data of the visualized data object that acquiring unit 503 gets to preserve, or, also can be when receiving element 501 receives data snapshot stopping message, disposablely all properties data got in this time period of message are stopped to carry out encapsulating rear preservation from starting data snapshot to receiving this data snapshot acquiring unit 503, be not construed as limiting herein.
In actual applications, data snapshot device 500 also can comprise output unit, for judge to ask snapshot when judging unit 502 visualized data object not supported data snapshot time, export the warning information of this visualized data object of instruction not supported data snapshot.
It should be noted that, the data snapshot device 500 of the present embodiment can as the component layer in above-mentioned data snapshot method embodiment, may be used for realizing the whole technical schemes in above-mentioned data snapshot method embodiment, the function of its each functional module can according to the method specific implementation in above-mentioned data snapshot method embodiment, its specific implementation process can refer to the associated description in above-described embodiment, repeats no more herein.
Be described snapshot reduction apparatus a kind of in the embodiment of the present invention below, refer to Fig. 6, in the embodiment of the present invention, a kind of snapshot reduction apparatus 600 comprises:
Receiving element 601, for receiving the snapshot reduction request message from application layer;
Wherein, above-mentioned snapshot reduction request message comprises the snapshot data of request snapshot, and the encapsulation format of snapshot data can be such as XML format.
Reduction unit 602, reduces for the snapshot data received receiving element 601, and this snapshot data is reduced to attribute data;
What above-mentioned attribute data comprised visualized data object represents metadata and factual data.In actual applications, reduction unit specifically reduces assembly accordingly by calling, that is, reduce to this snapshot data with the snapshot Interface realization of the snapshot data adaptation received.
Under a kind of application scenarios, data snapshot device 600 also can comprise judging unit, before reducing at reduction unit 602 pairs of snapshot datas, judges whether this locality supports that the snapshot of this snapshot data reduces, if support, then triggers reduction unit 602.Concrete, judging unit is by judging whether this locality exists the snapshot Interface realization class with this snapshot data adaptation, judge the local snapshot reduction supporting above-mentioned snapshot data, when there is the snapshot Interface realization class with this snapshot data adaptation in this locality, the local snapshot reduction supporting this snapshot data can be judged, when this locality does not exist the snapshot Interface realization class with this snapshot data adaptation, can judge that this locality does not support that the snapshot of this snapshot data reduces.
Transmitting element 603, returns to application layer for the attribute data reduced by reduction unit 602.
After the reduction completing snapshot data, the attribute data of the visualized data object restored is returned to above-mentioned application layer by transmitting element 603, so that application layer utilizes, the attribute data of the visualized data object returned carries out webpage representation, Page Template is arranged or generate report etc.
Under a kind of application scenarios, every part of snapshot data can be identified by different snapshot identifier, snapshot identifier and snapshot data one_to_one corresponding, 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 when receiving element 601 receives above-mentioned snapshot data list request message, snapshot data list is returned to application layer, wherein, snapshot data list can comprise the snapshot identifier of the local all snapshot datas preserved, or also can be the snapshot identifier of the local part snapshot data preserved, 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; Transmitting element is also used in receiving element 601 when receiving above-mentioned snapshot data request message, and the snapshot data corresponding with the snapshot identifier that this snapshot data request message comprises is returned to application layer.
Under a kind of application scenarios, data snapshot device 600 also can comprise output unit, during for judging that when above-mentioned judging unit this locality does not support that the snapshot of the snapshot data that receiving element 601 receives reduces, exporting this snapshot data of instruction and not supporting the warning information that snapshot reduces.
It should be noted that, the snapshot reduction apparatus 600 of the present embodiment can as the component layer in above-mentioned snapshot restoration embodiment, may be used for realizing the whole technical schemes in above-mentioned snapshot restoration embodiment, the function of its each functional module can according to the method specific implementation in above-mentioned data snapshot method embodiment, its specific implementation process can refer to the associated description in above-described embodiment, repeats no more herein.
Be described data snapshot application system a kind of in the embodiment of the present invention below, refer to Fig. 7, data snapshot application system 700 comprises:
Data snapshot device 701 and snapshot reduction apparatus 702;
Wherein, data snapshot device 701 can be similar with the data snapshot device 500 in Fig. 5, repeats no more herein; Snapshot reduction apparatus 702 can be similar with the snapshot reduction apparatus 600 in Fig. 6, repeats no more herein.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
Above a kind of data snapshot method provided by the present invention, snapshot restoration, relevant apparatus and system are described in detail, for one of ordinary skill in the art, according to the thought of the embodiment of the present 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, in described data snapshot initiation message, comprise the object-type information of the visualized data object of request snapshot;
Described visualized data object whether supported data snapshot is judged according to described object-type information,
If so, then, obtain the attribute data of described visualized data object, described attribute data comprises and represents metadata and factual data;
The attribute data of the described visualized data object got is carried out encapsulating rear preservation.
2. method according to claim 1, is characterized in that,
Describedly judge that the step of described visualized data object whether supported data snapshot comprises:
Judge whether this locality exists the snapshot Interface realization class with described visualized data object dispatching,
If so, described visualized data object supported data snapshot is then judged;
If not, then described visualized data object not supported data snapshot is judged.
3. method according to claim 2, is characterized in that,
The step of the attribute data of the described visualized data object of described acquisition is specially:
Call with the snapshot Interface realization class of described visualized data object dispatching to obtain the attribute data of described visualized data object.
4. the method according to any one of claims 1 to 3, is characterized in that,
The described attribute data by the described visualized data object got comprises before carrying out encapsulating the step of rear preservation:
Receive data snapshot and stop message;
The step that the described attribute data by the described visualized data object got carries out encapsulating rear preservation comprises:
The attribute data of the described visualized data object got in this time period of message is stopped to carry out encapsulating rear preservation by from starting data snapshot to receiving described data snapshot.
5. method according to claim 4, is characterized in that,
The step that the described attribute data by the described visualized data object got carries out encapsulating rear preservation comprises:
Expandable mark language XML is adopted the attribute data of the described visualized data object got to be packaged into the snapshot data of XML format;
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:
Snapshot identifier is adopted to carry out unique identification to described snapshot data.
7. the method according to any one of claims 1 to 3, is characterized in that, also comprises:
If judge described visualized data object not supported data snapshot, end data snapshot flow process, export the warning information of the described visualized data object of instruction not supported data snapshot.
8. a snapshot restoration, is characterized in that, comprising:
Receive the snapshot reduction request message from application layer, described snapshot reduction request message comprises the snapshot data of request snapshot;
Reduce to described snapshot data, described snapshot data is reduced to attribute data, what described attribute data comprised 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:
Receive the snapshot data list request message from application layer;
Return snapshot data list to described application layer, described snapshot data list comprises snapshot identifier, described snapshot identifier and snapshot data one_to_one corresponding;
Receive the snapshot data request message from described application layer, described snapshot data request message comprises described snapshot identifier;
The snapshot data corresponding with the snapshot identifier that described snapshot data request message comprises is returned to described application layer.
10. method according to claim 8 or claim 9, is characterized in that,
Comprise before the described step that described snapshot data is reduced:
Judge whether this locality supports that the snapshot of described snapshot data reduces,
If so, then described snapshot data is reduced.
11. methods according to claim 10, is characterized in that,
Whether described this locality supports that the step that the snapshot of described snapshot data reduces comprises:
Judge whether this locality exists the snapshot Interface realization class with described snapshot data adaptation,
If so, the local snapshot reduction supporting described snapshot data is then judged;
If not, then judge that this locality does not support that the snapshot of described snapshot data reduces.
12. methods according to claim 11, is characterized in that,
Described the step that described snapshot data reduces to be comprised:
Call and with the snapshot Interface realization class of described snapshot data adaptation, described snapshot data is reduced.
13. methods according to claim 12, is characterized in that,
The encapsulation format of described snapshot data is expandable mark language XML form.
14. methods according to claim 10, is characterized in that, also comprise:
If judge, this locality does not support that the snapshot of described snapshot data reduces, and terminates snapshot data reduction flow process, exports the described snapshot data of instruction and does not support the warning information that snapshot reduces.
15. 1 kinds of data snapshot devices, is characterized in that, comprising:
Receiving element, for receiving data snapshot initiation message, comprises the object-type information of the visualized data object of request snapshot in described data snapshot initiation message;
Judging unit, for judging described visualized data object whether supported data snapshot according to described object-type information;
Acquiring unit, for when the judged result of described judging unit is for being, obtain the attribute data of described visualized data object, described attribute data comprises and represents metadata and factual data;
Package storage unit, the attribute data for the described visualized data object got by described acquiring unit carries out encapsulating rear preservation.
16. devices according to claim 15, is characterized in that,
Whether described judging unit local exists the snapshot Interface realization class with described visualized data object dispatching specifically for judging according to described object-type information,
If so, described visualized data object supported data snapshot is then judged;
If not, then described visualized data object not supported data snapshot is judged.
17. devices according to claim 16, is characterized in that,
Described acquiring unit is specifically for judging described visualized data object supported data snapshot during when described judging unit, call with the snapshot Interface realization class of described visualized data object dispatching to obtain the attribute data of described visualized data object.
18., according to claim 15 to the device described in 17 any one, is characterized in that,
Described receiving element also stops message for receiving data snapshot;
Described acquiring unit is used for, when described receiving element receives described data snapshot stopping message, stopping the attribute data obtaining described visualized data object;
Described package storage unit specifically for: stop the attribute data of the described visualized data object got in this time period of message to carry out encapsulating rear preservation from starting data snapshot to receiving described data snapshot described acquiring unit.
19. devices according to claim 18, is characterized in that,
Described package storage unit specifically for: the attribute data of described visualized data object adopting expandable mark language XML to be got by described acquiring unit is packaged into the snapshot data of XML format; Preserve described snapshot data.
20., according to claim 15 to the device described in 17 any one, is characterized in that,
Also comprise:
Output unit, for judge when described judging unit described visualized data object not supported data snapshot time, export the warning information of the described visualized data object of instruction not supported data snapshot.
21. 1 kinds of snapshot reduction apparatus, is characterized in that, comprising:
Receiving element, for receiving the snapshot reduction request message from application layer, described snapshot reduction request message comprises the snapshot data of request snapshot;
Reduction unit, for reducing to described snapshot data, is reduced to attribute data by described snapshot data, and what described attribute data comprised visualized data object represents metadata and factual data;
Transmitting element, returns to application layer for the attribute data reduced by described reduction unit.
22. devices according to claim 21, is characterized in that,
Described receiving element is also for receiving the snapshot data list request message from application layer;
Described transmitting element also for when described receiving element receives described snapshot data list request message, returns snapshot data list to described application layer, and described snapshot data list comprises snapshot identifier, described snapshot identifier and snapshot data one_to_one corresponding;
Described receiving element is also for receiving the snapshot data request message from 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 also for when described receiving element receives described snapshot data request message, is returned to described application layer by described transmitting element.
23. devices according to claim 21 or 22, is characterized in that,
Also comprise: judging unit, for judging whether this locality supports that the snapshot of described snapshot data reduces;
Described reduction unit specifically for: when described judging unit judge described snapshot data support snapshot reduction time, reduce to described snapshot data, described snapshot data is reduced to attribute data, described attribute data comprises and represents metadata and factual data.
24. devices according to claim 23, is characterized in that,
Described judging unit specifically for: judge local whether to there is the snapshot Interface realization class with described snapshot data adaptation, if so, then judge the local snapshot reduction supporting described snapshot data; If not, then judge that this locality does not support that the snapshot of described snapshot data reduces.
25. devices according to claim 24, is characterized in that,
Described reduction unit reduces to described snapshot data especially by the snapshot Interface realization class called with described snapshot data adaptation.
26. devices according to claim 23, is characterized in that,
Also comprise: output unit, during for judging that when described judging unit this locality does not support that the snapshot of described snapshot data reduces, exporting the described snapshot data of instruction and not supporting the warning information that snapshot reduces.
27. 1 kinds of data snapshot application systems, is characterized in that, comprising:
Data snapshot device and snapshot reduction apparatus, wherein:
Described data snapshot device, for receiving data snapshot initiation message, comprises the object-type information of the visualized data object of request snapshot in described data snapshot initiation message; Judge described visualized data object whether supported data snapshot according to described object-type information, if so, then, obtain the attribute data of described visualized data object, described attribute data comprises and represents metadata and factual data; The attribute data of the described visualized data object got is carried out encapsulating 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 request snapshot; Reduce to described snapshot data, described snapshot data is reduced to attribute data, what described attribute data comprised 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 CN102890646A (en) 2013-01-23
CN102890646B true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101777014A (en) * 2010-02-03 2010-07-14 华为终端有限公司 Backup processing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7475098B2 (en) * 2002-03-19 2009-01-06 Network Appliance, Inc. System and method for managing a plurality of snapshots
US7228320B2 (en) * 2004-11-17 2007-06-05 Hitachi, Ltd. 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
US8595191B2 (en) * 2009-12-31 2013-11-26 Commvault Systems, Inc. Systems and methods for performing data management operations using snapshots

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101777014A (en) * 2010-02-03 2010-07-14 华为终端有限公司 Backup processing method and device

Also Published As

Publication number Publication date
CN102890646A (en) 2013-01-23

Similar Documents

Publication Publication Date Title
CN102436498B (en) Report form generating method and relative device
CN107562556B (en) Failure recovery method, recovery device and storage medium
CN104639347A (en) Multi-cluster monitoring method and device, and system
EP2973047A1 (en) Methods for managing applications using semantic modeling and tagging and devices thereof
CN103425632A (en) Serializing method, device and processor
US11367009B2 (en) Parsing unlabeled computer security data logs
CN105224332A (en) A kind of application program generates method and apparatus
CN104298727A (en) Template matching method and device based on document
CN103135988B (en) Data processing method and system
CN103279564A (en) HTML-based (hypertext markup language-based) chart data output method and device
WO2005008433A3 (en) System and method for creating and using self describing events in automation
CN104994223A (en) Text message editing method and device
CN103605528A (en) Service development method and device
CN104217170A (en) Document read-only method and device
CN102890646B (en) Data snapshot method, snapshot restoration, relevant apparatus and system
CN104539449A (en) Handling method and related device for fault information
CN115858049B (en) RPA flow componentization arrangement method, device, equipment and medium
CN103473106A (en) Method and system for generating page
CN101971562B (en) Method, device and system for controlling automatic running process performance
CN106302816A (en) Information push method and message pusher
CN114296559A (en) Bar code input method, device, system, electronic equipment and medium
CN110727457A (en) Component management method, device, storage medium and electronic equipment
CN115729530B (en) Cross-system logic statement generation method, device, storage medium and equipment
CN103488500A (en) Multimedia document processing method and device
CN204440380U (en) The standby system of database file

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