CN106557974A - A kind of processing method and system of IMIX protocol datas - Google Patents

A kind of processing method and system of IMIX protocol datas Download PDF

Info

Publication number
CN106557974A
CN106557974A CN201611027572.4A CN201611027572A CN106557974A CN 106557974 A CN106557974 A CN 106557974A CN 201611027572 A CN201611027572 A CN 201611027572A CN 106557974 A CN106557974 A CN 106557974A
Authority
CN
China
Prior art keywords
serializing
domain
imix
file
data
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.)
Granted
Application number
CN201611027572.4A
Other languages
Chinese (zh)
Other versions
CN106557974B (en
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.)
Agricultural Bank Of China Financial Technology Co ltd
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN201611027572.4A priority Critical patent/CN106557974B/en
Publication of CN106557974A publication Critical patent/CN106557974A/en
Application granted granted Critical
Publication of CN106557974B publication Critical patent/CN106557974B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/149Adaptation of the text data for streaming purposes, e.g. Efficient XML Interchange [EXI] format
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of processing method of IMIX protocol datas, including:The IMIX protocol datas generated in receiving process of exchange;Parsing is carried out to IMIX protocol datas and generates fetched data object;Parsing is carried out to fetched data object and obtains high-frequency therapeutic treatment domain;High-frequency therapeutic treatment domain write agreement formatted file stream, the file stream to writing high-frequency therapeutic treatment domain are carried out restarting serializing;Appended document stream, formation sequence file are write using the fetched data object after serializing as sequence message domain.The present invention ensure that the safety and stability of data handling procedure.The invention also discloses a kind of processing system of IMIX protocol datas.

Description

