CN102215120B - Data processing method and system for network element - Google Patents

Data processing method and system for network element Download PDF

Info

Publication number
CN102215120B
CN102215120B CN201010240247.2A CN201010240247A CN102215120B CN 102215120 B CN102215120 B CN 102215120B CN 201010240247 A CN201010240247 A CN 201010240247A CN 102215120 B CN102215120 B CN 102215120B
Authority
CN
China
Prior art keywords
order
data
source
delete
dependence
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
CN201010240247.2A
Other languages
Chinese (zh)
Other versions
CN102215120A (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.)
Nanjing Zhongxing Software Co Ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201010240247.2A priority Critical patent/CN102215120B/en
Publication of CN102215120A publication Critical patent/CN102215120A/en
Application granted granted Critical
Publication of CN102215120B publication Critical patent/CN102215120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a data processing method for a network element. The data processing method comprises the following steps of: searching for a relationship command of a command corresponding to data to be deleted, determining the type of the relationship command, and judging whether the relationship command has the corresponding data or not; and performing processing according to preset rules according to a judgment result and the type of the relationship command. The invention also discloses a data processing system for the network element. In the method and the system, the relationship command of the command corresponding to the data to be deleted, and is judged whether to have the corresponding data or not, and the processing is performed according to the judgment result so as to realize centralized management over the commands, make the consistency of the data in the network element independent of network management and bring convenience to maintenance and extension.

Description

