A kind of Large Volume Data collocation method based on MML, server and system
Technical field
The present invention relates to technologies of telecommunications network management field, MML (Man-Machine are based in particular to one kind
Language, Man Machine Language) Large Volume Data collocation method, server and system.
Background technology
Configuration management is an important component in network management system, is TMN (Telecom Management
Network, telecommunication network system) it is able to the normal basis run.
The implementation of current configuration management has two kinds, including:GUI (use by Graphical User Interface, figure
Family interface) and MML.When configuring small amount data using both modes, can give full play to its ease for use it is good, operation flexibly etc. it is excellent
Point, but when Large Volume Data is configured, such as when needing to configure thousands of IUB innings to, NODEB or cell, be easy for showing
Allocative efficiency is low, the shortcomings of need that manual intervention is more, cumbersome, easily malfunction.
Under this background, the batch configuration instrument for carrying out batch configuration using template arises at the historic moment, but traditional batch
Configuration tool is typically all realized using the mode of hard coded, it is impossible to fully reuse original code, and has that scalability is poor, thing
The shortcomings of business control is difficult, batch execution efficiency is relatively low.
The content of the invention
It is an object of the invention to provide a kind of Large Volume Data collocation method based on MML, server and system, its energy
It is enough fully to reuse the batch configuration that original code realizes Large Volume Data.
In order to reach the purpose of the present invention, the present invention is realized using following technical scheme:
A kind of Large Volume Data collocation method based on MML, including:
Receive the template file that client sends;
According to the batch configuration order that client sends, and according to pre-stored logical mappings file by the template file
In data parse batches of MML orders;
Batch performs the MML orders, and execution result information is write into the template file, and template text is sent afterwards
Part is to client.
Preferably, before all steps are performed, also include:
Data to be configured are write into template file;
Template file is deployed to client;
Client sends the template file to server.
It is further preferable that before client sends the template file to server, also including:
The legitimacy of data to be configured in client verification template file.
Preferably, the step of server batch performs the MML orders includes:
Batch performs all MML orders, and the MML orders for running succeeded are done into upper pass flag;
Batch performs all MML orders for not doing pass flag, until all of MML orders all run succeeded, or
The MML order numbers for performing failure are no longer reduced.
Preferably, client, will with it after the template file for receiving said write MML command execution results information
Template file covering originally.
Preferably, the logical mappings file for XML type file, which define data to be configured with it is corresponding
Logical mappings relation between MML orders.
A kind of Large Volume Data configuration server based on MML, the server includes:
File reception module, the template file for receiving client transmission;
Parsing module, for the batch configuration order sent according to client, and according to pre-stored logical mappings file
Data in the template file are parsed into batches of MML orders;
Performing module, for performing the MML orders in batches;
Object information processing module, for MML command execution results information to be write into the template file;
File sending module, the template file for will be written with MML command execution results information is sent to client.
A kind of Large Volume Data configuration system based on MML, including client and server, wherein,
Client, the template file of data to be configured is written with for being sent to server;
Server, for the batch configuration order sent according to client, and will according to pre-stored logical mappings file
Data in the template file parse batches of MML orders;Batch performs the MML orders, and by execution result information
The template file is write, the template file to client is sent afterwards.
Preferably, the client includes:
Template file acquisition module, the template file of data to be configured is written with for obtaining and is sent to treatment mould
Block;
Processing module, mould is transmitted for the template file got by template file acquisition module to be sent to file
Block and memory module;For sending batch configuration order to order sending/receiving module;For document transmission module to be received
To the template file for being written with MML command execution results information send to memory module;
Memory module, for storing the template file as accessed by template file acquisition module and server hair
That brings is written with the template file of MML command execution results information;
Document transmission module, for sending the template file to server;MML lives are written with for being received from server
Make the template file of execution result information;
Order sending/receiving module, for sending batch configuration order to server;Match somebody with somebody for receiving batch from server
Put the order for performing and completing.
It is further preferable that the client also includes:
Data check module, the legitimacy for verifying data to be configured in template file.
Preferably, the server includes:
File reception module, the template file for receiving client transmission;
Parsing module, for the batch configuration order sent according to client, and according to pre-stored logical mappings file
Data in the template file are parsed into batches of MML orders;
Performing module, for performing the MML orders in batches;
Object information processing module, for MML command execution results information to be write into the template file;
File sending module, the template file for will be written with MML command execution results information is sent to client.
Can be seen that the present invention by above-mentioned technical proposal of the invention has following beneficial effect:
1st, MML orders typically all exist in network management system, and template file is parsed into MML orders to be performed, and can fully be weighed
Original code is used, development efficiency is improved and is reduced complexity.
2nd, mapped by between the template file of XML file format and MML orders, improve the expansible of system
Property, such as when needing to carry out template file some fields of additions and deletions, only need to be in template file and the logical mappings file of XML type
By middle these fields of additions and deletions respectively (this premise is that MML supports these fields), without modification code.
3rd, transaction controlling is easily carried out.Atomic transaction mode is generally used inside one MML, is typically made between a plurality of MML
Use best endeavors mode, with ensure data it is correct, it is complete in the case of, can to greatest extent carry out batch configuration.
4th, improve the efficiency of batch configuration.The algorithmic rule that MML orders batch cycles are performed, it is ensured that Large Volume Data
The configuration of best endeavors can be carried out, and the execution efficiency of MML orders is typically all carried out by the underlying platform of network management system
Ensure, be better than the execution efficiency of the batch configuration instrument of hard coded mode.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes a part of the invention, this hair
Bright schematic description and description does not constitute inappropriate limitation of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the Large Volume Data collocation method schematic flow sheet based on MML provided in an embodiment of the present invention;
Fig. 2 is the Large Volume Data configuration server structural representation based on MML provided in an embodiment of the present invention;
Fig. 3 is the Large Volume Data configuration system structure diagram based on MML provided in an embodiment of the present invention;
Fig. 4 is MML orders batch configuration schematic flow sheet provided in an embodiment of the present invention.
Specific embodiment
In order that the technical problems to be solved by the invention, technical scheme and beneficial effect are clearer, clear, below tie
Drawings and Examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only
It is used to explain the present invention, is not intended to limit the present invention.
A kind of Large Volume Data collocation method based on MML is the embodiment of the invention provides, as shown in figure 1, methods described
Comprise the following specific steps that:
S204, the template file for receiving client transmission;
S205, the batch configuration order sent according to client, and according to pre-stored logical mappings file by the mould
Data in plate file parse batches of MML orders;
S206, the MML orders being performed in batches, and execution result information being write into the template file, sending afterwards should
Template file is to client.
Wherein, in the step S204, the template file be by client by various network transmission modes (including
Cable-network transmission mode or wireless network transmissions mode) send to server end.The template file is written with to be configured
Data message, in an embodiment of the present invention, the data message be Large Volume Data information.During specific implementation, the mould
Plate file can be excel file formats, csv file form or other kinds of file format.
In the step S205, the logical mappings file is the file of XML type, which defines data to be configured
With the logical mappings relation between corresponding MML orders.
In the step S206, server includes whether each implementing result of MML orders, such as described result
Successful information, failure cause information etc. are written in the template file, are then sent to client, preferred embodiment
Under, client is literary by original template with it after the template file for receiving said write MML command execution results information
Part is covered.So as to client is stored the instead preceding client of template file that this is written with MML command execution results information
Template file, now, user can open the result that this template file checks batch configuration.So far, server is to client
End returns to batch configuration completion message, notifies that user's batch configuration has been completed.
Under preferred embodiment, before all steps are performed, also include:
S200, data to be configured are write into template file;
S201, template file is deployed to client;
S203, client send the template file to server.
In the step S200 and S201, template file has some call formats to the data being input into, according to these
Call format, fills in the data for needing batch configuration, and this document is deployed to client.
It is further preferable that before client sends the template file to server, also including:
The legitimacy of data to be configured in S202, client verification template file.
If the data filled in are illegal, client can point out user to modify and continue verification, until template text
All data in part all meet requirement.
Under preferred embodiment, in the step S206, server batch includes the step of perform the MML orders:
Batch performs all MML orders, and the MML orders for running succeeded are done into upper pass flag;
Batch performs all MML orders for not doing pass flag, until all of MML orders all run succeeded, or
The MML order numbers for performing failure are no longer reduced.
In this step, the performing module circulation of server end performs MML orders, until whole MML orders run succeeded,
Or untill the MML order numbers of failure are no longer reduced.
The embodiment of the present invention additionally provides a kind of Large Volume Data configuration server based on MML, as shown in Fig. 2 described
Server includes:
File reception module 101, the template file for receiving client transmission;
Parsing module 102, for the batch configuration order sent according to client, and according to pre-stored logical mappings text
Data in the template file are parsed batches of MML orders by part;
Performing module 103, for performing the MML orders in batches;
Object information processing module 104, for MML command execution results information to be write into the template file;
File sending module 105, the template file for will be written with MML command execution results information is sent to client
End.
Wherein, the file reception module 101 is used to obtain the template file of client transmission, is write in the template file
Data message to be configured is entered, in an embodiment of the present invention, the data message is Large Volume Data information.Specific implementation
When, the template file can be excel file formats, csv file form or other kinds of file format.
The parsing module 102 is responsible for the data in template file to resolve to MML orders.Parsing module is according to pre-stored
Logical mappings file the data in the template file are parsed into batches of MML orders, such as described logical mappings file
It is the configuration file of a set of XML format, the configuration file is defined between the data parameters in template file and MML command parameters
Mapping relations, by this mapping relations, each data in template file is parsed into a MML order.
The performing module 103 is responsible for all MML orders that batch performs parsing module generation.For example, server is being held
During MML orders, can be performed according to following rule:
First pass, performs all MML orders, and record the order for running succeeded successively;
Second time, failed order is performed successively, and record the order for running succeeded again;
3rd time, continue executing with a failed order.
The rest may be inferred, and circulation is performed, until all MML orders all run succeeded, or the MML order numbers for failing are no longer
Reduce.
The use of above-mentioned this regular purpose is in order to avoid some MML orders can not succeed because of the reason for the sequencing
It is performed, so that guarantee carries out the batch configuration of the data in template file with the mode of best endeavors.
The object information processing module 104 is responsible for collecting the MML command execution results information of performing module 103, including
Whether successful, failure cause etc., and corresponding position in these MML command execution results information solicitations to template file.
The file sending module 105 is responsible, and template file, (the MML orders that this document has included each data are held
Row object information) client is sent to by certain file, and cover the original template file of client.
The embodiment of the present invention additionally provides a kind of Large Volume Data configuration system based on MML, as shown in figure 3, including visitor
Family end 20 and server 10, wherein,
Client 20, the template file of data to be configured is written with for being sent to server 10;
Server 10, for the batch configuration order sent according to client 20, and according to pre-stored logical mappings text
Data in the template file are parsed batches of MML orders by part;Batch performs the MML orders, and by implementing result
Information writes the template file, and the template file to client 20 is sent afterwards.
Wherein, reference picture 3, the client 20 includes:
Template file acquisition module 201, the template file of data to be configured is written with for obtaining and is sent to treatment
Module;
Processing module 202, for the template file got by template file acquisition module 201 to be sent to file
Transport module and memory module;For sending batch configuration order to order sending/receiving module;For file to be transmitted into mould
The template file that what block was received be written with MML command execution results information is sent to memory module;
Memory module 203, for storing the template file and clothes as accessed by template file acquisition module 201
The template file for being written with MML command execution results information that business device 10 is sended over;
Document transmission module 204, for sending the template file to server 10;Write for being received from server 10
The template file of MML command execution results information;
Order sending/receiving module 205, for sending batch configuration order to server 10;For being received from server 10
Batch configuration performs the order for completing.
It is further preferable that the client 20 also includes:
Data check module 206, the legitimacy for verifying data to be configured in template file, if any illegal number
According to being pointed out in time.
In addition, the client 20 can also include:
Interface display module 207, it is responsible for display graphic user interface, provides choice box selection template file, and provides
The check results of illegal data show, whether batch configuration is successfully pointed out.
With continued reference to Fig. 3, the server 10 includes:
File reception module 101, the template file for receiving the transmission of client 20;
Parsing module 102, for the batch configuration order sent according to client 20, and according to pre-stored logical mappings
Data in the template file are parsed batches of MML orders by file;
Performing module 103, for performing the MML orders in batches;
Object information processing module 104, for MML command execution results information to be write into the template file;
File sending module 105, the template file for will be written with MML command execution results information is sent to client
20。
According to the present invention in TMN radio network controllers (RNC, Radio Network Controller) network management system
Specific embodiment illustrate spirit of the invention.
The general frame of specific implementation is as shown in figure 3, NM client 20 includes template file acquisition module 201, interface
Display module 207, processing module 202, memory module 203, data check module 206, document transmission module 204 and order send
Receiver module 205, NM server 10 includes file reception module, parsing module, performing module, object information processing module
104 and file sending module 105.
Excel file form, concrete operations flow are used in RNC network management systems to, template file batch configuration IUB innings
As shown in figure 4, Detailed operating procedures are as follows:
Step S100, define IUB innings has several Sheet pages, every page to include to Excel template, including Excel template file
Which row, pattern of the input requirement of each column etc., and fill in need to data IUB innings of batch configuration on request.
Step S101, the Excel file for selecting to fill in the step s 100 by NM client 20.
Step S102, the data to being filled in step S100 carry out legitimacy verifies, if there is illegal data, point out
User modifies, until all data checks pass through.
Step S103, NM server 10 is sent to using the Excel file that passes through is verified in FTP operation handlebar steps S102
End.
Step S104, sends batch configuration order to NM server 10.
Step S105, the end of NM server 10 parsing module, it is necessary to a set of XML format of predefined mapping text
Part, these mapped files define the mapping relations between Excel template and MML orders.Each Sheet in template file
Page, it is desirable to have a corresponding XML mapped file, MML orders are mapped to this Sheet pages.Each Sheet pages is mapped as
One MML order, each data resolves to an example of the MML orders.According to these XML mapped files, parsing module
The Excel file that step S103 is sent parses batches of MML orders.
Step S106, batch performs the MML orders that step S105 is generated, and handle to the performing module of NM server 10 successively
Pass flag is done in the MML orders for running succeeded.The step is designed as repeatable execution, and first pass performs all MML orders, with
Only carry out the MML orders for not doing pass flag every time afterwards.Specifically repeat several times, determined by the judgement of step S107.
After step S107, MML order have all performed one time, performing module judges whether all to run succeeded, or holds
Whether the MML order numbers of row failure are no longer reduced compared with upper one time, and "Yes" then continues step S108, and "No" is then repeated
Step S106.
Step S108, the execution result information in collection step S107 is filled up to the execution result information in Excel file
Row.
The Excel file that object information is fill in step S108, is sent to webmaster by step S109 by way of FTP
Client 20, is covered in the file selected in step S101.
Step S110, NM server 10 is returned and performs the message for completing to user, and points out user to check implementing result.
So far, the whole flow process of present embodiment terminates.User can check Excel file, be changed according to failure cause
The data of failure are this time performed, and re-executes step S100 to step S110, the data for running succeeded have been stamped successfully
Label, will not be executed once again when re-starting batch configuration.
Another implementation method of the invention is as described below:
The batch configuration Serving cell in BSC (Base Station Controller) network management system, template file is used
Csv file form, the general frame and operating process of implementation is identical with the first implementation method, and Detailed operating procedures are as follows:
Step S300, defines Serving cell CSV templates, including CSV template files have several Sheet pages, every page include which
A little row, pattern of the input requirement of each column etc., and fill in need the Serving cell data of batch configuration on request.
Step S301, the csv file for selecting to be filled in step S300 by NM client 20.
Step S302, the data to being filled in step S300 carry out legitimacy verifies, if there is illegal data, point out
User modifies, until all data checks pass through.
Step S303, NM server 10 is sent to using the csv file that passes through is verified in FTP operation handlebar steps S302.
Step S304, sends batch configuration order to NM server 10.
Step S305, the end of NM server 10 parsing module, it is necessary to a set of XML format of predefined mapping text
Part, these mapped files define the mapping relations between CSV templates and MML orders.Each Sheet in template file
Page, it is desirable to have a corresponding XML mapped file, MML orders are mapped to this Sheet pages.Each Sheet pages is mapped as
One MML order, each data resolves to an example of the MML orders.According to these XML mapped files, parsing module
The csv file that step S303 is sent parses batches of MML orders.
Step S306, batch performs the MML orders that step S305 is generated, and handle to the performing module of NM server 10 successively
Pass flag is done in the MML orders for running succeeded.The step is designed as repeatable execution, and first pass performs all MML orders, with
Only carry out the MML orders for not doing pass flag every time afterwards.Specifically repeat several times, determined by the judgement of step S307.
After step S307, MML order have all performed one time, performing module judges whether all to run succeeded, or holds
Whether the MML order numbers of row failure are no longer reduced compared with upper one time, and "Yes" then continues step S308, and "No" is then repeated
Step S306.
Step S308, the execution result information in collection step S307 is filled up to the execution result information in csv file
Row.
The csv file that object information is fill in step S308, is sent to webmaster visitor by step S309 by way of FTP
Family end 20, is covered in the file selected in step S310.
Step S310, the end of NM server 10 returns and performs the message for completing to user, and points out user to check to perform knot
Really.
Second implementation method flow terminates, and user can equally check csv file, and CSV moulds are changed according to failure cause
Plate data, and re-execute step S300 to step S310 and complete the batch configuration of data.
Described above has shown and described a preferred embodiment of the present invention, but as previously described, it should be understood that the present invention
Be not limited to form disclosed herein, be not to be taken as the exclusion to other embodiment, and can be used for various other combinations,
Modification and environment, and can be in invention contemplated scope described herein, by above-mentioned teaching or the technology or knowledge of association area
It is modified.And the change and change that those skilled in the art are carried out do not depart from the spirit and scope of the present invention, then all should be in this hair
In the protection domain of bright appended claims.