CN101286880B - Method and apparatus for managing object's creation - Google Patents

Method and apparatus for managing object's creation Download PDF

Info

Publication number
CN101286880B
CN101286880B CN2008100946910A CN200810094691A CN101286880B CN 101286880 B CN101286880 B CN 101286880B CN 2008100946910 A CN2008100946910 A CN 2008100946910A CN 200810094691 A CN200810094691 A CN 200810094691A CN 101286880 B CN101286880 B CN 101286880B
Authority
CN
China
Prior art keywords
unit
unique identifier
globally unique
kinds
static function
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
CN2008100946910A
Other languages
Chinese (zh)
Other versions
CN101286880A (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.)
Fu Huizhu
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 CN2008100946910A priority Critical patent/CN101286880B/en
Publication of CN101286880A publication Critical patent/CN101286880A/en
Application granted granted Critical
Publication of CN101286880B publication Critical patent/CN101286880B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a method for establishing a management object (MO), which comprises the steps that: structure bodies corresponding to various units are established according to global unique identifiers of the various units; static functions of the MO are established in the established structure bodies and the index of the static functions are stored in the structure bodies; the structure bodies corresponding to the input global unique identifiers are looked up according to the input global unique identifiers of the management units; and the MO corresponding to the management units is established by calling the static functions according to the index of the static functions looked up in the structure bodies. The invention also discloses a device for establishing the MO, which can establish the MO according to the global unique identifiers dynamically input in respect of surrogating the operation and maintenance, thus ensuring that the surrogating of the operation and maintenance has better flexibility; the method and device of the invention does not need code programming and has simple operation; furthermore, the structure bodies in the invention are linked to be a single-linked list, which is easy to extend.

Description

