CN110147309A - Information generating method and device - Google Patents
Information generating method and device Download PDFInfo
- Publication number
- CN110147309A CN110147309A CN201810142033.8A CN201810142033A CN110147309A CN 110147309 A CN110147309 A CN 110147309A CN 201810142033 A CN201810142033 A CN 201810142033A CN 110147309 A CN110147309 A CN 110147309A
- Authority
- CN
- China
- Prior art keywords
- service
- calling
- vertex
- title
- called
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3604—Software analysis for verifying properties of programs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
This application discloses information generating methods and device.One specific embodiment of this method includes: to obtain at least one service invocation information, wherein service invocation information includes calling title, the title of the system of offer service of the system of service;The each system being related at least one service invocation information, according to the title of the title for the system for calling service in each service invocation information and the system for providing service, determine the calling system set for calling at least one system of the system as the system, it determines the called system set of at least one system that the system is called as the system, determines the weight for calling the quantity of the system as the system;The call relation table between each system is generated according to the weight of the calling system set of each system, the called system set of each system, each system.The embodiment can be improved speed when combing the call relation between each system.
Description
Technical field
The invention relates to field of computer technology, and in particular to information generating method and device.
Background technique
As the continuous development of enterprise is grown, enterprise information system becomes increasingly complex, and integrated system architecture is difficult full
Sufficient performance requirement and demand easy to maintain, this framework are gradually oriented to the framework substitution of service, and originally a system is vertical
Multiple systems are split into, is cooperated between system by service call and completes whole business.But the granularity being split with system
Increasingly thinner, the relationship between system interweaves in length and breadth, intricate, cross-dependence (calling) often occurs, makes to maintainability
At challenge, the necessity for then servicing improvement is very big.However the combing be unableing to do without to dependence between service is administered in service.
Most common technical solution is artificial combing method, i.e., the clothes of the dependence of be responsible for system are reported by developer
Business, after being summarized by professional's statistics, manual delineation goes out product dependence graph.Slightly more advanced way be aggregated into table or
In database, the dependence of each system is found out by programming, product relational graph is drawn by program.Portion of techniques strength ratio
Stronger enterprise can select to use source code analysis method, find out corresponding call relation by the analysis to source code, then lead to
Program is crossed to draw product dependence graph.
Summary of the invention
The embodiment of the present application proposes information generating method and device.
In a first aspect, the embodiment of the present application provides a kind of information generating method, comprising: obtain at least one service call
Information, wherein service invocation information includes calling title, the title of the system of offer service of the system of service;For at least
Each system that one service invocation information is related to according to the title for the system for calling service in each service invocation information and mentions
For the title of the system of service, the calling system set for calling at least one system of the system as the system is determined, determine
Called system set of at least one system that the system is called as the system determines the quantity conduct for calling the system
The weight of the system;It is generated according to the weight of the calling system set of each system, the called system set of each system, each system
Call relation table between each system, wherein call relation table is used to characterize the system for calling service and provides the system of service
And the corresponding relationship between the weight of each system.
In some embodiments, this method further include: for each system that at least one service invocation information is related to, if
There are identical systems for the calling system set of the system and called system set, then the system is identical with what is determined
System is determined as the system group called mutually, if the weight of the system in the system group called mutually is different, from call relation
The call relation that will call the weight of system of the weight than providing service of the system of service high in table is deleted.
In some embodiments, this method further include: be based on call relation table, generate digraph, wherein in digraph
Side is used to characterize the system for calling service, the system that terminal is used to characterize the service of offer for characterizing call relation, the initial point on side.
In some embodiments, at least one service invocation information is obtained, comprising: at least one journal file is obtained,
In, journal file has recorded service invocation information according to predetermined format;According to predetermined format solution from least one journal file
At least one service invocation information is precipitated.
In some embodiments, service invocation information further include: the title and allocating time of service;And this method is also wrapped
It includes: for service indicated by every service invocation information at least one service invocation information, according to the service invocation information
The title of the middle system for calling service provides the title of system, the title of service and the allocating time of service, determines and calls the clothes
The calling frequency and calling amount peak value of business.
In some embodiments, each vertex is corresponding with level in digraph;This method further include: will not be mentioned in digraph
It is determined as initial vertax at least one corresponding vertex of system of service, and sets predetermined for the level of initial vertax
Value;For each vertex being connected in digraph with initial vertax, if corresponding when terminal of the vertex as directed edge
Starting point only has initial vertax, then the vertex is determined as secondary vertex, and by the level of secondary vertex be set as predetermined value with
The sum of pre- fixed step size;For each vertex in digraph in addition to initial vertax and each secondary vertex, using breadth traversal method, really
The level of corresponding at least one starting point and each starting point when terminal of the fixed vertex as directed edge, and by the layer of each starting point
Maximum value in grade is incremented by the level that pre- fixed step size is set as the vertex.
In some embodiments, this method further include: according to the vertex of the descending Sequential output predetermined quantity of level
The title of corresponding system.
Second aspect, the embodiment of the present application provide a kind of information generation device, comprising: acquiring unit is configured to obtain
Take at least one service invocation information, wherein service invocation information include call service system title, provide service be
The title of system;Determination unit is configured to each system being related at least one service invocation information, according to each item service
The title of the system of service is called in recalls information and the title of the system of service is provided, and determines at least one for calling the system
Calling system set of the system as the system determines at least one system being called as the system that the system is called
System set determines the weight for calling the quantity of the system as the system;Generation unit is configured to the tune according to each system
The call relation table between each system is generated with the weight of system set, the called system set of each system, each system,
In, call relation table is used to characterize corresponding between the system for calling service and the weight for providing the system and each system that service
Relationship.
In some embodiments, which further includes amending unit, is configured to: at least one service invocation information
This is by each system being related to if there are identical systems for the calling system set of the system and called system set
The identical system united and determined is determined as the system group called mutually, if the weight of the system in the system group called mutually
Difference, the then call relation that will call the weight of system of the weight than providing service of the system of service high from call relation table
It deletes.
In some embodiments, generation unit is further configured to: being based on call relation table, is generated digraph, wherein
Side in digraph is used to characterize the system for calling service for characterizing call relation, the initial point on side, and terminal is provided for characterizing
The system of service.
In some embodiments, acquiring unit is further configured to: obtaining at least one journal file, wherein log
File has recorded service invocation information according to predetermined format;It is parsed at least from least one journal file according to predetermined format
One service invocation information.
In some embodiments, service invocation information further include: the title and allocating time of service;And the device also wraps
Statistic unit is included, is configured to: for service indicated by every service invocation information at least one service invocation information, root
According to the title for the system for calling service in the service invocation information, provide the title of system, the title of service and the calling of service
Time determines the calling frequency and calling amount peak value for calling the service.
In some embodiments, each vertex is corresponding with level in digraph;The device further includes level determination unit, is matched
It sets and is used for: at least one corresponding vertex of the system for not providing service in digraph being determined as initial vertax, and will be initial
The level on vertex is set as predetermined value;For each vertex being connected in digraph with initial vertax, if the vertex, which is used as, to be had
To side terminal when corresponding starting point there was only initial vertax, then the vertex is determined as secondary vertex, and by secondary vertex
Level be set as the sum of predetermined value and pre- fixed step size;For each top in digraph in addition to initial vertax and each secondary vertex
Point determines at least one starting point and each starting point corresponding when terminal of the vertex as directed edge using breadth traversal method
Level, and the maximum value in the level of each starting point is incremented by the level that pre- fixed step size is set as the vertex.
In some embodiments, which further includes output unit, is configured to: defeated according to the descending sequence of level
The title of the system of the vertex correspondence of predetermined quantity out.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Storage dress
It sets, for storing one or more programs, when one or more programs are executed by one or more processors, so that one or more
A processor is realized such as method any in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program,
In, it realizes when program is executed by processor such as method any in first aspect.
Information generating method and device provided by the embodiments of the present application, by being determined from least one service invocation information
The calling system set of each system and called system set generate the call relation table between each system, to improve comb
Manage the speed when call relation between each system.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the information generating method of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the information generating method of the application;
Fig. 4 is the flow chart according to another embodiment of the information generating method of the application;
Fig. 5 is the digraph generated according to another embodiment of the information generating method of the application;
Fig. 6 is the structural schematic diagram according to one embodiment of the information generation device of the application;
Fig. 7 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the exemplary system of the embodiment of the information generating method or information generation device of the application
System framework 100.
As shown in Figure 1, system architecture 100 may include service providing end 101, uniform service center 102, log analyzer
103, log concentrator 104, call relation receiver 105, call relation analyzer 106.Service providing end 101 can be hardware
Server is also possible to software systems.Service providing end 101 is called for providing service for other systems.Uniform service center
102, which can be hardware server, is also possible to software systems, and uniform service center 102 is for storing between enterprise information system
Call data.Log analyzer 103 can be hardware server and be also possible to software systems, and log analyzer 103 was used for from day
Log information relevant to system call information is extracted in will file.Log concentrator 104 can be hardware server can also
To be software systems, log concentrator 104 is for collector journal file for the use of log analyzer 103.Call relation receiver
105, which can be hardware server, is also possible to software systems, and call relation receiver 105 is for receiving recalls information.It calls and closes
It is that analyzer 106 can be hardware server and be also possible to software systems, call relation analyzer 106 is used for from recalls information
Analyze call relation.Network is in service providing end 101, uniform service center 102, log analyzer 103, log collection
Device 104, provides the medium of communication link between call relation analyzer 106 at call relation receiver 105.Network may include
Various connection types, such as wired, wireless communication link or fiber optic cables etc..
It is slightly strong for software infrastructure, there is the enterprise of uniform service frame, all information systems of enterprise are all registered to system
In one service centre 102, the provider either serviced or called side.All service calls all pass through in this uniform service
The heart 102.
It is slightly worse for software infrastructure, without the enterprise of uniform service frame.Since ununified service framework,
The just service call record of not centralization.It can be used to collect call relation there are two scheme.First method is each
101 kinds of plant call relation collectors of service providing end (notice that the reasons why selecting service providing end here is that service providing end is connected to
It is effectively to call that request, which just represents), it is sent to call relation receiver 105 in an asynchronous manner, finally by call relation point
Parser 106 obtains call relation.Second method is that service providing end 101 is required to be sent to day according to certain format record log
Will collector 104 after sending the analysis of log analyzer 103 for the log that log concentrator 104 acquires, re-sends to calling and closes
It is receiver 105, obtains call relation finally by call relation analyzer 106.
Call relation analyzer 106 can be to provide the server or software systems of various services, such as call relation connects
Receive the background analysis server that the recalls information that receives of device 105 is analyzed, background analysis server can be to receiving
The data such as recalls information carry out the processing such as analyzing, and processing result (such as call relation table) is stored.
It should be noted that information generating method provided by the embodiment of the present application is generally by call relation analyzer 106
It executes, correspondingly, information generation device is generally positioned in call relation analyzer 106.
It should be understood that the service providing end, uniform service center, log analyzer, log concentrator, calling in Fig. 1 are closed
It is that receiver, the number of call relation analyzer are only schematical.According to needs are realized, it can have any number of clothes
Business provides end, uniform service center, log analyzer, log concentrator, call relation receiver, call relation analyzer.?
In the case where providing service invocation information by third-party server, it is also not necessary to service providing ends, uniform service center, day
Will analyzer, log concentrator, call relation receiver.
With continued reference to Fig. 2, the process 200 of one embodiment of the information generating method according to the application is shown.The letter
Cease generation method, comprising the following steps:
Step 201, at least one service invocation information is obtained.
In the present embodiment, electronic equipment (such as the call relation shown in FIG. 1 point of information generating method operation thereon
Parser) it can be (such as shown in FIG. 1 from the server for receiving call relation by wired connection mode or radio connection
Call relation receiver) receive service invocation information.Wherein, service invocation information includes calling the title of the system serviced, mentioning
For the title of the system of service.System mentioned here can be hardware system and be also possible to software systems.Software systems refer to
The computer software being made of system software, support programs and application software, it is to be made of in computer system software
Part.Software systems may include Database Systems, operating system, file management system etc. for realizing each of computer function
Kind software.Hardware system refer to constitute computer physical equipment, i.e., be made of machinery, light, electricity, magnetic device have calculating,
Control, store, outputting and inputting the physical components of function.Calling is to give the execution of program to other code segments, usually
One subroutine, while necessary information is saved, to be continued to execute after so that called section is finished back to point of invocation.This
In called section belonging to system be the service that provides system.System belonging to point of invocation is the system for calling service.In generation
If a program needs to grow very much one section of code in code, it can establish another file b and store this section of code, it is straight when a needs when
It connects and calls b.Then a is the system for calling service, and b is the system for the service that provides.The system for providing service is also considered as server-side
System, the system for calling service can be regarded as FTP client FTP.
In some optional implementations of the present embodiment, at least one service invocation information is obtained, comprising: obtain extremely
A few journal file, wherein journal file has recorded service invocation information according to predetermined format;From at least one journal file
According to predetermined format parse at least one service invocation information.As shown in fig. 1, log concentrator 104 is provided from service
End uses journal file, and journal file further includes other information other than including service invocation information, such as to data
The operation informations such as increase, modification, the deletion in library.Information relevant to service call is extracted generation by log analyzer 103
Journal file.Call relation receiver 105 is issued, then by 105 timing of call relation receiver or receives a certain number of days
After will file, it is sent to call relation analyzer 106 and is analyzed.
In some optional implementations of the present embodiment, service invocation information further include: the title and calling of service
Time;And this method further include: for service indicated by every service invocation information at least one service invocation information,
According to the title for the system for calling service in the service invocation information, provide the title of system, the title of service and the tune of service
With the time, the calling frequency and calling amount peak value for calling the service are determined.According to the system at least one service invocation information
Title and allocating time can determine that some service is most in which moment called number, as the calling at the moment
Number is calling amount peak value, which is also calling amount peak value moment.Time for calling frequency to refer to being called in the unit time
Number.Frequency and calling amount peak value is called to can be adopted to the importance of measurement system.It can be used to distribute resource, the money of distribution for system
Source is directly proportional to calling amount peak value, provides for example, distributing reasonable CPU according to calling amount peak value in calling amount peak value moment for system
Source or memory source.12 points be system A calling amount peak value moment, then 12 when for system A distribute more resources.13 be to be
Unite the calling amount peak value moment of B, then 13 when for system B distribute more resources.
Step 202, each system being related at least one service invocation information, according in each service invocation information
The title of the system of service is called with the title of the system of offer service, determines that calling at least one system of the system to be used as is somebody's turn to do
The calling system set of system determines the called system set of at least one system that the system is called as the system,
Determine the weight for calling the quantity of the system as the system.
In the present embodiment, what is stored in calling system set and called system set is the title of system.From at least
The identical systematic name for calling service, and the system called by it or called it are counted in one service invocation information.It can
Regard the call relation between system as system dependence.For individual system, count it is all and its have call relation (packet
Containing call it and it call) system.We will call the quantity of the system of A as the weight of A.The weight of system can
With the significance level of reaction system.The more high then system of weight is more important.For example, the uniform format of service invocation information are as follows: call
The title of the title of the system of service-offer service system.At least one service invocation information is S1-S2, S1-S3, S1-
S4, S2-S3, S4-S1, S5-S1.Then the calling system collection of S1 is combined into { S4, S5 }, the called system set of S1 be S2, S3,
S4 }, the calling system collection of S4 is combined into { S1 }, and the called system set of S4 is { S1 }.Wherein, S1 and S4 are mutually called, S1's
The weight that weight is 2, S4 is 1.S1 is weak calling to the calling of S4.
Optionally, if having existed before each system calling system set and called system set, get
After new service invocation information, according to call relation in the service invocation information newly obtained to original calling system set and by
Calling system set increases systematic name.
In some optional implementations of the present embodiment, each system for being related at least one service invocation information
System, if the calling system set of the system and called system set there are identical system, by the system with determine
Identical system is determined as the system group called mutually, if the weight of the system in the system group called mutually is different, from tune
It is deleted with the high call relation of the weight of system of the weight than providing service for the system that will call service in relation table.One is
The system that system can be used as providing service also can be used as the system for calling service.If the calling system set of A and called system
System set all occurs same system B (illustrating that system A and system B are mutually called), then the high calling weight of weight is low
Call relation be labeled as weak calling.If (i.e. system A and B are mutually called, and A can be by other more in contrast by system A and B
More systems is called, then it is intended that thinking A system more has the characteristic for doing service provider, therefore by A to the calling mark of B
It is denoted as weak calling, calling of the B to A is designated as emphasizing to use.).Here strong and weak call is analyzed mainly to close for combing level below
System uses
Step 203, according to the calling system set of each system, the called system set of each system, each system weight
Generate the call relation table between each system.
In the present embodiment, call relation table is used to characterize the system for calling service and the system for providing service and each system
Corresponding relationship between the weight of system.The title for the system for calling service is had recorded in call relation table and for the calling service
System provides the title of the system of service.The weight for each system that step 202 is determined is also recorded.New clothes are received every time
Determine call relation all after business recalls information to update call relation table.The call relation table reflects between each system
Dependence, alternatively referred to as dependence table.It can sort by the weight sequence from big to small of system in call relation table.It is convenient
Determine important system.
With continued reference to the schematic diagram that Fig. 3, Fig. 3 are according to the application scenarios of the information generating method of the present embodiment.?
In the application scenarios of Fig. 3, when user's using terminal operates, the FTP client FTP installed in terminal has invoked server-side system
System, produces service invocation information, as shown in dotted line frame in 301.A is the title of service in dotted line frame, and S1 is FTP client FTP
Title, S2 be service end system title.At least one FTP client FTP can give birth to the calling of at least one service end system
At at least one service invocation information as shown in 301.Call relation analyzer counts offer according to service invocation information 301
The system of the system (in 302 shown in first row) of service, the system (in 302 shown in third column) for calling service and offer service
Weight (in 302 shown in secondary series).Then call relation table 302 is generated.The value of weight can according to call service
The quantity of system is determined, for example, system S1 is called by system S7, S8, S9, S10, therefore the weight of S1 is 4.
The method provided by the above embodiment of the application passes through the quantity and system for the other systems that will call certain system
Weight is associated, generates the call relation table of the weight including system, thus when improving the call relation between each system of combing
Speed.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of information generating method.The information generates
The process 400 of method, comprising the following steps:
Step 401, at least one service invocation information is obtained.
Step 402, each system being related at least one service invocation information, according in each service invocation information
The title of the system of service is called with the title of the system of offer service, determines that calling at least one system of the system to be used as is somebody's turn to do
The calling system set of system determines the called system set of at least one system that the system is called as the system,
Determine the weight for calling the quantity of the system as the system.
Step 403, according to the calling system set of each system, the called system set of each system, each system weight
Generate the call relation table between each system.
Step 401-403 and step 201-203 are essentially identical, therefore repeat no more.
Step 404, it is based on call relation table, generates digraph.
In the present embodiment, the call relation table generated based on step 403 generates digraph, i.e. call graph.Its
In, the side in digraph is used to characterize the system for calling service for characterizing call relation, the initial point on side, and terminal is mentioned for characterizing
For the system of service.As shown in figure 5, S1, S2, S3, S4, S5, S6 be for characterizing system, S1 has invoked S3, S2 have invoked S3,
S4, S5, S3 have invoked S4, and S5 has invoked S6.Root is virtual vertex, and the vertex being connected with root is not called by other systems.
The call relation that the recalls information received is determined can be added to one by one tree-network structure (such as Fig. 5 institute when analyzing by call relation
The digraph shown) in, one call relation of every increase can all detect in tree-network structure and recursive call whether occurs and (make here
With breadth traversal method, see whether the node of calling can find oneself, capable of finding just explanation, there are recursive calls.Note that cannot
With in-depth traverse method, otherwise may fall into recursive call can't get out), if the calling being newly added causes recursive call,
If this calling be weight it is high call the low situation of weight, be labeled as weak calling, it is all weak to be invoked in hierarchy chart
Do not consider.In this way, after all dependences successively being added, can finally constructing one, there is no recursive calls
Tree-network structure unidirectional from top to bottom.Can also the weight ratio for calling the system of service first be provided to service from call relation table
The high call relation of weight of system delete, then regenerate digraph.
Step 405, the level on each vertex of digraph is determined.
In the present embodiment, each vertex is corresponding with level in digraph;This method further include: will not be provided in digraph
At least one corresponding vertex of the system of service is determined as initial vertax, and sets predetermined value for the level of initial vertax;
For each vertex being connected in digraph with initial vertax, if starting point corresponding when terminal of the vertex as directed edge
The vertex is then determined as secondary vertex, and sets predetermined value for the level of secondary vertex and make a reservation for by only initial vertax
The sum of step-length;For each vertex in digraph in addition to initial vertax and each secondary vertex, using breadth traversal method, determining should
The level of corresponding at least one starting point and each starting point when terminal of the vertex as directed edge, and will be in the level of each starting point
Maximum value be incremented by the level that pre- fixed step size is set as the vertex.
For example, the level on each vertex in digraph is determined using range detection method, as shown in figure 5, can be past from root node
Under successively confirm, other than the vertex of the top being connected with root node, using such as when carrying out level confirmation to any vertex
Under type:
Assuming that the level of i-th of vertex Si is LSi(i=1,2,3 ... n), LSiIt is a numerical value.If calling j-th of vertex
All vertex sets of Sj are set (Sj), (j=1,2,3 ... n, and i ≠ j), and vertex Si calls vertex Sj, the then layer of vertex Sj
Grade LSjIt should be the maximum value in the level for calling all vertex Si of j-th of vertex Sj and add 1, i.e., for any vertex Sj, calculate
Its level LSjFormula are as follows:
LSj=MAX (LSi)+1,
Wherein, vertex Si calls vertex Sj, Si ∈ set (Sj),
I=1,2,3 ... n;J=1,2,3 ... n, and i ≠ j.
As shown in figure 5, S1, S2 are initial vertax, the level of setting S1, S2 are 1, then the level of secondary vertex S3 and S5 is
2, S4 add 1 for the maximum value in the level of S3 and the level of S2, i.e. the level of S4 is 3.The level of S6 is 3.
In some optional implementations of the present embodiment, this method further include: according to the sequence that level is descending
Export the title of the system of the vertex correspondence of predetermined quantity.The size of level can be with the importance of reaction system, and number of levels is higher
Then the system is more important.Therefore the resource that can be occupied according to number of levels distribution system, for example, CPU, memory etc..
Figure 4, it is seen that compared with the corresponding embodiment of Fig. 2, the process of the information generating method in the present embodiment
400 highlight the step of generating digraph.The scheme of the present embodiment description can introduce call relation related data as a result, from
And realize that more fully call relation is analyzed.
It generates and fills this application provides a kind of information as the realization to method shown in above-mentioned each figure with further reference to Fig. 6
The one embodiment set, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be applied to respectively
In kind electronic equipment.
As shown in fig. 6, the information generation device 600 of the present embodiment includes: acquiring unit 601, determination unit 602 and generates
Unit 603.Wherein, acquiring unit 601 is configured to obtain at least one service invocation information, wherein service invocation information packet
Include the title of the title for the system for calling service, the system that service is provided;Determination unit 602 is configured at least one clothes
Each system that business recalls information is related to, according to the title and offer service of the system for calling service in each service invocation information
System title, determine calling system set of at least one system as the system for calling the system, determine the system
Called system set of at least one system called as the system determines the quantity for calling the system as the system
Weight;Generation unit 603 is configured to the called system set, each of the calling system set according to each system, each system
The weight of system generates the call relation table between each system, wherein call relation table be used for characterize call service system and
Corresponding relationship between the system of service and the weight of each system is provided.
In the present embodiment, the acquiring unit 601, determination unit 602 and generation unit 603 of information generation device 600
Specific processing can be with reference to step 201, the step 202, step 203 in Fig. 2 corresponding embodiment.
In some optional implementations of the present embodiment, device 600 further includes amending unit (not shown), and configuration is used
In: each system being related at least one service invocation information, if the calling system set and called system of the system
There are identical systems for set, then the system are determined as the system group called mutually with the identical system determined, if mutually
The weight for the system in system group mutually called is different, then provides the weight ratio for calling the system of service from call relation table
The high call relation of the weight of the system of service is deleted.
In some optional implementations of the present embodiment, generation unit 603 is further configured to: being closed based on calling
It is table, generates digraph, wherein for the side in digraph for characterizing call relation, the initial point on side, which is used to characterize, calls service
System, the system that terminal is used to characterize the service of offer.
In some optional implementations of the present embodiment, acquiring unit 601 is further configured to: obtaining at least one
A journal file, wherein journal file has recorded service invocation information according to predetermined format;It is pressed from least one journal file
At least one service invocation information is parsed according to predetermined format.
In some optional implementations of the present embodiment, service invocation information further include: the title and calling of service
Time;And device 600 further includes statistic unit (not shown), is configured to: for every at least one service invocation information
Service indicated by service invocation information, according to the title for the system for calling service in the service invocation information, offer service
The title of system, the title of service and allocating time, determine call the service calling frequency and calling amount peak value.
In some optional implementations of the present embodiment, each vertex is corresponding with level in digraph;Device 600 is also
It including level determination unit (not shown), is configured to: by least one corresponding top of the system for not providing service in digraph
Point is determined as initial vertax, and sets predetermined value for the level of initial vertax;For being connected in digraph with initial vertax
The each vertex connect, it is if starting point corresponding when terminal of the vertex as directed edge only has initial vertax, the vertex is true
It is set to secondary vertex, and sets the sum of predetermined value and pre- fixed step size for the level of secondary vertex;For being removed just in digraph
Beginning vertex and each secondary vertex outside each vertex terminal when institute of the vertex as directed edge is determined using breadth traversal method
The level of corresponding at least one starting point and each starting point, and the maximum value in the level of each starting point is incremented by pre- fixed step size and is arranged
For the level on the vertex.
In some optional implementations of the present embodiment, device 600 further includes output unit (not shown), and configuration is used
In: according to the title of the system of the vertex correspondence of the descending Sequential output predetermined quantity of level.
Below with reference to Fig. 7, it illustrates the computer systems 700 for the electronic equipment for being suitable for being used to realize the embodiment of the present application
Structural schematic diagram.Electronic equipment shown in Fig. 7 is only an example, function to the embodiment of the present application and should not use model
Shroud carrys out any restrictions.
As shown in fig. 7, computer system 700 includes central processing unit (CPU) 701, it can be read-only according to being stored in
Program in memory (ROM) 702 or be loaded into the program in random access storage device (RAM) 703 from storage section 708 and
Execute various movements appropriate and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data.
CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to always
Line 704.
I/O interface 705 is connected to lower component: the importation 707 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 708 including hard disk etc.;
And the communications portion 709 of the network interface card including LAN card, modem etc..Communications portion 709 via such as because
The network of spy's net executes communication process.Driver 710 is also connected to I/O interface 705 as needed.Detachable media 711, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 710, in order to read from thereon
Computer program be mounted into storage section 708 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 709, and/or from detachable media
711 are mounted.When the computer program is executed by central processing unit (CPU) 701, limited in execution the present processes
Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or
Computer readable storage medium either the two any combination.Computer readable storage medium for example can be --- but
Be not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.
The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires electrical connection,
Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit
Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory
Part or above-mentioned any appropriate combination.In this application, computer readable storage medium, which can be, any include or stores
The tangible medium of program, the program can be commanded execution system, device or device use or in connection.And
In the application, computer-readable signal media may include in a base band or the data as the propagation of carrier wave a part are believed
Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not
It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer
Any computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use
In by the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc., Huo Zheshang
Any appropriate combination stated.
The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereof
Machine program code, described program design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet
Include acquiring unit, determination unit, information extracting unit and generation unit.Wherein, the title of these units is under certain conditions simultaneously
The restriction to the unit itself is not constituted, for example, acquiring unit is also described as " obtaining at least one service invocation information
Unit ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should
Device: at least one service invocation information is obtained, wherein service invocation information includes calling the title of the system serviced, providing
The title of the system of service;For each system that at least one service invocation information is related to, according to each service invocation information
The title of the middle system for calling service and the title for the system for providing service, determine at least one the system conduct for calling the system
The calling system set of the system determines the called system collection of at least one system that the system is called as the system
It closes, determines the weight for calling the quantity of the system as the system;It is adjusted according to the calling system set of each system, each system
The call relation table between each system is generated with the weight of system set, each system.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (16)
1. a kind of information generating method, comprising:
Obtain at least one service invocation information, wherein service invocation information includes calling the title of the system serviced, providing clothes
The title of the system of business;
For each system that at least one service invocation information is related to, serviced according to being called in each service invocation information
System title and provide service system title, determine tune of at least one system as the system for calling the system
With system set, determines the called system set of at least one system that the system is called as the system, determine and call
Weight of the quantity of the system as the system;
According to the weight of the calling system set of each system, the called system set of each system, each system generate each system it
Between call relation table, wherein the call relation table be used for characterize call service system and provide service system and
Corresponding relationship between the weight of each system.
2. according to the method described in claim 1, wherein, the method also includes:
For each system that at least one service invocation information is related to, if the calling system set of the system and called
There are identical systems for system set, then the system are determined as the system group called mutually with the identical system determined,
If the weight of the system in the system group called mutually is different, the system that service will be called from the call relation table
The high call relation of weight of system of the weight than providing service delete.
3. method according to claim 1 or 2, wherein the method also includes:
Based on the call relation table, digraph is generated, wherein the side in the digraph is used to characterize call relation, side
Initial point is used to characterize the system for calling service, the system that terminal is used to characterize the service of offer.
4. according to the method described in claim 1, wherein, at least one service invocation information of the acquisition, comprising:
Obtain at least one journal file, wherein journal file has recorded service invocation information according to predetermined format;
At least one service invocation information is parsed according to the predetermined format from least one described journal file.
5. according to the method described in claim 1, wherein, service invocation information further include: the title and allocating time of service;With
And
The method also includes:
For service indicated by every service invocation information at least one service invocation information, according to the service call
The title of the system of service is called in information, the title of system, the title of service and the allocating time of service are provided, and is determined and is called
The calling frequency and calling amount peak value of the service.
6. according to the method described in claim 3, wherein, each vertex is corresponding with level in the digraph;And
The method also includes:
At least one corresponding vertex of the system for service not providing in the digraph is determined as initial vertax, and will be described
The level of initial vertax is set as predetermined value;
For each vertex being connected in the digraph with the initial vertax, if when terminal of the vertex as directed edge
Corresponding starting point only has the initial vertax, then the vertex is determined as secondary vertex, and by the layer of the secondary vertex
Grade is set as the sum of predetermined value and pre- fixed step size;
For each vertex in the digraph in addition to the initial vertax and each secondary vertex, using breadth traversal method, really
The level of corresponding at least one starting point and each starting point when terminal of the fixed vertex as directed edge, and by the layer of each starting point
Maximum value in grade is incremented by the level that the pre- fixed step size is set as the vertex.
7. according to the method described in claim 6, wherein, the method also includes:
According to the title of the system of the vertex correspondence of the descending Sequential output predetermined quantity of level.
8. a kind of information generation device, comprising:
Acquiring unit is configured to obtain at least one service invocation information, wherein service invocation information includes calling service
The title of system provides the title of the system serviced;
Determination unit is configured to each system being related at least one service invocation information, according to each item service
The title of the system of service is called in recalls information and the title of the system of service is provided, and determines at least one for calling the system
Calling system set of the system as the system determines at least one system being called as the system that the system is called
System set determines the weight for calling the quantity of the system as the system;
Generation unit is configured to the calling system set according to each system, the called system set of each system, each system
Weight generates the call relation table between each system, wherein the call relation table is used to characterize and calls the system of service and mention
System for service and the corresponding relationship between the weight of each system.
9. device according to claim 8, wherein described device further includes amending unit, is configured to:
For each system that at least one service invocation information is related to, if the calling system set of the system and called
There are identical systems for system set, then the system are determined as the system group called mutually with the identical system determined,
If the weight of the system in the system group called mutually is different, the system that service will be called from the call relation table
The high call relation of weight of system of the weight than providing service delete.
10. device according to claim 8 or claim 9, wherein the generation unit is further configured to:
Based on the call relation table, digraph is generated, wherein the side in the digraph is used to characterize call relation, side
Initial point is used to characterize the system for calling service, the system that terminal is used to characterize the service of offer.
11. device according to claim 8, wherein the acquiring unit is further configured to:
Obtain at least one journal file, wherein journal file has recorded service invocation information according to predetermined format;
At least one service invocation information is parsed according to the predetermined format from least one described journal file.
12. device according to claim 8, wherein service invocation information further include: the title and allocating time of service;
And
Described device further includes statistic unit, is configured to:
For service indicated by every service invocation information at least one service invocation information, according to the service call
The title of the system of service is called in information, the title of system, the title of service and the allocating time of service are provided, and is determined and is called
The calling frequency and calling amount peak value of the service.
13. device according to claim 10, wherein each vertex is corresponding with level in the digraph;And
Described device further includes level determination unit, is configured to:
At least one corresponding vertex of the system for service not providing in the digraph is determined as initial vertax, and will be described
The level of initial vertax is set as predetermined value;
For each vertex being connected in the digraph with the initial vertax, if when terminal of the vertex as directed edge
Corresponding starting point only has the initial vertax, then the vertex is determined as secondary vertex, and by the layer of the secondary vertex
Grade is set as the sum of predetermined value and pre- fixed step size;
For each vertex in the digraph in addition to the initial vertax and each secondary vertex, using breadth traversal method, really
The level of corresponding at least one starting point and each starting point when terminal of the fixed vertex as directed edge, and by the layer of each starting point
Maximum value in grade is incremented by the level that the pre- fixed step size is set as the vertex.
14. device according to claim 13, wherein described device further includes output unit, is configured to:
According to the title of the system of the vertex correspondence of the descending Sequential output predetermined quantity of level.
15. a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now method as described in any in claim 1-7.
16. a kind of computer-readable medium, is stored thereon with computer program, wherein real when described program is executed by processor
The now method as described in any in claim 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810142033.8A CN110147309A (en) | 2018-02-11 | 2018-02-11 | Information generating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810142033.8A CN110147309A (en) | 2018-02-11 | 2018-02-11 | Information generating method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110147309A true CN110147309A (en) | 2019-08-20 |
Family
ID=67589000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810142033.8A Pending CN110147309A (en) | 2018-02-11 | 2018-02-11 | Information generating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110147309A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111324471A (en) * | 2020-01-22 | 2020-06-23 | 远景智能国际私人投资有限公司 | Service adjusting method, device, equipment and storage medium |
CN111324470A (en) * | 2020-01-20 | 2020-06-23 | 北京百度网讯科技有限公司 | Method and device for generating information |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105045574A (en) * | 2015-06-24 | 2015-11-11 | 广东电网有限责任公司电力科学研究院 | Software key function identification method based on complex network fault propagation |
US20160226745A1 (en) * | 2015-02-02 | 2016-08-04 | Linkedin Corporation | Estimating latency of an application |
CN106657192A (en) * | 2015-11-03 | 2017-05-10 | 阿里巴巴集团控股有限公司 | Method used for presenting service calling information and equipment thereof |
US9684524B1 (en) * | 2013-12-20 | 2017-06-20 | Amazon Technologies, Inc. | Service-oriented system optimization using trace data |
CN107306196A (en) * | 2016-04-20 | 2017-10-31 | 中兴通讯股份有限公司 | Virtualization services monitoring method and device |
-
2018
- 2018-02-11 CN CN201810142033.8A patent/CN110147309A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9684524B1 (en) * | 2013-12-20 | 2017-06-20 | Amazon Technologies, Inc. | Service-oriented system optimization using trace data |
US20160226745A1 (en) * | 2015-02-02 | 2016-08-04 | Linkedin Corporation | Estimating latency of an application |
CN105045574A (en) * | 2015-06-24 | 2015-11-11 | 广东电网有限责任公司电力科学研究院 | Software key function identification method based on complex network fault propagation |
CN106657192A (en) * | 2015-11-03 | 2017-05-10 | 阿里巴巴集团控股有限公司 | Method used for presenting service calling information and equipment thereof |
CN107306196A (en) * | 2016-04-20 | 2017-10-31 | 中兴通讯股份有限公司 | Virtualization services monitoring method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111324470A (en) * | 2020-01-20 | 2020-06-23 | 北京百度网讯科技有限公司 | Method and device for generating information |
CN111324470B (en) * | 2020-01-20 | 2023-11-07 | 北京百度网讯科技有限公司 | Method and device for generating information |
CN111324471A (en) * | 2020-01-22 | 2020-06-23 | 远景智能国际私人投资有限公司 | Service adjusting method, device, equipment and storage medium |
CN111324471B (en) * | 2020-01-22 | 2023-07-21 | 远景智能国际私人投资有限公司 | Service adjustment method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108984542A (en) | Distribution type data collection method and system | |
CN110275861A (en) | Date storage method and device, storage medium, electronic device | |
CN110019125A (en) | The method and apparatus of data base administration | |
CN110019080A (en) | Data access method and device | |
CN109299157A (en) | A kind of data export method and device of distributed big single table | |
CN109981322A (en) | The method and apparatus of cloud resource management based on label | |
CN111339743B (en) | Account number generation method and device | |
CN110427415A (en) | Knowledge share method, device, system media and electronic equipment | |
CN109656744A (en) | The method and apparatus for realizing data check and injection are explained based on Java | |
CN109408481A (en) | Update method, device, electronic equipment and the readable medium of log collection rule | |
CN109903105A (en) | A kind of method and apparatus for improving end article attribute | |
CN109409419A (en) | Method and apparatus for handling data | |
CN109992496A (en) | A kind of data processing method and device for automatic test | |
CN110147309A (en) | Information generating method and device | |
CN113886485A (en) | Data processing method, device, electronic equipment, system and storage medium | |
CN109284342A (en) | Method and apparatus for output information | |
CN111414410A (en) | Data processing method, device, equipment and storage medium | |
CN109753424A (en) | The method and apparatus of AB test | |
CN108733688A (en) | The method, apparatus of data analysis | |
CN109492039A (en) | A kind of recording method of daily record data, device, electronic equipment and readable medium | |
CN108845864A (en) | A kind of JVM rubbish recovering method and device based on spring frame | |
CN110110153A (en) | A kind of method and apparatus of node searching | |
CN111159207B (en) | Information processing method and device | |
CN113918534A (en) | Policy processing system and method | |
CN115391343A (en) | Bill data processing method and device, electronic equipment and storage medium |
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 |