CN101917485A - Synchronization method of configuration data and short message center - Google Patents

Synchronization method of configuration data and short message center Download PDF

Info

Publication number
CN101917485A
CN101917485A CN2010102628229A CN201010262822A CN101917485A CN 101917485 A CN101917485 A CN 101917485A CN 2010102628229 A CN2010102628229 A CN 2010102628229A CN 201010262822 A CN201010262822 A CN 201010262822A CN 101917485 A CN101917485 A CN 101917485A
Authority
CN
China
Prior art keywords
data
module
synchronous documents
tables
business
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2010102628229A
Other languages
Chinese (zh)
Inventor
黄剑玮
耿志亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN2010102628229A priority Critical patent/CN101917485A/en
Priority to PCT/CN2010/078030 priority patent/WO2012022073A1/en
Publication of CN101917485A publication Critical patent/CN101917485A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The invention discloses a synchronization method of configuration data and a short message center, wherein the synchronization method comprises the steps that: an operating maintenance module writes all configuration data in a configuration database into a synchronization file having a predetermined structure; the operating maintenance module transmits the synchronization file to one or a plurality of business modules which require synchronization; the operating maintenance module sends a synchronization message to one or a plurality of business modules; and after receiving the synchronization message, one or a plurality of business modules read the required configuration data from the synchronization file according to the predetermined structure and load the read configuration data. According to the invention, the configuration data can be integrally sent to the business modules while correctness of the data is ensured, and impact on business system is reduced as much as possible, thereby lessening the maintenance workload and difficulty of the entire system.

Description