Data processing method and system in a kind of network element
Technical field
The present invention relates to a kind of transmission equipment, relate in particular to the interior data processing method of network element and system in a kind of transmission equipment.
Background technology
For user friendly management, transmission product correspondence has been developed webmaster product, manages for the transmission equipment to network and transmission network.User comes element configuration data by webmaster, thereby reaches the object of managed network element.
Between common user configured data, have dependence, dependence orders B to depend on order A, is defined as follows: suppose that order B is for creating tunnel, order A is for creating port, in the time that the tunnel X process of order B establishment is ordered the port Y of A establishment, if delete Y, must first delete X.Between user configured data, have incidence relation simultaneously, order D to be associated with order C, be defined as follows: suppose that order C is plate order, D is for arranging the order of veneer base attribute in order, when having increased veneer X by order C, then by D command set the base attribute Y of veneer Z, after deleting single plate X, Y need be deleted.
Owing to having two kinds of relations of foregoing description between data, be easy to cause inconsistency and the integrality of data in network element.How to ensure that the consistency of data in network element and integrality are our problems in the urgent need to address.
Summary of the invention
The object of the invention is for the deficiencies in the prior art, provide a kind of and ensure that the interior data of network element have the interior data processing method of network element and the system of consistency and integrality.
For achieving the above object, the present invention has adopted following technical scheme: data processing method in a kind of network element, comprising:
Search the order that is related to of order corresponding to the data that will delete, determine the described order kind that is related to, judge to be describedly related to whether order exists corresponding data;
According to judged result and the described order kind that is related to, process by pre-defined rule.
Describedly be related to that order kind comprises dependence order and incidence relation order.
Described method also comprises: definition allocation list structure, for depositing dependence and/or the incidence relation between order; Definition chained list, taking order corresponding to the data that will delete as source order, adds up in described allocation list structure and the object order of described source order Existence dependency relationship, forms the first configuration information structure, is inserted in described chained list; There is the object order of incidence relation in statistics and the order of described source, forms the second configuration information structure, is inserted in described chained list.
The described order that is related to of searching order corresponding to the data that will delete, determine the described order kind that is related to, judge and be describedly related to whether order exists corresponding data specifically to comprise: the object order of searching the order of described source in described chained list, when the order of described source and object order be related to that order kind is dependence time, judgement with source order have the object order of dependence whether to have corresponding data; According to judged result and the described order kind that is related to, process and comprise by pre-defined rule: if having the object order of dependence without corresponding data with source order, the data that will delete described in deleting; Otherwise, do not delete the described data that will delete.
The described order that is related to of searching order corresponding to the data that will delete, determine the described order kind that is related to, judge and be describedly related to whether order exists corresponding data also to comprise: the object order of searching the order of described source in described chained list, when the order of described source and object order be related to that order kind is incidence relation time, judge whether the object order relevant with source order exists corresponding data; Described according to judged result and the described order kind that is related to, also process and comprise by pre-defined rule: after the data that will delete described in deleting, if the object order relevant with source order has corresponding data, delete the corresponding data of described relevant with source order object order.
Data handling system in a kind of network element, comprises judge module and processing module; Described judge module, for searching the order that is related to of order corresponding to the data that will delete, is determined the described order kind that is related to, judges to be describedly related to whether order exists corresponding data; Described processing module, for according to judged result and the described order kind that is related to, is processed by pre-defined rule.
Describedly be related to that order kind comprises dependence order and incidence relation order.
Also comprise Registering modules, described Registering modules is used for defining allocation list structure, deposits dependence and/or incidence relation between order; Definition chained list, taking order corresponding to the data that will delete as source order, adds up in described allocation list structure and the object order of described source order Existence dependency relationship, forms the first configuration information structure, is inserted in described chained list; Described Registering modules, also for adding up the object order that has incidence relation with the order of described source, forms the second configuration information structure, is inserted in described chained list.
Described judge module is also for search the object order of described source order at described chained list, when the order of described source and object order be related to that order kind is dependence time, judgement has the object order of dependence whether to have corresponding data with source order; Described processing module is also for during without corresponding data, deleting the described data that will delete in the object order that has a dependence with source order, in the time having the object order of dependence to have corresponding data with source order, and the data that will delete described in not deleting.
Described judge module is also for search the object order of described source order at described chained list, when the order of described source and object order be related to that order kind is incidence relation time, judge whether the object order relevant with source order exists corresponding data; Described processing module, also for after the data deleting described in deleting, if the object order relevant with source order has corresponding data, is deleted the corresponding data of described relevant with source order object order.
Owing to having adopted above technical scheme, the beneficial effect that the present invention possesses is:
(1) in the specific embodiment of the present invention, by searching the order that is related to of order corresponding to the data that will delete, judge whether it exists corresponding data, and process according to judged result, the present invention manages concentratedly order, make data consistency in network element not rely on webmaster, be convenient to maintenance and expansion.
(2) in the specific embodiment of the present invention, there is the order of dependence by searching order corresponding to data that will delete, if this has the order of dependence to have corresponding data, do not delete the data that this will be deleted, consistency and the integrality of the interior data for Existence dependency relationship of network element are ensured in configuration data process.
(3) in the specific embodiment of the present invention, after the data that deletion will be deleted, also search the relevant order of the order corresponding with the data of this deletion, if there are corresponding data in this relevant order, delete the corresponding data of this relevant order, ensure consistency and the integrality of the data that have incidence relation in network element, thereby further ensured consistency and the integrality of data in network element.
Brief description of the drawings
Fig. 1 illustrates the structural representation in a kind of embodiment of system of the present invention;
Fig. 2 illustrates the structural representation in the another kind of embodiment of system of the present invention;
Fig. 3 illustrates the flow chart of a kind of execution mode in the inventive method;
Fig. 4 illustrates the flow chart of another kind of execution mode in the inventive method;
Fig. 5 illustrates the flow chart of a kind of embodiment in the inventive method.
Embodiment
By reference to the accompanying drawings the present invention is described in further detail below by embodiment.
As shown in Figure 1 and Figure 2, data handling system in a kind of network element of the present invention, its a kind of execution mode, comprises judge module and processing module; Judge module for searching the order that is related to of order corresponding to the data that will delete, is determined and is related to order kind, judges and be related to whether order exists corresponding data; Processing module, for according to judged result, is processed by pre-defined rule.
In one embodiment, be related to that order kind comprises dependence order and incidence relation order.
In one embodiment, system of the present invention also comprises Registering modules, and Registering modules is used for defining allocation list structure, deposits dependence and/or incidence relation between order; Definition chained list, taking order corresponding to the data that will delete as source order, with the object order of source order Existence dependency relationship, forms the first configuration information structure in statistics allocation list structure, is inserted in chained list as node; Registering modules, also for adding up the object order that has incidence relation with source order, forms the second configuration information structure, is inserted in chained list as node.
In a kind of embodiment, this allocation list structure is defined as follows:
Relationship type Source order Source order contact field Object order Object order contact field
Wherein, relationship type represents it is dependence or incidence relation between the two, and order corresponding to data that delete is source order, with the order of described source order Existence dependency or incidence relation be object order.Source order and object order are relied on and dependence or associated and associated relation.Two orders simultaneously rely on mutually by certain field or multiple field or association, have therefore also defined source order contact field and two attributes of object order contact field.
For example relationship type is for relying on, order A in source is a newly-increased veneer order, object order B is the order that this property of single plate is set, source order A and object order B can connect by veneer address, source order contact field is exactly the veneer address in source order A, and object order contact field is exactly the veneer address in object order B.
Registering modules is chained list of definable also, and the order that has dependence is formed to the first configuration information structure, is registered in this chained list with joint form.The first configuration information structure is defined as follows:
Dependence Source order The object order number relying on mutually with source order Concrete related information
The 4th field of this structure is to deposit concrete related information with the form of array, and the member of array is allocation list structure.
Again relevant order is formed to the second configuration information structure, be registered in this chained list with joint form.The second configuration information structure is defined as follows:
Incidence relation Source order The object order number being associated with source order Concrete related information
The 4th field of this structure is to deposit concrete related information with the form of array, and the member of array is allocation list structure.
Judge module is also used in the object order of searching source order in chained list, when source order and object order be related to that order kind is dependence time, judgement with source order have the object order of dependence whether to have corresponding data; Processing module is also in the object order that has a dependence with source order during without corresponding data, and the data that deletion will be deleted, in the time having the object order of dependence to have corresponding data with source order, do not delete the described data that will delete, end process flow process.
Judge module is also used in the object order of searching source order in chained list, when source order and object order be related to that order kind is incidence relation time, judge whether the object order relevant with source order exists corresponding data; Processing module also, for deleting after the data that will delete, if the object order relevant with source order has corresponding data, is deleted the corresponding data of this object order relevant with source order.
Data processing method in a kind of network element of the present invention, its a kind of execution mode, as shown in Figure 3, comprises the following steps:
Step 302: search the order that is related to of order corresponding to the data that will delete, determine the described order kind that is related to, judge to be describedly related to whether order exists corresponding data.
Step 304: according to judged result and the described order kind that is related to, process by pre-defined rule.
As shown in Figure 4, data processing method in a kind of network element of the present invention, its another kind of execution mode, comprises the following steps:
Step 402: start flow process;
Step 404: registration dependence; Registering modules definition allocation list structure and chained list, allocation list structure is in order to deposit the dependence between order, taking order corresponding to the data that will delete as source order, in statistics allocation list structure with the object order of described source order Existence dependency relationship, form the first configuration information structure, be inserted in chained list as node;
Step 406: the order that is related to of order corresponding to the data that delete exists corresponding data? after the data that obtained deleting by the data that configure, taking the corresponding order of these data as source order, in the chained list of Registering modules definition, find and be related to that kind is the configuration information structure of dependence, judge the order of the order Existence dependency relationship corresponding with the data that will delete, there are corresponding data? be, go to step 408, noly go to step 410;
Step 408: the data that deletion will be deleted;
Step 410: process ends.
In another embodiment, in step 404, also further comprise:
Taking order corresponding to the data that will delete as source order, there is the object order of incidence relation in Registering modules, forms the second configuration information structure with the order of described source in statistics allocation list structure, be inserted in chained list as node;
Further comprising the steps of after step 408:
Step S02: taking the corresponding order of deleted data as source order, find and be related to that kind is the configuration information structure of incidence relation in the chained list of Registering modules definition;
Step S04: travel through the object order relevant with this source order, search in NE database whether have data corresponding to this object order by contact field, if had, data corresponding this object order are deleted.
As shown in Figure 5, in data processing method in a kind of network element of the present invention, the flow chart whether data that judgement will be deleted can delete, comprises the following steps:
Step 502: start flow process;
Step 504: search the order that the order corresponding with the data that will delete is dependence; Taking order corresponding to the data that will delete as source order, to have the order of dependence as object order with source order, in the node of the first configuration information structure in chained list, search object order;
Step 506: traversal has the object order of dependence with this delete command in the first configuration information structure;
Step 508: search data corresponding to this object order; According to the field being associated, search the corresponding data of object order that have dependence with source order;
Step 510: object order exists corresponding data? judge whether this object order exists corresponding data, if exist, go to step 512, if do not exist, go to step 514;
Step 512: put error code; Put error code, go to step 518, for source order corresponding to the object order of putting error code, can not delete its corresponding data;
Step 514: the next object order that has dependence of traversal;
Step 516: traversal finishes? judge whether that traversal finishes, if finish, goes to step 518; Otherwise go to step 508;
Step 518: finish.
Above content is in conjunction with concrete execution mode further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.