A kind of processing method and system of IMIX protocol datas
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of IMIX (Inter-bank Market Information eXchange, Inter-Bank Market information are exchanged) processing method of protocol data and system.
Background technology
IMIX agreements are used for the Financial Information transmission of interbank home currency market and foreign exchange market, and the agreement is widely used at present The market between domestic bank.The agreement is made up of standard message head, message body, this three part of standard message tail, and each part is again Comprising some domains, domain block, component, chunk etc., the message structure of concrete agreement is as shown in Figure 1.
The Financial Information of interbank home currency market and foreign exchange market is carried out data transmission using IMIX agreements, then after carrying out Continuous transaction, clearing etc. are processed, therefore after having mass data to need to be changed and supply in being stored in the data base of application system Continuous processed.Due to the transaction data great amount that interbank home currency market and foreign exchange market are related to, it is necessary to assure data The safety and stability of processing procedure.
At present, when processing to IMIX protocol datas, conventional storage method is existed according to the structure of IMIX agreements Data base builds table, for example, a domain in IMIX messages or domain block are mapped to the table in data base and field, then to IMIX Agreement is parsed, and the result after parsing is directly stored in data base in corresponding table and field, it is processed for follow-up system With.The content that on the one hand existing this processing mode is related to due to IMIX agreements is complicated, various, and often wraps between various pieces Containing nest relation and Articulation, therefore the direct architecture Design according to IMIX agreements database table out is inevitable very Complexity, to process the causing property loss of energy of follow-up number sequence extraction and analysis, and is difficult to safeguard;On the other hand due to IMIX agreement roots According to financial market change constantly upgrading with evolve, the structure based on agreement itself and design database form number Necessarily it is also required to be transformed accordingly according to storage mode, therefore the frequent change of bottom data structure necessarily causes the peace of system The disappearance of full property and stability.
The content of the invention
The invention provides a kind of processing method of IMIX protocol datas, ensure that data handling procedure safety and Stability.
The invention provides a kind of processing method of IMIX protocol datas, including:
The IMIX protocol datas generated in receiving process of exchange;
Parsing is carried out to the IMIX protocol datas and generates fetched data object;
Parsing is carried out to the fetched data object and obtains high-frequency therapeutic treatment domain;
High-frequency therapeutic treatment domain write agreement formatted file stream, the file stream to writing the high-frequency therapeutic treatment domain are carried out into weight Open serializing;
Appended document stream, formation sequence file are write using the fetched data object after serializing as sequence message domain.
Preferably, it is described to carry out parsing to the fetched data object and obtain high-frequency therapeutic treatment domain including:
The high frequency inquiry content in the fetched data is parsed based on dictionary, extract care field value;
It is concerned about that field value is assembled into the high frequency querying condition extensible markup for meeting extensible markup language standard by described Linguistic head is used as high-frequency therapeutic treatment domain.
Preferably, it is described that the IMIX protocol datas are carried out also to include after parsing generates fetched data object:
The fetched data object is stored based on business demand and system configuration.
Preferably, the fetched data object using after serializing writes appended document stream as sequence message domain, generates Also include after serializing file:
Store the serializing file.
Preferably, also include after the storage serializing file:
Query message assembling is carried out based on inquiry and treatment conditions;
The query message is parsed, according to the business date, will be from serializing document storage server by the business day Phase file fetches reading, and is loaded in internal memory;
Remaining querying condition is matched entirely with the condition in all of high frequency inquiry field in this document object, if Match somebody with somebody, then the serializing contents of object in the domain corresponding serializing file domain is taken out;
Unserializing is carried out to the serializing contents of object and generates data result or object;
The data result or object are transmitted based on data check domain carries out business data processing to Service Process Server.
A kind of processing system of IMIX protocol datas, including:
Message is received and resolution server, for receiving the IMIX protocol datas generated in process of exchange, and to described IMIX protocol datas carry out parsing and generate fetched data object;
Serializing engine, obtains high-frequency therapeutic treatment domain for carrying out parsing to the fetched data object, by the high frequency treatment Reason domain write agreement formatted file stream, the file stream to writing the high-frequency therapeutic treatment domain carries out restarting serializing, after serializing Fetched data object as sequence message domain write appended document stream, formation sequence file.
Preferably, it is described serializing engine specifically for:
The high frequency inquiry content in the fetched data is parsed based on dictionary, extract care field value;
It is concerned about that field value is assembled into the high frequency querying condition extensible markup for meeting extensible markup language standard by described Linguistic head is used as high-frequency therapeutic treatment domain.
Preferably, the system also includes:
Data base, for storing the fetched data object based on business demand and system configuration.
Preferably, the system also includes:
Serializing document storage server, for storing the serializing file.
Preferably, the system also includes service processor, is used for:
Query message assembling is carried out based on inquiry and treatment conditions;
The query message is parsed, according to the business date, will be from serializing document storage server by the business day Phase file fetches reading, and is loaded in internal memory;
Remaining querying condition is matched entirely with the condition in all of high frequency inquiry field in this document object, if Match somebody with somebody, then the serializing contents of object in the domain corresponding serializing file domain is taken out;
Unserializing is carried out to the serializing contents of object and generates data result or object;
The data result or object are transmitted based on data check domain carries out business data processing to Service Process Server.
A kind of processing method of the IMIX protocol datas provided from such scheme, the present invention, is carrying out IMIX agreements During data processing, the IMIX protocol datas generated in process of exchange are received first, parsing life is carried out to IMIX protocol datas then Into fetched data object, parsing is carried out to fetched data object then and obtains high-frequency therapeutic treatment domain, then high-frequency therapeutic treatment domain is write Agreement formatted file stream, the file stream to writing high-frequency therapeutic treatment domain carry out restarting serializing;By the fetched data pair after serializing As writing appended document stream, formation sequence file as sequence message domain.By serialize engine to IMIX messages at Reason, not only can realize encryption and the persistence of data, and the serializing agreement of front not only can improve the versatility of system, by force Strong property, safety, the performance of optimization system, and system can be allowed more easily to debug, be easy to extension.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Message structure schematic diagrams of the Fig. 1 for agreement;
Fig. 2 is a kind of flow chart of the processing method embodiment 1 of IMIX protocol datas disclosed by the invention;
Fig. 3 is a kind of flow chart of the processing method embodiment 2 of IMIX protocol datas disclosed by the invention;
Fig. 4 is a kind of flow chart of the processing method embodiment 3 of IMIX protocol datas disclosed by the invention;
Fig. 5 is a kind of structural representation of the processing system embodiment 1 of IMIX protocol datas disclosed by the invention;
Fig. 6 is a kind of structural representation of the processing system embodiment 2 of IMIX protocol datas disclosed by the invention;
Fig. 7 is a kind of structural representation of the processing system embodiment 3 of IMIX protocol datas disclosed by the invention;
Fig. 8 is the structural representation of encapsulation specification disclosed by the invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
As shown in Fig. 2 for a kind of flow chart of the processing method embodiment 1 of IMIX protocol datas disclosed by the invention, should Method is comprised the following steps:
The IMIX protocol datas generated in S101, reception process of exchange;
When needing to process IMIX protocol datas, the IMIX agreement numbers generated in process of exchange are received first According to.IMIX agreements are used for the transmission of the Financial Information of interbank home currency market and foreign exchange market, the protocol provides for covering domestic Operation layer message and strong session layer message before, during and after the transaction of Inter-Bank Market, is Inter-Bank Market finance data Interaction is there is provided easily passage.
S102, to IMIX protocol datas carry out parsing generate fetched data object;
Then the IMIX protocol datas to generating in the process of exchange that receives are parsed, and generate fetched data object.
S103, parsing is carried out to fetched data object obtain high-frequency therapeutic treatment domain;
Then to fetched data object in the content of necessary, high frequency inquiry parse, obtain high-frequency therapeutic treatment domain.
S104, by high-frequency therapeutic treatment domain write agreement formatted file stream, the file stream to writing high-frequency therapeutic treatment domain is restarted Serializing;
Then by the high-frequency therapeutic treatment domain for constructing write agreement formatted file stream, carry out to writing file stream after having write Restart, file stream is serialized.
S105, using the fetched data object after serializing as sequence message domain write appended document stream, formation sequence File.
It is last to write the fetched data object after serializing as serializing message domain to appended document stream, Jing The formation sequence file after writing twice.
In sum, in the above-described embodiments, when the process of IMIX protocol datas is carried out, life in process of exchange is received first Into IMIX protocol datas, then to IMIX protocol datas carry out parsing generate fetched data object, then to fetched data pair High-frequency therapeutic treatment domain is obtained as carrying out parsing, then by high-frequency therapeutic treatment domain write agreement formatted file stream, to writing high-frequency therapeutic treatment domain File stream carry out restarting serializing;Appended document stream is write using the fetched data object after serializing as sequence message domain, Formation sequence file.IMIX messages are processed by serializing engine, the encryption and persistently of data not only can be realized Change, the serializing agreement of front not only can improve the versatility of system, robustness, safety, the performance of optimization system, and System can be allowed more easily to debug, be easy to extension.
As shown in figure 3, for a kind of flow chart of the processing method embodiment 2 of IMIX protocol datas disclosed by the invention, should Method is comprised the following steps:
The IMIX protocol datas generated in S201, reception process of exchange;
When needing to process IMIX protocol datas, the IMIX agreement numbers generated in process of exchange are received first According to.IMIX agreements are used for the transmission of the Financial Information of interbank home currency market and foreign exchange market, the protocol provides for covering domestic Operation layer message and strong session layer message before, during and after the transaction of Inter-Bank Market, is Inter-Bank Market finance data Interaction is there is provided easily passage.
S202, to IMIX protocol datas carry out parsing generate fetched data object;
Then the IMIX protocol datas to generating in the process of exchange that receives are parsed, and generate fetched data object.
S203, based on business demand and system configuration storage fetched data object;
Business pretreatment is carried out to fetched data object according to the configuration of the demand and system of business, then will be through business Pretreated fetched data object is stored.
S204, based on dictionary in fetched data high frequency inquiry content parse, extract care field value;
The content of necessary, high frequency inquiry in the fetched data for receiving is solved according to the dictionary provided by foreign exchange Analysis, extracts care field value.
S205, will be concerned about that field value is assembled into the high frequency querying condition extensible markup that meets extensible markup language standard Linguistic head is used as high-frequency therapeutic treatment domain;
The care field value for extracting is assembled into a high frequency querying condition for meeting extensible markup language standard can Extending mark language head adopts GB2312 as high-frequency therapeutic treatment domain, base coding.
S206, by high-frequency therapeutic treatment domain write agreement formatted file stream, the file stream to writing high-frequency therapeutic treatment domain is restarted Serializing;
Then by the high-frequency therapeutic treatment domain for constructing write agreement formatted file stream, carry out to writing file stream after having write Restart, file stream is serialized.
S207, using the fetched data object after serializing as sequence message domain write appended document stream, formation sequence File;
Writing the fetched data object after serializing as serializing message domain to appended document stream, through two Formation sequence file after secondary write.
S208, the storage serializing file.
After the completion of writing twice, into enqueue to be written or enqueue can not also be entered according to configuration write direct serializing Document storage server is stored.
In sum, in the above-described embodiments, when the process of IMIX protocol datas is carried out, life in process of exchange is received first Into IMIX protocol datas, then to IMIX protocol datas carry out parsing generate fetched data object, then to fetched data pair High-frequency therapeutic treatment domain is obtained as carrying out parsing, then by high-frequency therapeutic treatment domain write agreement formatted file stream, to writing high-frequency therapeutic treatment domain File stream carry out restarting serializing;Appended document stream is write using the fetched data object after serializing as sequence message domain, Formation sequence file.IMIX messages are processed by serializing engine, the encryption and persistently of data not only can be realized Change, the serializing agreement of front not only can improve the versatility of system, robustness, safety, the performance of optimization system, and System can be allowed more easily to debug, be easy to extension.
As shown in figure 4, for a kind of flow chart of the processing method embodiment 3 of IMIX protocol datas disclosed by the invention, should Method is comprised the following steps:
The IMIX protocol datas generated in S301, reception process of exchange;
When needing to process IMIX protocol datas, the IMIX agreement numbers generated in process of exchange are received first According to.IMIX agreements are used for the transmission of the Financial Information of interbank home currency market and foreign exchange market, the protocol provides for covering domestic Operation layer message and strong session layer message before, during and after the transaction of Inter-Bank Market, is Inter-Bank Market finance data Interaction is there is provided easily passage.
S302, to IMIX protocol datas carry out parsing generate fetched data object;
Then the IMIX protocol datas to generating in the process of exchange that receives are parsed, and generate fetched data object.
S303, based on business demand and system configuration storage fetched data object;
Business pretreatment is carried out to fetched data object according to the configuration of the demand and system of business, then will be through business Pretreated fetched data object is stored.
S304, based on dictionary in fetched data high frequency inquiry content parse, extract care field value;
The content of necessary, high frequency inquiry in the fetched data for receiving is solved according to the dictionary provided by foreign exchange Analysis, extracts care field value.
S305, will be concerned about that field value is assembled into the high frequency querying condition extensible markup that meets extensible markup language standard Linguistic head is used as high-frequency therapeutic treatment domain;
The care field value for extracting is assembled into a high frequency querying condition for meeting extensible markup language standard can Extending mark language head adopts GB2312 as high-frequency therapeutic treatment domain, base coding.
S306, by high-frequency therapeutic treatment domain write agreement formatted file stream, the file stream to writing high-frequency therapeutic treatment domain is restarted Serializing;
Then by the high-frequency therapeutic treatment domain for constructing write agreement formatted file stream, carry out to writing file stream after having write Restart, file stream is serialized.
S307, using the fetched data object after serializing as sequence message domain write appended document stream, formation sequence File;
Writing the fetched data object after serializing as serializing message domain to appended document stream, through two Formation sequence file after secondary write.
S308, the storage serializing file;
After the completion of writing twice, into enqueue to be written or enqueue can not also be entered according to configuration write direct serializing Document storage server is stored.
S309, based on inquiry and treatment conditions carry out query message assembling;
According to interbank home currency market and the data characteristicses and business characteristic of the Financial Information of foreign exchange market, design a set of Extensible markup language encapsulates specification, and high frequency is stored in class extending mark language with remaining serializing object composition using data Effective extraction of critical data in file, is realized, and reaches the purpose of quick-searching, the data in addition to high-frequency therapeutic treatment is needed are independent Serializing message domain is stored in, and ensures effectiveness, integrity and the concordance of data by data check domain.It is specific to encapsulate Specification is as shown in Figure 8.
S310, parsing query message, according to the business date, will be from serializing document storage server by the business day Phase file fetches reading, and is loaded in internal memory;
Datatron is sent to query message on serializing engine, and query message is parsed by engine, first according to industry On the business date, the date file will be fetched into reading from serializing document storage server, and be loaded in internal memory.If internal memory Middle presence date file object, then skip this step.
S311, remaining querying condition is matched entirely with the condition in all of high frequency inquiry field in this document object, If it does, then entering S312:
S312, the serializing contents of object in the domain corresponding serializing file domain is taken out;
Remaining querying condition is matched entirely with the condition in all of high frequency inquiry field in this document object, if life In, then the serializing contents of object in the domain corresponding serializing file domain is taken out, at this moment just really carry out system open disappear compared with Big unserializing operation.
S313, unserializing is carried out to the serializing contents of object generate data result or object;
S314, the data result or object are transmitted based on data check domain business datum is carried out to Service Process Server Process.
Again to carrying out unserializing object reference method for processing business or being sent in corresponding Service Process Server Row business data processing.Ensure safety, integrity and the concordance of message transmissions data eventually through data check domain.
In sum, in the above-described embodiments, IMIX message datas are processed using serializing engine, will serializing Data afterwards are stored, and are carrying out unserializing process so that the storage of data does not rely on data base when using data, Ensure the flexibility and changeability of the storage safety and system of data;
According to interbank home currency market and the data characteristicses and business characteristic of the Financial Information of foreign exchange market, design a set of Extensible markup language encapsulates specification, and high frequency is stored in extensible markup language with remaining serializing object composition using data Effective extraction of critical data in file, is realized, and reaches the purpose of quick-searching, the data in addition to high-frequency therapeutic treatment is needed are independent Serializing message domain is stored in, and ensures effectiveness, integrity and the concordance of data by data check domain.
As shown in figure 5, for a kind of structural representation of the processing system embodiment 1 of IMIX protocol datas disclosed by the invention Figure, the system include:
Message is received and resolution server 501, for receiving the IMIX protocol datas generated in process of exchange, and to institute Stating IMIX protocol datas carries out parsing generation fetched data object;
It is to complete to grind certainly based on the ImixAPI provided by China Foreign Exchange Center that Imix messages are received with resolution server Send out 7X24 hours backstage mourn in silence formula operation the reception server.It is divided into Agent and Client two parts, Agent passes through special line Network completes the connection work with CSTP servers, safeguards and manage linking between multiple Client and CSTP servers.Additionally, Agent also ensures that the fetched data that will be received is forwarded to each Client ends, and same Client ends are main after receiving the data Work as two parts:First, fetched data object is reduced to for data are carried out parsing, divided with system configuration according to needed for business It is not stored in correspondence database.2nd, unification after object is converted into fetched data and is sent to follow-up serializing engine server.
Serializing engine 502, obtains high-frequency therapeutic treatment domain for carrying out parsing to the fetched data object, by the high frequency Domain write agreement formatted file stream is processed, the file stream to writing the high-frequency therapeutic treatment domain carries out restarting serializing, will serializing Fetched data object afterwards writes appended document stream, formation sequence file as sequence message domain.
Serializing engine is responded for passive receiving type, after the fetched data object that Client ends actively send is received, right Necessary, high frequency inquiry content in fetched data object is parsed, and obtains high-frequency therapeutic treatment domain, by the high frequency treatment for constructing In reason domain write agreement formatted file stream, restart to writing file stream after having write, file stream is serialized, finally Writing the fetched data object after serializing as serializing message domain to appended document stream, after writing twice Formation sequence file.
In sum, in the above-described embodiments, when the process of IMIX protocol datas is carried out, life in process of exchange is received first Into IMIX protocol datas, then to IMIX protocol datas carry out parsing generate fetched data object, then to fetched data pair High-frequency therapeutic treatment domain is obtained as carrying out parsing, then by high-frequency therapeutic treatment domain write agreement formatted file stream, to writing high-frequency therapeutic treatment domain File stream carry out restarting serializing;Appended document stream is write using the fetched data object after serializing as sequence message domain, Formation sequence file.IMIX messages are processed by serializing engine, the encryption and persistently of data not only can be realized Change, the serializing agreement of front not only can improve the versatility of system, robustness, safety, the performance of optimization system, and System can be allowed more easily to debug, be easy to extension.
As shown in fig. 6, for a kind of structural representation of the processing system embodiment 2 of IMIX protocol datas disclosed by the invention Figure, the system include:
Message is received and resolution server 601, for receiving the IMIX protocol datas generated in process of exchange, and to institute Stating IMIX protocol datas carries out parsing generation fetched data object;
It is to complete to grind certainly based on the ImixAPI provided by China Foreign Exchange Center that Imix messages are received with resolution server Send out 7X24 hours backstage mourn in silence formula operation the reception server.It is divided into Agent and Client two parts, Agent passes through special line Network completes the connection work with CSTP servers, safeguards and manage linking between multiple Client and CSTP servers.Additionally, Agent also ensures that the fetched data that will be received is forwarded to each Client ends, and same Client ends are main after receiving the data Work as two parts:First, fetched data object is reduced to for data are carried out parsing, divided with system configuration according to needed for business It is not stored in correspondence database.2nd, unification after object is converted into fetched data and is sent to follow-up serializing engine server.
Data base 602, for storing the fetched data object based on business demand and system configuration;
Business pretreatment is carried out to fetched data object according to the configuration of the demand and system of business, then will be through business Pretreated fetched data object is stored.
Serializing engine 603, for being parsed to the high frequency inquiry content in the fetched data based on dictionary, is extracted Go out to be concerned about field value;By it is described be concerned about field value be assembled into meet extensible markup language standard high frequency querying condition it is expansible Markup language head is used as high-frequency therapeutic treatment domain;By high-frequency therapeutic treatment domain write agreement formatted file stream, to writing the high frequency treatment The file stream in reason domain carries out restarting serializing, writes appended document using the fetched data object after serializing as sequence message domain Stream, formation sequence file;
The content of necessary, high frequency inquiry in the fetched data for receiving is solved according to the dictionary provided by foreign exchange Analysis, extracts care field value.It is concerned about that field value is assembled into a height for meeting extensible markup language standard by what is extracted Frequency querying condition extensible markup language head adopts GB2312 as high-frequency therapeutic treatment domain, base coding.Then by the high frequency for constructing Process in domain write agreement formatted file stream, restart to writing file stream after having write, file stream is serialized. Write the fetched data object after serializing as serializing message domain to appended document stream, it is raw after writing twice Into serializing file.
Serializing document storage server 604, for storing the serializing file.
After the completion of writing twice, into enqueue to be written or enqueue can not also be entered according to configuration write direct serializing Document storage server is stored.
In sum, in the above-described embodiments, when the process of IMIX protocol datas is carried out, life in process of exchange is received first Into IMIX protocol datas, then to IMIX protocol datas carry out parsing generate fetched data object, then to fetched data pair High-frequency therapeutic treatment domain is obtained as carrying out parsing, then by high-frequency therapeutic treatment domain write agreement formatted file stream, to writing high-frequency therapeutic treatment domain File stream carry out restarting serializing;Appended document stream is write using the fetched data object after serializing as sequence message domain, Formation sequence file.IMIX messages are processed by serializing engine, the encryption and persistently of data not only can be realized Change, the serializing agreement of front not only can improve the versatility of system, robustness, safety, the performance of optimization system, and System can be allowed more easily to debug, be easy to extension.
As shown in fig. 7, for a kind of structural representation of the processing system embodiment 3 of IMIX protocol datas disclosed by the invention Figure, the system include:
Message is received and resolution server 701, for receiving the IMIX protocol datas generated in process of exchange, and to institute Stating IMIX protocol datas carries out parsing generation fetched data object;
It is to complete to grind certainly based on the ImixAPI provided by China Foreign Exchange Center that Imix messages are received with resolution server Send out 7X24 hours backstage mourn in silence formula operation the reception server.It is divided into Agent and Client two parts, Agent passes through special line Network completes the connection work with CSTP servers, safeguards and manage linking between multiple Client and CSTP servers.Additionally, Agent also ensures that the fetched data that will be received is forwarded to each Client ends, and same Client ends are main after receiving the data Work as two parts:First, fetched data object is reduced to for data are carried out parsing, divided with system configuration according to needed for business It is not stored in correspondence database.2nd, unification after object is converted into fetched data and is sent to follow-up serializing engine server.
Data base 702, for storing the fetched data object based on business demand and system configuration;
Business pretreatment is carried out to fetched data object according to the configuration of the demand and system of business, then will be through business Pretreated fetched data object is stored.
Serializing engine 703, for being parsed to the high frequency inquiry content in the fetched data based on dictionary, is extracted Go out to be concerned about field value;By it is described be concerned about field value be assembled into meet extensible markup language standard high frequency querying condition it is expansible Markup language head is used as high-frequency therapeutic treatment domain;By high-frequency therapeutic treatment domain write agreement formatted file stream, to writing the high frequency treatment The file stream in reason domain carries out restarting serializing, writes appended document using the fetched data object after serializing as sequence message domain Stream, formation sequence file;
The content of necessary, high frequency inquiry in the fetched data for receiving is solved according to the dictionary provided by foreign exchange Analysis, extracts care field value.It is concerned about that field value is assembled into a height for meeting extensible markup language standard by what is extracted Frequency querying condition extensible markup language head adopts GB2312 as high-frequency therapeutic treatment domain, base coding.Then by the high frequency for constructing Process in domain write agreement formatted file stream, restart to writing file stream after having write, file stream is serialized. Write the fetched data object after serializing as serializing message domain to appended document stream, it is raw after writing twice Into serializing file.
Serializing document storage server 704, for storing the serializing file;
After the completion of writing twice, into enqueue to be written or enqueue can not also be entered according to configuration write direct serializing Document storage server is stored.
Service processor 705, for carrying out query message assembling based on inquiry and treatment conditions;The parsing inquiry report The business date file, according to the business date, from serializing document storage server will be fetched reading, and will be loaded into by text In internal memory;Remaining querying condition is matched entirely with the condition in all of high frequency inquiry field in this document object, if Match somebody with somebody, then the serializing contents of object in the domain corresponding serializing file domain is taken out;The serializing contents of object is carried out Unserializing generates data result or object;The data result or object are transmitted to Business Processing service based on data check domain Device carries out business data processing.
According to interbank home currency market and the data characteristicses and business characteristic of the Financial Information of foreign exchange market, design a set of Extensible markup language encapsulates specification, and high frequency is stored in class extending mark language with remaining serializing object composition using data Effective extraction of critical data in file, is realized, and reaches the purpose of quick-searching, the data in addition to high-frequency therapeutic treatment is needed are independent Serializing message domain is stored in, and ensures effectiveness, integrity and the concordance of data by data check domain.It is specific to encapsulate Specification is as shown in Figure 8.
Datatron is sent to query message on serializing engine, and query message is parsed by engine, first according to industry On the business date, the date file will be fetched into reading from serializing document storage server, and be loaded in internal memory.If internal memory Middle presence date file object, then skip this step.
Remaining querying condition is matched entirely with the condition in all of high frequency inquiry field in this document object, if life In, then the serializing contents of object in the domain corresponding serializing file domain is taken out, at this moment just really carry out system open disappear compared with Big unserializing operation.
Again to carrying out unserializing object reference method for processing business or being sent in corresponding Service Process Server Row business data processing.Ensure safety, integrity and the concordance of message transmissions data eventually through data check domain.
In sum, in the above-described embodiments, IMIX message datas are processed using serializing engine, will serializing Data afterwards are stored, and are carrying out unserializing process so that the storage of data does not rely on data base when using data, Ensure the flexibility and changeability of the storage safety and system of data;
According to interbank home currency market and the data characteristicses and business characteristic of the Financial Information of foreign exchange market, design a set of Extensible markup language encapsulates specification, and high frequency is stored in extensible markup language with remaining serializing object composition using data Effective extraction of critical data in file, is realized, and reaches the purpose of quick-searching, the data in addition to high-frequency therapeutic treatment is needed are independent Serializing message domain is stored in, and ensures effectiveness, integrity and the concordance of data by data check domain.
If the function described in the present embodiment method is realized using in the form of SFU software functional unit and as independent product pin When selling or using, can be stored in a computing device read/write memory medium.Based on such understanding, the embodiment of the present invention The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, and this is soft Part product is stored in a storage medium, use including some instructions so that computing device (can be personal computer, Server, mobile computing device or network equipment etc.) perform all or part of step of each embodiment methods described of the invention Suddenly.And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), deposit at random Access to memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
In this specification, each embodiment is described by the way of progressive, and what each embodiment was stressed is and other The difference of embodiment, between each embodiment same or similar part mutually referring to.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or using the present invention. Various modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope for causing.

