CN102984680B - A kind of method that realizes number tracking in the external interface of telecom operation system - Google Patents

A kind of method that realizes number tracking in the external interface of telecom operation system Download PDF

Info

Publication number
CN102984680B
CN102984680B CN201210552409.5A CN201210552409A CN102984680B CN 102984680 B CN102984680 B CN 102984680B CN 201210552409 A CN201210552409 A CN 201210552409A CN 102984680 B CN102984680 B CN 102984680B
Authority
CN
China
Prior art keywords
service end
tracks
followed
external interface
thread
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.)
Active
Application number
CN201210552409.5A
Other languages
Chinese (zh)
Other versions
CN102984680A (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.)
Ho whale cloud computing Polytron Technologies Inc
Original Assignee
ZTEsoft Technology Co 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 ZTEsoft Technology Co Ltd filed Critical ZTEsoft Technology Co Ltd
Priority to CN201210552409.5A priority Critical patent/CN102984680B/en
Publication of CN102984680A publication Critical patent/CN102984680A/en
Application granted granted Critical
Publication of CN102984680B publication Critical patent/CN102984680B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

In the external interface of telecom operation system, realize the method that number is followed the tracks of, for carrying out number tracking according to the number of request, described method is applied to the system of telecommunication service support and charging. In the method, first in external interface service end process, start a number monitor service end, in the configuration file of number monitor service end, carry out corresponding file configuration, add number by shell-command in number empty queue at number monitor service end. At number monitor client input request number, check whether this number mates with the number in number queue, if so, this thread is set for can track thread, and can prints this daily record; If not, this thread is can not track thread, there is no the daily record that can print. The advantage of this method is mainly simple, convenient, and very little on the impact of system, does not have system risk.

Description

