CN1816046A - Interface self-adaption method and apparatus - Google Patents

Interface self-adaption method and apparatus Download PDF

Info

Publication number
CN1816046A
CN1816046A CN 200510033201 CN200510033201A CN1816046A CN 1816046 A CN1816046 A CN 1816046A CN 200510033201 CN200510033201 CN 200510033201 CN 200510033201 A CN200510033201 A CN 200510033201A CN 1816046 A CN1816046 A CN 1816046A
Authority
CN
China
Prior art keywords
self
management system
information
interface
node
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.)
Pending
Application number
CN 200510033201
Other languages
Chinese (zh)
Inventor
张樊军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200510033201 priority Critical patent/CN1816046A/en
Publication of CN1816046A publication Critical patent/CN1816046A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The equipment includes managing device and managed device. Managing system is setup on the managing device, and managed system is setup on the managed device. Characters are that the managing system includes self-description library of the managed system, and the managed system includes self-description interface; through the self-description interface, the managed system transfers the self-description information to the managing system; searching and comparing with information in self-description library, the managing system sets up self-description interface suitable to self-description information; using the said self-description interface implements interoperation between the managing system and managed system. Comparing whit prior art, the invention possesses advantages: not need of configuring any information of other system, recognizing the system interacted with, so as to reduce workload, enhanced capabilities of fault tolerant, simple version compatibility etc.

Description

