CN110365788A - Data managing method and device based on isomery message - Google Patents

Data managing method and device based on isomery message Download PDF

Info

Publication number
CN110365788A
CN110365788A CN201910659498.5A CN201910659498A CN110365788A CN 110365788 A CN110365788 A CN 110365788A CN 201910659498 A CN201910659498 A CN 201910659498A CN 110365788 A CN110365788 A CN 110365788A
Authority
CN
China
Prior art keywords
data
message
operation requests
storage unit
buffer storage
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
CN201910659498.5A
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.)
Guangdong Commercial Road Mdt Infotech Ltd
Original Assignee
Guangdong Commercial Road Mdt Infotech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Commercial Road Mdt Infotech Ltd filed Critical Guangdong Commercial Road Mdt Infotech Ltd
Priority to CN201910659498.5A priority Critical patent/CN110365788A/en
Publication of CN110365788A publication Critical patent/CN110365788A/en
Pending legal-status Critical Current

Links

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/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5681Pre-fetching or pre-delivering data based on network characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Abstract

The invention discloses data managing methods and device based on isomery message, method includes the following steps: reading the data in configuration file and being loaded onto data buffer storage unit;Operation requests message is received from operation requests side and is transmitted;It parses the operation requests message and obtains request content;The data in data buffer storage unit are operated according to request content and issue feedback information;Feedback information is packaged and generates feedback message;By the feedback message transmissions to operation requests side.Method provided by the invention is loaded onto data buffer storage unit by profile data, and effectively avoiding multiple operation requests sides from executing operation to configuration file simultaneously causes configuration file abnormal or damage;The introducing of request message and feedback message, optimizes execution efficiency;While realizing the read-write operation to data, the file lock of multioperation requesting party's synchronization request introducing is avoided, operational efficiency and overall performance are improved.

Description