Claims (10)

1. a kind of processing method of IMIX protocol datas, it is characterised in that include:
The IMIX protocol datas generated in receiving process of exchange;
Parsing is carried out to the IMIX protocol datas and generates fetched data object;
Parsing is carried out to the fetched data object and obtains high-frequency therapeutic treatment domain;
High-frequency therapeutic treatment domain write agreement formatted file stream, the file stream to writing the high-frequency therapeutic treatment domain are carried out restarting sequence Rowization;
Appended document stream, formation sequence file are write using the fetched data object after serializing as sequence message domain.
2. method according to claim 1, it is characterised in that described parsing is carried out to the fetched data object to obtain height Frequency processes domain to be included:
The high frequency inquiry content in the fetched data is parsed based on dictionary, extract care field value;
It is concerned about that field value is assembled into the high frequency querying condition extensible markup language for meeting extensible markup language standard by described Head is used as high-frequency therapeutic treatment domain.
3. method according to claim 2, it is characterised in that described parsing is carried out to the IMIX protocol datas to generate into Also include after handing over data object:
The fetched data object is stored based on business demand and system configuration.
4. method according to claim 3, it is characterised in that the fetched data object using after serializing is used as sequence Message domain writes appended document stream, also includes after formation sequence file:
Store the serializing file.
5. method according to claim 4, it is characterised in that also include after the storage serializing file:
Query message assembling is carried out based on inquiry and treatment conditions;
The query message is parsed, according to the business date, will be from serializing document storage server by business date text Part fetches reading, and is loaded in internal memory;
Remaining querying condition is matched entirely with the condition in all of high frequency inquiry field in this document object, if it does, Then the serializing contents of object in the domain corresponding serializing file domain is taken out;
Unserializing is carried out to the serializing contents of object and generates data result or object;
The data result or object are transmitted based on data check domain carries out business data processing to Service Process Server.
6. a kind of processing system of IMIX protocol datas, it is characterised in that include:
Message is received and resolution server, for receiving the IMIX protocol datas generated in process of exchange, and to the IMIX Protocol data carries out parsing and generates fetched data object;
Serializing engine, obtains high-frequency therapeutic treatment domain for carrying out parsing to the fetched data object, by the high-frequency therapeutic treatment domain Write agreement formatted file stream, the file stream to writing the high-frequency therapeutic treatment domain carry out restarting serializing, by serializing after into Data object is handed over to write appended document stream, formation sequence file as sequence message domain.
7. system according to claim 6, it is characterised in that the serializing engine specifically for:
The high frequency inquiry content in the fetched data is parsed based on dictionary, extract care field value;
It is concerned about that field value is assembled into the high frequency querying condition extensible markup language for meeting extensible markup language standard by described Head is used as high-frequency therapeutic treatment domain.
8. system according to claim 7, it is characterised in that also include:
Data base, for storing the fetched data object based on business demand and system configuration.
9. system according to claim 8, it is characterised in that also include:
Serializing document storage server, for storing the serializing file.
10. system according to claim 9, it is characterised in that also including service processor, be used for:
Query message assembling is carried out based on inquiry and treatment conditions;
The query message is parsed, according to the business date, will be from serializing document storage server by business date text Part fetches reading, and is loaded in internal memory;
Remaining querying condition is matched entirely with the condition in all of high frequency inquiry field in this document object, if it does, Then the serializing contents of object in the domain corresponding serializing file domain is taken out;
Unserializing is carried out to the serializing contents of object and generates data result or object;
The data result or object are transmitted based on data check domain carries out business data processing to Service Process Server.
CN201611027572.4A 2016-11-21 2016-11-21 IMIX protocol data processing method and system Active CN106557974B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611027572.4A CN106557974B (en) 2016-11-21 2016-11-21 IMIX protocol data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611027572.4A CN106557974B (en) 2016-11-21 2016-11-21 IMIX protocol data processing method and system