Claims (6)

1. a data processing method in network element, is characterized in that, comprising:
Search the order that is related to of order corresponding to the data that will delete, determine the described order kind that is related to, judge to be describedly related to whether order exists corresponding data;
According to judged result and the described order kind that is related to, process by pre-defined rule;
Describedly be related to that order kind comprises dependence order and incidence relation order;
Described method also comprises:
Definition allocation list structure, for depositing dependence and/or the incidence relation between order;
Definition chained list, taking order corresponding to the data that will delete as source order, adds up in described allocation list structure and the object order of described source order Existence dependency relationship, forms the first configuration information structure, is inserted in described chained list; There is the object order of incidence relation in statistics and the order of described source, forms the second configuration information structure, is inserted in described chained list.
2. data processing method in network element as claimed in claim 1, is characterized in that, described in search the order that is related to of order corresponding to the data that will delete, determine the described order kind that is related to, judge be describedly related to whether order exists corresponding data specifically to comprise:
In described chained list, search the object order of described source order, when the order of described source and object order be related to that order kind is dependence time, judgement with source order have the object order of dependence whether to have corresponding data;
According to judged result and the described order kind that is related to, process and comprise by pre-defined rule:
If have the object order of dependence without corresponding data with source order, the data that will delete described in deleting; Otherwise, do not delete the described data that will delete.
3. data processing method in network element as claimed in claim 2, is characterized in that, described in search the order that is related to of order corresponding to the data that will delete, determine the described order kind that is related to, judge be describedly related to whether order exists corresponding data also to comprise:
In described chained list, search the object order of described source order, when the order of described source and object order be related to that order kind is incidence relation time, judge whether the object order relevant with source order exists corresponding data;
Described according to judged result and the described order kind that is related to, also process and comprise by pre-defined rule:
After the data that will delete described in deleting, if the object order relevant with source order has corresponding data, delete the corresponding data of described relevant with source order object order.
4. a data handling system in network element, is characterized in that, comprises judge module and processing module; Described judge module, for searching the order that is related to of order corresponding to the data that will delete, is determined the described order kind that is related to, judges to be describedly related to whether order exists corresponding data; Described processing module, for according to judged result and the described order kind that is related to, is processed by pre-defined rule; Describedly be related to that order kind comprises dependence order and incidence relation order;
Also comprise Registering modules, described Registering modules is used for defining allocation list structure, deposits dependence and/or incidence relation between order; Definition chained list, taking order corresponding to the data that will delete as source order, adds up in described allocation list structure and the object order of described source order Existence dependency relationship, forms the first configuration information structure, is inserted in described chained list; Described Registering modules, also for adding up the object order that has incidence relation with the order of described source, forms the second configuration information structure, is inserted in described chained list.
5. data handling system in network element as claimed in claim 4, is characterized in that, described judge module is also in the time that made kind is dependence, and judgement has the object order of dependence whether to have corresponding data with source order; Described processing module is also for during without corresponding data, deleting the described data that will delete in the object order that has a dependence with source order, in the time having the object order of dependence to have corresponding data with source order, and the data that will delete described in not deleting.
6. data handling system in network element as claimed in claim 5, it is characterized in that, described judge module is also for searching the object order of described source order at described chained list, when the order of described source and object order be related to that order kind is incidence relation time, judge whether the object order relevant with source order exists corresponding data; Described processing module, also for after the data deleting described in deleting, if the object order relevant with source order has corresponding data, is deleted the corresponding data of described relevant with source order object order.
CN201010240247.2A 2010-07-29 2010-07-29 Data processing method and system for network element Active CN102215120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010240247.2A CN102215120B (en) 2010-07-29 2010-07-29 Data processing method and system for network element

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010240247.2A CN102215120B (en) 2010-07-29 2010-07-29 Data processing method and system for network element

