CN110333979A - The acquisition method and device of monitoring data based on CICS - Google Patents

The acquisition method and device of monitoring data based on CICS Download PDF

Info

Publication number
CN110333979A
CN110333979A CN201910304709.3A CN201910304709A CN110333979A CN 110333979 A CN110333979 A CN 110333979A CN 201910304709 A CN201910304709 A CN 201910304709A CN 110333979 A CN110333979 A CN 110333979A
Authority
CN
China
Prior art keywords
cics
class
monitoring data
monitoring
acquisition
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
CN201910304709.3A
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.)
PEOPLE'S BANK OF CHINA NATIONAL CLEARING CENTER
Original Assignee
PEOPLE'S BANK OF CHINA NATIONAL CLEARING CENTER
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 PEOPLE'S BANK OF CHINA NATIONAL CLEARING CENTER filed Critical PEOPLE'S BANK OF CHINA NATIONAL CLEARING CENTER
Priority to CN201910304709.3A priority Critical patent/CN110333979A/en
Publication of CN110333979A publication Critical patent/CN110333979A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3452Performance evaluation by statistical analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computer Hardware Design (AREA)
  • Probability & Statistics with Applications (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides the acquisition methods and device of a kind of monitoring data based on CICS, this method comprises: obtaining the type of the monitoring data of CICS to be collected, the type is obtained by CICS according to monitoring trading list, monitor state information and monitoring process information configuration;The target that class is monitored in the monitoring data is created according to the type;Acquire the corresponding monitoring data of the target.A kind of method that the present invention is capable of providing effective, reliable acquisition CICS monitoring data.

Description

The acquisition method and device of monitoring data based on CICS
Technical field
The present invention relates in terms of the technical field of trading server, especially Customer Information Control System, and in particular to one The acquisition method and device of monitoring data of the kind based on CICS.
Background technique
Customer Information Control System (Customer Information Control System CICS), which is a series of, is Using the application software of Transaction Processing and transaction management is provided, function is that an issued transaction ring is provided for business application Border helps client to establish the Transaction Processing application of three layer structure, referring to Fig. 1.CICS can be efficiently differentiated using system Statement logical layer, Business Logic and data logical layer in system, banking system require both to be able to achieve highly simultaneous access On-line transaction, and a large amount of batch processing can be completed: existing stabilization, High Availabitity, continual transactional services, and need flexible and changeable High scalability, so introducing CICS middleware in on-line transaction design, CICS performance of middle piece is related to entire banking The operational efficiency and safety for processing system of being engaged in, so the working condition to CICS middleware is needed to be monitored, the prior art It is middle to lack for CICS middleware monitoring method.
Summary of the invention
For the problems of the prior art, the present invention is capable of providing a kind of effective, reliable acquisition CICS monitoring data Method.
In order to solve the above technical problems, the present invention the following technical schemes are provided:
In a first aspect, the present invention provides a kind of acquisition method of monitoring data based on CICS, comprising:
The type of the monitoring data of CICS to be collected is obtained, type is by CICS according to monitoring trading list, monitor state Information and monitoring process information configuration obtain;
The target that class is monitored in monitoring data is created according to type;
The corresponding monitoring data of collecting work object.
Preferably, the type of the monitoring data of CICS include: CICS REGION operating status, CICS reside Transaction Information, CICS stores information, CICS mission bit stream, CICS type of transaction information, CICS Transaction Information, CICS TDQ information and CICS TSQ information.
Preferably, the target that class is monitored in monitoring data is created according to type, comprising:
Utilize the target of factory method design pattern and the corresponding monitoring class of one-piece design mode creation type.
Preferably, the target that class is monitored in monitoring data is created according to type, comprising:
The corresponding monitoring class of type is registered in CICS factory class according to the registration class in CICS factory class;
The registration cooperation class of class is monitored according to registration class macro generation.
Preferably, the corresponding monitoring data of collecting work object, comprising:
CICS, which is generated, according to preset time interval counts pond reset time;
The time is executed according to target, acquisition deadline, acquisition and collection period acquires monitoring data.
Second aspect, the acquisition device that the present invention provides a kind of monitoring data based on CICS include:
Type acquiring unit, the type of the monitoring data for obtaining CICS to be collected, type is by CICS according to monitoring Transaction List Table, monitor state information and monitoring process information configuration obtain;
Target creating unit, for creating the target for monitoring class in monitoring data according to type;
Monitoring data collection unit is used for the corresponding monitoring data of collecting work object.
Preferably, target creating unit is specifically used for: being created using factory method design pattern and one-piece design mode The target of the corresponding monitoring class of type is built, target creating unit includes:
Class registration module is monitored, for the corresponding monitoring class of type to be registered to CICS according to the registration class in CICS factory class In factory class;
Registration cooperation class generation module, for monitoring the registration cooperation class of class according to registration class macro generation.
Preferably, monitoring data collection unit includes:
Generation module is reset, counts pond reset time for generating CICS according to preset time interval;
Monitoring data collection unit, for executing time and collection period according to target, acquisition deadline, acquisition Acquire monitoring data.
The third aspect, the present invention provides a kind of electronic equipment, including memory, processor and storage are on a memory and can The computer program run on a processor when processor executes program, realizes the acquisition method of the monitoring data based on CICS The step of.
Fourth aspect, the present invention provide a kind of computer readable storage medium, are stored thereon with computer program, the calculating The step of acquisition of the monitoring data based on CICS is realized when machine program is executed by processor.
As can be seen from the above description, the application provides the acquisition method and device of a kind of monitoring data based on CICS, pass through CICS monitoring information acquisition is carried out using the api interface in CICS, and the prison after the statistics in certain time interval is read in timing Control data.Specifically, the application is write the monitoring of CICS monitoring classification as a monitoring statisticss class, defines in class relevant Monitoring data obtains function and statistical information output function, and collected monitoring data is output in journal file, for Acquisition.This method mainly includes three parts, is that customized acquisition configuration, creation target and statistics pond reset and determine respectively When collection mechanism, referring to fig. 2.To sum up, the present invention can configure the finger for carrying out CICS monitoring data classification statistical items according to monitoring Information collection is marked, and is generated according to index specification and is met the indication information of demand and be output in log or shared drive queue. By custom-configuring optimization API Calls, reduce resource consumption, data acquisition is more efficient.
Detailed description of the invention
Fig. 1 is Customer Information Control System architecture diagram;
Fig. 2 is the acquisition method structure chart of the monitoring data of the invention based on CICS;
Fig. 3 is the flow diagram of the acquisition method of the monitoring data based on CICS in the embodiment of the present invention;
Fig. 4 is that CMON statistical value reads schematic diagram in specific application example of the present invention;
Fig. 5 is the process of the acquisition method specific application example of the monitoring data based on CICS in the embodiment of the present invention Schematic diagram;
Fig. 6 is the structural schematic diagram of the acquisition device of the monitoring data based on CICS in the embodiment of the present invention;
The structural schematic diagram of electronic equipment in Fig. 7 embodiment of the present invention.
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, the 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.
The embodiment of the present invention provides a kind of specific embodiment of the acquisition method of monitoring data based on CICS, referring to The acquisition method of Fig. 3, the monitoring data based on CICS specifically include following content:
Step 100: obtaining the type of the monitoring data of CICS to be collected.
The type of monitoring data in step 100 by CICS according to monitoring trading list, monitor state information and monitor into Journey information configuration obtains, and claims the service of CICS monitoring data collection in the present invention with CMON generation.
Step 200: the target that class is monitored in monitoring data is created according to type.
The type of monitoring data in step 200 includes: that type includes: CICS REGION operating status, the resident friendship of CICS Easy information, CICS storage information, CICS mission bit stream, CICS type of transaction information, CICS Transaction Information, CICS TDQ information and CICS TSQ information.
Step 300: the corresponding monitoring data of collecting work object.
According to the certain collection mechanism in resetting statistics pond and design come the corresponding monitoring data of collecting work object.CICS prison Control data statistics needs to reset CICS statistics pond, and statistics time interval is arranged.
As can be seen from the above description, the application provides a kind of acquisition method of monitoring data based on CICS, pass through utilization Api interface in CICS carries out CICS monitoring information acquisition, and the monitoring number after the statistics in certain time interval is read in timing According to.Specifically, the application is write the monitoring of CICS monitoring classification as a monitoring statisticss class, and relevant monitoring is defined in class Data acquisition function and statistical information output function, and collected monitoring data is output in journal file, for acquisition. This method mainly includes three parts, is that customized acquisition configuration, creation target and the resetting of statistics pond and timing are adopted respectively Collection mechanism, referring to fig. 2.To sum up, the present invention can configure the index letter for carrying out CICS monitoring data classification statistical items according to monitoring Breath acquisition, and generated according to index specification and meet the indication information of demand and be output in log or shared drive queue.Pass through Optimization API Calls are custom-configured, resource consumption is reduced, data acquisition is more efficient.
In one embodiment, step 200, which can be accomplished in that, utilizes factory method design pattern and one-piece design Mode creates the target of the corresponding monitoring class of type of monitoring data.
To the monitoring classification of each configuration, the specific creation process of unique object are as follows: splicing class name is as parameter tune The unique object of the monitoring classification is created with the monitoring class creation method of CICS factory class;It is entitled with the object handle and monitoring class Parameter calls the register method of CICS factory class will be in the unique instance of the object registration to CICS factory class.By CICS adapter The unique instance of factory class manages the object, and the unique instance of factory class unifies the acquisition method that self-timing calls the monitoring class With output method, acquires the data of ASSOCIATE STATISTICS item and be output to journal file.
In another embodiment, step 200 includes:
The corresponding monitoring class of type is registered in CICS factory class according to the registration class in CICS factory class;
The registration cooperation class of class is monitored according to registration class macro generation.
In the specific implementation, CMON is responsible for monitoring the creation of the object of class using the unique object of a CICS factory class. The factory class has friendly metaclass --- the registration class of an object for registering each monitoring class to the unique object of their own, should Registration class only has a public method, and this method is called by the registration cooperation class of each monitoring class themselves is registered to The unique object of CICS factory class.
In one embodiment, step 300 includes:
CICS, which is generated, according to preset time interval counts pond reset time;
The time is executed according to target, acquisition deadline, acquisition and collection period acquires monitoring data.
When acquiring monitoring data, the specific setting method of acquisition time is as follows: dormancy time after the completion of acquisition tasks execute Are as follows: T1- (t2-t0) %T1, wherein t2 is the time after the completion of task execution, and t0 is that execution information collects task time again, Then t2-t0 is the execution time of data acquisition session, and T1 is that acquisition tasks execute the period.
In the case where handling time length, i.e. when processing time t2-t0 is greater than acquisition tasks execution cycle T 1, then skip this The acquisition process of time hop counts evidence executes next round information and collects task, to ensure to execute the correctness in period.As shown in Figure 4. It is understood that resetting CICS statistics pond if date switching (in special circumstances).
To further explain this programme, the present invention also provides a kind of tools of the acquisition method of monitoring data based on CICS Body application example, referring to Fig. 5, which specifically includes following content:
S0: the type of the monitoring data of CICS to be collected is configured.
It is understood that the type of monitoring data is by CICS according to monitoring trading list, monitor state information and monitoring Progress information configuration (definition) obtains.Need to define the required configuration information of monitoring and optional configuration information in monitoring configuration. Must the content of configuration information mainly include CICS adapter essential information, timing cycle etc., the content master of optional configuration information It to be the monitoring classification and specific statistical items of CICS.Wherein:
Essential information configuration includes that (system node code, needs to monitor operation system title monitored object information CICS REGION title) and log configuration information (statistics record file, log rank) etc..
Timing cycle configuration include CICS internal statistical information reading interval time, while be also carry out statistical information and The output gap time of availability monitoring.
S1: the type of the monitoring data of CICS to be collected is obtained.
Type in step S1 include: CICS REGION operating status, CICS reside Transaction Information, CICS storage information, CICS mission bit stream, CICS type of transaction information, CICS Transaction Information, CICS TDQ information and CICS TSQ information.
Customized monitoring classification configuration includes the transaction List Table for needing to monitor, the every availability information for needing to monitor (packet Include resident transaction of CICS REGION operating status, CICS etc.), CICS process executive condition information, CICS store information, CICS The classifications such as mission bit stream, CICS type of transaction information, CICS Transaction Information, CICS TDQ information, CICS TSQ information.These prisons The statistical data of control classification is acquired by the api interface of CICS, to each statistical items of each classification in configuration file It is configured by the format with " statistical items ID: statistical items type ", wherein statistical items ID indicates that corresponding statistical items are united in CICS The identification information in pond is counted, statistical items type represents the statistical items and belongs to cumulative amount or instantaneous flow, specifically, 0 indicates instantaneous Amount, 1 indicates cumulative amount.The reading of cumulative amount indicates the value of the statistical items in a collection period increases how many.Instantaneous flow Reading indicates the value of statistic that time of acquisition.Specific example is such as:
#Program statistics
[PROGRAM]
#Number of times program run
CICSSTAT_PROG_NUM_TIMES_USED=060001:1
Wherein, CICSSTAT_PROG_NUM_TIMES_USED is a statistics in optional PROGRAM monitoring classification ?.The data item of the api interface acquisition of CICS can wrap containing multiple in each monitoring classification, need to only list the system for needing to acquire Item is counted, 060001 is mark ID of the statistical items in CICS statistics pond, and 1 indicates that the statistical items are cumulative amount.
CMON acquires data according to configuration information, obtains information according to statistical items ID and carries out correlometer according to data type It calculates.Calling can be not configured when API according to the data of the configuration monitoring classification that selectively acquisition is specified and specified statistical items Monitoring classification and statistical items without acquisition, with optimize api interface calling efficiency, refine collection result.
S2: according to splicing class name, work corresponding to class is monitored using the creation method creation for monitoring class in CICS factory class Make object.
After data acquisition information configuration is completed, items configuration information defined in CMON loading configuration file first, so Its respective target is created according to monitoring classification afterwards.CMON uses factory method design pattern and one-piece design schema management The creation of the object of class is monitored, so that encapsulated object creates process, it is not necessary to modify objects when needs being made to increase new monitoring class newly Create program.
S3: it according to target handle and monitoring class name, is registered to using the register method of CICS factory class by class is monitored In the unique object of CICS factory class.
From abstract monitoring base class, its statistical data collection method and output method is each monitoring Similar integral in CMON Pure virtual function, each monitoring class is according to rewriteeing the two methods the characteristics of itself.
S4: the registration cooperation class of class is monitored according to registration class macro generation.
CMON writes each corresponding registration association for monitoring class by the way that the registration class for defining a monitoring class is macro to save one by one Make the trouble of class, monitoring class name need to only be used to call macro i.e. producible pair of the registration as parameter behind each monitoring class defines It should be in the registration of monitoring class cooperation class.
S5: CICS statistics pond reset time is set to 24 hours.
Current method, which is that (such as 1 minute) resetting is primary at regular intervals, counts pond, and the section is directly acquired after resetting Cumulative data after the statistics of time.But there are following problems with the method:
(1) CICS counts pond reset problem
CICS monitoring data statistical interval is not calculated from reset time dot sequency, but since daily middle 24:00 point Inverted order calculates.For example: assuming that statistics pond reset time is t ', statistical time is t1, measurement period T, then t ' < t1 for the first time ≤ T, i.e. statistical time for the first time behind resetting statistics pond are less than or equal to a measurement period, and it is 10 minutes that measurement period, which is added, 23:13 resetting statistics pond then generates statistical information in 23:20 for the first time, rather than generates in 23:23.
(2) information collects fixed time interval problem
By the way of poll, i.e. rear execution information collects task to sleep for a period of time, with increasing for number of tasks, appoints The business processing time will increase, and will cause the growth in task execution period, cause the time interval of statistics no longer accurate.
It does not solve with problem (1)-(2), this specific application example uses following methods:
Daily morning 00:00 is reset, and has not only prevented from continually resetting CICS statistics pond waste system resource, but also avoid uniting Variable is excessive to eventually lead to spilling.It is had differences on the time collected in view of CICS Information Statistics with monitoring information, therefore, The specific time of statistical information generation is designated, when collecting statistical information to accurately reflect the real time execution situation of CICS.
S6: the time is executed according to target, acquisition deadline, acquisition and collection period acquires monitoring data.
The collection that classification statistical information is respectively monitored for CICS statistics pond, opens up one group of caching for storing last collection The value of each statistic arrived.After this obtains the new value of each statistic from CICS statistics pond, with the last time in caching Value does difference calculating, and operation result is logged by file by corresponding monitor control index, the system for then again getting this It is used in evaluation write-in caching for next statistical collection.If statistics pond is reset, by all zero setting of the value of all statistical items, and It is used being collected in this statistical value write-in caching for next statistical information.
S7: output monitoring data.
There are two types of the way of outputs for the monitoring data of acquisition: one is according in monitoring data specification write-in journal file;Separately One is monitoring data is written in shared drive queue.
As can be seen from the above description, the present invention provides a kind of acquisition method of monitoring data based on CICS, pass through utilization Api interface in CICS carries out CICS monitoring information acquisition, and the monitoring number after the statistics in nearest time interval is read in timing According to.It is write the monitoring of CICS monitoring classification as a monitoring statisticss class, relevant statistical information is defined in class and obtains function With statistical information output function, collected monitoring data is output in journal file, for acquisition.It mainly include three portions Point, it is customized acquisition configuration respectively, creates target and the resetting of statistics pond and timing acquiring mechanism, referring to fig. 2.To sum up, The present invention can configure the indication information acquisition for carrying out CICS monitoring data classification statistical items according to monitoring, and according to index specification It generates the indication information for meeting demand and is output in log or shared drive queue.By custom-configuring optimization API Calls, Reduce resource consumption, data acquisition is more efficient.
Based on the same inventive concept, the embodiment of the present application also provides a kind of acquisition of monitoring data based on CICS dresses It sets, can be used to implement method described in above-described embodiment, such as the following examples.Due to the monitoring data based on CICS The principle that acquisition device solves the problems, such as is similar to the acquisition method of the monitoring data based on CICS, therefore the monitoring number based on CICS According to acquisition device implementation may refer to the pre- monitoring data based on CICS acquisition method implementation, it is no longer superfluous to repeat place It states.Used below, the combination of the software and/or hardware of predetermined function may be implemented in term " unit " or " module ".To the greatest extent System described in pipe following embodiment is preferably realized with software, but the combined reality of hardware or software and hardware Now and may and it be contemplated.
The embodiment of the present invention provide a kind of acquisition method that can be realized the monitoring data based on CICS based on CICS Monitoring data acquisition device specific embodiment, referring to Fig. 6, the acquisition device of the monitoring data based on CICS is specifically wrapped Include following content:
Type acquiring unit 10, the type of the monitoring data for obtaining CICS to be collected, type is by CICS according to prison Control transaction List Table, monitor state information and monitoring process information configuration obtain;
Target creating unit 20, for creating the target for monitoring class in monitoring data according to type;
Monitoring data collection unit 30 is used for the corresponding monitoring data of collecting work object.
Preferably, target creating unit is specifically used for: being created using factory method design pattern and one-piece design mode The target of the corresponding monitoring class of type is built, target creating unit includes:
Class registration module is monitored, for the corresponding monitoring class of type to be registered to CICS according to the registration class in CICS factory class In factory class;
Registration cooperation class generation module, for monitoring the registration cooperation class of class according to registration class macro generation.
Preferably, monitoring data collection unit includes:
Generation module is reset, counts pond reset time for generating CICS according to preset time interval;
Monitoring data collection unit, for executing time and collection period according to target, acquisition deadline, acquisition Acquire monitoring data.
As can be seen from the above description, the present invention provides a kind of acquisition device of monitoring data based on CICS, pass through utilization Api interface in CICS carries out CICS monitoring information acquisition, and the monitoring number after the statistics in nearest time interval is read in timing According to.It is write the monitoring of CICS monitoring classification as a monitoring statisticss class, relevant statistical information is defined in class and obtains function With statistical information output function, collected monitoring data is output in journal file, for acquisition.It mainly include three portions Point, it is customized acquisition configuration respectively, creates target and the resetting of statistics pond and timing acquiring mechanism, referring to fig. 2.To sum up, The present invention can configure the indication information acquisition for carrying out CICS monitoring data classification statistical items according to monitoring, and according to index specification It generates the indication information for meeting demand and is output in log or shared drive queue.By custom-configuring optimization API Calls, Reduce resource consumption, data acquisition is more efficient.
Embodiments herein also provides the acquisition side that can be realized the monitoring data based on CICS in above-described embodiment The specific embodiment of a kind of electronic equipment of Overall Steps in method, referring to Fig. 7, electronic equipment specifically includes following content:
Processor (processor) 601, memory (memory) 602, communication interface (Communications Interface) 603 and bus 604;
Wherein, processor 601, memory 602, communication interface 603 complete mutual communication by bus 604;Communication Interface 603 transmits for realizing the information between the relevant devices such as server-side devices and ustomer premises access equipment.
Processor 601 is used to call the computer program in memory 602, and processor is realized when executing computer program The Overall Steps in the acquisition method of the monitoring data based on CICS in embodiment are stated, for example, processor executes computer journey Following step is realized when sequence:
S0: the type of the monitoring data of CICS to be collected is configured.
S1: the type of the monitoring data of CICS to be collected is obtained.
S2: according to splicing class name, work corresponding to class is monitored using the creation method creation for monitoring class in CICS factory class Make object.
S3: it according to target handle and monitoring class name, is registered to using the register method of CICS factory class by class is monitored In the unique object of CICS factory class.
S4: the registration cooperation class of class is monitored according to registration class macro generation.
S5: CICS statistics pond reset time is set to 24 hours.
S6: the time is executed according to target, acquisition deadline, acquisition and collection period acquires monitoring data.
S7: output monitoring data.
As can be seen from the above description, the electronic equipment in the embodiment of the present application, by being carried out using the api interface in CICS CICS monitoring information acquisition, and the monitoring data after the statistics in nearest time interval is read in timing.By CICS monitoring classification Monitoring is write as a monitoring statisticss class, and relevant statistical information is defined in class and obtains function and statistical information output function, Collected monitoring data is output in journal file, for acquisition.Include mainly three parts, is customized acquisition respectively Configuration, creation target and the resetting of statistics pond and timing acquiring mechanism, referring to fig. 2.To sum up, the present invention can match according to monitoring The indication information acquisition for carrying out CICS monitoring data classification statistical items is set, and generates the index letter for meeting demand according to index specification It ceases and is output in log or shared drive queue.By custom-configuring optimization API Calls, reduce resource consumption, data It acquires more efficient.
Embodiments herein also provides the acquisition side that can be realized the monitoring data based on CICS in above-described embodiment A kind of computer readable storage medium of Overall Steps in method is stored with computer journey on the computer readable storage medium Sequence, the computer program realize the acquisition method of the monitoring data based on CICS in above-described embodiment when being executed by processor Overall Steps, for example, the processor realizes following step when executing the computer program:
S0: the type of the monitoring data of CICS to be collected is configured.
S1: the type of the monitoring data of CICS to be collected is obtained.
S2: it according to splicing class name, is monitored corresponding to class using the creation method creation for monitoring class described in CICS factory class Target.
S3: it according to target handle and monitoring class name, is registered to using the register method of CICS factory class by class is monitored In the unique object of CICS factory class.
S4: the registration cooperation class of class is monitored according to registration class macro generation.
S5: CICS statistics pond reset time is set to 24 hours.
S6: the time is executed according to target, acquisition deadline, acquisition and collection period acquires the monitoring data.
S7: output monitoring data.
As can be seen from the above description, computer readable storage medium provided by the invention, by utilizing the api interface in CICS CICS monitoring information acquisition is carried out, and the monitoring data after the statistics in nearest time interval is read in timing.CICS is monitored into class Other monitoring is write as a monitoring statisticss class, and relevant statistical information is defined in class and obtains function and statistical information output letter Number, collected monitoring data is output in journal file, for acquisition.Include mainly three parts, is customized respectively Acquisition configuration, creation target and the resetting of statistics pond and timing acquiring mechanism, referring to fig. 2.To sum up, the present invention can be according to prison Control configuration carries out the indication information acquisition of CICS monitoring data classification statistical items, and the finger for meeting demand is generated according to index specification Mark information is simultaneously output in log or shared drive queue.By custom-configuring optimization API Calls, reduce resource consumption, Data acquisition is more efficient.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for hardware+ For program class embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to side The part of method embodiment illustrates.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
Although this application provides the method operating procedure as described in embodiment or flow chart, based on conventional or noninvasive The labour for the property made may include more or less operating procedure.The step of enumerating in embodiment sequence is only numerous steps One of execution sequence mode, does not represent and unique executes sequence.It, can when device or client production in practice executes To execute or parallel execute (such as at parallel processor or multithreading according to embodiment or method shown in the drawings sequence The environment of reason).
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, vehicle-mounted human-computer interaction device, cellular phone, camera phone, smart phone, individual Digital assistants, media player, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or The combination of any equipment in these equipment of person.
Although this specification embodiment provides the method operating procedure as described in embodiment or flow chart, based on conventional It may include either more or less operating procedure without creative means.The step of being enumerated in embodiment sequence be only One of numerous step execution sequence mode does not represent and unique executes sequence.Device or end product in practice is held When row, can be executed according to embodiment or method shown in the drawings sequence or it is parallel execute (such as parallel processor or The environment of multiple threads, even distributed data processing environment).The terms "include", "comprise" or its any other change Body is intended to non-exclusive inclusion, so that process, method, product or equipment including a series of elements are not only wrapped Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, product Or the element that equipment is intrinsic.In the absence of more restrictions, being not precluded is including process, the side of the element There is also other identical or equivalent elements in method, product or equipment.
For convenience of description, it is divided into various modules when description apparatus above with function to describe respectively.Certainly, implementing this The function of each module can be realized in the same or multiple software and or hardware when specification embodiment, it can also be by reality Show the module of same function by the combination realization etc. of multiple submodule or subelement.Installation practice described above is only Schematically, for example, the division of the unit, only a kind of logical function partition, can there is other draw in actual implementation The mode of dividing, such as multiple units or components can be combined or can be integrated into another system, or some features can be ignored, Or it does not execute.Another point, shown or discussed mutual coupling, direct-coupling or communication connection can be by one The indirect coupling or communication connection of a little interfaces, device or unit can be electrical property, mechanical or other forms.
It is also known in the art that other than realizing controller in a manner of pure computer readable program code, it is complete Entirely can by by method and step carry out programming in logic come so that controller with logic gate, switch, specific integrated circuit, programmable Logic controller realizes identical function with the form for being embedded in microcontroller etc..Therefore this controller is considered one kind Hardware component, and the structure that the device for realizing various functions that its inside includes can also be considered as in hardware component.Or Person even, can will be considered as realizing the device of various functions either the software module of implementation method can be hardware again Structure in component.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It will be understood by those skilled in the art that the embodiment of this specification can provide as the production of method, system or computer program Product.Therefore, in terms of this specification embodiment can be used complete hardware embodiment, complete software embodiment or combine software and hardware Embodiment form.Moreover, it wherein includes computer available programs that this specification embodiment, which can be used in one or more, Implement in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of code The form of computer program product.
This specification embodiment can describe in the general context of computer-executable instructions executed by a computer, Such as program module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, journey Sequence, object, component, data structure etc..This specification embodiment can also be practiced in a distributed computing environment, in these points Cloth calculates in environment, by executing task by the connected remote processing devices of communication network.In distributed computing ring In border, program module can be located in the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", The description of " specific example " or " some examples " etc. means specific features described in conjunction with this embodiment or example, structure, material Or feature is contained at least one embodiment or example of this specification embodiment.In the present specification, to above-mentioned term Schematic representation be necessarily directed to identical embodiment or example.Moreover, description specific features, structure, material or Person's feature may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, in not conflicting feelings Under condition, those skilled in the art by different embodiments or examples described in this specification and different embodiment or can show The feature of example is combined.
Specific embodiment is applied in the present invention, and principle and implementation of the present invention are described, above embodiments Explanation be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, According to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion in this specification Appearance should not be construed as limiting the invention.

Claims (10)

1. a kind of acquisition method of the monitoring data based on CICS, which is characterized in that this method comprises:
The type of the monitoring data of CICS to be collected is obtained, the type is by CICS according to monitoring trading list, monitor state Information and monitoring process information configuration obtain;
The target that class is monitored in the monitoring data is created according to the type;
Acquire the corresponding monitoring data of the target.
2. acquisition method according to claim 1, which is characterized in that the type includes: CICS REGION operation shape State, CICS reside Transaction Information, CICS storage information, CICS mission bit stream, CICS type of transaction information, CICS Transaction Information, CICS TDQ information and CICS TSQ information.
3. acquisition method according to claim 1, which is characterized in that created in the monitoring data and supervised according to the type Control the target of class, comprising:
The target of the corresponding monitoring class of the type is created using factory method design pattern and one-piece design mode.
4. acquisition method according to claim 1, which is characterized in that created in the monitoring data and supervised according to the type Control the target of class, comprising:
The corresponding monitoring class of the type is registered in the CICS factory class according to the registration class in CICS factory class;
The registration cooperation class of class is monitored according to registration class macro generation.
5. acquisition method according to claim 1, which is characterized in that the corresponding monitoring data of the target is acquired, Include:
CICS, which is generated, according to preset time interval counts pond reset time;
The time is executed according to target, acquisition deadline, acquisition and collection period acquires the monitoring data.
6. a kind of acquisition device of the monitoring data based on CICS characterized by comprising
Type acquiring unit, the type of the monitoring data for obtaining CICS to be collected, the type is by CICS according to monitoring Transaction List Table, monitor state information and monitoring process information configuration obtain;
Target creating unit, for creating the target for monitoring class in the monitoring data according to the type;
Monitoring data collection unit, for acquiring the corresponding monitoring data of the target.
7. acquisition device as claimed in claim 6, which is characterized in that the target creating unit is specifically used for: utilizing Factory method design pattern and one-piece design mode create the target of the corresponding monitoring class of the type, the target Creating unit includes:
Class registration module is monitored, it is described for being registered to the corresponding monitoring class of the type according to the registration class in CICS factory class In CICS factory class;
Registration cooperation class generation module, for monitoring the registration cooperation class of class according to registration class macro generation.
8. acquisition device as claimed in claim 6, which is characterized in that the monitoring data collection unit includes:
Generation module is reset, counts pond reset time for generating CICS according to preset time interval;
Monitoring data collection unit, for executing time and collection period acquisition according to target, acquisition deadline, acquisition The monitoring data.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that when the processor executes described program, realize and be based on CICS described in any one of claim 1 to 5 Monitoring data acquisition method the step of.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt The step of acquisition method of the monitoring data based on CICS described in any one of claim 1 to 5 is realized when processor executes.
CN201910304709.3A 2019-04-16 2019-04-16 The acquisition method and device of monitoring data based on CICS Pending CN110333979A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910304709.3A CN110333979A (en) 2019-04-16 2019-04-16 The acquisition method and device of monitoring data based on CICS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910304709.3A CN110333979A (en) 2019-04-16 2019-04-16 The acquisition method and device of monitoring data based on CICS

Publications (1)

Publication Number Publication Date
CN110333979A true CN110333979A (en) 2019-10-15

Family

ID=68139977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910304709.3A Pending CN110333979A (en) 2019-04-16 2019-04-16 The acquisition method and device of monitoring data based on CICS

Country Status (1)

Country Link
CN (1) CN110333979A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050235071A1 (en) * 2004-04-14 2005-10-20 Alex Zarenin Method for collecting monitor information
CN104780220A (en) * 2015-04-28 2015-07-15 大连商品交易所 Intelligent monitoring system and method for large distributed system oriented to security futures industry
CN106095641A (en) * 2016-06-12 2016-11-09 浪潮电子信息产业股份有限公司 A kind of monitoring methods, devices and systems
CN109522189A (en) * 2017-09-19 2019-03-26 北京国双科技有限公司 A kind of data monitoring method, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050235071A1 (en) * 2004-04-14 2005-10-20 Alex Zarenin Method for collecting monitor information
CN104780220A (en) * 2015-04-28 2015-07-15 大连商品交易所 Intelligent monitoring system and method for large distributed system oriented to security futures industry
CN106095641A (en) * 2016-06-12 2016-11-09 浪潮电子信息产业股份有限公司 A kind of monitoring methods, devices and systems
CN109522189A (en) * 2017-09-19 2019-03-26 北京国双科技有限公司 A kind of data monitoring method, apparatus and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨洋,刘全编著: "《软件系统分析与体系结构设计》", 东南大学出版社, pages: 172 - 175 *

Similar Documents

Publication Publication Date Title
CN109144699A (en) Distributed task dispatching method, apparatus and system
US20170180220A1 (en) Techniques to Generate Workload Performance Fingerprints for Cloud Infrastructure Elements
CN110008018B (en) Batch task processing method, device and equipment
CN110163417B (en) Traffic prediction method, device and equipment
EP3454210B1 (en) Prescriptive analytics based activation timetable stack for cloud computing resource scheduling
CN109634561A (en) A kind of online visual programming method and device
CN110069334A (en) A kind of method and system based on the distributed data job scheduling for assuring reason
CN109656782A (en) Visual scheduling monitoring method, device and server
CN111045814A (en) Resource scheduling method and terminal equipment
CN110401700A (en) Model loading method and system, control node and execution node
CN106294439A (en) A kind of data recommendation system and data recommendation method thereof
CN108255607A (en) Task processing method, device, electric terminal and readable storage medium storing program for executing
CN109240848A (en) A kind of data object tag generation method and device
CN109064325A (en) A kind of intelligent contract implementation method and device based on block chain
CN108937867A (en) A kind of dormant monitoring method and device
CN110471754A (en) Method for exhibiting data, device, equipment and storage medium in job scheduling
CN110278257A (en) A kind of method of mobilism configuration distributed type assemblies node label
CN108134812A (en) Data processing method and device
Lim et al. A constraint programming-based resource management technique for processing mapreduce jobs with slas on clouds
CN109840141A (en) Thread control method, device, electronic equipment and storage medium based on cloud monitoring
Wesolowski et al. Datacenter-scale analysis and optimization of gpu machine learning workloads
CN108829790A (en) A kind of data batch processing method, apparatus and system
CN110134701A (en) A kind of buffering benefit account method and device
CN109102200A (en) A kind of timed task processing method and processing device
CN111177562B (en) Recommendation ordering processing method and device for target object and server

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

Application publication date: 20191015