A kind of interface self-adaption method and device thereof
Technical field
The present invention relates to the multisystem coupling technique, promptly have the system of a plurality of independent operatings, and have between system alternately, be specifically related to a kind of interface self-adaption method and device thereof.
Background technology
In the prior art, as shown in Figure 1, during the multisystem coupling, promptly in a set of equipment device, have the system of a large amount of independent operatings, between the system if mutually mutual, must in each system, preset the relevant information that all need mutual system, just interface message one to one will be set, otherwise just can't realize between system mutually not alternately.If there is new system to join in the already present system, or old system done some change, upgrade the system that all are coupled with it simultaneously, system that looks for novelty and old system are compatible fully, this has just limited the flexibility of system greatly, has also increased the maintenance cost of system.So specifically there is following shortcoming in prior art:
1, the interface message of necessary pre-configured all mutual with it systems can't be discerned the not system of configuration.
2, system is essential when upgrading now keeps existing interface, otherwise can not guarantee operate as normal.
If 3 have system to revise system interface, must upgrade the version of all coupled systems simultaneously, cause complicated version Matching Relationship.
Summary of the invention
The technical problem to be solved in the present invention is, a kind of interface self-adaption method and device thereof are provided, under multisystem coupling situation, add new system or old system has been done modification, neither need to upgrade simultaneously the system that all are coupled with it, also do not need new system and old system compatible fully, just interface is mutual to realize automatically between system, make system more flexible like this, easy care more, and guarantee this correctness flexibly and stability.
One of the technical solution used in the present invention is, a kind of interface adaptive device, comprise management equipment and managed devices, on described management equipment, be provided with management system, on managed devices, be provided with by management system, it is characterized in that, described management system comprises by the self-described storehouse of management system, describedly comprised the self-described interface by management system, by described self-described interface self-described information is passed to management system by management system, management system search and the information in the self-described storehouse relatively are provided with and the corresponding adaptive interface of self-described information, by adaptive interface realize with by between management system alternately.
Above-mentioned interface adaptive device, described self-described information comprises by information such as Functions of Management System, interface and defectives, after described self-described information passes to management system, information in management system search and the comparison self-described storehouse, when having in the self-described storehouse with self-described information information corresponding, management system just is provided with and the corresponding adaptive interface of self-described information, by adaptive interface realize with by between management system alternately; When in the self-described storehouse during not with self-described information information corresponding, self-described information is downloaded in the self-described storehouse automatically, and management system is provided with and the corresponding adaptive interface of self-described information with this, by adaptive interface realize with by between management system alternately.
In order to obtain better technique effect, above-mentioned interface adaptive device, self-described information comprises self-described version number, described self-described version number comprises device number and interface boards this shop; When self-described version number was present in the self-described storehouse, management system just was provided with and the corresponding adaptive interface of self-described information; When self-described version number is not present in equipment self-described storehouse, when also not having identical device number, self-described information is downloaded in the self-described storehouse automatically, and management system is provided with and the corresponding adaptive interface of self-described information with this; When self-described version number is not present in the self-described storehouse, but when identical device number was arranged, self-described information can be revised and download in the self-described storehouse automatically, and management system is provided with and the corresponding adaptive interface of self-described information with this.
Two of the technical solution used in the present invention is that a kind of interface self-adaption method is characterized in that, may further comprise the steps:
S1: in management system, be provided with by the self-described storehouse of management system, the self-described interface is set in by management system,
S2: describedly by described self-described interface self-described information is passed to management system by management system,
S3: the information in described management system search and the comparison self-described storehouse, be provided with and the corresponding adaptive interface of self-described information,
S4: described management system by adaptive interface realize with by between management system alternately.
In order to obtain better technique effect, above-mentioned interface self-adaption method, in described S3, when having with self-described information information corresponding in the self-described storehouse, management system just is provided with and the corresponding adaptive interface of self-described information; When not having with self-described information information corresponding in the self-described storehouse, self-described information is downloaded in the self-described storehouse automatically, and management system is provided with and the corresponding adaptive interface of self-described information with this.
Compared with prior art, interface self-adaption method of the present invention and device thereof, because management system comprises the self-described storehouse, comprised the self-described interface by management system, can self self-described information be passed to management system by described self-described interface by management system, the automatic analyzing and processing self-described of management system information, being provided with and the corresponding adaptive interface of self-described information, by adaptive interface realize with by between management system mutually not alternately.The technique effect that brings like this is: management system does not need the interface message of pre-configured any other system, and the mutual with it system of identification reduces workload automatically; The fault-tolerant ability of enhanced system can be ignored unsupported function; The version Matching Relationship is simple, and is separate substantially between system; Can protect the defective of having found; Canned data can dynamically upgrade, and can extensively share.
Description of drawings
Fig. 1 is a prior art multisystem coupled structure schematic diagram;
Fig. 2 is a multisystem coupled structure schematic diagram of the present invention;
Fig. 3 is a self-described interface structure schematic diagram;
Fig. 4 is a self-described message structure schematic diagram;
Fig. 5 is a structure query message structure schematic diagram;
Fig. 6 is a content search message structure schematic diagram;
Fig. 7 is a structure query response message structural representation;
Fig. 8 is a content search response message structural representation;
Fig. 9 is self-described of the present invention and adaptive process flow chart.
Embodiment
As shown in Figure 2, a kind of interface adaptive device, comprise management equipment and managed devices, on described management equipment, be provided with management system, on managed devices, be provided with by management system, described management system and by management system independent operating separately, also can realize mutual each other, described management system comprises by the self-described storehouse of management system, describedly comprised the self-described interface by management system, can be by management system by the function of described self-described interface with self, interface, self-described information such as defective pass to management system, the automatic analyzing and processing self-described of management system information, when having with self-described information information corresponding in the self-described storehouse, management system just is provided with and the corresponding adaptive interface of self-described information, by adaptive interface realize with by between management system mutually not alternately; When not having in the self-described storehouse with self-described information information corresponding, equipment self-described storehouse can be downloaded self-described information automatically, management system is provided with and the corresponding adaptive interface of self-described information with this, by adaptive interface realize with by between management system mutually not alternately.
The self-described implementation, i.e. system's self-described and self-adapted protocol: this agreement does not define concrete order implementation method, by original command transfer method carrying between system.The self-described message structure, self-described information integral body is a tree, can be traveled through by root node, as shown in Figure 3; Each node has three kinds of attributes, as shown in Figure 4, is respectively node number, node mobility scale and node content.The node number coding rule is that root node is 0, its child node nodecode=1...x (x is a positive integer); Other child node number number adds its node number for father node, with ". " number separately.For example first child node of node 3.1 is 3.1.1; The node variation index is 0...x (x is a positive integer), and 0 representative is the node of change least easily, the easy more change of the big more declarative section dot information of numerical value, and the variation index of father node must be more than or equal to child node; Node content is meant the stored concrete self-described information of node.
Self-described information comprises self-described version number, is the identifier of system's self-described information, and version number is identical thinks that then self-described information is in full accord, otherwise then thinks inconsistent, and self-described version number is made up of device number+interface boards this shop, is stored in 0 node.Can calculate version intermediate node variation index by two self-described version numbers, reflect the scope of the node change between two versions, as version A=1.3.5.4, version B=1.3.5.5, the version number that AB two versions are identical is 3, then variation index is 3.If this index is 0, illustrate that all nodes of self-described inforamtion tree all change, need inquiry again; If this index is x (x is a positive integer), the node variation index that the self-described inforamtion tree is described changes more than or equal to all nodes of x, needs inquiry again.
The self adaptation message frame (order) that management system generates is divided into two classes: one is structure query message, inquire about the child node list information of certain node, have two parameters of node number and node variation index, response message is returned all the child node tabulations greater than this node variation index, as shown in Figure 5; Two is content search message, inquires about the content information of certain node, has parameter of node number, as shown in Figure 6.
Self-described message frame (replying) by management system generates is divided into two classes, and corresponding to two classes of self adaptation message frame: one is the structure query response message, comprises all child nodes of this node number, as shown in Figure 7; Two is the content search response message, comprises the child node number and the content of this node, as shown in Figure 8.
As shown in Figure 9, send self adaptation message frame (order), inquire about 0 node number, be obtained from and describe interface boards this shop by adaptive interface.If this self-described interface boards this shop has been present in database, management system just is provided with and the corresponding adaptive interface of self-described information; When self-described version number is not present in equipment self-described storehouse, when not having identical device number yet, with the node variation index of this version is 0, and equipment self-described storehouse can be downloaded self-described information automatically, and management system is provided with and the corresponding adaptive interface of self-described information with this; When self-described version number is not present in equipment self-described storehouse, but when identical device number is arranged, calculated version intermediate node variation index, self-described information can be revised and download in equipment self-described storehouse automatically, and management system is provided with and the corresponding adaptive interface of self-described information with this.
Interface adaptive technology of the present invention is applied to the automatic Core Generator of help document, it also is the process of a complexity that the help document of common software systems is write, particularly after the function of software systems is changed to some extent, generally be to submit modified application to, walk flow process and allow the relevant documentation personnel of writing change help document by exploitation.This process complexity, link is many, is easy to generate mistake.The automatic Core Generator of help document uses self-described and adaptive interface, can generate help document automatically according to pre-configured form and self-described information.Reduce artificial link like this, reduced wrong probability of happening, improved production efficiency, reached the purpose that information is shared automatically.
Interface adaptive technology of the present invention is applied to the transmission system plug-and-play feature, and in optical transmission system, by all transmission network elements of webmaster program management, this is a typical multisystem coupling environment.Present stage, main problem is exactly a compatibling problem, and the version Matching Relationship is complicated unusually.If but used the self-described adaptive technique, and more above listed problems can be readily solved, and specifically are, automatic within the specific limits compatible redaction network element, and the version Matching Relationship is simple, accomplishes plug and play substantially; Can be partly compatible, promptly situation about can not support at partial function is unlikely to make network element to use; Use defective self-described, can protect the defective of having found automatically, or back recovery automatically takes place in defective.