Publications (2)

Publication Number Publication Date
CN102215120A CN102215120A (en) 2011-10-12
CN102215120B true CN102215120B (en) 2014-06-11

Family

ID=44746261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010240247.2A Active CN102215120B (en) 2010-07-29 2010-07-29 Data processing method and system for network element

Country Status (1)

Country Link
CN (1) CN102215120B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878068B (en) * 2017-01-24 2020-05-12 新华三技术有限公司 Configuration management method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070233925A1 (en) * 2006-03-31 2007-10-04 Sap Ag Centralized management of data nodes
US20070233861A1 (en) * 2006-03-31 2007-10-04 Lucent Technologies Inc. Method and apparatus for implementing SMS SPAM filtering
CN101651565B (en) * 2009-09-16 2015-10-21 中兴通讯股份有限公司 A kind of manmachine command cancel restoration methods and device

Also Published As

Publication number Publication date
CN102215120A (en) 2011-10-12

Similar Documents

Publication Publication Date Title
US10140351B2 (en) Method and apparatus for processing database data in distributed database system
WO2012012968A1 (en) Data partitioning method for distributed parallel database system
CN103678583B (en) The method and system that structural data compares
CN106940706B (en) System and method for creating and managing geospatial network models in a customer environment
CN103561133A (en) IP address ownership information indexing and fast querying method
CN107506484B (en) Operation and maintenance data association auditing method, system, equipment and storage medium
WO2016169237A1 (en) Data processing method and device
Kan et al. Topology modeling and analysis of a power grid network using a graph database
CN114297173A (en) Knowledge graph construction method and system for large-scale mass data
CN104298761A (en) Implementation method for master data matching between heterogeneous software systems
CN104965846B (en) Visual human's method for building up in MapReduce platform
CN111966707A (en) Query statement generation method and device, electronic equipment and computer readable medium
CN104408183A (en) Data import method and device of data system
CN102193988A (en) Method and system for retrieving node data in graphic database
CN102215120B (en) Data processing method and system for network element
CN113553458A (en) Data export method and device in graph database
US8548980B2 (en) Accelerating queries based on exact knowledge of specific rows satisfying local conditions
CN104318501A (en) Pipeline network topological relation establishment method, device and system
CN106716400A (en) Partitioned management method and apparatus for data table
CN107239568A (en) Distributed index implementation method and device
CN105681327A (en) Automatic query method and system for firewall policy
CN115510072A (en) Main data engine based on multi-tenant SaaS application platform
CN108345699A (en) Obtain the method, apparatus and storage medium of multi-medium data
CN115114289A (en) Data query method and device and electronic equipment
CN104660428B (en) A kind of management method and device of performance data

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200729

Address after: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68

Patentee after: Nanjing Zhongxing New Software Co.,Ltd.

Address before: 518057 Zhongxing building, science and technology south road, Nanshan District Science Park, Guangdong, Shenzhen

Patentee before: ZTE Corp.