Data managing method and device based on isomery message
Technical field
This application involves computer development technical fields, more particularly to data managing method and dress based on isomery message It sets.
Background technique
Current embedded communicating terminal mainly carries out data management by XML (extensible markup language) configuration file. Detailed process is, by loading XML configuration file, to obtain the configuration number such as basic status parameter of program operation in program operation According to, or by the way that data, the basic status parameter of modification program operation are written in XML configuration file.Such data managing method, For XML configuration file as public data storage medium, it is same when multiple programs request simultaneously and read or modify to will lead to data It walks exception or XML configuration file data exception is even damaged, entire program is caused to be operating abnormally.
To avoid multiple programs from generating competitive relation when obtaining from XML configuration file simultaneously or modify data, guarantee multiple Read-write of the program to XML configuration file is typically led to file lock, however file lock can greatly reduce effect when program reads data Rate reduces program operational effect.
Summary of the invention
The invention aims to provide the data managing method of isomery message and device, above-mentioned existing issue can solve One or more of.
In a first aspect, provide the data managing method based on isomery message, this method includes,
It reads the data in configuration file and is loaded onto data buffer storage unit;
Operation requests message is received from operation requests side and is transmitted;
Parsing operation requests message simultaneously obtains request content;
The data in data buffer storage unit are operated according to request content and issue feedback information;
Feedback information is packaged and generates feedback message;
Message transmissions will be fed back to operation requests side.
In some embodiments, operation requests message is one of inquiry request message and modification request message.
In some embodiments, slow to data according to request content when operation requests message is inquiry request message Data in memory cell are operated and issue feedback information
Related data is obtained according to inquiry request content,
If obtaining data success, the feedback information issued is the data got;
If obtaining data failure, the feedback information issued is to obtain unsuccessfully to prompt.
In some embodiments, slow to data according to request content when operation requests message is modification request message Data in memory cell are operated and issue feedback information
It is modified according to modification request content to the data in data buffer storage unit,
If modifying data success, the feedback information issued is successfully modified prompt;
If modifying data failure, the feedback information issued is that modification unsuccessfully prompts.
In some embodiments, this method further includes that the data in data buffer storage unit are written in configuration file.
In some embodiments, the data in data buffer storage unit are updated in configuration file and are specifically included:
Timer is set;
Signal is written in timers trigger;
Configuration file is written into data in data buffer storage unit.
Second aspect provides the data administrator based on isomery message, which includes,
Data transmission unit receives operation requests message from operation requests side and is transmitted;
Packet parsing unit parses operation requests message and obtains request content;
Data buffer storage unit reads the data in configuration file and load;
Operation execution unit operates the data in data buffer storage unit according to request content and issues feedback letter Breath;
Feedback information is packaged and generates feedback message by message packaged unit;With
Data feedback unit, by feedback message transmissions to operation requests side.
In some embodiments, the operation requests message that data transmission unit receives is inquiry request message and modification One of request message.
In some embodiments, which further includes data synchronisation unit, for by the data in data buffer storage unit It is written in configuration file.
In some embodiments, data synchronisation unit specifically includes,
Timer subunit, for the time to be arranged;
Signal is written and triggers subelement, signal is written for timers trigger;With
Write-in executes subelement, and configuration file is written in the data in data buffer storage unit.
The invention has the benefit that method provided by the invention, it is slow to be loaded onto data by the data in configuration file Memory cell, effectively avoiding multiple operation requests sides from executing operation to configuration file simultaneously causes configuration file abnormal or damage;It is logical It crosses request message and feeds back the introducing of message, optimize execution efficiency;While realizing the read-write operation to data, do not need to match It sets file and directly carries out data interaction with external request side, avoid the file lock of multioperation requesting party's synchronization request introducing, mention High operational efficiency and overall performance.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart for the data managing method based on isomery message that one embodiment of the invention provides.
Fig. 2 be another embodiment of the present invention provides the data administrator based on isomery message structural schematic diagram.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Embodiment 1:
As shown in Figure 1, this method includes as follows the embodiment of the invention provides the data managing method based on isomery message Step:
S11 reads the data in configuration file and is loaded onto data storage cell;
Specifically, configuration file can be the configuration file of XML format, by taking IP phone as an example, such as: it is entitled The file of Sipsetting.xml can be used for storing sip account, the sip parameter configuration of phone;It is entitled The file of Networksettings.xml can be used for storing the network status data of phone;It is entitled The file of Phonesettings.xml is configured when can be used for storing phone operation using parameter, such as volume, the tinkle of bells.
On startup, the data read in configuration file are loaded in data storage cell, thus, it is possible to effectively avoid multiple Submodule, which executes operation to configuration file simultaneously, causes configuration file abnormal or damage, improves stability.
S12 receives operation requests message from operation requests side and is transmitted;
Specifically, by taking IP phone as an example, operation requests side can be each submodule inside phone.
Specifically, operation requests message can be one of inquiry request message and modification request message, wherein inquiry Request message is to request to inquire and browse the data in configuration file, and modification request message is the number in request modification configuration file According to.
Each submodule has the data in configuration file the demand of inquiry or modification inside phone, then each submodule Issue corresponding operation request message.Operation requests side carries out needing thus may be used using specific message structure when operation requests To guarantee the stabilization and efficiency of data management processes.
S13 parses operation requests message and obtains request content;
Operation requests message is parsed by set message format, generates completely executable content data request.
S14 operates the data in data buffer storage unit according to request content and issues feedback information;
Specifically, when operation requests message is inquiry request message, according to request content in data buffer storage unit Data are operated and issue feedback information
Related data is obtained according to inquiry request content,
If obtaining data success, the feedback information issued is the data got;
If obtaining data failure, the feedback information issued is to obtain unsuccessfully to prompt.
Specifically, when operation requests message is modification request message, according to request content in data buffer storage unit Data are operated and issue feedback information
It is modified according to modification request content to the data in data buffer storage unit,
If modifying data success, the feedback information issued is successfully modified prompt;
If modifying data failure, the feedback information issued is that modification unsuccessfully prompts.
Feedback information is packaged and generates feedback message by S15;
Specifically, the feedback information obtained in S14 is packaged into message structure corresponding with operation requests message.
S16, by feedback message transmissions to operation requests side.
Specifically, feedback message is sent to operation requests side, completes the reading and modification of profile data as a result,.
In an alternate embodiment of the invention, this method further includes that the data in data buffer storage unit are written in configuration file.Tool Body, the data write-in configuration file in data buffer storage unit can be completed by following steps: setting timer;It is pre- when reaching If time, timers trigger be written signal;Configuration file is written into data in data buffer storage unit.Pass through timing as a result, Device trigger data saves, and ensure that the real-time of data in configuration file, while guaranteeing the rate of reading and writing data.
Above embodiments are loaded onto data buffer storage unit by the data in configuration file, effectively avoid multiple operation requests Side, which executes operation to configuration file simultaneously, causes configuration file abnormal or damage;By request message and feedback message introducing, Optimize execution efficiency;While realizing the read-write operation to data, does not need configuration file and directly carried out with external request side Data interaction avoids the file lock of multioperation requesting party's synchronization request introducing, improves operational efficiency and overall performance.
Embodiment 2:
As shown in Fig. 2, the present invention also provides the data management 100 based on isomery message is provided, which can be held Corresponding step in row above-described embodiment 1, the device include such as lower unit:
Data transmission unit 110 receives operation requests message from operation requests side and is transmitted;
Specifically, by taking IP phone as an example, operation requests side can be each submodule inside phone.
Specifically, operation requests message can be one of inquiry request message and modification request message, wherein inquiry Request message is to request to inquire and browse the data in configuration file, and modification request message is the number in request modification configuration file According to.
Each submodule has the data in configuration file the demand of inquiry or modification, each submodule hair inside phone Corresponding operation request message out.Data transmission unit 110 receives the operation requests message of each submodule inside phone, And message transmissions to packet parsing unit 120 are parsed.Operation requests side need when operation requests using specific Message structure, it is possible thereby to guarantee the stabilization and efficiency of data management processes.
Packet parsing unit 120 parses operation requests message and obtains request content;
Specifically, it receives the operation requests message from data transmission unit 110 and is parsed by set message format, Generate completely executable content data request.
Operation execution unit 130 operates the data in data buffer storage unit according to request content and issues feedback Information;
According to the request content that packet parsing unit 120 parses, related data is read from data buffer storage unit 140 or is repaired Change related data and issues corresponding feedback information.
Specifically, when operation requests message is inquiry request message, according to request content in data buffer storage unit Data are operated and issue feedback information
Related data is obtained according to inquiry request content,
If obtaining data success, the feedback information issued is the data got;
If obtaining data failure, the feedback information issued is to obtain unsuccessfully to prompt.
Specifically, when operation requests message is modification request message, according to request content in data buffer storage unit Data are operated and issue feedback information
It is modified according to modification request content to the data in data buffer storage unit,
If modifying data success, the feedback information issued is successfully modified prompt;
If modifying data failure, the feedback information issued is that modification unsuccessfully prompts.
Data buffer storage unit 140 reads the data in configuration file and load;
Specifically, by taking IP phone as an example, in the starting of IP phone, data storage cell then reads the data in configuration file And load in the data store,
Specifically, configuration file can be the configuration file of XML format, such as: the file of entitled Sipsetting.xml, It can be used for storing sip account, the sip parameter configuration of phone;The file of entitled Networksettings.xml, can be used for Store the network status data of phone;The file of entitled Phonesettings.xml, use when can be used for storing phone operation Parameter, such as the configuration of volume, the tinkle of bells.
Unique operation interface is established by data buffer storage unit 140 and configuration file as a result, facilitates each submodule Inquiry or modification cause configuration file abnormal or damage it is possible to prevente effectively from multiple submodule executes operation to configuration file simultaneously It is bad, improve stability.
Feedback information is packaged and generates feedback message by message packaged unit 150;
Specifically, feedback information is packaged to the feedback message for generating corresponding format.
Data feedback unit 160, by feedback message transmissions to operation requests side.
Specifically, the feedback message transmitted by message packaged unit 150 is sent, feedback message is sent to corresponding operation Requesting party.The reading and modification of profile data are completed as a result,.
In an alternate embodiment of the invention, which further includes data synchronisation unit, for by the data in data buffer storage unit It is written in configuration file.
Specifically, data synchronisation unit may include timer subunit, for the time to be arranged;
Signal is written and triggers subelement, signal is written for timers trigger;With
Write-in executes subelement, and configuration file is written in the data in data buffer storage unit.
It is saved as a result, by timers trigger data, configuration file periodically is written into the data in data buffer storage unit, Guarantee the real-time update of data in configuration file, while guaranteeing the rate of reading and writing data.
Above embodiments are loaded onto data buffer storage unit by the data in configuration file, effectively avoid multiple operation requests Side, which executes operation to configuration file simultaneously, causes configuration file abnormal or damage;By request message and feedback message introducing, Optimize execution efficiency;While realizing the read-write operation to data, does not need configuration file and directly carried out with external request side Data interaction avoids the file lock of multioperation requesting party's synchronization request introducing, improves operational efficiency and overall performance.
The apparatus embodiments described above are merely exemplary, wherein unit can be as illustrated by the separation member Or may not be and be physically separated, component shown as a unit may or may not be physical unit, i.e., It can be located in one place, or may be distributed over multiple network units.It can select according to the actual needs therein Some or all of the modules achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creative labor In the case where dynamic, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation The method of certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. based on the data managing method of isomery message, this method comprises:
It reads the data in configuration file and is loaded onto data buffer storage unit;
Operation requests message is received from operation requests side and is transmitted;
It parses the operation requests message and obtains request content;
The data in data buffer storage unit are operated according to request content and issue feedback information;
Feedback information is packaged and generates feedback message;
By the feedback message transmissions to operation requests side.
2. the method according to claim 1, wherein the operation requests message is inquiry request message and modification One of request message.
3. according to the method described in claim 2, it is characterized in that,
It is described that the data in data buffer storage unit are carried out according to request content when operation requests message is inquiry request message It operates and issues feedback information and include:
Related data is obtained according to inquiry request content,
If obtaining data success, the feedback information issued is the data got;
If obtaining data failure, the feedback information issued is to obtain unsuccessfully to prompt.
4. according to the method described in claim 2, it is characterized in that,
It is described that the data in data buffer storage unit are carried out according to request content when operation requests message is modification request message It operates and issues feedback information and include:
It is modified according to modification request content to the data in data buffer storage unit,
If modifying data success, the feedback information issued is successfully modified prompt;
If modifying data failure, the feedback information issued is that modification unsuccessfully prompts.
5. the method according to claim 1, wherein further including matching the data write-in in data buffer storage unit It sets in file.
6. according to the method described in claim 5, it is characterized in that, the data by data buffer storage unit are updated to configuration It is specifically included in file:
Timer is set;
Signal is written in timers trigger;
Configuration file is written into data in data buffer storage unit.
7. based on the data administrator of isomery message, which includes,
Data transmission unit receives operation requests message from operation requests side and is transmitted;
Packet parsing unit parses the operation requests message and obtains request content;
Data buffer storage unit reads the data in configuration file and load;
Operation execution unit operates the data in data buffer storage unit according to request content and issues feedback information;
Feedback information is packaged and generates feedback message by message packaged unit;With
Data feedback unit, by feedback message transmissions to operation requests side.
8. device according to claim 7, which is characterized in that the operation requests message that the data transmission unit receives For one of inquiry request message and modification request message.
9. device according to claim 7, which is characterized in that described device further includes data synchronisation unit, for that will count According in the data write-in configuration file in cache unit.
10. device according to claim 9, which is characterized in that the data synchronisation unit includes,
Timer subunit, for the time to be arranged;
Signal is written and triggers subelement, signal is written for timers trigger;With
Write-in executes subelement, and configuration file is written in the data in data buffer storage unit.
CN201910659498.5A 2019-07-22 2019-07-22 Data managing method and device based on isomery message Pending CN110365788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910659498.5A CN110365788A (en) 2019-07-22 2019-07-22 Data managing method and device based on isomery message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910659498.5A CN110365788A (en) 2019-07-22 2019-07-22 Data managing method and device based on isomery message