The method for synchronous of configuration data and short message service center
Technical field
The present invention relates to the communications field, in particular to a kind of method for synchronous and short message service center of configuration data.
Background technology
Along with developing rapidly of short message service, the kind of the software of sms center is more and more comprehensive, and function is also more and more abundanter.A large amount of application is divided into a plurality of modules by function, can reach different sms centers by configurable means like this and have different application, better adaptive user's demand.Under this framework, understand the configuration operation maintenance module usually, with the configuration data that provides friendly interface for users to dispose each business module, and configuration data is stored in the relational database, business module carries out business by user configured data and turns round.
The method that business module obtains configuration data mainly is: operating maintenance module is by file assembled configuration data and send to business module.Particularly, operating maintenance module reads the needed configuration data of each business module from database after, data are written to separately in the corresponding file according to the needed structure of each business module respectively, by FTP each file is sent to the corresponding service module respectively then, and sends synchronization message to each business module.Each business module receives to read after the synchronization message and is sent to local synchronous documents, and content update is wherein used in the internal memory of business module.
In said method, because reading the mode of synchronous documents, each business module may have nothing in common with each other, like this, operating maintenance module need be safeguarded the multiple synchronous documents interface corresponding to each business module, so that with different business modules realize alternately configuration data synchronously, thereby cause the maintenance workload of operating maintenance module and difficulty bigger.In addition, because during the operating maintenance module spanned file, only be that the needed configuration data of each business module is written in the file according to the needed structure of this module, like this, when this module upgrade, need correspondingly revise the synchronous documents interface of this module correspondence, further increase the maintenance workload and the difficulty of operating maintenance module.
Summary of the invention
Main purpose of the present invention is to provide a kind of method for synchronous and short message service center of configuration data, with maintenance workload and the bigger problem of difficulty that solves above-mentioned operating maintenance module at least.
According to an aspect of the present invention, provide a kind of method for synchronous of configuration data, having comprised: operating maintenance module is written to all configuration datas in the configuration database in the synchronous documents with predetermined structure; Operating maintenance module sends synchronous documents to needs synchronous one or more business modules; Operating maintenance module sends synchronization message to one or more business modules; After one or more business modules receive synchronization message, from synchronous documents, read required configuration data, and load the configuration data that use is read according to predetermined structure.
According to a further aspect in the invention, a kind of short message service center is provided, comprise: configuration database, operating maintenance module and one or more business module, wherein: operating maintenance module, be used for all configuration datas of configuration database are written in the synchronous documents with predetermined structure, and send synchronous documents to needs synchronous one or more business modules; Send synchronization message to one or more business modules; Each business module in one or more business modules is used for reading required configuration data according to predetermined structure from synchronous documents after the synchronization message that receives from operating maintenance module, and loads the configuration data that use is read.
By the present invention, utilize synchronous documents to transmit configuration data, reduced influence effectively to business module, improved synchronization efficiency.And, because operating maintenance module has predetermined structure for the synchronous documents that comprises all configuration datas that needs synchronous one or more business modules to generate, like this, one or more business modules can obtain own needed configuration data in predetermined structure all configuration datas from the configuration database that synchronous documents comprises according to synchronous documents, operating maintenance module writes the predetermined structure that data and one or more business module mode of reading of data from synchronous documents meet file to synchronous documents, thereby need not to safeguard different file interfaces into the different business module, maintenance workload and the bigger problem of difficulty in the correlation technique have been solved, thereby configuration data intactly can be sent to business module, and the correctness of assurance data, reduced influence as far as possible, reduced the maintenance workload and the difficulty of whole system operation system.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart according to the method for synchronous of the configuration data of the embodiment of the invention;
Fig. 2 is the structural representation of synchronous documents according to the preferred embodiment of the invention;
Fig. 3 is the operational flowchart of operating maintenance module in the configuration data synchronizing process according to the preferred embodiment of the invention;
Fig. 4 is the operational flowchart of business module in the configuration data synchronizing process according to the preferred embodiment of the invention;
Fig. 5 is the schematic diagram according to the short message service center of the embodiment of the invention;
Fig. 6 is the structural representation according to the short message service center of first preferred embodiment of the invention;
Fig. 7 is the structural representation according to the short message service center of second preferred embodiment of the invention.
Embodiment
Hereinafter will describe the present invention with reference to the accompanying drawings and in conjunction with the embodiments in detail.Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Fig. 1 is according to the flow chart of the method for synchronous of the configuration data of the embodiment of the invention, may further comprise the steps:
Step S102, operating maintenance module is written to all configuration datas in the configuration database in the synchronous documents with predetermined structure;
For example, synchronous documents can adopt predetermined structure as shown in Figure 2, comprises the file identification (ID) of synchronous documents, the information (comprising the sign Tag of tables of data, the length RecordLen of tables of data wall scroll record and the total RecordCount that database writes down) that is arranged in each tables of data thereafter and the particular configuration data Content of each database afterwards.Wherein, each tables of data is all tables of data in the configuration database.
Step S104, operating maintenance module sends above-mentioned synchronous documents to needs synchronous one or more business modules;
Step S106, operating maintenance module sends synchronization message to these one or more business modules;
For example, operating maintenance module transmission synchronization message reads local synchronous documents and carries out the renewal of configuration data to notify these one or more business modules.
Step S108 after these one or more business modules receive above-mentioned synchronization message, reads required configuration data according to the predetermined structure of synchronous documents from synchronous documents, and loads and use the configuration data that reads.
Among this embodiment, utilize synchronous documents to transmit configuration data, reduced influence effectively, improved synchronization efficiency business module.And, because operating maintenance module has predetermined structure for the synchronous documents that comprises all configuration datas that needs synchronous one or more business modules to generate, like this, one or more business modules can obtain own needed configuration data in predetermined structure all configuration datas from the configuration database that synchronous documents comprises according to synchronous documents, operating maintenance module writes the predetermined structure that data and one or more business module mode of reading of data from synchronous documents meet file to synchronous documents, thereby need not to safeguard different file interfaces into the different business module, maintenance workload and the bigger problem of difficulty in the correlation technique have been solved, thereby configuration data intactly can be sent to business module, and the correctness of assurance data, reduced influence as far as possible, reduced the maintenance workload and the difficulty of whole system operation system.
When practical application, can specifically may further comprise the steps according to the method for synchronous of the configuration data of the embodiment of the invention:
Step 1, operating maintenance module is written to all configuration datas in the configuration database in the synchronous documents (as shown in Figure 2) with predetermined structure, promptly generates the process of synchronous documents; This step is corresponding to the step S102 among Fig. 1.
In actual implementation process, operating maintenance module can comprise the preferred implementation that all configuration datas in the configuration database are written in the synchronous documents with predetermined structure: at first, operating maintenance module generates a file identification ID (obviously at random for this synchronous documents, this ID identifies this synchronous documents uniquely), and the head (being the position at ID place among Fig. 2) that the file identification ID that generates writes this synchronous documents carried out the correctness verification of file for business module; Operating maintenance module writes this synchronous documents with the information of each tables of data successively according to the order of each tables of data in the configuration database (promptly all tables of data), wherein, the information of tables of data comprises: the total RecordCount that writes down in the data length RecordLen of wall scroll record and the tables of data in the sign Tag of tables of data, the tables of data (as shown in Figure 2, the information of each tables of data writes Tag1 respectively, RecordLen1, RecordCount1; Tag2, RecordLen2, RecordCount2; ...); Operating maintenance module according to said sequence successively with the configuration data in each tables of data with the binary coding mode write this synchronous documents (configuration in each tables of data is corresponding to the Coutent1 among Fig. 2, Coutent2 ...).
To the influence of original interface, when no longer needing upgrade all related service modules all unified upgrading when the writing mode of the synchronous documents of the preferred embodiment can be avoided increasing configuration data at every turn, reduced the workload and the complexity of system maintenance widely.Whether the file ID of synchronous documents can be used for this synchronous documents of unique identification, and be this subsynchronous file for business module identification.Operating maintenance module reads every tables of data from database, and be written in the synchronous documents according to the form of above-mentioned preferred implementation with tables of data sign, data length and data content, influence whole sync cap when adopting such form can avoid follow-up increase deploy content, thereby when upgrading, a certain business module need not other business modules also upgrading have synchronously further been reduced maintenance workload and difficulty.In addition, synchronous documents is preserved with the binary coding content, can avoid the configuration data of system may directly be exposed to user or other staff, prevent that service configuration information from revealing, avoid making synchronous documents to be not easy directly to be revised and cause occurring unpredictable unusual.
Step 2, operating maintenance module is sent to business module with synchronous documents; This step is corresponding to the step S104 among Fig. 1.
Because operating maintenance module can provide the interface to accept user's configuration, operating maintenance module can be accepted the user and dispose the synchronous one or more business modules of wanting, and synchronous documents is sent to the path of depositing of each business module.Therefore, a preferred implementation that transmits synchronous documents is that operating maintenance module uses FTP (File Transfer Protocol, file transfer protocol (FTP)) mode this synchronous documents to be sent to pre-configured the depositing in the path of these one or more business modules.Like this, use FTP to upload, the speed of both having accelerated to upload has also reduced taking communication interface.
In addition, when practical application, if operating maintenance module transmits the file failure to these one or more business modules by the FTP mode, then operating maintenance module can also transmit failure in its interface display in the step 2, wherein, transmit the reason that comprises failure in the failure.
Step 3, operating maintenance module sends synchronization message to these one or more business modules; This step is corresponding to the step S106 among Fig. 1.
Because operating maintenance module is sent to synchronous documents pre-configured the depositing in the path of one or more business modules in the step 2, then, operating maintenance module sends to the file identification ID that need carry this synchronous documents in the synchronization message of these one or more business modules and above-mentionedly deposits the path so that notify these one or more business modules to remove to read synchronous documents to the local above-mentioned path of depositing in the step 3.
When practical application, as shown in Figure 6, operating maintenance module can send synchronization message to one or more business modules by the business support communication module in the step 3.
Step 4, these one or more business modules receive after the synchronization message, obtain the file ID that wherein carries and deposit the path from this synchronization message; Then, read and leave the file ID in the synchronous documents in the path deposited that gets access to, the line data verification of going forward side by side in.
Particularly, the concrete mode of carrying out data check can comprise: whether this document of carrying in these one or more these synchronization messages of business module verification sign is with to leave this file identification of depositing the synchronous documents in the path (promptly carry in this synchronization message deposit path) in identical, be verified as when identical, judge that then this synchronous documents is the synchronous documents of this transmission, and continue execution in step 5; Otherwise, return error message to operating maintenance module.Like this, can be up-to-date so that business module can be guaranteed the synchronous documents that reads by the file ID that in synchronization message, carries this subsynchronous synchronous documents.
Step 5, if verification succeeds in the step 4, then these one or more business modules will read required configuration data according to the predetermined structure of synchronous documents from this synchronous documents, and load the configuration data that use is read.This step is corresponding to the step S108 in the block diagram 1.
Equally, similar with the mode that writes synchronous documents in the step 1, one or more business modules comprise according to the predetermined structure of synchronous documents reads required configuration data from this synchronous documents a preferred implementation in the step 5: the information (corresponding to 201 among Fig. 2) that reads each tables of data in this synchronous documents; This required tables of data position in this synchronous documents of information calculations according to the own required tables of data in the information of each tables of data; From this synchronous documents, read the configuration data that is positioned at this position.Like this, business module just can at random get access to own required configuration data from the data of all tables of data the configuration database that synchronous documents comprises, upgrades according to own required structure again.
In the preferred implementation of step 5, business module reads synchronous documents according to this preferred implementation with the form of tables of data sign, data length, data content.At first the reading of data table identifies, determine that ensuing data are the data which opens tables of data, reading of data length represents that next the content of this length is the configuration data of this tables of data then, read configuration data by length at last, and press the more configuration data of new business of corresponding structure.Like this, business module can read the single table data length and the data bulk of each tables of data according to own needed interface when reading synchronous documents, read corresponding configuration data by calculating side-play amount, can ignore for the data that increase newly, thereby make the variation of interface read the synchronous documents did not influence original business module.
In step 5, if reading required configuration data success and load, these one or more business modules use the configuration data success of reading, then return synchronous successful message to this operating maintenance module; If these one or more business modules read required configuration data failure, then return the message of synchronization failure to this operating maintenance module, wherein, comprise the sign of the tables of data that reads failure in the message of this synchronization failure.Like this, can give operating maintenance module with synchronous result notification so that manage or carry out follow-up operation.
In addition, when practical application, operating maintenance module can also be provided with timeout mechanism in the step 5, points out the user if the message that business module sends is overtime in interface display.
Step 6, if verification failure in the step 4, then these one or more business modules are to the error message of operating maintenance module back-checking.
In above-mentioned method, can also after generating synchronous documents, file be encrypted, the synchronous documents after encrypting sends to these one or more business modules to guarantee safety of data again.That is, before the step S104 in Fig. 1, also comprise: operating maintenance module is encrypted this synchronous documents; Then these one or more business modules receive after this synchronization message in step S108, also comprise: these one or more business modules are deciphered this synchronous documents.Like this, when generating synchronous documents, configuration data is encrypted, can adopt the decipherment algorithm of symmetry to be decrypted when business module reads synchronous documents, thereby further guarantee the fail safe of synchronous documents, wherein configuration data is difficult for being illegally accessed or distorting more.
In the above preferred embodiment, synchronous documents adopts the form of tables of data sign, data length and data content triplicity, the influence that is subjected to interface variation when reading synchronous documents in the business module reduces greatly, can adaptive neatly different synchronous documents interface, the upgrade job of correlation module when having reduced system upgrade greatly reduces the maintenance workload and the difficulty of whole service system.
Describe the concrete operations flow process of method for synchronous of the configuration data of the preferred embodiment of the present invention below respectively in detail with the operating process of the operating process of operating maintenance module and business module.
As shown in Figure 3, the concrete operations flow process of operating maintenance module in synchronizing process may further comprise the steps:
Step 301, the user initiates the simultaneous operation request, and selection needs synchronous business module and begins synchronously, and operating maintenance module reads all tables of data from configuration database.
Step 302, operating maintenance module is written to the configuration data in all tables of data in the synchronous documents.
Particularly, the embodiment that writes synchronous documents comprises:
(1) operating maintenance module generates the file ID of a character string (can be numeral and/or alphabetical a kind of or combination) as this synchronous documents of unique identification at random, and writes this document ID in the beginning part (being head) of this synchronous documents;
(2) operating maintenance module is calculated single table data length of every tables of data and the data-base recording number that should show, and according to the order of each tables of data successively with the data length RecordLen of wall scroll record in the sign Tag of each tables of data, the tables of data, and the record amount R ecordCount of the tables of data that reads from database writes the correspondence position of 205 in this synchronous documents respectively, wherein, Tag, RecordLen and RecordCount part all writes with fixing length;
(3) operating maintenance module reads the particular configuration data Content of each tables of data successively from database according to the order of each tables of data, and order of the field by appointment, write this synchronous documents with binary coding, wherein, the maximum quantity of appointment data table, the part that surpasses tables of data quantity writes the sky data.
Above content writes file after all encrypting with specific cryptographic algorithm.The concrete form of synchronous documents can be referring to Fig. 2.
Step 303, operating maintenance module judge whether to have sent synchronous documents to all user-selected business modules, if, then enter step 305, if not, then enter step 304.
Step 304, if have the node that sends synchronous documents in the node that the user selects or not, then from configuration database, read user configured business module FTP information, the synchronous documents that will generate by the FTP service sends to business module, and synchronous documents is also disposed in operating maintenance module by the user in the path of depositing of business module.
Step 305, when after all business modules have sent synchronous documents, operating maintenance module is monitored and is also received the message that each business module sends.
Step 306 judges whether to have sent synchronization message to all user-selected business modules, if, then enter step 308, if not, then enter step 307.
Step 307, if have the node that sends synchronization message in the node that the user selects or not, then send synchronization message, comprise this subsynchronous file ID (this document ID is consistent with the ID in this synchronous documents head) and synchronous documents the path of depositing in the message at business module to this node.
Step 308, operating maintenance module monitors whether receive the message that business module returns, if do not receive return messages in a period of time, then makes timeout treatment; If received the response message that business module returns, then read the synchronized result in the return messages.
Step 309, operating maintenance module is given the user with synchronized result overtime or that business module returns by displaying interface.
As shown in Figure 4, the concrete operations flow process of each business module in synchronizing process may further comprise the steps:
Step 401, business module receive the synchronization message that operating maintenance module sends, and read the path of depositing of subsynchronous file ID of basis in this synchronization message and synchronous documents.
Step 402, according to the path of depositing in the synchronization message, business module begins to read this and deposits synchronous documents under the path.
Step 403, business module read the file ID in the synchronous documents head, and the file ID in the synchronization message that sends with operating maintenance module compares, if consistent then illustrate that synchronous documents is this subsynchronous transmission, enters step 404; Otherwise, illustrating that this document is not this subsynchronous synchronous documents, the verification failure enters step 409.
Step 404, business module at first is decrypted operation to synchronous documents, begins reading of data then.
The mode that reads particularly comprises: the information (comprising: the single table data length of the sign of tables of data, this tables of data and the record quantity of this tables of data) that at first reads the tables of data in the synchronous documents; Business module is according to the needs of this module then, and according to tables of data sign reading corresponding data table content, the record quantity that the particular location of this content can multiply by this tables of data by single table data length of each tables of data is calculated side-play amount and obtained.
Step 405, read the particular content of this tables of data after, data are wherein carried out the correctness verification, guarantee the reliability that business module uses.
Step 406, whether the judgment data verification is successful, if, then enter step 407, if not, then enter step 409, send the tables of data information of failing to operating maintenance module, investigate the correctness of configuration data for the user.
Step 407 judges whether to have read the needed configuration data of all these modules, if then enter step 408, otherwise return step 404, up to having read all required configuration data and verification succeeds.
Step 408 is loaded into all configuration datas that read in the memory variable of service node, uses in operation flow for service node.
Step 409 sends to operating maintenance module with synchronized result.
Fig. 5 is the schematic diagram according to the short message service center of the embodiment of the invention, comprise: configuration database 10, operating maintenance module 20 and one or more business module 30 (there is shown and be a plurality of situations), wherein: operating maintenance module 20, be used for all configuration datas of configuration database 10 are written in the synchronous documents with predetermined structure, and send this synchronous documents to these synchronous one or more business modules 30 of needs; Send synchronization message to these one or more business modules 30; Each business module 30 in these one or more business modules is used for reading required configuration data according to this predetermined structure from this synchronous documents after this synchronization message that receives from operating maintenance module 20, and loads the configuration data that use is read.
Wherein, the form of synchronous documents as shown in Figure 2, this form is the expansion of the interface solution that offers the best, the space of store data length and data bulk has been reserved in file inside for newly-increased tables of data, and concrete data content need not headspace, as long as continue to increase, reduced the influence that the sync cap expansion is brought by reserving minimum space like this at tail of file.Even in a certain tables of data, increase field, also can only revise the wall scroll data length of tables of data and concrete data content.When reading synchronous documents in the business module,, read the single table data length and the data bulk of each table, read corresponding concrete table data, can ignore for the data that increase newly by calculating side-play amount according to own needed interface.Thereby make the variation of interface read the synchronous documents did not influence to original business module.
Preferably, as shown in Figure 6, in actual applications, operating maintenance module 20 can comprise with lower module: generation module 202 is used to this synchronous documents to generate a file identification at random; First writing module 204, this document sign that is used for that generation module 202 is generated writes the head of this synchronous documents; And successively the information of this each tables of data is write this synchronous documents according to the order of each tables of data in the configuration database 10, wherein, the information of this tables of data comprises: the total RecordCount that writes down in the data length RecordLen of wall scroll record and the tables of data in the sign Tag of tables of data, the tables of data; Second writing module 206 is used for successively the configuration data in this each tables of data being write in this synchronous documents in the binary coding mode according to said sequence (being the order of each tables of data of configuration database 10).Like this, the synchronous documents according to above-mentioned form can reduce to dispose the influence of increase to original interface.
Obviously, in order to realize sending synchronous documents to need these synchronous one or more business modules 30 and send function from synchronization message to these one or more business modules 30, as shown in Figure 6, operating maintenance module also need comprise: the first message communication module 208 is used to transmit synchronous documents and synchronization message.
For the speed of accelerating to transmit, operating maintenance module 20 can use the FTP mode this synchronous documents to be sent to the pre-configured path of depositing of these one or more business modules 30 when transmitting synchronous documents.
Preferably, as shown in Figure 6, in actual implementation process, each business module 30 comprises: acquisition module 301, be used for when the synchronization message that operating maintenance module 20 sends carries the file identification of synchronous documents and deposits the path, from this synchronization message, obtain this document sign and this deposits the path; Verification module 302 is used for this document sign that this synchronization message of verification carries and to leave this file identification of depositing the synchronous documents in the path in identical.Promptly when identical, determine that this synchronous documents is this subsynchronous file.
In addition, as shown in Figure 6, each business module 30 can also comprise: first read module 303, read the information of this each tables of data in this synchronous documents; Computing module 304 is according to this required tables of data position in this synchronous documents of information calculations of required tables of data; Second read module 305 reads the configuration data that is positioned at this position from this synchronous documents.
When practical application, as shown in Figure 6, for synchronized result is notified to operating maintenance module, each business module 30 can also comprise: the second message communication module 306, be used for returning synchronous successful message to operating maintenance module 20 reading under the configuration data case of successful that required configuration data is successful and the loading use is read; And under the situation that reads the failure of required configuration data, return the message of synchronization failure to operating maintenance module 20, wherein, comprise the sign of the tables of data that reads failure in the message of this synchronization failure.
In actual implementation process, in order to guarantee the fail safe of synchronous documents further, do not distorted mala fide, as shown in Figure 6, operating maintenance module 20 also comprises: encrypting module 209 is used to encrypt this synchronous documents; Then each business module 30 also needs to comprise: deciphering module 307 is used to decipher this synchronous documents.
As shown in Figure 7, according to actual needs, in the specific implementation, the business module 30 in the above-mentioned short message service center can only be realized by two module synchronous processing modules (this module has realized the function of above-mentioned acquisition module 301, verification module 302, first read module 303, computing module 304, second read module 305 and deciphering module 307) and message communication module (being the second above-mentioned communication module 306).This short message service center can also comprise support communication module 40.Introduce the function of each module below in detail:
Configuration database 10 is used for depositing the parameter relevant with business and the various configuration data of application system; Mark off the table store data by function; The commercial relevant database of many employings;
Operating maintenance module 20 comprises pattern manipulation interface, database interface, message communication module parts such as (i.e. the first message communication modules); Pattern manipulation interface carries out the modification and the data configuration operation of parameter for the user; Database interface complete operation maintenance module and database mutual comprises that reading configuration data from configuration database is presented in pattern manipulation interface, the data of pattern manipulation interface is write configuration database and reading of data and write synchronous documents from configuration database according to user's operation; The message communication module is responsible for operating maintenance module and is sent synchronization message to business module, and receives the synchronized result message that business module returns;
Business module 30, the business function of responsible system; Synchronous processing module and message communication module have been comprised; Synchronous processing module is responsible for the synchronous documents that the read operation maintenance module sends, file authentication is carried out verification, read each allocation list data and it is checked according to sync cap, after the success configuration data that is read is updated in the memory variable of business module and uses for business processing flow; The message communication module is responsible for receiving the synchronization message that operating maintenance module sends, and the result that synchronous processing module is handled returns to operating maintenance module by message mode;
Support communication module 40, be used for the message communication between operating maintenance module 20 and the business module 30; Support communication module with the message that the receives thread number according to registration, send to corresponding thread, the content in the message comprises message event number, message body.When carrying out communication for the first time, each module need be registered to the thread number of this module the support communication module, will respond or receive the message of other processes to subject thread so that support communication module.
From above description, as can be seen, the present invention has realized following technique effect: the form of synchronous documents is the expansion of the interface solution that offers the best, the space of store data length and data bulk has been reserved in file inside for newly-increased tables of data, and concrete data content need not headspace, as long as continue to increase, reduced the influence that the sync cap expansion is brought by reserving minimum space like this at tail of file.Even in a certain tables of data, increase field, also can only revise the wall scroll data length of tables of data and concrete data content.When reading synchronous documents in the business module,, read the single table data length and the data bulk of each table, read corresponding concrete table data, can ignore for the data that increase newly by calculating side-play amount according to own needed interface.Thereby make the variation of interface read the synchronous documents did not influence to original business module.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, and in some cases, can carry out step shown or that describe with the order that is different from herein, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the method for synchronous of a configuration data is characterized in that, comprising:
Operating maintenance module is written to all configuration datas in the configuration database in the synchronous documents with predetermined structure;
Described operating maintenance module sends described synchronous documents to needs synchronous one or more business modules;
Described operating maintenance module sends synchronization message to described one or more business modules;
After described one or more business module receives described synchronization message, from described synchronous documents, read required configuration data, and load the configuration data that use is read according to described predetermined structure.
2. method according to claim 1 is characterized in that, described operating maintenance module is written to all configuration datas in the configuration database in the synchronous documents with predetermined structure and comprises:
Described operating maintenance module is that described synchronous documents generates a file identification at random, and the described file identification that will generate writes the head of described synchronous documents;
Described operating maintenance module writes described synchronous documents with the information of described each tables of data successively according to the order of each tables of data in the described configuration database, wherein, the information of described tables of data comprises: the sum that writes down in the data length of wall scroll record and the tables of data in the sign of tables of data, the tables of data;
Described operating maintenance module writes described synchronous documents with the configuration data in described each tables of data in the binary coding mode successively according to described order.
3. method according to claim 2 is characterized in that, described operating maintenance module uses file transfer protocol (FTP) FTP mode described synchronous documents to be sent to the pre-configured path of depositing of described one or more business modules.
4. method according to claim 3 is characterized in that, carries the file identification and the described path of depositing of described synchronous documents in the described synchronization message; After described one or more business modules receive described synchronization message, also comprise:
Described one or more business module obtains described file identification and the described path of depositing from described synchronization message;
The described file identification that carries in the described synchronization message of described one or more business module verifications is with to leave the described file identification of depositing the synchronous documents in the path in identical.
5. method according to claim 2 is characterized in that, reads required configuration data according to described predetermined structure from described synchronous documents and comprises:
Read the information of described each tables of data in the described synchronous documents;
According to the described required position of tables of data in described synchronous documents of the information calculations of required tables of data;
From described synchronous documents, read the configuration data that is positioned at described position.
6. method according to claim 2 is characterized in that, also comprises:
Use the configuration data success of reading if described one or more business modules read required configuration data success and load, then return synchronous successful message to described operating maintenance module;
If described one or more business modules read required configuration data failure, then return the message of synchronization failure to described operating maintenance module, wherein, comprise the sign of the tables of data that reads failure in the message of described synchronization failure.
7. according to each described method in the claim 1 to 6, it is characterized in that,
Before described operating maintenance module sent described synchronous documents to described one or more business module, also comprise: described operating maintenance module was encrypted described synchronous documents;
After described business module receives described synchronization message, also comprise: described business module is deciphered described synchronous documents.
8. a short message service center is characterized in that, comprising: configuration database, operating maintenance module and one or more business module, wherein:
Described operating maintenance module is used for all configuration datas of described configuration database are written in the synchronous documents with predetermined structure, and sends described synchronous documents to needs synchronous described one or more business modules; Send synchronization message to described one or more business modules;
Each business module in described one or more business module, be used for after the described synchronization message that receives from described operating maintenance module, from described synchronous documents, read required configuration data according to described predetermined structure, and load the configuration data that use is read.
9. short message service center according to claim 8 is characterized in that, described operating maintenance module comprises:
Generation module is used to described synchronous documents to generate a file identification at random;
First writing module, the described file identification that is used for generating writes the head of described synchronous documents; Order according to each tables of data in the described configuration database writes described synchronous documents with the information of described each tables of data successively, wherein, the information of described tables of data comprises: the sum that writes down in the data length of wall scroll record and the tables of data in the sign of tables of data, the tables of data;
Second writing module is used for successively the configuration data of described each tables of data being write in the described synchronous documents in the binary coding mode according to described order.
10. short message service center according to claim 8 is characterized in that, described operating maintenance module also comprises: encrypting module is used to encrypt described synchronous documents;
Each described business module comprises: deciphering module is used to decipher described synchronous documents.
CN2010102628229A 2010-08-19 2010-08-19 Synchronization method of configuration data and short message center Pending CN101917485A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2010102628229A CN101917485A (en) 2010-08-19 2010-08-19 Synchronization method of configuration data and short message center
PCT/CN2010/078030 WO2012022073A1 (en) 2010-08-19 2010-10-22 Configuration data synchronization method and short message center

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102628229A CN101917485A (en) 2010-08-19 2010-08-19 Synchronization method of configuration data and short message center