A kind of method that realizes number tracking in the external interface of telecom operation system
Technical field
The present invention relates to the communications field, specifically, relate to a kind of number track side who comprises a large amount of Real time request systemsMethod, the method realizes the tracking to certain particular number by log, is a kind of side that verifies business and uniting and adjustment testMethod.
Background technology
At present, the enterprise transformation of China Telecom has driven the fast development of enterprise, and the value-added service of China Telecom is also continuousIncrease. Present stage, the number tracking in telecom operation system is the mode of log4j, and this mode is in use openedThe personnel of sending out find that there is larger leak.
Conventionally when developer uses the mode of log4j to test oneself in this locality, because the just request of a business, for canTo find out and the information of system interaction, can in program, print a lot of log informations, but after reaching the standard grade, complete in order to printDaily record, can only be in few time period of portfolio, such as 3:00 AM all 4 during this period of time, daily record rank is adjusted from ERROR rankWhole is INFO rank. When portfolio is large, the burden of system is original just heavier, if daily record rank is turned down, a large amount ofWrite journal file operation and can make the burden of system heavier, have the overtime risk of system request, the printing of daily record can becomeThe one burden of system, thus can be by higher the setting of daily record rank, and the log information that a lot of developers print can be in daily recordIn file, print.
In the time there is some problem in system, for the performance issue of quick positioning system is (as the feelings that take of CPU and internal memoryCondition etc.) and the logical problem of demand, can need the daily record of some printings as a reference, now this traditional log recordingThe mode of log4j can cause system performance problems, so can not allow daily record rank to be set to info or this class of debugLow rank, and if be higher level by daily record grade setting, so a lot of log informations cannot be collected.
Summary of the invention
The object of the invention is in the system of this large visit capacity of telecom operation, by following the tracks of some number transacting businessWhole flow process, carry out orientation problem easily or carry out the uniting and adjustment of system and a kind of convenience of providing is high, system risk is low,Number tracking simple to operate.
Technical scheme of the present invention is:
In the external interface of telecom operation system, realize the method that number is followed the tracks of, for entering according to the number of requestLine number code tracking, described method is applied to the system of telecommunication service support and charging, the specific implementation step of this number trackingSuddenly comprise:
External interface service end in A, startup telecom operation system;
B, start number monitor service end, number monitor service end be used for monitoring the process of external interface service end and forReceiving number is followed the tracks of the number of client and is followed the tracks of request;
C, carry out file configuration at number monitor service end, comprising: set up one for adding number to be trackedNumber empty queue, check whether the port of number monitor service end is occupied, set number and follow the tracks of automatically and close by query statementThe time of closing;
D, in the order line of number monitor service end, add to be tracked number in number empty queue by shell-commandCode;
E, startup number are followed the tracks of client, and the number that input request is followed the tracks of, checks the number in this number and number queueWhether mate, if so, this thread is can track thread, and can print this daily record; If not, this thread is can not tracker wireJourney, does not have the daily record that can print.
Described external interface comprises: Web service interface, UIP interface etc.
When described number monitor service end sends shell-command, first can set up a short connection to external interface,And sending dependent instruction, number monitor service end is received after instruction, and this number is added in number empty queue.
Whether described inspection port is occupied, is to check and be examined port with netstat – an|grep statementWhether occupied.
Described setting number is followed the tracks of the time of automatically closing, by revise traceTimeOut in configuration fileValue is determined.
Described can track thread, before printing, need be ERROR rank by daily record rank adjusting at print log place.
Described number is followed the tracks of the time of closing, and it is characterized in that, can also directly close by shell-command.
Beneficial effect of the present invention:
The present invention can be in the situation that not adjusting system journal rank, as long as the number that needs are followed the tracks of passes through shellOrder joins can be followed the tracks of in number queue, and system can be recorded to journal file by the processing trace logs of this number automatically, thisThe daily record amount that sample is printed can be not a lot, can affect hardly the performance of system, and the advantage of doing is like this mainly simple to operate, sideJust, and very little on the impact of system, do not have system risk.
Brief description of the drawings
Fig. 1 is the signal of a kind of method that realizes number tracking in the external interface of telecom operation system of the present inventionFigure.
Fig. 2 is the detailed place of a kind of method that realizes number tracking in the external interface of telecom operation system of the present inventionReason flow chart.
Detailed description of the invention
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that embodiment described hereinOnly, for description and interpretation the present invention, be not intended to limit the present invention.
In the external interface of telecom operation system, realize the method that number is followed the tracks of, please for basis
The number of asking carries out number tracking, and described method is applied to the system of telecommunication service support and charging, and this number is followedThe specific implementation step of track method comprises:
External interface service end in A, startup telecom operation system;
B, in external interface server processes, starting number monitor service end can be automatically, and number monitor service end is used for prisonListen the process of external interface service end and follow the tracks of the number tracking request of client for receiving number;
C, carry out file configuration at number monitor service end, comprising: automatically set up a number empty queue, check numberWhether the port of code monitor service end occupied, set number follows the tracks of time of automatically closing etc.;
D, in the order line of number monitor service end, add to be tracked number in number empty queue by shell-commandCode;
E, startup number are followed the tracks of client, and the number that input request is followed the tracks of, checks the number in this number and number queueWhether mate, if so, this thread is can track thread, and can print this daily record; If not, this thread is can not tracker wireJourney, does not have the daily record that can print.
The precondition of this method is:
(1) increase configuration file TraceServer.xml, be mainly used for defining host to each service end process numberCode monitoring server. Whether the port that should be noted 32001,32002 these two number monitor service ends before configuration is occupied, asFruit is occupied, just changes the port arrangement in TraceServer.xml. Can use netstat – an|grep32001 check that whether 32001 is occupied.
(2), in TraceServer.xml, can tracking be set by the value of amendment traceTimeOut and automatically closeTime.
(3) under %ZsmartHome% catalogue, increase the shell file of trc.
(4) WebService part, the web.xml in/ocswebservices/WEB-INF increases configuration:
<servlet>
<servlet-name>WsMonitorService</servlet-name>
<servlet-class>com.ztesoft.zsmart.bss.ws.WSNbrTracerServlet</servlet-class>
<load-on-startup>500</load-on-startup>
</servlet>
For WebService, by web.xml, increase a servlet who moves while startup, open at tomcatWhen moving, the configuration of reading 902 these adapter in TraceServer.xml, monitors at 32002 startup numbers
The log of WebService is arranged to ERROR rank
Log4j.properties file under WebService catalogue arranges as follows
log4j.logger.com.ztesoft.zsmart=ERROR,A4
If the daily record rank of the sqllog in log4j.properties file is set up meeting error, number is followed soTrack function also will affect this sqllog.
Impact on sqllog daily record: when sqllog daily record rank is set to after error, if belong to trackedNumber can print detailed daily record in the daily record of sqllog. If the number that right and wrong are tracked, sqllog does not have soDaily record.
log4j.logger.SqlLog=ERROR,SQLLOG
Use the shell-command interpolation of trc or the concrete operations of deletion number as follows:
Trcxxxx: be mainly to trigger client to go for and ask service end, number is added and can follow the tracks of number queue.
Trcxxxxoff: be that number is shifted out from can follow the tracks of number queue, follow-up log recording will can not established againPut daily record rank.

Claims (6)