Management object creation method and device
Technical field
The present invention relates to network management technology, relate in particular to a kind of management object creation method and device.
Background technology
In communication network, network element device generally includes different types of physical location and logical block, and wherein, physical location is meant in esse network element device material object, comprise master control veneer, transmission veneer and radio frequency resource etc., radio frequency resource comprises transceiver veneer, antenna, power amplifier etc.; Logical block is meant the logic entity with network element device corresponding existence in kind, as: transmission link, sub-district, software version etc.When on Operation and Maintenance agency, various unit being managed, usually with different types of unit abstract according to Object Oriented method be management object (MO, Management Object), describe the behavior and the attribute of all kinds of unit with MO, different types of unit is managed thereby in maintenance process, create corresponding M O.This method that becomes MO to manage the various cell abstracts in the network element device makes that the attended operation complexity of network element device is low, is easy to expansion, and the data mode of organizing with MO for the user more for clarity and conciseness.
On Operation and Maintenance agency, when a kind of unit is managed, need on network element management device, create the MO of this unit correspondence, be that the class name according to each unit carries out the MO establishment in the prior art, the mode of class name with hard coded is embodied in the code.Because existing hard coded mode can't be with the class name character string and the type identification (ID of all kinds of unit, IDentity) etc. globally unique identifier is embodied in the code, on making that Operation and Maintenance is acted on behalf of, can't carry out the establishment of MO according to globally unique identifiers such as the class name character string of all kinds of unit and type i D, thereby make the Operation and Maintenance agency lack flexibility.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of management object creation method and device, to solve existing management object creation method, makes the Operation and Maintenance agency lack the problem of flexibility.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of management object MO creation method, comprising:
According to the globally unique identifier of all kinds of unit, create and the corresponding structure in described all kinds of unit;
The static function of creating MO is set in the structure of being created, and the static function pointer is kept in the described structure;
According to the globally unique identifier of the administrative unit of importing, the corresponding structure of globally unique identifier of searching Yu being imported, and according to the static function pointer in the structure of being searched, call described static function and create and the corresponding MO of described administrative unit.
The corresponding structure of described establishment and all kinds of unit further comprises: the structure of being created is linked into single-track link table, and stores the head pointer of described single-track link table; The corresponding structure of the then described globally unique identifier of searching and being imported is that head pointer according to described single-track link table travels through described single-track link table and searches.
The corresponding structure of described establishment and all kinds of unit further comprises: adopt the title of described all kinds of unit to add that the mode of fixing prefix or suffix names the structure of being created.
The mode of the globally unique identifier of described input manager unit is webmaster input or configuration file input.
Described globally unique identifier comprises at least a among the class name character string of described all kinds of unit and the type identification ID.
The present invention also provides a kind of MO creation apparatus, comprising:
The structure creation module is used for the globally unique identifier according to all kinds of unit, creates and the corresponding structure in described all kinds of unit;
Static function is provided with module, is used at the structure of being created the static function of creating MO being set, and the static function pointer is kept in the described structure;
The MO creation module, be used for globally unique identifier according to the administrative unit of input, the corresponding structure of the globally unique identifier of searching and being imported, and according to the static function pointer in the structure of being searched, call described static function and create and the corresponding MO of described administrative unit.
Described structure creation module comprises:
Structure is created submodule, is used for the globally unique identifier according to all kinds of unit, creates and the corresponding structure in described all kinds of unit;
Chained list constructor module, the structure that is used for being created is linked into single-track link table, and stores the head pointer of described single-track link table.
Described MO creation module comprises:
Chained list travels through submodule, is used for traveling through according to the head pointer of described single-track link table each structure of described single-track link table, the corresponding structure of globally unique identifier of searching Yu being imported;
MO creates submodule, is used for the static function pointer according to the structure of being searched, and calls described static function and creates and the corresponding MO of described administrative unit.
Described globally unique identifier comprises at least a among the class name character string of described all kinds of unit and the object type sign ID.
Management object creation method provided by the present invention and device, establishment comprises the structure of globally unique identifier, and the static function of creating MO is set in structure; When needing the MO of creative management unit correspondence, call the establishment that static function in the structure can realize MO according to the globally unique identifier of dynamic input.The present invention utilizes globally unique identifier to create MO, makes the Operation and Maintenance agency have better flexibility; And the present invention need not to write code, and is simple to operate; In addition, the structure among the present invention is linked into single-track link table, is easy to expansion.
Description of drawings
Fig. 1 is the flow chart of a kind of MO creation method of the present invention;
Fig. 2 is the flow chart of the MO creation method of the embodiment of the invention;
Fig. 3 is the structural representation of the single-track link table in the embodiment of the invention;
Fig. 4 is the composition structural representation of a kind of MO creation apparatus of the present invention.
Embodiment
The technical solution of the present invention is further elaborated below in conjunction with the drawings and specific embodiments.
A kind of MO creation method provided by the present invention, as shown in Figure 1, this method mainly may further comprise the steps:
Step 101 according to the globally unique identifier of all kinds of unit, is created and the corresponding structure in all kinds of unit.
On network element management device,, create and the corresponding structure in all kinds of unit according to the globally unique identifier of all kinds of unit in the network element device.Structure is the core of dynamic creation mechanism, the structure that various inhomogeneous unit are corresponding different respectively, the globally unique identifier of corresponding certain the class unit of storage in the structure.
Globally unique identifier among the present invention is meant the sign that is used for distinguishing the variety classes unit, in actual applications, the class name character string of all kinds of unit and type i D can be used to distinguish different types of unit, and pairing class name character string in different types of unit and type i D are inequality, therefore, can be with at least a globally unique identifier among class name character string and the type i D as all kinds of unit.The globally unique identifier that it is pointed out that indication of the present invention is not limited only to class name character string and type i D, comprises that also other can be used to distinguish the sign of variety classes unit.
In addition, can adopt the title of all kinds of unit to add the fixing prefix or the mode of suffix, each structure of being created is named.For example: when creating, can be DYN BOARD or BOARD DYN to the name of this structure with the pairing structure of veneer.
Step 102 is provided with the static function of creating MO in the structure of being created, and the static function pointer is kept in the structure.
Static function in each structure is used for creating the corresponding MO in all kinds of unit and exists, and the static function pointer that calls in the structure to be preserved can be realized calling static function.
Step 103, according to the globally unique identifier of the administrative unit of importing, the corresponding structure of globally unique identifier of searching Yu being imported, and according to the static function pointer in the structure of being searched, call static function and create and the corresponding MO of administrative unit.
For example: administrative unit is a veneer A, and the globally unique identifier of input veneer A is a, then finds the structure that storaging mark is a, and utilizes the static function pointer in the structure, calls static function and creates and the corresponding MO of veneer A.Created with the corresponding MO of veneer A after, from the database of network element management device, read the pairing property parameters of veneer A according to a of globally unique identifier, property parameters is stored among the MO of establishment.Network element management device can be according to the property parameters of being stored among the MO, realizes management to veneer A by the operation to MO; And the result that will manage veneer A offers database, upgrades with the state that carries out corresponding veneer A in the database.
On the Operation and Maintenance agency, when increasing an administrative unit newly, the globally unique identifier of dynamic input manager unit, this globally unique identifier can manually be imported by webmaster, also can adopt the form of configuration file to import automatically.Network element management device is according to the globally unique identifier of the administrative unit of input, search in all structures and the corresponding structure of the globally unique identifier that is imported, and according to the static function pointer in the finding structure, the static function of calling in the structure is created and the corresponding MO of administrative unit.
Among the present invention, above-mentioned each structure of creating can be configured to the form of single-track link table, thus convenient searching to structure.Below in conjunction with the embodiment of structure single-track link table, the MO creation method of the invention described above is further elaborated.The flow chart of the MO creation method of the embodiment of the invention as shown in Figure 2, mainly may further comprise the steps:
Step 201 is created structure.
On network element management device,, create and the corresponding structure in all kinds of unit according to the globally unique identifier of all kinds of unit in the network element device.Preserved the globally unique identifier of a certain class unit in each structure.
The creation procedure of structure is as follows:
struct?CDynMO
{
int?MOType;
T*(*m_pfnCreateDynMO)();
T*CreateDynMO();
static?CDynMO<T>*GetDynMO(int?type);
static?CDynMO<T>*pFirstMO;
CDynMO<T>*m_pNextMO;
};
Wherein, T represents certain class unit; MOType represents the globally unique identifier of corresponding certain class unit, and MOType can comprise at least a among class name character string and the type i D; M_pfnCreateDynMO represents to create the static function of MO; CreateDynMO represents the external call interface of static function; GetDynMO represents to obtain the external call interface of static function; PFirstMO represents the head pointer of single-track link table; M_pNextMO represents to point to the pointer of the next chained list node of this structure place node.
Step 202 is provided with the static function of creating MO in the structure of being created, and the static function pointer is kept in the structure.
Step 203, the single-track link table of establishment structure.
All structures are linked into a single-track link table, the structure of single-track link table as shown in Figure 3, chained list among the figure comprises n node, the corresponding structure of each node in the single-track link table, and each node all is made up of information field and pointer field, information field is used for the storage organization body, and pointer field is used to refer to next node.Head represents the head pointer of single-track link table, and the pointer field of the caudal knot point of single-track link table is empty.
Step 204 according to the globally unique identifier of dynamic input, begins to travel through the single-track link table of total body from linked list head.
When increasing the unit of a management newly, network element management device is according to the globally unique identifier of dynamically input and the linked list head pointer of preservation, and the single-track link table head from structure travels through whole single-track link table.
Step 205 judges whether match the node identical with the globally unique identifier that imports in single-track link table, if then forward step 206 to; Otherwise, finish this flow process.
If before the traversing operation of single-track link table is finished, it is identical with the globally unique identifier of input to match the globally unique identifier that is stored in certain node, then shows to find and the pairing structure of administrative unit; If before the traversing operation to single-track link table finishes, fail to match the node identical with the globally unique identifier that imports, then show not exist in the single-track link table and the pairing structure of administrative unit, thereby also just can't realize administrative unit is carried out the establishment of MO, finish this flow process.
Step 206 is called the static function of the establishment MO in the node that is found, administrative unit is carried out the establishment of MO.
The static function pointer that utilizes in the node to be preserved calls the static function of creating MO, realizes the establishment of MO.
For realizing the MO creation method of the invention described above, the present invention also provides a kind of MO creation apparatus, and in network element management device, as shown in Figure 4, this device comprises: structure creation module 10, static function are provided with module 20 and MO creation module 30.Wherein, structure creation module 10 is used for the globally unique identifier according to all kinds of unit, creates and the corresponding structure in all kinds of unit.Static function is provided with module 20, and syndeton body creation module 10 is used at the structure that structure creation module 10 is created the static function of creating MO being set, and the static function pointer is kept in the structure of being created.MO creation module 30, syndeton body creation module 10, be used for globally unique identifier according to the administrative unit of input, the corresponding structure of the globally unique identifier of searching and being imported, and, call static function and create and the corresponding MO of administrative unit according to the static function pointer in the structure of being searched.
Wherein, structure creation module 10 comprises: structure is created submodule 11 and chained list constructor module 12.Structure is created submodule 11, connects static function module 20 is set, and is used for the globally unique identifier according to all kinds of unit, creates and the corresponding structure in all kinds of unit.Chained list constructor module 12, the syndeton body is created submodule 11, and the structure that is used for being created is linked into single-track link table, and the head pointer of storage single-track link table.
Wherein, MO creation module 30 comprises: chained list traversal submodule 31 and MO create submodule 32.Chained list traversal submodule 31 connects chained list constructor module 12, is used for each structure according to the head pointer traversal single-track link table of single-track link table, the corresponding structure of globally unique identifier of searching Yu being imported.MO creates submodule 32, connects chained list traversal submodule 31, is used for the static function pointer according to the structure of being searched, and calls static function and creates and the corresponding MO of administrative unit.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (9)

