CN101557384A - Flexible application program exception management method - Google Patents
Flexible application program exception management method Download PDFInfo
- Publication number
- CN101557384A CN101557384A CNA2008101035799A CN200810103579A CN101557384A CN 101557384 A CN101557384 A CN 101557384A CN A2008101035799 A CNA2008101035799 A CN A2008101035799A CN 200810103579 A CN200810103579 A CN 200810103579A CN 101557384 A CN101557384 A CN 101557384A
- Authority
- CN
- China
- Prior art keywords
- exception information
- exception
- information
- management system
- abnormal information
- 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
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention relates to a flexible application program exception management method. Firstly, a client terminal transmits a request to a server terminal; the request enters a business processing process to process a business, and exception information probably occurs in the period; then, the server terminal establishes an exception information management system; the exception information generated in the business processing process is reported to the exception information management system; a log recording system subscribes the exception information from the exception information management system and records the exception information in a local file; an exception information tracker which is relevant with a current thread is established to ensure that the processing process of each request is finished in the same thread, and the exception information tracker subscribes the exception information of an exception information tracking system and records the exception information in the tracker; and finally, after the request is processed, the exception information tracker is accessed, and the recorded exception information is used as tracking information to be returned to the client terminal. The invention gradationally records application program exception in a flexible mode and can access the exception information in a plurality of positions.
Description
Technical field
The present invention relates to a kind of application program exception management method flexibly, particularly a kind ofly manage the abnormal information that application program occurs in running, and log easily, or send to the mode of client as trace information.
Background technology
Reasonably manage the abnormal information that application program occurs in running, can make application program be used for accurately locating the position that BUG occurs.The present invention uses a kind of flexible way the unusual of ground records application program of classifying, and can have access to this abnormal information in a plurality of positions.
Summary of the invention
Technical problem to be solved by this invention provides and a kind ofly adopts the abnormal information that occurs of management application program in running, and log easily, or sends to the mode of client as trace information.
A kind of application program exception management method flexibly of the present invention, this method comprises following step at least:
Step 1: the user end to server end sends request.
Step 2: request enters business processing flow, carries out Business Processing, abnormal information might occur therebetween at this.
Step 3: server end is set up an exception information management system.
Step 4: abnormal information in business processing flow, occurs, report and give exception information management system.
Step 5: diary record system is subscribed to abnormal information from exception information management system, and is recorded in the local file.
Step 6: set up an abnormal information tracker relevant with current thread, can guarantee that each processing of request flow process all finishes in same thread, the abnormal information tracker is subscribed to the abnormal information of abnormal information tracking system, and is recorded in this tracker.
Step 7: request disposes, and access exception information trace device returns to client with the abnormal information that has write down as trace information.
A kind of application program exception management method flexibly of the present invention, server end is set up an exception information management system, the steps include:
Step 31: catch when getting abnormal information at every turn, all report to exception information management system.
Step 32: other module need be handled when unusual, all subscribes to from exception information management system.
Step 33: each need handle the module of abnormal information to exception information management system by event notice.
A kind of application program exception management method flexibly that the present invention relates to make with a kind of flexible way classify the ground records application program unusually, and can have access to this abnormal information in a plurality of positions.
Description of drawings
Fig. 1 is a flow chart of the present invention.
Embodiment
Referring to Fig. 1, key step of the present invention is as follows:
Step 1: the user end to server end sends request.
Step 2: request enters business processing flow, carries out Business Processing, abnormal information might occur therebetween at this.
Step 3: server end is set up an exception information management system.
Step 4: abnormal information in business processing flow, occurs, report and give exception information management system.
Step 5: diary record system is subscribed to abnormal information from exception information management system, and is recorded in the local file 5
Step 6: set up an abnormal information tracker relevant with current thread; Can guarantee that each processing of request flow process all finishes in same thread; The abnormal information tracker is subscribed to the abnormal information of abnormal information tracking system, and is recorded in this tracker.
Step 7: request disposes, and access exception information trace device returns to client with the abnormal information that has write down as trace information.
The concrete steps that above-mentioned steps 3 server ends are set up an exception information management system are as follows:
Step 31: catch when getting abnormal information at every turn, all report to exception information management system.
Step 32: other module need be handled when unusual, all subscribes to from exception information management system.
Step 33: each need handle the module of abnormal information to exception information management system by event notice.
Use a kind of flexible way the unusual of ground records application program of classifying when above-mentioned technical scheme is implemented, and can have access to this abnormal information in a plurality of positions.
It should be noted last that above embodiment is only in order to explanation and unrestricted technical scheme described in the invention; Therefore, although this specification has been described in detail the present invention with reference to the above embodiments,, those of ordinary skill in the art should be appreciated that still and can make amendment or replacement to the present invention with being equal to; And all do not break away from the technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in the middle of the claim scope of the present invention.
Claims (2)
1, a kind of application program exception management method flexibly, it is characterized in that: this method comprises following step at least:
Step 1: the user end to server end sends request.
Step 2: request enters business processing flow, carries out Business Processing, abnormal information might occur therebetween at this.
Step 3: server end is set up an exception information management system.
Step 4: abnormal information in business processing flow, occurs, report and give exception information management system.
Step 5: diary record system is subscribed to abnormal information from exception information management system, and is recorded in the local file.
Step 6: set up an abnormal information tracker relevant with current thread; Can guarantee that each processing of request flow process all finishes in same thread; The abnormal information tracker is subscribed to the abnormal information of abnormal information tracking system, and is recorded in this tracker.
Step 7: request disposes, and access exception information trace device returns to client with the abnormal information that has write down as trace information.
2, a kind of application program exception management method flexibly according to claim 1, it is characterized in that: server end is set up an exception information management system, the steps include:
Step 31: catch when getting abnormal information at every turn, all report to exception information management system.
Step 32: other module need be handled when unusual, all subscribes to from exception information management system.
Step 33: each need handle the module of abnormal information to exception information management system by event notice.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101035799A CN101557384A (en) | 2008-04-09 | 2008-04-09 | Flexible application program exception management method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101035799A CN101557384A (en) | 2008-04-09 | 2008-04-09 | Flexible application program exception management method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101557384A true CN101557384A (en) | 2009-10-14 |
Family
ID=41175331
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008101035799A Pending CN101557384A (en) | 2008-04-09 | 2008-04-09 | Flexible application program exception management method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101557384A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103269384A (en) * | 2013-06-14 | 2013-08-28 | 福建伊时代信息科技股份有限公司 | Rich client abnormality processing method, processing device and processing system |
CN113835961A (en) * | 2021-09-23 | 2021-12-24 | 中国联合网络通信集团有限公司 | Alarm information monitoring method, device, server and storage medium |
-
2008
- 2008-04-09 CN CNA2008101035799A patent/CN101557384A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103269384A (en) * | 2013-06-14 | 2013-08-28 | 福建伊时代信息科技股份有限公司 | Rich client abnormality processing method, processing device and processing system |
CN113835961A (en) * | 2021-09-23 | 2021-12-24 | 中国联合网络通信集团有限公司 | Alarm information monitoring method, device, server and storage medium |
CN113835961B (en) * | 2021-09-23 | 2023-05-16 | 中国联合网络通信集团有限公司 | Alarm information monitoring method, device, server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11941017B2 (en) | Event driven extract, transform, load (ETL) processing | |
TWI564732B (en) | A method and apparatus for monitoring user requests to run in a decentralized system | |
US9590880B2 (en) | Dynamic collection analysis and reporting of telemetry data | |
CN103246595B (en) | Application management method, device, server and terminating unit | |
US9389982B2 (en) | Method and apparatus for monitoring an in-memory computer system | |
CN103023984B (en) | Terminal application server and application log filtering method thereof | |
US20070005740A1 (en) | Change event correlation | |
CN106033324B (en) | Data storage method and device | |
CN101464908A (en) | Log recording method and device | |
CN101408889A (en) | Method, apparatus and system for monitoring performance | |
CN104636435A (en) | Cloud terminal screen recording method | |
CN105512283A (en) | Data quality management and control method and device | |
CN110321364B (en) | Transaction data query method, device and terminal of credit card management system | |
CN114356733B (en) | Configuration method of data embedding points, storage medium and equipment | |
JP2009536403A (en) | Work item event processing | |
CN102799609A (en) | Data acquisition method based on data monitoring | |
CN107273449B (en) | Breakpoint processing method and system based on memory database | |
CN101557384A (en) | Flexible application program exception management method | |
US11704026B2 (en) | Data reconstruction method, apparatus, electronic device, and storage medium | |
CN116991675A (en) | Abnormal access monitoring method and device, computer equipment and storage medium | |
CN111949490A (en) | JVM process monitoring method and device | |
CN101499068A (en) | Data base call coverage statistics and analysis method based on log | |
JP5490325B2 (en) | Autonomous intelligent content items | |
CN114817171A (en) | Buried point data quality control method | |
CN103124281B (en) | The tracked information acquisition methods of electronic equipment and device, electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20091014 |