Publications (1)

Publication Number Publication Date
CN101917485A true CN101917485A (en) 2010-12-15

Family

ID=43324867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102628229A Pending CN101917485A (en) 2010-08-19 2010-08-19 Synchronization method of configuration data and short message center

Country Status (2)

Country Link
CN (1) CN101917485A (en)
WO (1) WO2012022073A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109101622A (en) * 2018-08-10 2018-12-28 北京奇虎科技有限公司 Method of data synchronization, calculates equipment and computer storage medium at device
CN114741343A (en) * 2022-02-28 2022-07-12 惠州华阳通用电子有限公司 Controller port expansion device and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585343A (en) * 2004-06-02 2005-02-23 中兴通讯股份有限公司 Method for providing data to members of network synchronously by gating system
CN1901479A (en) * 2005-07-19 2007-01-24 中兴通讯股份有限公司 Analogue method based on custom-made multiple type net element
CN101060431A (en) * 2007-02-13 2007-10-24 华为技术有限公司 A data configuration method, system and operating and maintenance center
CN101110706A (en) * 2007-07-23 2008-01-23 中兴通讯股份有限公司 Configuration data synchronization method
CN101257661A (en) * 2008-04-09 2008-09-03 中兴通讯股份有限公司 Method and system for considerable user service information load application

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7519600B1 (en) * 2003-12-30 2009-04-14 Sap Aktiengesellschaft System and method for managing multiple application server clusters using a hierarchical data object and a multi-parameter representation for each configuration property
CN101009588B (en) * 2006-01-24 2010-05-12 华为技术有限公司 Method and system for configuring the distributed proxy server information
US8437462B2 (en) * 2008-11-04 2013-05-07 Aspect Software, Inc. Synchronization of multiple target system data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585343A (en) * 2004-06-02 2005-02-23 中兴通讯股份有限公司 Method for providing data to members of network synchronously by gating system
CN1901479A (en) * 2005-07-19 2007-01-24 中兴通讯股份有限公司 Analogue method based on custom-made multiple type net element
CN101060431A (en) * 2007-02-13 2007-10-24 华为技术有限公司 A data configuration method, system and operating and maintenance center
CN101110706A (en) * 2007-07-23 2008-01-23 中兴通讯股份有限公司 Configuration data synchronization method
CN101257661A (en) * 2008-04-09 2008-09-03 中兴通讯股份有限公司 Method and system for considerable user service information load application

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109101622A (en) * 2018-08-10 2018-12-28 北京奇虎科技有限公司 Method of data synchronization, calculates equipment and computer storage medium at device
CN114741343A (en) * 2022-02-28 2022-07-12 惠州华阳通用电子有限公司 Controller port expansion device and method