1. a management object MO creation method is characterized in that, comprising:
According to the globally unique identifier of all kinds of unit, create and the corresponding structure in described all kinds of unit;
The static function of creating MO is set in the structure of being created, and the static function pointer is kept in the described structure;
According to the globally unique identifier of the administrative unit of importing, the corresponding structure of globally unique identifier of searching Yu being imported, and according to the static function pointer in the structure of being searched, call described static function and create and the corresponding MO of described administrative unit.
2. according to the described MO creation method of claim 1, it is characterized in that the corresponding structure of described establishment and all kinds of unit further comprises: the structure of being created is linked into single-track link table, and stores the head pointer of described single-track link table; The corresponding structure of the then described globally unique identifier of searching and being imported is that head pointer according to described single-track link table travels through described single-track link table and searches.
3. according to the described MO creation method of claim 1, it is characterized in that, the corresponding structure of described establishment and all kinds of unit further comprises: adopt the title of described all kinds of unit to add that the mode of fixing prefix or suffix names the structure of being created.
4. according to the described MO creation method of claim 1, it is characterized in that the mode of the globally unique identifier of described input manager unit is webmaster input or configuration file input.
5. according to the described MO creation method of claim 1, it is characterized in that described globally unique identifier comprises at least a among the class name character string of described all kinds of unit and the type identification ID.
6. a management object MO creation apparatus is characterized in that, comprising:
The structure creation module is used for the globally unique identifier according to all kinds of unit, creates and the corresponding structure in described all kinds of unit;
Static function is provided with module, is used at the structure of being created the static function of creating MO being set, and the static function pointer is kept in the described structure;
The MO creation module, be used for globally unique identifier according to the administrative unit of input, the corresponding structure of the globally unique identifier of searching and being imported, and according to the static function pointer in the structure of being searched, call described static function and create and the corresponding MO of described administrative unit.
7. according to the described MO creation apparatus of claim 6, it is characterized in that described structure creation module comprises:
Structure is created submodule, is used for the globally unique identifier according to all kinds of unit, creates and the corresponding structure in described all kinds of unit;
Chained list constructor module, the structure that is used for being created is linked into single-track link table, and stores the head pointer of described single-track link table.
8. according to the described MO creation apparatus of claim 6, it is characterized in that described MO creation module comprises:
Chained list travels through submodule, is used for traveling through according to the head pointer of described single-track link table each structure of described single-track link table, the corresponding structure of globally unique identifier of searching Yu being imported;
MO creates submodule, is used for the static function pointer according to the structure of being searched, and calls described static function and creates and the corresponding MO of described administrative unit.
9. according to each described MO creation apparatus of claim 6 to 8, it is characterized in that described globally unique identifier comprises at least a among the class name character string of described all kinds of unit and the object type sign ID.
CN2008100946910A 2008-05-07 2008-05-07 Method and apparatus for managing object's creation Expired - Fee Related CN101286880B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100946910A CN101286880B (en) 2008-05-07 2008-05-07 Method and apparatus for managing object's creation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100946910A CN101286880B (en) 2008-05-07 2008-05-07 Method and apparatus for managing object's creation