Publications (2)

Publication Number Publication Date
CN106557974A true CN106557974A (en) 2017-04-05
CN106557974B CN106557974B (en) 2020-11-20

Family

ID=58444420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611027572.4A Active CN106557974B (en) 2016-11-21 2016-11-21 IMIX protocol data processing method and system

Country Status (1)

Country Link
CN (1) CN106557974B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107370753A (en) * 2017-08-23 2017-11-21 上海斐讯数据通信技术有限公司 A kind of data pack protocol parses field processing method and system
CN110020412A (en) * 2019-04-02 2019-07-16 中汇信息技术(上海)有限公司 A kind of method, apparatus and electronic equipment generating IMIX standard message
CN110753050A (en) * 2019-10-22 2020-02-04 网易(杭州)网络有限公司 Method and device for generating protocol document, computer storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007064876A2 (en) * 2005-12-01 2007-06-07 Firestar Software, Inc. System and method for exchanging information among exchange applications
CN101807207A (en) * 2010-03-22 2010-08-18 北京大用科技有限责任公司 Method for sharing document based on content difference comparison
CN102868712A (en) * 2011-07-06 2013-01-09 阿里巴巴集团控股有限公司 Method and system for data transmission
CN104281970A (en) * 2014-10-13 2015-01-14 中国外汇交易中心 Message processing method, message processing device and server platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007064876A2 (en) * 2005-12-01 2007-06-07 Firestar Software, Inc. System and method for exchanging information among exchange applications
CN101807207A (en) * 2010-03-22 2010-08-18 北京大用科技有限责任公司 Method for sharing document based on content difference comparison
CN102868712A (en) * 2011-07-06 2013-01-09 阿里巴巴集团控股有限公司 Method and system for data transmission
CN104281970A (en) * 2014-10-13 2015-01-14 中国外汇交易中心 Message processing method, message processing device and server platform

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107370753A (en) * 2017-08-23 2017-11-21 上海斐讯数据通信技术有限公司 A kind of data pack protocol parses field processing method and system
CN110020412A (en) * 2019-04-02 2019-07-16 中汇信息技术(上海)有限公司 A kind of method, apparatus and electronic equipment generating IMIX standard message
CN110020412B (en) * 2019-04-02 2023-04-28 中汇信息技术(上海)有限公司 Method and device for generating IMIX standard message and electronic equipment
CN110753050A (en) * 2019-10-22 2020-02-04 网易(杭州)网络有限公司 Method and device for generating protocol document, computer storage medium and electronic equipment