Claims (10)

1, a kind of interface adaptive device, comprise management equipment and managed devices, on described management equipment, be provided with management system, on managed devices, be provided with by management system, it is characterized in that, described management system comprises by the self-described storehouse of management system, describedly comprised the self-described interface by management system, by described self-described interface self-described information is passed to management system by management system, information in management system search and the comparison self-described storehouse, be provided with and the corresponding adaptive interface of self-described information, by adaptive interface realize with by between management system alternately.
2, according to the described interface adaptive device of claim 1, it is characterized in that, described self-described information comprises by information such as Functions of Management System, interface and defectives, after described self-described information passes to management system, information in management system search and the comparison self-described storehouse, when having with self-described information information corresponding in the self-described storehouse, management system just is provided with and the corresponding adaptive interface of self-described information, by adaptive interface realize with by between management system alternately; When in the self-described storehouse during not with self-described information information corresponding, self-described information is downloaded in the self-described storehouse automatically, and management system is provided with and the corresponding adaptive interface of self-described information with this, by adaptive interface realize with by between management system alternately.
3, according to the described interface adaptive device of claim 1, it is characterized in that self-described information comprises self-described version number, described self-described version number comprises device number and interface boards this shop.
According to the described interface adaptive device of claim 3, it is characterized in that 4, when self-described version number was present in the self-described storehouse, management system just was provided with and the corresponding adaptive interface of self-described information; When self-described version number is not present in the self-described storehouse, when also not having identical device number, self-described information is downloaded in the self-described storehouse automatically, and management system is provided with and the corresponding adaptive interface of self-described information with this; When self-described version number is not present in the self-described storehouse, but when identical device number was arranged, self-described information can be revised and download in the self-described storehouse automatically, and management system is provided with and the corresponding adaptive interface of self-described information with this.
5, according to the arbitrary described interface adaptive device of claim 1 to 4, it is characterized in that described self-described information is the tree that comprises root node and multistage child node, can be traveled through by root node.
6 according to the described interface adaptive device of claim 5, it is characterized in that, each described node comprises node number, node mobility scale and three kinds of attributes of node content.
7, according to the described interface adaptive device of claim 3, it is characterized in that the coding rule of described node number is: root node is 0, its child node number is 1...x, x is a positive integer, and other child node number number adds its node number for father node, and number separates with ". "; Described node variation index is 0...x, and x is a positive integer, and 0 representative is the node of change least easily, the easy more change of the big more nodal information of numerical value, and the variation index of father node must be more than or equal to child node; Described node content is the concrete self-described information that node is deposited.
8, according to the described interface adaptive device of claim 7, it is characterized in that, described self-described version number is stored in root node, during the automatic analyzing and processing self-described of management system information, calculate the self-described version intermediate node variation index of the node mobility scale between two versions of reflection by two self-described version numbers, when self-described version intermediate node variation index is 0, then change all nodes of self-described inforamtion tree, when self-described version intermediate node variation index is positive integer x, then change the node variation index of self-described inforamtion tree all nodes more than or equal to x.
9, a kind of interface self-adaption method is characterized in that, may further comprise the steps:
S1: in management system, be provided with by the self-described storehouse of management system, the self-described interface is set in by management system,
S2: describedly by described self-described interface self-described information is passed to management system by management system,
S3: the information in described management system search and the comparison self-described storehouse, be provided with and the corresponding adaptive interface of self-described information,
S4: described management system by adaptive interface realize with by between management system alternately.
According to the described interface self-adaption method of claim 9, it is characterized in that 10, in described S3, when having with self-described information information corresponding in the self-described storehouse, management system just is provided with and the corresponding adaptive interface of self-described information; When not having with self-described information information corresponding in the self-described storehouse, self-described information is downloaded in the self-described storehouse automatically, and management system is provided with and the corresponding adaptive interface of self-described information with this.
CN 200510033201 2005-02-04 2005-02-04 Interface self-adaption method and apparatus Pending CN1816046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510033201 CN1816046A (en) 2005-02-04 2005-02-04 Interface self-adaption method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510033201 CN1816046A (en) 2005-02-04 2005-02-04 Interface self-adaption method and apparatus