Publications (2)

Publication Number Publication Date
CN101286880A CN101286880A (en) 2008-10-15
CN101286880B true CN101286880B (en) 2010-09-01

Family

ID=40058861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100946910A Expired - Fee Related CN101286880B (en) 2008-05-07 2008-05-07 Method and apparatus for managing object's creation

Country Status (1)

Country Link
CN (1) CN101286880B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156631A (en) * 2011-04-27 2011-08-17 Tcl集团股份有限公司 Method and system for managing indicator in programming language

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473286B (en) * 2013-08-29 2018-01-02 上海斐讯数据通信技术有限公司 A kind of network management equipment panel management method and network management equipment panel
CN108228362B (en) * 2017-12-05 2020-09-22 北京东土科技股份有限公司 Compatible method, module and channel system of VxWorks system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1186999A2 (en) * 2000-06-15 2002-03-13 International Business Machines Corporation Method and apparatus for maintaining a linked list
CN1096637C (en) * 1991-12-12 2002-12-18 国际商业机器公司 Managing class method manes
US20060004856A1 (en) * 2004-06-15 2006-01-05 Xiangyang Shen Data management and persistence frameworks for network management application development
US20060149767A1 (en) * 2004-12-30 2006-07-06 Uwe Kindsvogel Searching for data objects

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1096637C (en) * 1991-12-12 2002-12-18 国际商业机器公司 Managing class method manes
EP1186999A2 (en) * 2000-06-15 2002-03-13 International Business Machines Corporation Method and apparatus for maintaining a linked list
CN1195276C (en) * 2000-06-15 2005-03-30 国际商业机器公司 Method and device for maintenance of chained list
US20060004856A1 (en) * 2004-06-15 2006-01-05 Xiangyang Shen Data management and persistence frameworks for network management application development
US20060149767A1 (en) * 2004-12-30 2006-07-06 Uwe Kindsvogel Searching for data objects

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
US 20060004856 A1,全文.

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156631A (en) * 2011-04-27 2011-08-17 Tcl集团股份有限公司 Method and system for managing indicator in programming language
CN102156631B (en) * 2011-04-27 2015-04-15 Tcl集团股份有限公司 Method and system for managing indicator in programming language