Also Published As

Publication number Publication date
WO2012022073A1 (en) 2012-02-23

Similar Documents

Publication Publication Date Title
CN102255917B (en) Method, system and device for updating and synchronizing keys of dynamic token
US8155320B2 (en) Data storage device, management server, integrated circuit, data update system, home electric apparatuses, data update method, encryption method, and encryption/decryption key generation method
CN101997681B (en) Authentication method and system for multi-node path and relevant node equipment
CN102307193A (en) Key updating and synchronizing method, system and device for dynamic token
CN102413126B (en) Secret key synchronization method of bank card transaction preposition equipment and system thereof
CN103152390A (en) Method and device and nodes and system for node configuration of distributed storage system
CN103118100A (en) Guarantee method and guarantee system for improving usability of virtual machine application
CN102438042B (en) Dynamic parameter synchronizing method and system of multipoint access device
CN112131002A (en) Data management method and device
CN106506479A (en) The method of cipher authentication, system and client, server and smart machine
CN110855688B (en) Block chain information processing method and related equipment
CN102694795A (en) Method of using application service in offline situations
US5991404A (en) System for diversifying information in a network for distributing goods or services
CN102238135A (en) Security authentication server
CN101730085B (en) Address book data synchronizing method and system
CN101917485A (en) Synchronization method of configuration data and short message center
CN116155491B (en) Symmetric key synchronization method of security chip and security chip device
CN106095594B (en) A kind of method, apparatus and system of resource processing
CN109510798A (en) Method for authenticating and control equipment, middle control service equipment
CN104038469A (en) Equipment for security information interaction
CN111698227A (en) Information synchronization management method, device, computer system and readable storage medium
CN112765586A (en) Block chain-based deployment file distribution method, equipment and storage medium
EP3200388B1 (en) User permission check system
CN112818408A (en) Data management system, data management device, storage medium, and data management method
CN101467385A (en) Data storage device, management server, integrated circuit, data update system, home electric apparatuses, data update method, encryption method, and encryption/decryption key generation method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101215