Summary of the invention
The object of the present invention is to provide a kind of Large Volume Data collocation method, server and system based on MML, it can fully reuse the batch configuration that original code is realized Large Volume Data.
In order to reach purpose of the present invention, the present invention realizes by the following technical solutions:
A kind of Large Volume Data collocation method based on MML comprises:
Receive the template file that client sends;
The batch configuration order of sending according to client, and according to the logical mappings file of pre-stored with the MML order in batch of the Data Analysis in the described template file;
Carry out in batches described MML order, and execution result information is write described template file, send afterwards this template file to client.
Preferably, carry out institute in steps before, also comprise:
Data to be configured are write template file;
Template file is deployed to client;
Client sends described template file to server.
More preferably, send described template file to the server in client, also comprise:
The legitimacy of data to be configured in the client verification template file.
Preferably, the server step of carrying out in batches described MML order comprises:
Carry out in batches all MML orders, and upper successful mark is done in the MML order that runs succeeded;
Carry out in batches the MML order that all do not do successful mark, all run succeeded until all MML order, or carry out failed MML order quantity and no longer reduce.
Preferably, client covers original template file with it behind the template file of MML command execution results information that received said write.
Preferably, described logical mappings file is the file of XML type, and it has defined the logical mappings relation between data to be configured and the corresponding MML order.
A kind of Large Volume Data configuration server based on MML, described server comprises:
The file receiver module is used for receiving the template file that client sends;
Parsing module is used for the batch configuration order of sending according to client, and according to the logical mappings file of pre-stored with the MML order in batch of the Data Analysis in the described template file;
Executive Module is used for carrying out in batches described MML order;
The object information processing module is used for MML command execution results information is write described template file;
File send module is sent to client for the template file that will write MML command execution results information.
A kind of Large Volume Data configuration-system based on MML comprises client and server, wherein,
Client is used for sending the template file that has write data to be configured to server;
Server is used for the batch configuration order of sending according to client, and according to the logical mappings file of pre-stored with the MML order in batch of the Data Analysis in the described template file; Carry out in batches described MML order, and execution result information is write described template file, send afterwards this template file to client.
Preferably, described client comprises:
The template file acquisition module is used for obtaining the template file that has write data to be configured and being sent to processing module;
Processing module is used for the described template file that is got access to by the template file acquisition module is sent to document transmission module and memory module; Be used for sending the batch configuration order to the order sending/receiving module; The template file that has write MML command execution results information that is used for document transmission module is received is sent to memory module;
Memory module is used for storing the described template file that has write MML command execution results information that is sended over by the accessed template file of template file acquisition module and server;
Document transmission module is used for sending described template file to server; Be used for receiving the template file that has write MML command execution results information from server;
The order sending/receiving module is used for sending the batch configuration order to server; Be used for receiving the complete order of batch configuration from server.
More preferably, described client also comprises:
The data check module is for the legitimacy of verification template file data to be configured.
Preferably, described server comprises:
The file receiver module is used for receiving the template file that client sends;
Parsing module is used for the batch configuration order of sending according to client, and according to the logical mappings file of pre-stored with the MML order in batch of the Data Analysis in the described template file;
Executive Module is used for carrying out in batches described MML order;
The object information processing module is used for MML command execution results information is write described template file;
File send module is sent to client for the template file that will write MML command execution results information.
Can find out by technique scheme of the present invention, the present invention has following beneficial effect:
1, the MML order generally all exists in network management system, and template file is resolved to the MML command execution, can fully reuse original code, improves development efficiency and reduces complexity.
2, shine upon between the template file by the XML file format and the MML order, improved the extensibility of system, when for example needing that template file carried out some fields of additions and deletions, only need in the logical mappings file of template file and XML type, these fields of difference additions and deletions get final product (this prerequisite is that MML supports these fields), and not need to revise code.
3, easily carry out affairs control., the inner normal operation atomic transaction of a MML mode, normal operation best endeavors mode between many MML is to guarantee can to carry out to greatest extent batch configuration in correct, the complete situation of data.
4, improved the efficient of batch configuration.The MML order is the algorithmic rule of circulation execution in batches, guaranteed that Large Volume Data can carry out the configuration of best endeavors, and the execution efficient of MML order is general is all guaranteed by the underlying platform of network management system, is better than the execution efficient of the batch configuration instrument of hard coded mode.
Embodiment
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearer, clear, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
The embodiment of the invention provides a kind of Large Volume Data collocation method based on MML, and as shown in Figure 1, described method comprises following concrete steps:
The template file that S204, reception client send;
S205, the batch configuration order of sending according to client, and according to the logical mappings file of pre-stored with the MML order in batch of the Data Analysis in the described template file;
S206, batch are carried out described MML order, and execution result information is write described template file, send afterwards this template file to client.
Wherein, in described step S204, described template file is sent to server end by client by diverse network transmission means (including spider lines transmission means or wireless network transmissions mode).Described template file has write data message to be configured, and in an embodiment of the present invention, described data message is Large Volume Data information.During implementation, described template file can be the file format of excel file format, csv file form or other types.
In described step S205, described logical mappings file is the file of XML type, and it has defined the logical mappings relation between data to be configured and the corresponding MML order.
In described step S206, server is with the execution result of each bar MML order, comprise that such as described result whether successful information, failure cause information etc. are written in this template file, then send it to client, under the preferred implementation, client covers original template file with it behind the template file of MML command execution results information that received said write.The template file that client was stored before thereby client substituted this template file that has write MML command execution results information, at this moment, the user can open the result that this template file is checked batch configuration.So far, server returns batch configuration to client and finishes message, notifies user's batch configuration to finish.
Under the preferred implementation, carry out institute in steps before, also comprise:
S200, data to be configured are write template file;
S201, template file is deployed to client;
S203, client send described template file to server.
In described step S200 and S201, template file has some call formats to the data of input, according to these call formats, fills in the data that need batch configuration, and this document is deployed to client.
More preferably, send described template file to the server in client, also comprise:
The legitimacy of data to be configured in S202, the client verification template file.
If the data of filling in are illegal, then client meeting prompting user is made amendment and is continued verification, until all data in the template file all meet the demands.
Under the preferred implementation, in described step S206, the step that server is carried out described MML order in batches comprises:
Carry out in batches all MML orders, and upper successful mark is done in the MML order that runs succeeded;
Carry out in batches the MML order that all do not do successful mark, all run succeeded until all MML order, or carry out failed MML order quantity and no longer reduce.
In this step, the MML order is carried out in the Executive Module of server end circulation, until all MML command execution successes, or till failed MML orders quantity no longer to reduce.
The embodiment of the invention also provides a kind of Large Volume Data configuration server based on MML, and as shown in Figure 2, described server comprises:
File receiver module 101 is used for receiving the template file that client sends;
Parsing module 102 is used for the batch configuration order of sending according to client, and according to the logical mappings file of pre-stored with the MML order in batch of the Data Analysis in the described template file;
Executive Module 103 is used for carrying out in batches described MML order;
Object information processing module 104 is used for MML command execution results information is write described template file;
File send module 105 is sent to client for the template file that will write MML command execution results information.
Wherein, described file receiver module 101 is used for obtaining the template file that client sends, and has write data message to be configured in the described template file, and in an embodiment of the present invention, described data message is Large Volume Data information.During implementation, described template file can be the file format of excel file format, csv file form or other types.
It is the MML order that described parsing module 102 is responsible for the Data Analysis in the template file.Parsing module is ordered the MML in batch of the Data Analysis in the described template file according to the logical mappings file of pre-stored, for example described logical mappings file is the configuration file of a cover XML form, this configuration file has defined data parameters in the template file and mapping relations between the MML command parameter, by these mapping relations, each the bar data in the template file are resolved to a MML order.
Described Executive Module 103 is responsible for carrying out in batches all MML orders that parsing module generates.For example, server can be carried out according to following rule when holding the MML order:
First pass is carried out successively all MML orders, and is recorded the order that runs succeeded;
Second time, carry out successively not successful order, and record the order that again runs succeeded;
The 3rd time, continue to carry out a upper not successful order.
The rest may be inferred, and circulation is carried out, and all run succeeded until all MML order, or failed MML order quantity no longer reduces.
Using above-mentioned this regular purpose is to order because of the former of sequencing thereby can not successfully be performed for fear of some MML, thereby guarantees to carry out with the mode of best endeavors the batch configuration of the data in the template file.
The MML command execution results information that described object information processing module 104 is responsible for collecting Executive Modules 103 comprise whether success, failure cause etc., and these MML command execution results information are filled up in the template file accordingly position.
Described file send module 105 is responsible for template file (this document has comprised the MML command execution results information of each bar data) is sent to client by certain file, and covers the original template file of client.
The embodiment of the invention also provides a kind of Large Volume Data configuration-system based on MML, as shown in Figure 3, comprises client 20 and server 10, wherein,
Client 20 is used for sending the template file that has write data to be configured to server 10;
Server 10 is used for the batch configuration order of sending according to client 20, and according to the logical mappings file of pre-stored with the MML order in batch of the Data Analysis in the described template file; Carry out in batches described MML order, and execution result information is write described template file, send afterwards this template file to client 20.
Wherein, with reference to Fig. 3, described client 20 comprises:
Template file acquisition module 201 is used for obtaining the template file that has write data to be configured and being sent to processing module;
Processing module 202 is used for the described template file that is got access to by template file acquisition module 201 is sent to document transmission module and memory module; Be used for sending the batch configuration order to the order sending/receiving module; The template file that has write MML command execution results information that is used for document transmission module is received is sent to memory module;
Memory module 203 is used for storing the described template file that has write MML command execution results information that is sended over by the accessed template file of template file acquisition module 201 and server 10;
Document transmission module 204 is used for sending described template file to server 10; Be used for receiving the template file that has write MML command execution results information from server 10;
Order sending/receiving module 205 is used for sending the batch configuration order to server 10; Be used for receiving the complete order of batch configuration from server 10.
More preferably, described client 20 also comprises:
Data check module 206 for the legitimacy of verification template file data to be configured, if any illegal data, is in time pointed out.
In addition, described client 20 can also comprise:
Interface display module 207, it is responsible for the display graphics user interface, provide choice box to select template file, and provide the check results of illegal data to show, whether successful prompting etc. of batch configuration.
Continuation is with reference to Fig. 3, and described server 10 comprises:
File receiver module 101 is used for receiving the template file that client 20 sends;
Parsing module 102 is used for the batch configuration order of sending according to client 20, and according to the logical mappings file of pre-stored with the MML order in batch of the Data Analysis in the described template file;
Executive Module 103 is used for carrying out in batches described MML order;
Object information processing module 104 is used for MML command execution results information is write described template file;
File send module 105 is sent to client 20 for the template file that will write MML command execution results information.
According to the specific embodiment of the present invention in TMN radio network controller (RNC, Radio Network Controller) network management system, invention spirit of the present invention is described.
The general frame of implementation as shown in Figure 3, NM client 20 comprises 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 sending/receiving module 205, and NM server 10 comprises file receiver module, parsing module, Executive Module, object information processing module 104 and file send module 105.
Batch configuration IUB office direction in the RNC network management system, template file adopt the Excel file format, the concrete operations flow process as shown in Figure 4, operating procedure is as follows in detail:
Step S100, definition IUB office direction Excel template comprises that the Excel template file has several Sheet pages or leaves, every page of pattern of the input requirement that comprises which row, every row etc., and fills on request and need the IUB of batch configuration office direction data.
Step S101 is chosen in the Excel file of filling among the step S100 by NM client 20.
Step S102 carries out the legitimacy verification to the data of filling among the step S100, if there are illegal data, prompting user is made amendment, until all data checks pass through.
Step S103 uses the Excel file that verification is passed through among the FTP operation handlebar step S102 to be sent to NM server 10 ends.
Step S104 sends the batch configuration order to NM server 10.
Step S105 at the parsing module of NM server 10 ends, needs the mapped file of predefined one cover XML form, and these mapped files have defined the mapping relations between Excel template and the MML order.Each Sheet page or leaf in the template file need to have a corresponding XML mapped file, and this Sheet page or leaf is mapped to the MML order.Each Sheet page or leaf is mapped as a MML order, and each bar data resolves to an example of this MML order.According to these XML mapped files, the Excel document analysis MML order in batch that parsing module sends step S103.
Step S106, the Executive Module of NM server 10 be the in batches MML order of execution in step S105 generation successively, and successful mark is done in the MML order that runs succeeded.This step is designed to and can repeats, and first pass is carried out all MML orders, and is later every all over only carrying out the MML order of not doing successful mark.Specifically repeat several times, by the judgement decision of step S107.
Step S107, whether no longer after the MML order all executed one time, Executive Module judged whether all to run succeeded, perhaps carry out failed MML order quantity and compare minimizing with upper one time, and "Yes" then continues step S108, and "No" is repeated execution of steps S106 then.
Step S108 collects the execution result information among the step S107, is filled up to the execution result information row in the Excel file.
Step S109 is sent to NM client 20 to the mode of the Excel file of having filled in object information among the step S108 by FTP, covers the file of selecting among the step S101.
Step S110, NM server 10 return complete message to the user, and prompting user is checked execution result.
So far, the whole flow process of present embodiment finishes.The user can check the Excel file, revise according to failure cause and this time carry out failed data, and execution in step S100 is to step S110 again, and the data that run succeeded have been stamped successful label, can again not carried out when re-starting batch configuration.
Another execution mode of the present invention is as described below:
Batch configuration Serving cell in BSC (Base Station Controller) network management system, template file adopts the csv file form, and the general frame of enforcement is identical with the first execution mode with operating process, and operating procedure is as follows in detail:
Step S300, definition Serving cell CSV template comprises that the CSV template file has several Sheet pages or leaves, every page of pattern of the input requirement that comprises which row, every row etc., and fills on request and need the Serving cell of batch configuration data.
Step S301 is chosen in the csv file of filling among the step S300 by NM client 20.
Step S302 carries out the legitimacy verification to the data of filling among the step S300, if there are illegal data, prompting user is made amendment, until all data checks pass through.
Step S303 uses the csv file that verification is passed through among the FTP operation handlebar step S302 to be sent to NM server 10.
Step S304 sends the batch configuration order to NM server 10.
Step S305 at the parsing module of NM server 10 ends, needs the mapped file of predefined one cover XML form, and these mapped files have defined the mapping relations between CSV template and the MML order.Each Sheet page or leaf in the template file need to have a corresponding XML mapped file, and this Sheet page or leaf is mapped to the MML order.Each Sheet page or leaf is mapped as a MML order, and each bar data resolves to an example of this MML order.According to these XML mapped files, the csv file that parsing module sends step S303 resolves to MML order in batches.
Step S306, the Executive Module of NM server 10 be the in batches MML order of execution in step S305 generation successively, and successful mark is done in the MML order that runs succeeded.This step is designed to and can repeats, and first pass is carried out all MML orders, and is later every all over only carrying out the MML order of not doing successful mark.Specifically repeat several times, by the judgement decision of step S307.
Step S307, whether no longer after the MML order all executed one time, Executive Module judged whether all to run succeeded, perhaps carry out failed MML order quantity and compare minimizing with upper one time, and "Yes" then continues step S308, and "No" is repeated execution of steps S306 then.
Step S308 collects the execution result information among the step S307, is filled up to the execution result information row in the csv file.
Step S309 is sent to NM client 20 to the mode of the csv file of having filled in object information among the step S308 by FTP, covers the file of selecting among the step S310.
Step S310, NM server 10 ends return complete message to the user, and prompting user is checked execution result.
The second execution mode flow process finishes, and the user can check csv file equally, revise the CSV template data according to failure cause, and execution in step S300 finishes the batch configuration of data to step S310 again.
Above-mentioned explanation illustrates and has described a preferred embodiment of the present invention, but as previously mentioned, be to be understood that the present invention is not limited to the disclosed form of this paper, should not regard the eliminating to other embodiment as, and can be used for various other combinations, modification and environment, and can in invention contemplated scope described herein, change by technology or the knowledge of above-mentioned instruction or association area.And the change that those skilled in the art carry out and variation do not break away from the spirit and scope of the present invention, then all should be in the protection range of claims of the present invention.