1. in the external interface of telecom operation system, realize the method that number is followed the tracks of, for carrying out according to the number of requestNumber is followed the tracks of, and described method is applied to the system of telecommunication service support and charging, it is characterized in that this number tracking concretePerforming step comprises:
External interface service end in A, startup telecom operation system;
B, start number monitor service end, number monitor service end is used for monitoring the thread of external interface service end and for receivingNumber is followed the tracks of the number of client and is followed the tracks of request;
C, carry out file configuration at number monitor service end, comprising: set up one for adding the number of number to be trackedEmpty queue, check whether the port of number monitor service end is occupied, set number and follow the tracks of and automatically close by query statementTime;
D, in the order line of number monitor service end, in number empty queue, add number to be tracked by shell-command;
E, start number and follow the tracks of client, the number that input request is followed the tracks of, checks number in this number and number queue whetherCoupling, if so, this thread is can track thread, and can print this daily record; If not, this thread is can not track thread,There is no the daily record that can print;
When described number monitor service end sends shell-command, short external interface service end that is connected to of model, soRear transmission number adds instruction, and number monitor service end is received after instruction, and this number is added in number empty queue.
2. method according to claim 1, is characterized in that: described external interface comprises: Web service interface or UIP connectMouthful.
3. method according to claim 1, is characterized in that: whether described inspection port is occupied, is to use netstat– an|grep statement checks that whether be examined port occupied.
4. method according to claim 1, is characterized in that: described setting number is followed the tracks of the time of automatically closing, and is logicalCross and in configuration file, revise that the value of traceTimeOut determines.
5. method according to claim 1, is characterized in that: described can track thread before printing, need print dayWill place is ERROR rank by daily record rank adjusting.
6. method according to claim 4, is characterized in that: described number is followed the tracks of to close and can also be passed through shell-commandDirectly close.
CN201210552409.5A 2012-12-19 2012-12-19 A kind of method that realizes number tracking in the external interface of telecom operation system Active CN102984680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210552409.5A CN102984680B (en) 2012-12-19 2012-12-19 A kind of method that realizes number tracking in the external interface of telecom operation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210552409.5A CN102984680B (en) 2012-12-19 2012-12-19 A kind of method that realizes number tracking in the external interface of telecom operation system

Publications (2)

Publication Number Publication Date
CN102984680A CN102984680A (en) 2013-03-20
CN102984680B true CN102984680B (en) 2016-05-25

Family

ID=47858331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210552409.5A Active CN102984680B (en) 2012-12-19 2012-12-19 A kind of method that realizes number tracking in the external interface of telecom operation system

Country Status (1)

Country Link
CN (1) CN102984680B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681891A (en) * 2015-11-05 2017-05-17 阿里巴巴集团控股有限公司 Method and device for adjusting log levels in Java application system
CN105426453A (en) * 2015-11-10 2016-03-23 国云科技股份有限公司 Method for controlling log output grade through configuration item

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917699A (en) * 2010-07-20 2010-12-15 中兴通讯股份有限公司 Random reported signaling tracking method and device based on users

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2489438A1 (en) * 2002-07-12 2004-01-22 John Chung Lee Method to organize and track information according to chronological and priority order

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917699A (en) * 2010-07-20 2010-12-15 中兴通讯股份有限公司 Random reported signaling tracking method and device based on users

Also Published As

Publication number Publication date
CN102984680A (en) 2013-03-20

Similar Documents

Publication Publication Date Title
CA2764824C (en) Electronic paper display device event tracking
CN107370806B (en) HTTP status code monitoring method, device, storage medium and electronic equipment
KR20210005043A (en) Input and output schema mapping
Fisher et al. Spring integration in action
CN108804279A (en) Change the method and application apparatus of daily record printing grade
CN102984680B (en) A kind of method that realizes number tracking in the external interface of telecom operation system
US8370532B1 (en) Techniques for portable device data archiving
US20130159468A1 (en) Computer implemented method, computer system, electronic interface, mobile computing device and computer readable medium
US9170905B2 (en) Base protocol layer testing device
CN103856504A (en) System and method for object file access in image file by analyzing access path
CN113360413A (en) Code testing method and device
CN117278653A (en) Data record transmission system and method for distributed site satellite
CN110866031B (en) Database access path optimization method and device, computing equipment and medium
CN110162982B (en) Method and device for detecting illegal rights, storage medium and electronic equipment
CN117271584A (en) Data processing method and device, computer readable storage medium and electronic equipment
US20140047447A1 (en) Work scheduling method and system implemented via cloud platform
CN106407126A (en) Coverage rate data processing method, coverage rate data detection device and server
CN113806195B (en) Data processing method, device, equipment, system and storage medium
US9141460B2 (en) Identify failed components during data collection
US8914899B2 (en) Directing users to preferred software services
CN116132625A (en) Supervision method and device for transaction flow
CN103164236A (en) Method and system of online update of remote server
CN112084114A (en) Method and apparatus for testing an interface
US20200065162A1 (en) Transparent, event-driven provenance collection and aggregation
CN110908886A (en) Data sending method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Affirmative road in Jiangning District of Nanjing City, Jiangsu Province, No. 888 211153

Patentee after: ZTEsoft Technology Co., Ltd.

Address before: Affirmative road in Jiangning District of Nanjing City, Jiangsu Province, No. 888 211153

Patentee before: Nanjing ZTEsoft Technology Co., Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 210012 room 627, Ning Shuang Road, Yuhuatai District, Nanjing, Jiangsu, 627

Patentee after: Ho whale cloud computing Polytron Technologies Inc

Address before: 211153 No. 888 central square road, Jiangning District, Nanjing, Jiangsu.

Patentee before: ZTEsoft Technology Co., Ltd.