Summary of the invention
The present invention provides a kind of method that data process, and said method comprising the steps of:
Data collection layer module gathers data from the interface of different interface type;
The data collected are stored in local storage medium by described data collection layer module;
Data adaptation layer module obtains data from described local storage medium;
Described data adaptation layer module utilizes the interface type that the data obtained are corresponding, the data conversion that will obtain
Become the data of specific format, and the data after conversion are supplied to upper layer application.
Before described data collection layer module gathers data from the interface of different interface type, described method
Farther include: described data collection layer module utilizes the first preset strategy to determine the data needing to gather;
After described data collection layer module gathers data from the interface of different interface type, at described number
Before the data collected being stored in local storage medium according to acquisition layer module, described method is wrapped further
Include: described data collection layer module utilizes the second preset strategy to judge whether to filter the data collected;If
It is, the data that the most described data collection layer modular filtration collects;If it is not, then described data collection layer mould
Block performs to store the data collected the process in local storage medium;
After the data collected are stored in local storage medium by described data collection layer module, in institute
Stating before data adaptation layer module obtain data from described local storage medium, described method farther includes:
Described data adaptation layer module utilizes the 3rd preset strategy to determine the data needing to obtain;
After the data of acquisition are converted into the data of specific format by described data adaptation layer module, described
Before data after conversion are supplied to upper layer application by data adaptation layer module, described method farther includes:
Described data adaptation layer module utilizes the 4th preset strategy to determine the data being provided to upper layer application;
Wherein, described first preset strategy, described second preset strategy, described 3rd preset strategy, described
4th preset strategy, all specifically includes regular expression strategy and/or script logic strategy.
Described local storage medium includes: intermediate buffer data base or intermediate buffer file, and described method is entered
One step includes: the data collected are stored the process of local storage medium by described data collection layer module,
Specifically include: the data collected are stored described intermediate buffer data base or described intermediate buffer file;
Described data adaptation layer module obtains the process of data from described local storage medium, specifically includes: from institute
State acquisition data in intermediate buffer data base or described intermediate buffer file.
Described data adaptation layer module utilizes the interface type that the data obtained are corresponding, the data conversion that will obtain
Become the data of specific format, including: described data adaptation layer module obtains the adaptation that described interface type is corresponding
Masterplate, and utilize described adaptive masterplate that the data of described acquisition are converted into the data of specific format;
Wherein, described data adaptation layer module is provided with the adaptive masterplate that each interface type is corresponding in advance,
And adaptation masterplate for being converted into the data of specific format by the data of corresponding interface type;
Wherein, described data adaptation layer module utilizes described adaptive masterplate that the data of described acquisition are converted into spy
The process of the data of the formula that fixes, specifically includes: it is corresponding that described data adaptation layer module obtains described adaptive masterplate
Standardized structural;The data of described acquisition are converted into the data of described standardized structural;Utilize described suitable
Join masterplate and the data of described standardized structural are converted into the data of specific format.
After the data collected are stored in local storage medium by described data collection layer module, described side
Method farther includes: data analysis layer module merges process to the data of storage in local storage medium;
And/or, the data of storage in local storage medium are monitored processing by described data analysis layer module.
The present invention provides the device that a kind of data process, described device to specifically include:
Data collection layer module, for gathering data from the interface of different interface type, and will collect
Data store in local storage medium;Data adaptation layer module, for obtaining from described local storage medium
Fetch data, and utilize interface type corresponding to the data of acquisition, the data of acquisition are converted into specific format
Data, and the data after conversion are supplied to upper layer application.
Described data collection layer module, is additionally operable to described data collection layer module connecing from different interface type
Before gathering data on mouth, the first preset strategy is utilized to determine the data needing to gather;
Described data collection layer module, is additionally operable to described data collection layer module connecing from different interface type
After gathering data on mouth, in described data collection layer module, the data collected are stored locally stored Jie
Before in matter, the second preset strategy is utilized to judge whether to filter the data collected;Adopt if it is, filter
The data that collection arrives;If it is not, then the data collected are stored in local storage medium;
Described data adaptation layer module, is additionally operable to the data storage that will collect in described data collection layer module
After in local storage medium, from described local storage medium, obtain number in described data adaptation layer module
According to before, the 3rd preset strategy is utilized to determine the data needing to obtain;
Described data adaptation layer module, is additionally operable to the data of acquisition be converted in described data adaptation layer module
After the data of specific format, in described data adaptation layer module, the data after conversion are supplied to upper layer application
Before, the 4th preset strategy is utilized to determine the data being provided to upper layer application;
Wherein, described first preset strategy, described second preset strategy, described 3rd preset strategy, described
4th preset strategy, all specifically includes regular expression strategy and/or script logic strategy.
Described local storage medium includes: intermediate buffer data base or intermediate buffer file;
Described data collection layer module, is additionally operable in the mistake that the data collected store local storage medium
The data collected are stored described intermediate buffer data base or described intermediate buffer file by Cheng Zhong;
Described data adaptation layer module, is additionally operable to during obtaining data from described local storage medium,
Data are obtained from described intermediate buffer data base or described intermediate buffer file.
Described data adaptation layer module, specifically for the interface type corresponding in the data utilizing acquisition, will obtain
During the data taken are converted into the data of specific format, obtain the adaptive masterplate that described interface type is corresponding,
And utilize described adaptive masterplate that the data of described acquisition are converted into the data of specific format;
Wherein, described data adaptation layer module is provided with the adaptive masterplate that each interface type is corresponding in advance,
And adaptation masterplate for being converted into the data of specific format by the data of corresponding interface type;
Wherein, described data adaptation layer module, specifically for utilizing described adaptive masterplate by described acquisition
During data are converted into the data of specific format, obtain the standardized structural that described adaptive masterplate is corresponding;
The data of described acquisition are converted into the data of described standardized structural;Utilize described adaptive masterplate by described mark
The data of standardization structure are converted into the data of specific format.
Also include: data analysis layer module, for the data collected being deposited in described data collection layer module
After storing up in local storage medium, the data of storage in local storage medium are merged process;And/or,
It is monitored processing to the data of storage in local storage medium.
Based on technique scheme, in the embodiment of the present invention, by function and the data of mask data acquisition layer
The function of adaptation layer, forms the framework that data collection layer separates, and Usage data collection layer with data adaptation layer
Module performs the operation of data collection layer, uses data adaptation layer module to perform the operation of data adaptation layer.?
Under this framework, data collection layer module only focuses on the part of data acquisition, and data adaptation layer module only focuses on
The part of data conversion.In this manner it is achieved that NMS accesses many producers, multi-protocols, non-standard
The northbound interface of property.And, developer can the most absorbed data analysis and data conversion, reduce exploit person
The development difficulty of member, and reduce the complexity of service fulfillment, promote the efficiency of service fulfillment, such that it is able to contracting
The turn-on time of short NMS, improve stability and loose coupling, it is ensured that safety.And,
Data unification can be supplied to user check, conveniently process data be verified.
Detailed description of the invention
In terminology used in the present invention merely for the sake of describing the purpose of specific embodiment, and the unrestricted present invention.
" a kind of ", " described " and " being somebody's turn to do " also purport of singulative used in the present invention and claims
Including most form, unless context clearly shows that other implication.It is also understood that used herein
Term "and/or" refer to comprise any or all of one or more project of listing being associated may combination.
Although should be appreciated that may use term first, second, third, etc. to describe various letter in the present invention
Breath, but these information should not necessarily be limited by these terms.These terms are only used for same type of information district each other
Separately.Such as, without departing from the present invention, the first information can also be referred to as the second information,
Similarly, the second information can also be referred to as the first information.Depend on linguistic context, additionally, the word used
" if " can be construed to " ... time " or " when ... time " or " in response to determining ".
For problems of the prior art, the embodiment of the present invention proposes a kind of method that data process,
The method can apply in NMS.As it is shown in figure 1, be the application scenarios of the embodiment of the present invention
Schematic diagram, this NMS can at least include data collection layer and data adaptation layer.For data acquisition
Collection layer, is carried out relevant treatment by data collection layer module.For data adaptation layer, by data adaptation layer module
Carry out relevant treatment.In embodiments of the present invention, data collection layer and data adaptation layer are separately disposed,
Rather than together with data collection layer is deployed in data adaptation layer, formed and gather adaptation layer.Additionally, data
Acquisition layer is that distributed deployment architecture, i.e. NMS can comprise multiple data collection layer, these numbers
Can be deployed on identical device according to acquisition layer, it is also possible to dispose on different devices.Additionally, this network pipe
Reason system can also include data analysis layer, for data analysis layer, data analysis layer module is correlated with
Process, therefore, in the embodiment of the present invention, on the basis of data collection layer and data adaptation layer, also increase
Data analysis layer, this data analysis layer is for carrying out data process to the data of storage in local storage medium.
The NMS proposed in the embodiment of the present invention, is to lead to for data such as telecommunications, electric power, broadcasting and TV
News technical field, the particularly comprehensive NMS of transmission network, access network, data network.Wherein,
The function that this NMS mainly realizes specifically can include but not limited to following functions: (1) topology is managed
Reason, NMS is with network structure, system organization structure, SDH (Synchronous Digital
Hierarchy, SDH) channel organization structure, WDM (Wavelength Division
Multiplexing, wavelength-division multiplex) the multiple view such as channel organization structure, show topology of networks, and
It is associated with alarm, performance, configuration variation etc..(2) alarm management, NMS realizes alarm
Centralized Monitoring, and by functions such as inquiry, statistics, forwards, help attendant's operation to transmission network
Situation is tracked, judges, processes.(3) performance management, NMS realizes performance collection and looks into
Ask, including performance monitoring management, reporting performance data management, performance data management, performance threshold manage,
The functions such as query and statistical analysis.(4) configuration management, NMS realizes the dynamic management of configuration information,
Including configuration information inquiry, revise, synchronize, the function such as statistics.
Owing to the interface type of the northbound interface of different vendor's different majors net is different, therefore, the present invention
In embodiment, including the interface (northbound interface) of multiple interfaces type in NMS, difference connects
The agreement that mouth uses is different, and different agreement is exactly different interface type.Wherein, these interface types are permissible
Include but not limited to: CORBA (Common Object Request Broker Architecture, common object
Request agent architecture) interface, XML (Extensible Markup Language, extensible markup language
Speech) interface, FTP (File Transfer Protocol, file transfer protocol (FTP)) interface, SOCKET (socket
Word) interface, TL1 (Transaction Language, transaction language) interface, SNMP (Simple Network
Management Protocol, Simple Network Management Protocol) interface, JMS (Java Message Service,
Java Message Service) interface, WEB service interface etc..
Wherein, northbound interface can possess following functions: (1) general management function, carries out the connection of interface
Control, it is provided that basic acknowledgement mechanism.(2) configuration management function, forwards configuration order, reports configuration same
Step (inquiry) data and configuration change notice.(3) performance management function, manages monitoring task, reporting property
Can data.(4) alarm management function, real-time report alerts, and initiates alarm data synchronization etc..
On this basis, data collection layer needs to access the northbound interface of different vendor's different majors net, several
The northbound interface of different interface type is accessed according to acquisition layer.In FIG, it is respectively connected to data collection layer
As a example by corba interface, XML interface, FTP interface, SOCKET interface, SNMP interface.
Under above-mentioned application scenarios, as in figure 2 it is shown, the method that these data process may comprise steps of:
Step 201, data collection layer module gathers data from the interface of different interface type.Such as, data
Acquisition layer module gathers data 1 from corba interface, gathers data 2 from XML interface, from FTP interface
Gather data 3, gather data 4 from SOCKET interface, gather data 5 from SNMP interface.
Wherein, the data of data collection layer module collection can include but not limited to: alarm data, performance number
According to, configuration data etc..Alarm data can include the original alarm data of filtered, process.Performance number
According to the original performance data that can include filtered, process.Configuration data can include but not limited to: son
The configuration data such as net, Subnetwork connection, Topology connection, network element, machine dish, port, interconnection.
Wherein, NMS can be when needing the data inquiring about certain network element device, to this network element device
Sending order, so that the data of this reported by network element equipment self, on this basis, data collection layer module can
To gather data on the interface that this network element device connects.Or, at the number of network element device active reporting self
According to time, data collection layer module can gather data from the interface that this network element device connects.
Wherein, the data acquisition modes of data collection layer module can be real-time reception or periodically extract.
Step 202, the data collected are stored in local storage medium by data collection layer module.
Such as, data collection layer module is by the data 1 collected, data 2, data 3, data 4, data 5
All storing in local storage medium, this local storage medium refers to store the carrier of data.
Step 203, data adaptation layer module obtains data from local storage medium.Such as, data adaptation layer
Module gets data 1, data 2, data 3, data 4, data 5 from local storage medium.
In a kind of feasible mode, local storage medium specifically may include that intermediate buffer data base or
Intermediate buffer file, i.e. uses intermediate buffer data base or intermediate buffer file in local storage medium
Storage data.Based on this, the data collected are stored the mistake of local storage medium by data collection layer module
Journey, specifically can include but not limited to: the data collected are stored intermediate buffer data base or centre
Cache file.Data adaptation layer module obtains the process of data from local storage medium, specifically can include
But it is not limited to: from middle cache database or intermediate buffer file, obtain data.
Step 204, data adaptation layer module utilizes the interface type that the data obtained are corresponding, the data that will obtain
It is converted into the data of specific format, and the data after conversion are supplied to upper layer application (interface application).
Wherein, the data (standardized data of specific format) after conversion can be entered by data adaptation layer module
The operations such as row converges, adds up, concatenation, form report data and the information of upper layer application needs.
In the embodiment of the present invention, data adaptation layer module utilizes the interface type that the data obtained are corresponding, will obtain
The data taken are converted into the process of the data of specific format, can include but not limited to: data adaptation layer module
Obtain the adaptive masterplate that interface type is corresponding, and utilize adaptive masterplate that the data of acquisition are converted into specific format
Data;Wherein, data adaptation layer module is provided with the adaptive masterplate that each interface type is corresponding in advance,
And adaptation masterplate for being converted into the data of specific format by the data of corresponding interface type.
Wherein, specific format refers to shield the multiple interfaces type of northbound interface, and upper layer application can identify
A kind of form, this specific format can select according to actual needs, as long as upper layer application is capable of identify that this spy
Fix formula, and data adaptation layer module to be supplied to the data of upper layer application be all this specific format.
In one example, data adaptation layer module is provided with the adaptation that corba interface is corresponding in advance
Masterplate 1, and this adaptation masterplate 1 for being converted into the data of specific format by the data of corba interface.?
Be provided with the adaptive masterplate 2 that XML interface is corresponding in data adaptation layer module in advance, and this adaptation masterplate 2 is used
In the data that the data of XML interface are converted into specific format.Data adaptation layer module is provided with in advance
The adaptive masterplate 3 that FTP interface is corresponding, and this adaptation masterplate 3 is for being converted into spy by the data of FTP interface
The data of the formula that fixes.Data adaptation layer module is provided with in advance the adaptive masterplate that SOCKET interface is corresponding
4, and this adaptation masterplate 4 for being converted into the data of specific format by the data of SOCKET interface.In data
Be provided with the adaptive masterplate 5 that SNMP interface is corresponding in adaptation layer module in advance, and this adaptation masterplate 5 is used for
The data of SNMP interface are converted into the data of specific format.
Data adaptation layer module, after getting the data 1 of corba interface, determines connecing of data 1 correspondence
Mouth type is corba interface, determines that adaptive masterplate is for adaptive masterplate 1, the therefore use of data adaptation layer module
Data 1 are converted into the data of specific format by adaptive masterplate 1.Data adaptation layer module connects getting XML
After the data 2 of mouth, determine that the interface type of data 2 correspondence is XML interface, determine that adaptive masterplate is for adaptation
Masterplate 2, therefore data adaptation layer module uses adaptive masterplate 2 that data 2 are converted into the data of specific format.
Data adaptation layer module, after getting the data 3 of FTP interface, determines that the interface type of data 3 correspondence is
FTP interface, determines that adaptive masterplate is adaptive masterplate 3, and therefore the adaptive masterplate 3 of data adaptation layer module use will
Data 3 are converted into the data of specific format.Data adaptation layer module is in the data getting SOCKET interface
After 4, determine that the interface type of data 4 correspondence is SOCKET interface, determine that adaptive masterplate is adaptive masterplate 4,
Therefore data adaptation layer module uses adaptive masterplate 4 that data 4 are converted into the data of specific format.Data are fitted
Join layer module after getting the data 5 of SNMP interface, determine that the interface type of data 5 correspondence is SNMP
Interface, determines that adaptive masterplate is adaptive masterplate 5, and therefore data adaptation layer module uses adaptive masterplate 5 by data
5 data being converted into specific format.
In the embodiment of the present invention, adaptive masterplate is utilized the data of acquisition to be converted into for data adaptation layer module
The process of the data of specific format, specifically can include but not limited to following manner: data adaptation layer module obtains
Take the standardized structural that this adaptation masterplate is corresponding, and the data of acquisition be converted into the data of standardized structural,
And utilize this adaptation masterplate that the data of this standardized structural are converted into the data of specific format.
Wherein, for each adaptive masterplate, all to there being standardized structural.Such as, for adaptive mould
Version 1, its standardized structural includes five fields such as A, B, C, D, E, so, it is assumed that currently obtain
Data only include the content of three fields such as A, B, C, then can add D and E etc. two in these data
The content of individual field, thus the data currently obtained are converted into the data of standardized structural.
Wherein it is possible to be the field configuration default content such as A, B, C, D, E in advance, data are added D
During with the content of the fields such as E, the default content of the fields such as D and E can be added in data.
After the data currently obtained are converted into the data of standardized structural, due to this standardized structural with
Adaptive masterplate adapts, and therefore, data adaptation layer module can utilize this adaptation masterplate by this standardized structural
Data be converted into the data of specific format, and the data after conversion are supplied to upper layer application.
Said process based on the embodiment of the present invention, data collection layer module can support various protocols type
Interface.And, data collection layer module can use distributed deployment architecture, in NMS
Multiple data collection layer module can be disposed, and each data collection layer module gathers data respectively.And, number
The data that can collect notebook data acquisition layer module according to acquisition layer module carry out filtration treatment.
Additionally, data adaptation layer module can support standardization, convert the data into standardized structural
Data.And, data adaptation layer module need not be concerned about the connection difference of each protocol interface, as long as from this locality
Storage medium extracts data.And, data adaptation layer module supports dynamic adaptation, it is possible to use suitable
Join masterplate and convert the data into the data of specific format, format conversion according to data standard.
On the basis of above-mentioned functions, data collection layer module can also support following function: interface connectivity
Detection function, interface connection management function, conversation management functional, safety certification function etc..Additionally, data
Adaptation layer module can also support following function: increment change function, service search function.
Wherein, interface connectivity detection function refers to: data collection layer module detection corba interface, XML
Whether interface, FTP interface, SOCKET interface, SNMP interface etc. are in connected state, as judged to connect
Whether mouth receives data, if receiving data in Preset Time in Preset Time, it is believed that interface is in even
Logical state, if not receiving data, it is believed that interface is in non-connected state in Preset Time.
Wherein, interface connection management function refers to: data collection layer module is responsible for corba interface, XML
Interface, FTP interface, SOCKET interface, the management of SNMP interface, safeguard the state of these interfaces.
Wherein, conversation management functional refers to: data collection layer module is responsible for session management.
Wherein, safety certification function refers to: data collection layer module is responsible for meeting corba interface, XML
The network element device that mouth, FTP interface, SOCKET interface, SNMP interface connect carries out safety certification.
Wherein, increment change function refers to: data adaptation layer module compares the number being sent to upper layer application last time
According to this and this is sent to the data of upper layer application, obtain out variance data, and from this is sent to
In the data of layer application, select variance data and be sent to upper layer application.Such as, in data adaptation layer module
The secondary data being sent to upper layer application are data 1, data 2, data 3, data 4, and this is sent to
The data of upper layer application are data 1, data 2, data 3, data 4, data 5.Therefore, variance data is
Data 5, and data 5 are only sent to upper layer application by data adaptation layer module, and no longer by data 1, data
2, data 3, data 4 are sent to upper layer application, thus reduce quantity forwarded.
Wherein, service search function refers to: data adaptation layer module by all data for same transmission industry
The data search of business passage out, and unifies to be transmitted.In one example, can be according to different nets
Network structure and business use scene, support the service search function of the transmission service channel of customizable.Such as,
For business of networking, the transmission service channel of the surfing flow of certain user can be subscriber equipment (as mobile phone,
Router-passageway exchange board in PC ((personal computer, personal computer), panel computer etc.)-family
-community main equipment room etc..Based on such transmission service channel, data adaptation layer module can be by all data
For this transmission service channel data search out, and will be sent to for the data of this transmission service channel
Upper layer application, so, upper layer application just can be based on the data of this transmission service channel, upper for this user
Network service provides the service of customizable, as made bandwidth meet user's request etc..
In actual applications, NMS can also include that data management layer and application function layer (are i.e. gone up
The layer at layer application place), data management layer is for integrating the data of data adaptation layer module, it is provided that
Resource model service and Object Management group function, provide different dimensions and the preprocessed data of granularity for upper layer application.
Application function layer, for for producing sex work service, it is provided that daily operation and operation maintenance function, it is desirable to
The accuracy of data, promptness, intuitive, its object is to quickly pinpoint the problems, and quickly solve problem,
Application function layer includes Topology Management, alarm management, property management, configuration management etc..
In the embodiment of the present invention, in data collection layer module, the data collected are stored local storage medium
After in, data analysis layer module can also merge process to the data of storage in local storage medium;
And/or, the data of storage in local storage medium are monitored processing by data analysis layer module.
Wherein, by storing data in local storage medium, so that data analysis layer module can be to this
In ground storage medium, the data of storage merge process, thus improve the treatment effeciency of data.Such as, exist
Only comprise in the NMS gathering adaptation layer, respectively data A collected carried out adaptation processing,
Data B collected are carried out adaptation processing, data C collected is carried out adaptation processing, by that analogy.
And in the embodiment of the present invention, data A collected, data B, data C etc. are deposited by data collection layer module
Store up in local storage medium, it is assumed that data A, data B, data C are associated data, as data A,
Data B, data C are the data for same business, then data analysis layer module can be by data A, number
Merging into data 1 according to B, data C, so, data 1 just can be fitted by data adaptation layer module
Join process, without respectively data A, data B, data C being carried out adaptation processing, so, closed
And data the most, then the treatment effeciency of data adaptation layer module is the highest, thus improves the treatment effeciency of data.
Wherein, by storing data in local storage medium, so that data analysis layer module can be to this
In ground storage medium, the data of storage are monitored processing, thus the beneficially monitoring of data and verification, quickly
Location fault.Such as, only comprise gather adaptation layer NMS in, for data A collected,
The data such as data B, data C, can directly carry out adaptation processing, will not store the data of bottom, can only
Data after storage adaptation processing, and such data are generally the most without some features of data of bottom,
As data A only include field 1, and do not comprise field 2, field 3, but the number after adaptation processing
According to, field 1, field 2, field 3 can be comprised, thus cannot analyze data A and whether exist and lack
The problem of field.And in the embodiment of the present invention, data collection layer module by data A collected, data B,
Data C etc. store in local storage medium, and so, data analysis layer module just can be to locally stored Jie
In matter, data A of storage, data B, data C are monitored processing, i.e. data analysis layer module can be straight
Connect the data to bottom to be monitored processing, such as, data A only include field 1, and do not comprise field 2,
During field 3, data analysis layer module can monitor the existence of data A and lack field 2, the problem of field 3.
Certainly, this is the example being monitored data processing, in actual application, and data analysis layer module
The all problems of the data of bottom can be monitored, then accident analysis is extended efficient help.
In the embodiment of the present invention, Usage data collection layer, intermediate storage layer, the layer architecture of data adaptation layer
Time, it is possible to use multistage pretreatment strategy, control, at each layer, the scope that data process flexibly.
In a kind of preferred implementation of the embodiment of the present invention, in data collection layer module from different interface type
Interface on gather before data, data collection layer module can also utilize the first preset strategy to determine that needs are adopted
The data of collection.Wherein, by the first preset strategy, can control which data needs to gather.
In a kind of preferred implementation of the embodiment of the present invention, in data collection layer module from different interface type
Interface on gather after data, in data collection layer module, the data collected are stored locally stored Jie
Before in matter, data collection layer module can also utilize the second preset strategy to judge whether to filter the number collected
According to;If it is, data collection layer module directly filters the data collected;If it is not, then data acquisition
Layer module performs to store the data collected the process in local storage medium.
Wherein, by the second preset strategy, can control which data needs to store in local storage medium.
Wherein, the second preset strategy can be configured according to practical experience, and this second preset strategy is used for
The data collecting data collection layer module filter, with data and the invalid data of masking redundancy,
Only valid data are stored in local storage medium, thus reduce the pressure of data adaptation layer module.
In a kind of preferred implementation of the embodiment of the present invention, in the data that data collection layer module will collect
After storing in local storage medium, data adaptation layer module obtain from local storage medium data it
Before, data adaptation layer module can also utilize the 3rd preset strategy to determine the data needing to obtain.Wherein, logical
Crossing the 3rd preset strategy, can control which data needs the adaptation through data adaptation layer module.
In a kind of preferred implementation of the embodiment of the present invention, in data adaptation layer module, the data of acquisition are turned
After changing the data of specific format into, in data adaptation layer module, the data after conversion are supplied to upper layer application
Before, data adaptation layer module can also utilize the 4th preset strategy to determine the number being provided to upper layer application
According to.Wherein, by the 4th preset strategy, can control which data needs externally to provide.
In a kind of feasible mode, the first preset strategy, the second preset strategy, the 3rd preset strategy,
Four preset strategy, may each comprise but be not limited to: regular expression strategy and/or script logic strategy.
Wherein, regular expression strategy is that a kind of use regular expression is to filter redundant data and invalid data
Mode, regular expression uses single character string to describe, mates a series of certain syntactic rule that meets
Character string.Based on this, by arranging regular expression corresponding to data needing to filter, data collection layer mould
Block/data adaptation layer module can will match to the data of regular expression and filter, and data collection layer module/
The data not matching regular expression can be defined as the data needing to use by data adaptation layer module.
Wherein, script logic strategy is a kind of to use script logic to filter the side of redundant data and invalid data
Formula, script logic can be write according to practical experience by developer, by arranging the number needing to filter
According to corresponding script logic, data collection layer module/data adaptation layer module can will match to this script logic
Data filter, and the Data Data not matching this script logic is defined as need use data.
Based on technique scheme, in the embodiment of the present invention, by function and the data of mask data acquisition layer
The function of adaptation layer, forms the framework that data collection layer separates, and Usage data collection layer with data adaptation layer
Module performs the operation of data collection layer, uses data adaptation layer module to perform the operation of data adaptation layer.?
Under this framework, data collection layer module only focuses on the part of data acquisition, and data adaptation layer module only focuses on
The part of data conversion.In this manner it is achieved that NMS accesses many producers, multi-protocols, non-standard
The northbound interface of property.And, developer can the most absorbed data analysis and data conversion, reduce exploit person
The development difficulty of member, and reduce the complexity of service fulfillment, promote the efficiency of service fulfillment, such that it is able to contracting
The turn-on time of short NMS, improve stability and loose coupling, it is ensured that safety.And,
Data unification can be supplied to user check, conveniently process data be verified.
Based on the inventive concept as said method, the embodiment of the present invention additionally provides a kind of data and processes
Device, these data process device apply in NMS.Wherein, the device that these data process
Can be realized by software, it is also possible to realize by the way of hardware or software and hardware combining.Implemented in software
As a example by, as the device on a logical meaning, it is the processor of NMS by its place,
Computer program instructions corresponding in reading non-volatile storage is formed.For hardware view, such as Fig. 3
Shown in, a kind of hardware structure diagram of NMS at the device place that the data proposed for the present invention process,
In addition to the processor shown in Fig. 3, nonvolatile memory, NMS can also include that other are hard
Part, such as the forwarding chip of responsible process message, network interface, internal memory etc.;From the point of view of from hardware configuration, should
NMS, it is also possible that distributed apparatus, potentially includes multiple interface card, in order to enter at hardware view
The extension of row Message processing.
As shown in Figure 4, the structure chart of device that the data proposed for the present invention process, described device specifically wraps
Include: data collection layer module 11, for gathering data from the interface of different interface type, and will collect
Data store in local storage medium;Data adaptation layer module 12, for from described local storage medium
Middle acquisition data, and utilize interface type corresponding to the data of acquisition, the data of acquisition are converted into particular bin
The data of formula, and the data after conversion are supplied to upper layer application.
In the embodiment of the present invention, described data collection layer module 11, it is additionally operable in described data collection layer module
Before 11 gather data from the interface of different interface type, utilizing the first preset strategy to determine needs collection
Data;Described data collection layer module 11, is additionally operable in described data collection layer module 11 from distinct interface class
After gathering data on the interface of type, in described data collection layer module 11, the data collected are stored this
Before in ground storage medium, the second preset strategy is utilized to judge whether to filter the data collected;If it is,
Then filter the data collected;If it is not, then the data collected are stored in local storage medium;Institute
State data adaptation layer module 12, be additionally operable to the data collected be stored in described data collection layer module 11
After in local storage medium, from described local storage medium, obtain number in described data adaptation layer module 12
According to before, the 3rd preset strategy is utilized to determine the data needing to obtain;Described data adaptation layer module 12, also
After the data of acquisition being converted into the data of specific format in described data adaptation layer module 12, in institute
State data adaptation layer module 12 will conversion after data be supplied to upper layer application before, utilize the 4th preset strategy
Determine the data being provided to upper layer application;
Wherein, described first preset strategy, described second preset strategy, described 3rd preset strategy, described
4th preset strategy, all specifically includes regular expression strategy and/or script logic strategy.
Described local storage medium includes: intermediate buffer data base or intermediate buffer file;
Described data collection layer module 11, is additionally operable to the data collected are being stored local storage medium
During, the data collected are stored described intermediate buffer data base or described intermediate buffer file;
Described data adaptation layer module 12, is additionally operable to during obtaining data from described local storage medium,
Data are obtained from described intermediate buffer data base or described intermediate buffer file.
Described data adaptation layer module 12, specifically for the interface type corresponding in the data utilizing acquisition, will
During the data obtained are converted into the data of specific format, obtain the adaptive mould that described interface type is corresponding
Version, and utilize described adaptive masterplate that the data of described acquisition are converted into the data of specific format;
Wherein, described data adaptation layer module is provided with the adaptive masterplate that each interface type is corresponding in advance,
And adaptation masterplate for being converted into the data of specific format by the data of corresponding interface type;
Wherein, described data adaptation layer module 12, specifically for utilizing described adaptive masterplate by described acquisition
Data be converted into the data of specific format during, obtain the standardized structural that described adaptive masterplate is corresponding;
The data of described acquisition are converted into the data of described standardized structural;Utilize described adaptive masterplate by described mark
The data of standardization structure are converted into the data of specific format.
In the embodiment of the present invention, the device that described data process also includes:
Data analysis layer module 13, for storing this in described data collection layer module by the data collected
After in ground storage medium, the data of storage in local storage medium are merged process;And/or, to this
In ground storage medium, the data of storage are monitored processing.
Wherein, the modules of apparatus of the present invention can be integrated in one, it is also possible to separates and disposes.Above-mentioned mould
Block can merge into a module, it is also possible to is further split into multiple submodule.
Based on technique scheme, in the embodiment of the present invention, by function and the data of mask data acquisition layer
The function of adaptation layer, forms the framework that data collection layer separates, and Usage data collection layer with data adaptation layer
Module performs the operation of data collection layer, uses data adaptation layer module to perform the operation of data adaptation layer.?
Under this framework, data collection layer module only focuses on the part of data acquisition, and data adaptation layer module only focuses on
The part of data conversion.In this manner it is achieved that NMS accesses many producers, multi-protocols, non-standard
The northbound interface of property.And, developer can the most absorbed data analysis and data conversion, reduce exploit person
The development difficulty of member, and reduce the complexity of service fulfillment, promote the efficiency of service fulfillment, such that it is able to contracting
The turn-on time of short NMS, improve stability and loose coupling, it is ensured that safety.And,
Data unification can be supplied to user check, conveniently process data be verified.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive the present invention
The mode of required general hardware platform can be added by software to realize, naturally it is also possible to by hardware, but very
In the case of Duo, the former is more preferably embodiment.Based on such understanding, technical scheme is substantially
The part contributed prior art in other words can embody with the form of software product, this computer
Software product is stored in a storage medium, including some instructions with so that a computer equipment (can
To be personal computer, server, or the network equipment etc.) perform the side described in each embodiment of the present invention
Method.It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the mould in accompanying drawing
Block or flow process are not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in the device in embodiment can according to embodiment describe into
Row is distributed in the device of embodiment, it is also possible to carry out respective change be disposed other than one of the present embodiment or
In multiple devices.The module of above-described embodiment can merge into a module, it is possible to is further split into multiple
Submodule.The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
The several specific embodiments being only the present invention disclosed above, but, the present invention is not limited to this,
The changes that any person skilled in the art can think of all should fall into protection scope of the present invention.