Publications (1)

Publication Number Publication Date
CN110365788A true CN110365788A (en) 2019-10-22

Family

ID=68221366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910659498.5A Pending CN110365788A (en) 2019-07-22 2019-07-22 Data managing method and device based on isomery message

Country Status (1)

Country Link
CN (1) CN110365788A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576918A (en) * 2009-06-19 2009-11-11 用友软件股份有限公司 Data buffering system with load balancing function
US9268562B1 (en) * 2015-01-21 2016-02-23 PredictSpring, Inc. Methods and apparatuses for dynamically generating mobile application layouts using client-independent configuration
CN107506218A (en) * 2017-09-14 2017-12-22 北京京东尚科信息技术有限公司 The management method and management system of a kind of configuration file
CN109358873A (en) * 2018-09-25 2019-02-19 平安普惠企业管理有限公司 A kind of application program update method, storage medium and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576918A (en) * 2009-06-19 2009-11-11 用友软件股份有限公司 Data buffering system with load balancing function
US9268562B1 (en) * 2015-01-21 2016-02-23 PredictSpring, Inc. Methods and apparatuses for dynamically generating mobile application layouts using client-independent configuration
CN107506218A (en) * 2017-09-14 2017-12-22 北京京东尚科信息技术有限公司 The management method and management system of a kind of configuration file
CN109358873A (en) * 2018-09-25 2019-02-19 平安普惠企业管理有限公司 A kind of application program update method, storage medium and terminal device

