[go: up one dir, main page]

CN105988997B - A kind of method of data synchronization and device based on hierarchy - Google Patents

A kind of method of data synchronization and device based on hierarchy Download PDF

Info

Publication number
CN105988997B
CN105988997B CN201510040578.4A CN201510040578A CN105988997B CN 105988997 B CN105988997 B CN 105988997B CN 201510040578 A CN201510040578 A CN 201510040578A CN 105988997 B CN105988997 B CN 105988997B
Authority
CN
China
Prior art keywords
level
synchronous
hierarchy
synchronizing
title
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.)
Active
Application number
CN201510040578.4A
Other languages
Chinese (zh)
Other versions
CN105988997A (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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Wuhan Kingsoft Office Software Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Jinshan Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201510040578.4A priority Critical patent/CN105988997B/en
Publication of CN105988997A publication Critical patent/CN105988997A/en
Application granted granted Critical
Publication of CN105988997B publication Critical patent/CN105988997B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a kind of method of data synchronization and device based on hierarchy, in the dynamic domain mode network for solving current hierarchical structure form, when to being updated, synchronizing in the structure of entire domain model network, the mixed synchronization of data in structure and structure must be carried out from level top layer, to realize the function of Integral synchronous, to cause, synchronization process amount is excessive, and data is caused to update synchronous slower technical problem.The method of data synchronization step of the embodiment of the present invention includes: S1: determining the synchronizing information of each level in the hierarchy established according to preset mode;S2: being read out the synchronic command got to determine synchronous level, and extract synchronizing information corresponding with synchronous level, and synchronous level is that at least one synchronous level is needed in level;S3: corresponding synchronization is carried out according to synchronizing information to all individuals in synchronous level.

Description

A kind of method of data synchronization and device based on hierarchy
Technical field
The present invention relates to field of computer technology more particularly to a kind of method of data synchronization and dress based on hierarchy It sets.
Background technique
With the high speed development of science and technology, the more more and more universal all trades and professions of job information technology are realized by computer and are believed The function of ceasing acquisition, information transmitting, information processing, information regeneration, use of information facilitates masses more efficient, more systematically It carries out the work, such as production management system, the office automation system (Office Automation).
Currently, informationization of the job information particularly with hierarchical structure form, such as office automation system is usually logical The database or index of the object dynamically established in entire domain model network are crossed, domain controller is installed, pair in entire domain is stored The information of elephant simultaneously periodically updates, and is stored on the server of domain controller, and can be by web application or clothes Business is accessed.One domain may possess one or more domain controller.Domain, domain tree can be copied to from source domain controller simultaneously Or on other domain controllers in forest.Since the content of domain controller can be replicated, and all domain controllers are all Possess writable replica corresponding with content, so user and administrator can be needed for any position in domain easily obtain Content.
However in the dynamic domain mode network of above-mentioned hierarchical structure form, in the structure of entire domain model network When being updated, synchronize, it is necessary to the mixed synchronization of data in structure and structure is carried out from level top layer, it is whole same to realize The function of step, to cause, synchronization process amount is excessive, and data is caused to update synchronous slower technical problem.
Summary of the invention
The embodiment of the invention provides a kind of method of data synchronization and device based on hierarchy, solves current level In the dynamic domain mode network of structure type, when to being updated, synchronizing in the structure of entire domain model network, it is necessary to The mixed synchronization that data in structure and structure are carried out from level top layer, to realize the function of Integral synchronous, to cause synchronization Treating capacity is excessive, and data is caused to update synchronous slower technical problem.
A kind of method of data synchronization based on hierarchy provided in an embodiment of the present invention, comprising:
S1: the synchronizing information of each level in the hierarchy established according to preset mode is determined;
S2: the synchronic command got is read out to determine synchronous level, and extracted opposite with the synchronous level The synchronizing information answered, the synchronous level are that at least one synchronous described level is needed in the level;
S3: corresponding synchronization is carried out according to the synchronizing information to all individuals in the synchronous level.
Preferably, in the above-mentioned method of data synchronization based on hierarchy, the level established according to preset mode is determined The synchronizing information of each level in framework specifically includes:
Whole hierarchy is established, and each of the hierarchy level is configured one-to-one synchronous Address;
The level title of the level is configured.
Preferably, in the above-mentioned method of data synchronization based on hierarchy, the level title of the level is matched It sets and specifically includes:
Determine whether the setting command of the level title belongs to synchronous setting, if so, specify the level title with It is configured in company with step, if it is not, then being registered to the level title.
Preferably, in the above-mentioned method of data synchronization based on hierarchy, to all individuals in the synchronous level Corresponding synchronize is carried out according to the synchronizing information to specifically include:
The synchronous level is synchronized by highest level to lowest hierarchical level, and determines the highest level described in most All individuals in low-level are corresponded according to the synchronizing address of the synchronous level to be synchronized.
Preferably, in the above-mentioned method of data synchronization based on hierarchy, to all individuals in the synchronous level Corresponding synchronize is carried out according to the synchronizing information to specifically include:
Judge all individuals in the synchronous level currently synchronized whether according to the synchronous level Synchronizing address, which corresponds, to be completed to synchronize, if so, synchronizing to the layer, sync grade for not synchronizing processing, and is repeated Judge whether all individuals synchronize according to the synchronizing address of synchronous level one-to-one correspondence, until all institutes State synchronous level and its in all individuals synchronously complete.
A kind of data synchronization unit based on hierarchy provided in an embodiment of the present invention, comprising:
Unit is established, for determining the synchronizing information of each level in the hierarchy established according to preset mode;
Reading unit, for being read out the synchronic command got to determine synchronous level, and extract with it is described same The corresponding synchronizing information of level is walked, the synchronous level is that at least one synchronous described layer is needed in the level Grade;
Synchronization unit, it is corresponding same for being carried out to all individuals in the synchronous level according to the synchronizing information Step.
Preferably, it in the above-mentioned data synchronization unit based on hierarchy, establishes unit and specifically includes:
First configuration subelement, for establishing whole hierarchy, and to each of the hierarchy layer Grade configures one-to-one synchronizing address;
Second configuration subelement, configures for the level title to the level.
Preferably, in the above-mentioned data synchronization unit based on hierarchy, the second configuration subelement is specifically included:
Determining module, for determining whether the setting command of the level title belongs to synchronous setting, if so, triggering with With module, if it is not, then triggering registration module;
The triggering follows module, is configured for specifying the level title to follow to synchronize;
The triggering registration module, for being registered to the level title.
Preferably, in the above-mentioned data synchronization unit based on hierarchy, the synchronization unit is specifically included:
First synchronous subelement, for being synchronized by highest level to lowest hierarchical level to the synchronous level, and determines All individuals of the highest level into the lowest hierarchical level are corresponded according to the synchronizing address of the synchronous level to be synchronized.
Preferably, in the above-mentioned data synchronization unit based on hierarchy, the synchronization unit is specifically included:
Second synchronous subelement, all individuals in the synchronous level for judging currently to synchronize whether basis The synchronizing address of the synchronous level, which corresponds, to be completed to synchronize, if so, the synchronization to processing is not synchronized Whether level synchronizes, and repeat to all individuals according to the same stepping of the synchronizing address of synchronous level one-to-one correspondence Row judgement, until all synchronous level and its in all individuals synchronously complete.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
A kind of method of data synchronization and device based on hierarchy provided in an embodiment of the present invention, wherein data are synchronous Method and step includes: S1: determining the synchronizing information of each level in the hierarchy established according to preset mode;S2: to obtaining The synchronic command got is read out to determine synchronous level, and extracts synchronizing information corresponding with synchronous level, layer, sync Grade is that at least one synchronous level is needed in level;S3: phase is carried out according to synchronizing information to all individuals in synchronous level Corresponding synchronization.In the present embodiment, by first establishing hierarchy, the synchronizing information of each level is determined, then to needing to carry out All individuals in synchronous synchronization level carry out corresponding synchronization according to synchronizing information, realize individual and hierarchy In the synchronizing information of level synchronized correspondingly, solve the dynamic domain mode network of current hierarchical structure form In, when to being updated, synchronizing in the structure of entire domain model network, it is necessary to carry out structure and structure from level top layer The mixed synchronization of middle data, so that it is excessive to cause synchronization process amount, causes data to update same to realize the function of Integral synchronous Walk slower technical problem.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of one embodiment of the method for data synchronization based on hierarchy provided in the embodiment of the present invention Flow diagram;
Fig. 2 is a kind of another embodiment of the method for data synchronization based on hierarchy provided in the embodiment of the present invention Flow diagram;
Fig. 3 is a kind of another embodiment of the method for data synchronization based on hierarchy provided in the embodiment of the present invention Flow diagram;
Fig. 4 is a kind of level to level of the method for data synchronization based on hierarchy provided in the embodiment of the present invention The flow diagram that title is configured;
Fig. 5 is a kind of one embodiment of the data synchronization unit based on hierarchy provided in the embodiment of the present invention Structural schematic diagram;
Fig. 6 is a kind of another embodiment of the data synchronization unit based on hierarchy provided in the embodiment of the present invention Structural schematic diagram;
Fig. 7 is a kind of another embodiment of the data synchronization unit based on hierarchy provided in the embodiment of the present invention Structural schematic diagram.
Specific embodiment
The embodiment of the invention provides a kind of method of data synchronization and device based on hierarchy, solves current level In the dynamic domain mode network of structure type, when to being updated, synchronizing in the structure of entire domain model network, it is necessary to The mixed synchronization that data in structure and structure are carried out from level top layer, to realize the function of Integral synchronous, to cause synchronization Treating capacity is excessive, and data is caused to update synchronous slower technical problem.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention Range.
Referring to Fig. 1, an a kind of reality of the method for data synchronization based on hierarchy provided in the embodiment of the present invention Applying example includes:
S1: the synchronizing information of each level in the hierarchy established according to preset mode is determined;
It is right when needing the data to hierarchy to synchronize, such as in the office automation system in the present embodiment When subdivision and its sector member under department and department need to synchronize, it is thus necessary to determine that established according to preset mode The synchronizing information of each level in hierarchy.
It should be noted that the synchronous of each level in the hierarchy that determination above-mentioned is established according to preset mode is believed The process of breath will be described in detail in subsequent embodiment, and details are not described herein again.
S2: the synchronic command got is read out to determine synchronous level, and extracted corresponding with synchronous level Synchronizing information;
After determining the synchronizing information of each level in the hierarchy established according to preset mode, need to acquisition To synchronic command be read out to determine synchronous level, and extract synchronizing information corresponding with synchronous level, synchronous level To need at least one synchronous level in level.
S3: corresponding synchronization is carried out according to synchronizing information to all individuals in synchronous level.
It is read out when to the synchronic command got with determining synchronous level, and extracts corresponding with synchronous level same After walking information, needs to carry out corresponding synchronization according to synchronizing information to all individuals in synchronous level, need to illustrate It is that individual above-mentioned can be the member of the department and subdivision that refer in such as step S1.
In the present embodiment, by first establishing hierarchy, the synchronizing information of each level is determined, then synchronize to needs Synchronization level in all individuals corresponding synchronization is carried out according to synchronizing information, realize will individual in hierarchy The synchronizing information of level is synchronized correspondingly, right in the dynamic domain mode network for solving current hierarchical structure form When being updated, synchronize in the structure of entire domain model network, it is necessary to carry out number in structure and structure from level top layer According to mixed synchronization, to realize the function of Integral synchronous, so that it is excessive to cause synchronization process amount, cause data update it is synchronous compared with Slow technical problem.
The above is that the process of the method for data synchronization based on hierarchy is described in detail, below will be to level frame The process of the determination of the synchronizing information of the foundation and level of structure is described in detail, referring to Fig. 2, providing in the embodiment of the present invention Another embodiment of method of data synchronization based on hierarchy a kind of include:
201, whole hierarchy is established, and one-to-one synchronously to each level configuration in hierarchy Location;
In the present embodiment, before needing the data to hierarchy to synchronize, such as in the office automation system, For under department and department subdivision and its sector member need synchronize before, need to establish whole hierarchy, And one-to-one synchronizing address is configured to each level in hierarchy, it is to be understood that synchronizing address can be portion The synchronizing address of the level of subdivision under door and department.
202, the level title of level is configured;
When establishing whole hierarchy, and to each level in hierarchy configure one-to-one synchronizing address it Afterwards, it needs to configure the level title of level.
Level title above-mentioned to level, which carries out configuration, can be step as shown in Figure 4:
401, determine whether the setting command of level title belongs to synchronous setting, if so, 402 are thened follow the steps, if it is not, then Execute step 403;
When establishing whole hierarchy, and to each level in hierarchy configure one-to-one synchronizing address it Afterwards, it is thus necessary to determine that whether the setting command of level title belongs to synchronous setting, such as level title whether need to carry out it is customized Setting, if so, 403 are thened follow the steps, if it is not, thening follow the steps 402.
402, specified level title, which follows to synchronize, is configured;
When the setting command for determining level title is to belong to synchronous setting, specified level title, which follows to synchronize, is matched It sets, it is to be understood that specified level title above-mentioned, which follows to synchronize, to be configured, such as can be to department and subdivision, Configuration is successively synchronized, if Department formation is A, then its affiliated subdivision is set as A1, A2 etc., herein specifically without limitation.
403, level title is registered.
When the setting command for determining level title is not belonging to synchronous setting, level title is registered, it is possible to understand that , it is above-mentioned that level title is registered, such as can be to department and subdivision, configuration is synchronized, as department sets It is set to A, for example small A of customized level title can be registered as, then its affiliated subdivision can be customized setting etc., herein specifically Without limitation.
203, the synchronic command got is read out to determine synchronous level, and extracted corresponding with synchronous level Synchronizing information;
After determining the synchronizing information of each level in the hierarchy established according to preset mode, need to acquisition To synchronic command be read out to determine synchronous level, and extract synchronizing information corresponding with synchronous level, synchronous level To need at least one synchronous level in level.
204, corresponding synchronization is carried out according to synchronizing information to all individuals in synchronous level.
After the level title to level configures, need to all individuals in synchronous level according to synchronizing information Corresponding synchronization is carried out, synchronizing information above-mentioned is synchronizing address and level title, it should be noted that individual above-mentioned can To be the member of the department and subdivision referred in such as step 201.
In the present embodiment, by establishing whole hierarchy, and it is a pair of to each level configuration one in hierarchy The synchronizing address answered carries out the synchronizing address and level title of each level of configuration determination to the level title of level, then to need All individuals in the synchronization level to be synchronized are corresponding synchronous according to synchronizing address and the progress of level title, realize Individual and the synchronizing address of the level in hierarchy and the progress of level title is synchronous correspondingly, solve current level In the dynamic domain mode network of structure type, when to being updated, synchronizing in the structure of entire domain model network, it is necessary to The mixed synchronization that data in structure and structure are carried out from level top layer, to realize the function of Integral synchronous, to cause synchronization Treating capacity is excessive, and data is caused to update synchronous slower technical problem.
The above is that the process of the determination of the synchronizing information of the foundation and level to hierarchy is described in detail, and below will All individuals in synchronous level are described in detail according to the process that synchronizing information carries out corresponding synchronization, are please referred to Another embodiment of Fig. 3, a kind of method of data synchronization based on hierarchy provided in the embodiment of the present invention includes:
301, whole hierarchy is established, and one-to-one synchronously to each level configuration in hierarchy Location;
In the present embodiment, before needing the data to hierarchy to synchronize, such as in the office automation system, For under department and department subdivision and its sector member need synchronize before, need to establish whole hierarchy, And one-to-one synchronizing address is configured to each level in hierarchy, it is to be understood that synchronizing address can be portion The synchronizing address of the level of subdivision under door and department.
302, the level title of level is configured;
When establishing whole hierarchy, and to each level in hierarchy configure one-to-one synchronizing address it Afterwards, it needs to configure the level title of level.
Level title above-mentioned to level, which carries out configuration, can be step as shown in Figure 4:
401, determine whether the setting command of level title belongs to synchronous setting, if so, 402 are thened follow the steps, if it is not, then Execute step 403;
When establishing whole hierarchy, and to each level in hierarchy configure one-to-one synchronizing address it Afterwards, it is thus necessary to determine that whether the setting command of level title belongs to synchronous setting, such as level title whether need to carry out it is customized Setting, if so, 403 are thened follow the steps, if it is not, thening follow the steps 402.
402, specified level title, which follows to synchronize, is configured;
When the setting command for determining level title is to belong to synchronous setting, specified level title, which follows to synchronize, is matched It sets, it is to be understood that specified level title above-mentioned, which follows to synchronize, to be configured, such as can be to department and subdivision, Configuration is successively synchronized, if Department formation is A, then its affiliated subdivision is set as A1, A2 etc., herein specifically without limitation.
403, level title is registered.
When the setting command for determining level title is not belonging to synchronous setting, level title is registered, it is possible to understand that , it is above-mentioned that level title is registered, such as can be to department and subdivision, configuration is synchronized, as department sets It is set to A, for example small A of customized level title can be registered as, then its affiliated subdivision can be customized setting etc., herein specifically Without limitation.
303, the synchronic command got is read out to determine synchronous level, and extracted corresponding with synchronous level Synchronizing information;
After determining the synchronizing information of each level in the hierarchy established according to preset mode, need to acquisition To synchronic command be read out to determine synchronous level, and extract synchronizing information corresponding with synchronous level, synchronous level To need at least one synchronous level in level.
304, whether all individuals in the synchronization level that judgement currently synchronizes are according to the synchronizing address for synchronizing level It corresponds and completes to synchronize, if so, thening follow the steps 305;
It is all in the synchronization level that needs to judge currently to synchronize after the level title to level configures Whether individual corresponds according to the synchronizing address of synchronous level is completed to synchronize, if so, 305 are thened follow the steps, synchronization above-mentioned Information is synchronizing address and level title, it should be noted that individual above-mentioned can be the department referred in such as step 31 With the member of subdivision.
305, the layer, sync grade for not synchronizing processing is synchronized.
When all individuals in the synchronization level that currently synchronizes of judgement be according to the synchronizing address of synchronous level one by one It is corresponding to complete to synchronize, then subsequent synchronization is carried out to the layer, sync grade for not synchronizing processing, and repeat to all individuals whether Synchronized and judged according to the synchronizing address of synchronous level one-to-one correspondence, until all synchronization level and its in all individuals It synchronously completes, whether repetition above-mentioned synchronizes according to the synchronizing address one-to-one correspondence of synchronous level that judge can to all individuals To be to repeat step 304.
Corresponding synchronization is carried out according to synchronizing information to all individuals in synchronous level in the present embodiment, it can be with It is further to be synchronized by highest level to lowest hierarchical level to synchronous level, and determine institute of the highest level into lowest hierarchical level There is individual to be corresponded according to the synchronizing address of synchronous level to synchronize.
In the present embodiment, by establishing whole hierarchy, and it is a pair of to each level configuration one in hierarchy The synchronizing address answered carries out the synchronizing address and level title that configuration determines each level to the level title of level, then to sentencing It is same whether all individuals in the disconnected synchronization level currently synchronized are completed according to the synchronizing address one-to-one correspondence of synchronous level Whether step if so, synchronizing to the layer, sync grade for not synchronizing processing, and repeats to all individuals according to synchronous level Synchronizing address one-to-one correspondence synchronize and judged, until all synchronization level and its in all individuals synchronously complete, it is real Show individual and to have been carried out with the synchronizing address of the level in hierarchy and level title synchronous correspondingly, has solved current In the dynamic domain mode network of hierarchical structure form, when to being updated, synchronizing in the structure of entire domain model network, The mixed synchronization that data in structure and structure must be carried out from level top layer, to realize the function of Integral synchronous, to cause Synchronization process amount is excessive, and data is caused to update synchronous slower technical problem.
Referring to Fig. 5, an a kind of reality of the data synchronization unit based on hierarchy provided in the embodiment of the present invention Applying example includes:
Unit 501 is established, for determining the synchronizing information of each level in the hierarchy established according to preset mode;
Reading unit 502, for being read out the synchronic command got to determine synchronous level, and extract with it is synchronous The corresponding synchronizing information of level, synchronous level are that at least one synchronous level is needed in level;
Synchronization unit 503, for carrying out corresponding synchronization according to synchronizing information to all individuals in synchronous level.
In the present embodiment, hierarchy is first established by establishing unit 501, determines the synchronizing information of each level, it is synchronous All individuals in the synchronization level that unit 503 again synchronizes needs carry out corresponding synchronization according to synchronizing information, real Show individual and to have been carried out with the synchronizing address of the level in hierarchy and level title synchronous correspondingly, has solved current In the dynamic domain mode network of hierarchical structure form, when to being updated, synchronizing in the structure of entire domain model network, The mixed synchronization that data in structure and structure must be carried out from level top layer, to realize the function of Integral synchronous, to cause Synchronization process amount is excessive, and data is caused to update synchronous slower technical problem.
The above is that each unit of the data synchronization unit based on hierarchy is described in detail, below will be to foundation Each subelement and module of unit are described in detail, referring to Fig. 6, the one kind provided in the embodiment of the present invention is based on level Another embodiment of the data synchronization unit of framework includes:
Unit 601 is established, for determining the synchronizing information of each level in the hierarchy established according to preset mode;
Wherein, establishing unit 601 can further include:
First configuration subelement 6011, matches for establishing whole hierarchy, and to each level in hierarchy Set one-to-one synchronizing address;
Second configuration subelement 6012, configures for the level title to level.
Second configuration subelement 6012 can further include:
Determining module 6011a, for determining whether the setting command of level title belongs to synchronous setting, if so, triggering Module 6011b is followed, if it is not, then triggering registration module 6011c;
Module 6011b is followed, is configured for specifying level title to follow to synchronize;
Registration Module 6011c, for being registered to level title.
Reading unit 602, for being read out the synchronic command got to determine synchronous level, and extract with it is synchronous The corresponding synchronizing information of level, synchronous level are that at least one synchronous level is needed in level;
Synchronization unit 603, for carrying out corresponding synchronization according to synchronizing information to all individuals in synchronous level.
In the present embodiment, built by the first configuration subelement 6011 and the second configuration subelement 6012 of establishing unit 601 Whole hierarchy is found, and one-to-one synchronizing address is configured to each level in hierarchy, to the level of level Title carries out the synchronizing address and level title that configuration determines each level, and synchronization unit 603 again currently synchronizes judgement Synchronization level in all individuals whether corresponded according to the synchronizing address of synchronous level and complete to synchronize, if so, to not The layer, sync grade for synchronizing processing synchronizes, and repeat to all individuals whether according to the synchronizing address of synchronous level one by one Corresponding synchronize judged, until all synchronization level and its in all individuals synchronously complete, realize individual and layer The synchronizing address of level in level framework and the progress of level title are synchronous correspondingly, solve current hierarchical structure form In dynamic domain mode network, when to being updated, synchronizing in the structure of entire domain model network, it is necessary to from level top layer The mixed synchronization of data in structure and structure is carried out, to realize the function of Integral synchronous, so that it is excessive to cause synchronization process amount, Data are caused to update synchronous slower technical problem.
The above is that each subelement and module of establishing unit are described in detail, below that the son to synchronization unit is single Member is described in detail, referring to Fig. 7, a kind of data synchronization unit based on hierarchy provided in the embodiment of the present invention Another embodiment include:
Unit 701 is established, for determining the synchronizing information of each level in the hierarchy established according to preset mode;
Wherein, establishing unit 701 can further include:
First configuration subelement 7011, matches for establishing whole hierarchy, and to each level in hierarchy Set one-to-one synchronizing address;
Second configuration subelement 7012, configures for the level title to level.
Second configuration subelement 7012 can further include:
Determining module 7011a, for determining whether the setting command of level title belongs to synchronous setting, if so, triggering Module 7011b is followed, if it is not, then triggering registration module 7011c;
Module 7011b is followed, is configured for specifying level title to follow to synchronize;
Registration Module 7011c, for being registered to level title.
Reading unit 702, for being read out the synchronic command got to determine synchronous level, and extract with it is synchronous The corresponding synchronizing information of level, synchronous level are that at least one synchronous level is needed in level;
Synchronization unit 703, for carrying out corresponding synchronization according to synchronizing information to all individuals in synchronous level.
Wherein, synchronization unit 703 can further include:
First synchronous subelement 7031 for being synchronized by highest level to lowest hierarchical level to synchronous level, and determines All individuals of the highest level into lowest hierarchical level are corresponded according to the synchronizing address of synchronous level to be synchronized;
And/or
Second synchronous subelement 7032, all individuals in the synchronization level for judging currently to synchronize whether basis The synchronizing address of synchronous level, which corresponds, to be completed to synchronize, if so, the layer, sync grade for not synchronizing processing is synchronized, And repeat to judge whether all individuals synchronize according to the synchronizing address one-to-one correspondence of synchronous level, until all synchronizations Level and all individuals therein synchronously complete.
In the present embodiment, built by the first configuration subelement 7011 and the second configuration subelement 7012 of establishing unit 701 Whole hierarchy is found, and one-to-one synchronizing address is configured to each level in hierarchy, to the level of level Title carries out the synchronizing address and level title that configuration determines each level, the synchronous subelement 7031 of the first of synchronization unit 703 Or whether second all individuals in the synchronization level that currently synchronizes to judgement again of synchronous subelement 7032 are according to layer, sync The synchronizing address of grade, which corresponds, to be completed to synchronize, if so, synchronizing to the layer, sync grade for not synchronizing processing, and is repeated Judge whether all individuals synchronize according to the synchronizing address one-to-one correspondence of synchronous level, until all synchronization level and All individuals therein synchronously complete, and realize and carry out individual and the synchronizing address and level title of the level in hierarchy It is one-to-one synchronous, in the dynamic domain mode network for solving current hierarchical structure form, in entire domain model network When being updated, synchronize in structure, it is necessary to carry out the mixed synchronization of data in structure and structure, from level top layer to realize The function of Integral synchronous, to cause, synchronization process amount is excessive, and data is caused to update synchronous slower technical problem.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (6)

1. a kind of method of data synchronization based on hierarchy characterized by comprising
S1: whole hierarchy is established, and one-to-one synchronizing address is configured to each level in the hierarchy; The level title of the level is configured, configuration is carried out to the level title of the level and is specifically included: determining the layer Whether the setting command of grade title belongs to synchronous setting, if so, the level title is specified to follow to synchronize and configured, if It is no, then the level title is registered;
S2: the synchronic command got is read out to determine synchronous level, and extracted corresponding with the synchronous level Synchronizing information, the synchronous level are that at least one synchronous described level is needed in the level;
S3: corresponding synchronization is carried out according to the synchronizing information to all individuals in the synchronous level.
2. the method for data synchronization according to claim 1 based on hierarchy, which is characterized in that the synchronous level In it is all individual according to the synchronizing information carry out corresponding synchronize specifically include:
The synchronous level is synchronized by highest level to lowest hierarchical level, and determines the highest level to the lowermost layer All individuals in grade are corresponded according to the synchronizing address of the synchronous level to be synchronized.
3. the method for data synchronization according to claim 1 based on hierarchy, which is characterized in that the synchronous level In it is all individual according to the synchronizing information carry out corresponding synchronize specifically include:
Judge all individuals in the synchronous level that currently synchronizes whether according to the synchronizing address of the synchronous level It corresponds and completes to synchronize, if so, being synchronized to the layer, sync grade for not synchronizing processing, and repeat to all Whether body synchronizes according to the synchronizing address of synchronous level one-to-one correspondence is judged, until all layer, syncs Grade and all individuals therein synchronously complete.
4. a kind of data synchronization unit based on hierarchy characterized by comprising
Unit is established, for establishing whole hierarchy, and each level in the hierarchy is configured and is corresponded Synchronizing address;The level title of the level is configured, configuration is carried out to the level title of the level and is specifically included: Determine whether the setting command of the level title belongs to synchronous setting, if so, the level title is specified to follow same stepping Row configuration, if it is not, then being registered to the level title;
Reading unit for being read out the synchronic command got to determine synchronous level, and is extracted and the layer, sync The corresponding synchronizing information of grade, the synchronous level are that at least one synchronous described level is needed in the level;
Synchronization unit, for carrying out corresponding synchronization according to the synchronizing information to all individuals in the synchronous level;
Wherein, the unit of establishing specifically includes:
First configuration subelement, matches for establishing whole hierarchy, and to each of the hierarchy level Set one-to-one synchronizing address;
Second configuration subelement, configures for the level title to the level;
Wherein, the second configuration subelement specifically includes:
Determining module, for determining whether the setting command of the level title belongs to synchronous setting, if so, triggering follows mould Block, if it is not, then triggering registration module;
It is described to follow module, it is configured for specifying the level title to follow to synchronize;
The Registration Module, for being registered to the level title.
5. the data synchronization unit according to claim 4 based on hierarchy, which is characterized in that the synchronization unit tool Body includes:
First synchronization subelement, for being synchronized by highest level to lowest hierarchical level to the synchronous level, and described in determination All individuals of the highest level into the lowest hierarchical level are corresponded according to the synchronizing address of the synchronous level to be synchronized.
6. the data synchronization unit according to claim 4 based on hierarchy, which is characterized in that the synchronization unit tool Body includes:
Second synchronous subelement, for judging all individuals in the synchronous level currently synchronized whether according to The synchronizing address of synchronous level, which corresponds, to be completed to synchronize, if so, carrying out to the layer, sync grade for not synchronizing processing It is synchronous, and repeat to judge whether all individuals synchronize according to the synchronizing address of synchronous level one-to-one correspondence, Until all synchronous level and its in all individuals synchronously complete.
CN201510040578.4A 2015-01-27 2015-01-27 A kind of method of data synchronization and device based on hierarchy Active CN105988997B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510040578.4A CN105988997B (en) 2015-01-27 2015-01-27 A kind of method of data synchronization and device based on hierarchy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510040578.4A CN105988997B (en) 2015-01-27 2015-01-27 A kind of method of data synchronization and device based on hierarchy

Publications (2)

Publication Number Publication Date
CN105988997A CN105988997A (en) 2016-10-05
CN105988997B true CN105988997B (en) 2019-11-26

Family

ID=57034038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510040578.4A Active CN105988997B (en) 2015-01-27 2015-01-27 A kind of method of data synchronization and device based on hierarchy

Country Status (1)

Country Link
CN (1) CN105988997B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599881A (en) * 2008-06-06 2009-12-09 费舍-柔斯芒特系统股份有限公司 Be used between networked devices, implementing the method and apparatus of sequential synchronization hierarchy
CN101160903B (en) * 2005-10-27 2013-03-20 华为技术有限公司 Method, system, client terminal and server for implementing data synchronization

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7577691B2 (en) * 2006-08-02 2009-08-18 Microsoft Corporation Extending hierarchical synchronization scopes to non-hierarchical scenarios

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101160903B (en) * 2005-10-27 2013-03-20 华为技术有限公司 Method, system, client terminal and server for implementing data synchronization
CN101599881A (en) * 2008-06-06 2009-12-09 费舍-柔斯芒特系统股份有限公司 Be used between networked devices, implementing the method and apparatus of sequential synchronization hierarchy

Also Published As

Publication number Publication date
CN105988997A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
CN107688493B (en) Method, device and system for training deep neural network
CN104239476B (en) A kind of method, apparatus and system of database synchronization
CN104573915B (en) Bullet train product structure tree constructing method and device
CN105549548B (en) Three-dimensional assembly technique generation method and generating means
CN105975274B (en) Method and device for displaying window applied to Android platform
CN105701159B (en) A data synchronization device and method
CA2386272A1 (en) Collaborative design
US20210035027A1 (en) Distributed training for deep learning models
CN105898507B (en) A kind of vision signal synchronous method and device
CN113672692B (en) Data processing method, data processing device, computer equipment and storage medium
CN105630571A (en) Virtual machine creating method and device
CN102902746A (en) Method, device and system for processing mass data
CN114780301B (en) Disaster recovery method and system supporting multi-cloud production environment
CN116521793A (en) Meta-universe data processing method and device
CN106611062A (en) Database updating method and device
CN105988997B (en) A kind of method of data synchronization and device based on hierarchy
CN107332625A (en) One kind positioning wireless synchronization master and alignment system
CN106844390A (en) A kind of inter-sectional data resource cut-in method
CN103971189B (en) A kind of method and apparatus of multimode management
CN108520081A (en) A kind of interior decoration paper furred ceiling drawing system, method, terminal and medium
CN107908434A (en) The method for customizing and device of web application items based on multi-tenant
CN107040564A (en) Method of data synchronization, data synchronization server and the cloud storage system of cloud storage
CN103401791A (en) Method and equipment for identifying boundary port
CN103745071B (en) Data processing method and device for labeled product manufacturing information
CN105930100A (en) Realization method for optimizing file reading/writing speed and frequency of USIM card

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province

Applicant after: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant after: Beijing Kingsoft office software Limited by Share Ltd

Applicant after: GUANGZHOU JINSHAN JINSHAN MOBILE TECHNOLOGY CO., LTD.

Address before: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province

Applicant before: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant before: Beijing Kingsoft WPS Office Co., Ltd.

Applicant before: GUANGZHOU JINSHAN JINSHAN MOBILE TECHNOLOGY CO., LTD.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210323

Address after: Room 204, 2 / F, building B24, Guanggu financial port, 77 Guanggu Avenue, Donghu New Technology Development Zone, Wuhan, Hubei 430200

Patentee after: WUHAN KINGSOFT OFFICE Co.,Ltd.

Patentee after: ZHUHAI KINGSOFT OFFICE SOFTWARE Co.,Ltd.

Patentee after: BEIJING KINGSOFT OFFICE SOFTWARE Co.,Ltd.

Address before: 519015 Jinshan software building, 8 Lanshan lane, Jida Jingshan Hill Road, Zhuhai, Guangdong

Patentee before: ZHUHAI KINGSOFT OFFICE SOFTWARE Co.,Ltd.

Patentee before: BEIJING KINGSOFT OFFICE SOFTWARE Co.,Ltd.

Patentee before: GUANGZHOU KINGSOFT MOBILE TECHNOLOGY Co.,Ltd.