Publications (1)

Publication Number Publication Date
CN1816046A true CN1816046A (en) 2006-08-09

Family

ID=36908000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510033201 Pending CN1816046A (en) 2005-02-04 2005-02-04 Interface self-adaption method and apparatus

Country Status (1)

Country Link
CN (1) CN1816046A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102651696A (en) * 2011-02-28 2012-08-29 中兴通讯股份有限公司 Method and system for managing network management system interfaces in various versions
CN104626166A (en) * 2014-12-19 2015-05-20 东莞市易辉自动化机械有限公司 Hardware controller of mechanical arm
CN109521290A (en) * 2017-09-20 2019-03-26 许继集团有限公司 A kind of plug & play sensor monitoring system and acquisition unit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102651696A (en) * 2011-02-28 2012-08-29 中兴通讯股份有限公司 Method and system for managing network management system interfaces in various versions
CN104626166A (en) * 2014-12-19 2015-05-20 东莞市易辉自动化机械有限公司 Hardware controller of mechanical arm
CN109521290A (en) * 2017-09-20 2019-03-26 许继集团有限公司 A kind of plug & play sensor monitoring system and acquisition unit

Similar Documents

Publication Publication Date Title
CN110851237B (en) Container cross-isomerism cluster reconstruction method for domestic platform
US7493377B2 (en) Method and apparatus to manage a configuration of clustered computers according to deployment date structures
US20050160399A1 (en) Apparatus and method for automatically migrating client server applications to other architectures and platforms
US7921419B2 (en) Method and mechanism for managing incompatible changes in a distributed system
CN1922572A (en) System and method for building mixed mode execution environment for component applications
CN1509007A (en) Method for analysing binary data, system and computer product thereof
CN1592291A (en) Method and system for managing service state data
CN1545252A (en) A method for implementing foreground data configuration in network management system
WO2020089259A1 (en) Method and system for integrating data from different data sources into a knowledge graph storage unit
CN1969280A (en) Remote system administration using command line environment
EP1265155A2 (en) File tree comparator
CN101183370A (en) Topological modelling approach based on class definition and relationship definition
CN1794170A (en) Tele communication region modeling tool based on unified modeling language and modeling method
US20020147962A1 (en) Method and system for incorporating legacy applications into a distributed data processing environment
CN101776996A (en) Construction implementation method of object-based configuration management system in communication system
EP1217547A2 (en) Object integrated management system
CN111324619B (en) Object updating method, device, equipment and storage medium in micro-service system
WO2004092909A2 (en) Method and system for journaling and accessing sensor and configuration data
US20030055921A1 (en) Method and apparatus for reengineering legacy systems for seamless interaction with distributed component systems
CN1816046A (en) Interface self-adaption method and apparatus
US20050114152A1 (en) Reference solution architecture method and system
Padmanabhan et al. Tool-supported verification of product line requirements
CN102945264A (en) Method for intelligently starting distributed transaction
CN1809811A (en) Method and device for generating distributed JAVA applications by means of a central XML configuration file
CN112860954A (en) Real-time computing method and real-time computing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20060809