Similar Documents

Publication Publication Date Title
CN108566290B (en) Service configuration management method, system, storage medium and server
CN101043318B (en) Method for synchronizing front-background data and apparatus thereof
CN108874825B (en) Abnormal data verification method and device
WO2022142153A1 (en) Electricity meter upgrading method and system, smart meter, and storage medium
WO2020238860A1 (en) Distributed file batch processing method and apparatus, and readable storage medium
US8719622B2 (en) Recording and preventing crash in an appliance
CN112583743B (en) Distributed file exchange method and device
CN110365788A (en) Data managing method and device based on isomery message
CN110620819B (en) Block chain interaction method and device, computer equipment and readable storage medium
CN115185787B (en) Method and device for processing transaction log
CN112905676A (en) Data file importing method and device
CN109981342A (en) A kind of method and system of batch processing network device operation order
CN113360558B (en) Data processing method, data processing device, electronic equipment and storage medium
CN113328895B (en) Error code management system, abnormality positioning method, and storage medium
CN115766439A (en) KVM device batch upgrading method and device and electronic device
CN111367740B (en) BMC debugging system and method and computer readable storage medium
CN106651066A (en) Data processing method and platform
CN107632893A (en) Message queue processing method and processing device
CN112925612A (en) Monitoring service static configuration management method based on Kubernetes
US10419368B1 (en) Dynamic scaling of computing message architecture
US9338297B2 (en) Setup application for generating custom code
CN115080583A (en) Distribution method, equipment and medium of change data
WO2023029955A1 (en) Method for printing dynamic log, and electronic device
CN113259768B (en) Method, system and medium for managing APK in set-top box
WO2010130116A1 (en) System and method for realizing the serial task

Legal Events

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

Application publication date: 20191022