Also Published As

Publication number Publication date
CN106557974B (en) 2020-11-20

Similar Documents

Publication Publication Date Title
JP6532930B1 (en) Distributed ledger for block chain based user identification management, distributed ledger method
JP2019153260A (en) Distributed ledger device and distributed ledger method for shared economic
CN106648467A (en) Log generation method and system
Dalke The chemfp project
JP2019115026A (en) Decentralized ledger device, decentralized ledger method, transaction information broadcast device, and method for sharing user information
CN110287247A (en) Date storage method, device, equipment and storage medium based on Unionpay's system
CN106557974A (en) A kind of processing method and system of IMIX protocol datas
CN110795697B (en) Method and device for acquiring logic expression, storage medium and electronic device
CN105550206B (en) The edition control method and device of structured query sentence
CN104820604B (en) A kind of browser applied to POS terminal
US20060193342A1 (en) System and method for testing a protocol using targeted variant input
CN116860856A (en) Financial data processing method and device, computer equipment and storage medium
CN102902732A (en) Check adding method into extensive makeup language (XML) configuration file
Wang et al. Detecting Ethereum Ponzi Schemes Through Opcode Context Analysis and Oversampling-Based AdaBoost Algorithm.
CN104408062B (en) Security file processing method and device
CN104281584A (en) XML database performance testing system and method
CN107122417B (en) Database auditing method and device
KR20080100344A (en) Scalable algorithm for sharing edi schemas
US20210374125A1 (en) Method and system for improved consensus using bootstrap resampling
CN101425167A (en) Method for generating and parsing trading information
Mo et al. Toward automated detecting unanticipated price feed in smart contract
CN105700992A (en) Embedded system log recording method and log recording system
Li Construction of Accounting Technology Block Analysis System Under the Background of Big Data Cloud Computing
CN108269130A (en) The management method and device of agent service
Rush Faster, Richer, Fully Customizable Data from Programmable Blockchains

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221116

Address after: 100005 No. 69, inner main street, Dongcheng District, Beijing, Jianguomen

Patentee after: AGRICULTURAL BANK OF CHINA

Patentee after: Agricultural Bank of China Financial Technology Co.,Ltd.

Address before: 100005 No. 69, inner main street, Dongcheng District, Beijing, Jianguomen

Patentee before: AGRICULTURAL BANK OF CHINA

TR01 Transfer of patent right