Also Published As

Publication number Publication date
CN101286880A (en) 2008-10-15

Similar Documents

Publication Publication Date Title
US20200327145A1 (en) Cooperative naming for configuration items in a distributed configuration management database environment
CN107943950B (en) Method and system for generating intelligent contracts of data in block chain
US8364683B2 (en) Importing and reconciling resources from disjoint name spaces to a common namespace
US9305096B2 (en) Uniform resource identifier template manipulation
CN102546708B (en) Plug-in obtaining method and system as well as relevant devices
CN106407303A (en) Data storage method and apparatus, and data query method and apparatus
CN105740048A (en) Image management method, device and system
CN104794123A (en) Method and device for establishing NoSQL database index for semi-structured data
CN103810212A (en) Automated database index creation method and system
US11068536B2 (en) Method and apparatus for managing a document index
CN102713904A (en) Method and apparatus for utilizing a scalable data structure
CA2398148C (en) System and method for managing bi-directional relationships between objects
CN107103011B (en) Method and device for realizing terminal data search
CN113326264A (en) Data processing method, server and storage medium
CN103853714A (en) Data processing method and device
CN102279749A (en) Method and equipment for merging codes
US6941309B2 (en) Object integrated management system
CN100392651C (en) Universal constraining realizing method for real-time internal memory database
CN104091228A (en) Systems for resource management, resource registering, resource inquiry and resource semantic corpus management of internet of things
CN100397397C (en) XML data storage and access method based on relational database
CN101286880B (en) Method and apparatus for managing object&#39;s creation
CN101621396B (en) Single board automatic management device and method
CN103107919A (en) Method and system for network resource modeling
CN104125300A (en) Synchronizing method for set-card separate type domestic gateway business configuration data
CN107463618B (en) Index creating method and device

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Fu Huizhu

Inventor before: Tian Tao

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20171016

Address after: 300270 Tianjin Binhai New Area, Tanggu waterfront garden 4-1-1103

Patentee after: Fu Huizhu

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Patentee before: ZTE Corporation

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100901

Termination date: 20180507