CN111176930A - Component operation data processing method and device, computer equipment and storage medium - Google Patents

Component operation data processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111176930A
CN111176930A CN201911258445.9A CN201911258445A CN111176930A CN 111176930 A CN111176930 A CN 111176930A CN 201911258445 A CN201911258445 A CN 201911258445A CN 111176930 A CN111176930 A CN 111176930A
Authority
CN
China
Prior art keywords
component
target
data
interface
assembly
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911258445.9A
Other languages
Chinese (zh)
Other versions
CN111176930B (en
Inventor
张宗红
刘勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangxi Sanfangda Supply Chain Technology Service Co ltd
Original Assignee
Weikun Shanghai Technology Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weikun Shanghai Technology Service Co Ltd filed Critical Weikun Shanghai Technology Service Co Ltd
Priority to CN201911258445.9A priority Critical patent/CN111176930B/en
Publication of CN111176930A publication Critical patent/CN111176930A/en
Application granted granted Critical
Publication of CN111176930B publication Critical patent/CN111176930B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/301Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is a virtual computing platform, e.g. logically partitioned systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • 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
    • G06F11/3072Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/321Display for diagnostics, e.g. diagnostic result display, self-test user interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support

Abstract

The present application relates to the field of big data technologies, and in particular, to a method and an apparatus for processing component operation data, a computer device, and a storage medium. The method comprises the following steps: receiving a starting instruction of a target application, and extracting a component instance from the target application through a preset interception mechanism; writing the component instance into a global component manager, and acquiring the running data of the component corresponding to the component instance through a predefined monitoring interface; and converting the operating data through the global component manager to obtain visual data for display. By adopting the method, the operation data of the assembly can be effectively monitored.

Description

Component operation data processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing component operation data, a computer device, and a storage medium.
Background
In the Java component management process, monitoring data of a CPU, a memory, a disk, a network, a Java Virtual Machine (JVM) heap, a thread stack, and the like can be viewed through Java management extensions (JMX).
However, for the operation data of the component, for example, configuration information, operation state data, health condition, monitoring index, etc. of the component, a developer who needs to employ specially collects each item of operation data of the application program by means of a buried point, etc., so that the developer needs to write a large amount of codes and add the codes to the application program, which results in a large package of the application program and high requirements on the developer.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a component operation data processing method, device, computer device and storage medium capable of querying and monitoring operation data of a component.
A component operational data processing method, the method comprising:
receiving a starting instruction of a target application, and extracting a component instance from the target application through a preset interception mechanism;
writing the component instance into a global component manager, and acquiring the running data of the component corresponding to the component instance through a predefined monitoring interface;
and converting the target interface protocol of the corresponding target interface to the running data through the global component manager to obtain the visual data of the corresponding target interface.
In one embodiment, the performing, by the global component manager, target interface protocol conversion on the operation data to obtain visual data corresponding to a target interface protocol includes:
when the target interface is an application programming interface, processing the operating data according to an application programming interface protocol through the global component manager to obtain visual data corresponding to the application programming interface;
when the target interface is a management frame interface, processing the running data according to a management frame interface protocol through the global component manager to obtain visual data corresponding to the management frame interface;
and when the target interface is an application performance monitoring system interface, processing the running data according to an application performance monitoring system interface protocol through the global component manager to obtain visual data corresponding to the application performance monitoring system interface.
In one embodiment, before the receiving a start instruction of a target application and extracting a component instance from the target application through a preset interception mechanism, the method further includes:
injecting the assembly and an assembly object corresponding to the assembly into a preset container through a preset injection mode, and establishing an association relationship between the assembly and the assembly object to form the assembly instance;
and establishing a corresponding relation between the component instance and the predefined monitoring interface.
In one embodiment, the method further comprises:
receiving a query request for operating data of a target component, wherein the query request carries component information of the target component;
acquiring running data corresponding to the target component from the global component manager according to the component information of the target component;
and outputting the acquired operation data corresponding to the target component.
In one embodiment, the method further comprises:
receiving an assembly modification instruction for modifying an assembly to be modified, wherein the assembly modification instruction carries an assembly name of the assembly to be modified and modification configuration information for modifying the assembly to be modified;
inquiring the component to be modified from the global component manager according to the component name of the component to be modified, and modifying the component parameter of the component to be modified according to the modification configuration information;
and transmitting the modified component parameters to an application terminal running the target application.
In one embodiment, after the obtaining, through the predefined monitoring interface, the operation data of the component corresponding to the component instance, the method further includes:
when the global component manager detects that abnormal data exceeding a preset threshold interval exists in the acquired running data of the components, generating early warning information corresponding to the components;
and sending the early warning information to a management terminal of the target application.
An assembly operation data processing apparatus, the apparatus comprising:
the receiving and extracting module is used for receiving a starting instruction of the target application and extracting a component instance from the target application through a preset interception mechanism;
the first acquisition module is used for writing the component instance into a global component manager and acquiring the running data of the component corresponding to the component instance through a predefined monitoring interface;
and the conversion module is used for converting the target interface protocol of the corresponding target interface to the running data through the global component manager to obtain the visual data of the corresponding target interface.
In one embodiment, the apparatus further comprises:
the first establishing module is used for establishing the incidence relation between the component and the component object in a preset injection mode to form the component instance before the receiving and extracting module receives a starting instruction of a target application and extracts the component instance from the target application through a preset interception mechanism;
and the second establishing module is used for establishing the corresponding relation between the component instance and the predefined monitoring interface.
A computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods described above when the processor executes the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any of the above.
According to the component operation data processing method, the component operation data processing device, the computer equipment and the storage medium, the component instance is extracted from the target application and written into the global component manager, and then the operation data of the component corresponding to the component instance is obtained through the predefined monitoring interface. Thus, the global component manager can acquire the operation data of the components so as to manage and monitor the operation data of the components. And the operation data is converted into the target interface protocol corresponding to the target interface to obtain the visual data corresponding to the target interface, and the terminal equipment can acquire the visual data through the corresponding target interface to visually display the visual data, so that the data monitoring efficiency and the data processing efficiency can be improved.
Drawings
FIG. 1 is a diagram illustrating an example of an application of a method for processing data performed by a component in an embodiment;
FIG. 2 is a flow diagram that illustrates a method for processing data during operation of a component in one embodiment;
FIG. 3 is a schematic flow chart diagram illustrating the operational data query and output steps in one embodiment;
FIG. 4 is a flowchart illustrating the step of modifying component parameters in one embodiment;
FIG. 5 is a flowchart illustrating the early warning step of abnormal component operation in one embodiment;
FIG. 6 is a block diagram of an apparatus for component operation data processing according to one embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The component operation data processing method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The user can start the target application by triggering the target application installed on the terminal 102, after receiving a start instruction of the target application, the server 104 extracts the component instance from the target application through a preset interception mechanism, writes the extracted component instance into the global component manager, and further obtains the running data of the component corresponding to the component instance through a predefined monitoring interface on the server, thereby monitoring the running state of the component. In order to facilitate the user to check the acquired operation data through the terminal 102, the operation data may be converted by the global component manager according to the target interface protocol of the corresponding target interface to obtain the visual data of the corresponding target interface, so that the data monitoring and data processing efficiency may be improved. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a method for processing component operation data is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
step 202, receiving a starting instruction of a target application, and extracting a component instance from the target application through a preset interception mechanism.
The target Application may be an Application installed in the terminal, that is, an APP (Application), an Application written based on multiple programming languages, for example, a Java Application written by Java, or an Application written by other programming languages, which is not limited in this Application.
The starting instruction may be an instruction sent by the terminal to the server to indicate that the target application has been started, and the starting instruction may include, but is not limited to, an application name of the started target application, a programming language of the target application, a starting time of the target application, and other information.
The component instance may be an instance configured in an application that processes objects included in the component, for example, the component may be a button component, and the button component may include a plurality of objects, and control of each object in the component is achieved by creating an instance corresponding to each object.
The preset interception mechanism may be a mechanism preset by the server to extract the component instance configured in the target application, and the interception mechanism may be a mechanism having a certain association relationship with the target application. Optionally, the preset interception mechanism may be a Spring interception mechanism, and by directly using the Spring interception mechanism of Java, it is not necessary to set another interception mechanism, so that resource consumption and configuration time of the server can be saved.
Specifically, the terminal receives a trigger operation of a user on the target application, starts the target application, and sends a starting instruction that the target application is started to the server. And after receiving a starting instruction sent by the terminal, the server extracts the component instance in the target application.
Step 204, writing the component instance into a global component manager, and acquiring the operation data of the component corresponding to the component instance through a predefined monitoring interface.
The global component manager refers to a management database for managing operation data of components of the terminal connected with the server, and can monitor and manage operation data of all or part of the components operated on the terminal.
The operational data of the component may include, but is not limited to, configuration information data, health data, operational data, monitoring index data, etc. of the component. Specifically, the configuration information data may include, but is not limited to, configuration information of each object included in the component, for example, names of the component and the component object, a component object attribute Value, a configuration item Key/Value on which the component object depends, a configuration injection manner of the component object, and the like; the health condition data may include, but is not limited to, information data such as whether a component is available, whether an exception exists in the component, and the like, and may be, for example, UP, Down, Error, and the like; the operating condition data may include, but is not limited to, component operating data of the component, for example, Map data in the form of { data name ═ data value }; the monitoring index data may include Map data in the form of { index name ═ index object }, and may include, for example, age (index value), Counter (Counter), Meter (1/5/15 minute index), Timer (count a certain period of operation time index), history (distribution, maximum value, minimum value, 75/90/95/99 percentile of data, and the like). It will be understood by those skilled in the art that the present invention is illustrative only and is not limited thereto.
The monitoring interface is an interface which has a one-to-one correspondence relationship with each component in the target application and is used for monitoring the operation data of the components and acquiring the operation data of the components.
Specifically, the server may write the extracted component instance into a global component manager of the server when the target application is started each time, and monitor the component in real time through a monitoring interface corresponding to the component, so as to obtain all or part of the operation data of the component described above.
And step 206, converting the target interface protocol of the corresponding target interface to the running data through the global component manager to obtain the visual data of the corresponding target interface.
The visualization data may include, but is not limited to, data in various chart forms such as tables, pie charts, histograms, and graphs.
Specifically, after the global component manager acquires the operating data of the component, the operating data is converted into visual data corresponding to the target solution, so that the terminal can acquire the converted data through the target interface and display the converted data to the user.
Optionally, the conversion of the operation data of the component may be that the server automatically converts the operation data of the component after acquiring the operation data, or may also be that the server converts the operation data of the component after receiving a conversion instruction from a user.
In addition, the global component manager may convert the operation data of the component, which is not limited in this application, by converting part of the operation data or all of the operation data.
In the component operation data processing method, the component instance is extracted from the target application and written into the global component manager, and then the operation data of the component corresponding to the component instance is obtained through the predefined monitoring interface. Thus, the global component manager can acquire the operation data of the components so as to manage and monitor the operation data of the components. And the operation data is converted into the target interface protocol corresponding to the target interface to obtain the visual data corresponding to the target interface, and the terminal equipment can acquire the visual data through the corresponding target interface to visually display the visual data, so that the data monitoring efficiency and the data processing efficiency can be improved.
In one embodiment, the performing, by the global component manager, target interface protocol conversion on the operation data to obtain visual data corresponding to a target interface protocol may include: when the target interface is an application programming interface, processing the operating data according to an application programming interface protocol through the global component manager to obtain visual data corresponding to the application programming interface; when the target interface is a management frame interface, processing the running data according to a management frame interface protocol through the global component manager to obtain visual data corresponding to the management frame interface; and when the target interface is an application performance monitoring system interface, processing the running data according to an application performance monitoring system interface protocol through the global component manager to obtain visual data corresponding to the application performance monitoring system interface.
The server performs conversion processing of an API Interface protocol on the running data through the global component manager to obtain visual data which can be used for the API Interface, so that terminal equipment which is suitable for the API Interface can visually display the visual data through the API Interface.
The management frame interface can be a JMX interface, the server can convert the running data into visual data suitable for a JMX standard protocol through the global component manager, and therefore the JMX can acquire and display the visual data through the JMX interface.
The Application performance monitoring system interface is an interface that can be connected to and accessed by an AIP (Application instrumentation Platform) Platform. And the server performs AIP interface protocol conversion processing on the operation data through the global component manager to obtain visual data which can be used for the AIP platform.
The operation data are converted corresponding to various different target interface protocols, so that the visual data corresponding to different target interfaces can be obtained, the method and the device are suitable for different terminals or different platforms, a user can check the operation data through different terminals or platforms, and user experience is improved.
In one embodiment, before receiving a start instruction of a target application and extracting a component instance from the target application through a preset interception mechanism, the method for processing the operation data of the upper-mentioned component may further include: injecting the assembly and an assembly object corresponding to the assembly into a preset container through a preset injection mode, and establishing an association relationship between the assembly and the assembly object to form the assembly instance; and establishing a corresponding relation between the component instance and the predefined monitoring interface.
The preset injection manner may be configuration placeholder injection, SPEL (Spring expression language) injection, configuration prefix injection, or the like. The preset container may be a container corresponding to the preset interception mechanism, for example, a Spring container corresponding to a Spring interception mechanism. It will be understood by those skilled in the art that the present disclosure is only illustrative of the predetermined injection method and the predetermined container, and the present disclosure is not limited thereto.
Specifically, the corresponding relationship of the attribute information, the configuration item Key, the object attribute value, and other information corresponding to the component and the component object may be injected into the container in the above injection manner, and the association relationship between the component and the component object is established to form a component instance for controlling the component object, so as to establish the corresponding relationship between the component instance and the predefined monitoring interface. Therefore, when the application runs, after the global component manager obtains the component instance, the component object and the monitoring interface all form a corresponding relation, and therefore the monitoring interface can obtain running data of the component according to the corresponding relation.
The method comprises the steps of pre-injecting a component and a component object into a container, establishing an association relation between the component and the component object to form a component instance, and establishing a corresponding relation between the component instance and a predefined monitoring interface, so that when a target application is started, a server can acquire running data of the component in real time through the monitoring interface, and further can monitor the running state of the component in real time.
In one embodiment, referring to the flowchart of the operation data query and output step shown in fig. 3, the method for processing the operation data of the complaint component may further include the following steps:
step S302, receiving a query request for the operation data of a target component, wherein the query request carries the component information of the target component.
The component information may include, but is not limited to, a component category of the target component, a component name, a type of the operation data, a generation time of the operation data, and the like.
Specifically, a user may input an inquiry request through a terminal and send the inquiry request to a server to request inquiry of corresponding operation data.
Step S304, obtaining the operation data corresponding to the target component from the global component manager according to the component information of the target component.
Specifically, the global component manager may store the acquired operation data of all the components as a management database of the operation data of each component. The server queries and acquires corresponding running data from the global component manager according to information, such as a component type, a component name, a type of the running data, and a generation time of the running data, of the target component included in the received component information, in a certain query manner, for example, the server may query the running data according to a query manner, such as a component name, a component type, or a generation time period of the running data.
And step S306, outputting the acquired running data corresponding to the target component.
Specifically, after acquiring the operation data of the corresponding target component, the server may send the operation data to the terminal, so as to perform visual display through the terminal, where the display form may be various chart forms such as the above-mentioned table, sector, bar, graph, and the like.
The method comprises the steps of receiving a query request for the running data of a target assembly, querying the running data stored in a global assembly manager based on the assembly information of the target assembly in the query request, and obtaining and outputting the running data of the target assembly. Therefore, a user can acquire the operation data of a certain target assembly from the global assembly manager, and further display and analysis can be carried out on the operation data of the target assembly, so that the accuracy of data monitoring can be improved.
In one embodiment, referring to fig. 4, the method for processing the operation data of the complaint component may further include the following steps:
step S402, receiving an assembly modification instruction for modifying the assembly to be modified, wherein the assembly modification instruction carries the assembly name of the assembly to be modified and modification configuration information for modifying the assembly to be modified.
The modification instruction may include a modification instruction for a component object in the component to be modified, and may be a modification instruction for modifying one or more component objects in the component to be modified.
The modification configuration information may be modification configuration information of a component object in the component to be modified, and may include, for example, but not limited to, modification data of object attribute values, dependent configuration item Key/Value, injection manner, and the like.
Step S404, inquiring the component to be modified from the global component manager according to the component name of the component to be modified, and modifying the component parameter of the component to be modified according to the modification configuration information.
The component parameters may include object parameters of each component object in the component, for example, parameters corresponding to the object attribute values, parameters of a dependent configuration item Key/Value, injection mode parameters, and the like.
Specifically, after receiving a component modification instruction sent by the terminal, the server determines the component to be modified according to the component name carried in the modification instruction. Further, according to the component name of the component to be modified, the component to be modified is inquired from the global component manager, and the component parameter of the component to be modified is obtained, that is, the object parameter of each component object in the component to be modified is obtained.
It can be understood by those skilled in the art that, in the present application, the obtained component parameters may only include parameters to be modified of the corresponding component to be modified, for example, one component includes parameter A, B, C, if the modification instruction only carries modification configuration information for parameter a, when obtaining the component parameters, only parameter a may be obtained. Similarly, if the component includes the component object 1, the component object 2, and the component object 3, if the modification instruction only carries the modification configuration information of the component object 1, when the component parameter is obtained, only the object parameter of the component object 1 may be obtained.
Specifically, the acquired component parameters of the component to be modified may be modified by a configuration management system in the server.
Step S406, transmitting the modified component parameters to the application terminal running the target application.
Specifically, after modifying the component parameter, the server transmits the modified component parameter to the application terminal of the target application corresponding to the component, so that the modified component becomes effective.
In one embodiment, after the operation data of the component corresponding to the component instance is acquired through the predefined monitoring interface, the operation state of the component can be monitored and early warned through the acquired operation data of the component. Specifically, referring to a flow chart of the step of warning the abnormal operation of the component shown in fig. 5, the following steps may be included:
step S502, when the global component manager detects that abnormal data exceeding a preset threshold interval exists in the acquired running data of the components, generating early warning information corresponding to the components.
The early warning information of the component may include a component name, a component object, a component operation exception prompt code, and the like. The component operation exception prompt code may be a prompt code configured in advance when the component is configured, and for different exception conditions in the component operation, the component operation exception prompt code configured differently is correspondingly configured.
Specifically, the global component manager may compare the polarities of the operation data exceeding the preset threshold interval to determine whether the operation data exceeds the preset threshold interval. And when the global component manager detects that the running data exceeds a preset threshold interval, determining that the running data is abnormal, and generating early warning information.
Optionally, the global component manager may also check the operation data of the component according to a certain time interval, and when it is checked that the data in the certain time interval is different from the data in the previous time interval, determine that an abnormal condition exists in the operation of the component, so as to generate corresponding early warning information, which is not limited in this application.
And step S504, sending the early warning information to a management terminal of the target application.
Specifically, the generated early warning information of the component may be sent to the management terminal of the target application in the form of a mail, a short message, a telephone, and the like, so as to prompt the management terminal that the component is abnormally operated.
By detecting the operation data of the assembly, generating early warning information when abnormal data is detected and sending the early warning information to the management terminal, the abnormal operation of the assembly of the management terminal can be prompted, so that the abnormal operation assembly can be repaired in time, and the normal operation of the assembly is guaranteed.
It should be understood that, although the steps in the flowcharts of fig. 2 to 5 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 6, there is provided a component operation data processing apparatus, which may include: a receiving and extracting module 100, a first obtaining module 200 and a converting module 300, wherein:
the receiving and extracting module 100 is configured to receive a starting instruction of a target application, and extract a component instance from the target application through a preset interception mechanism.
A first obtaining module 200, configured to write the component instance into the global component manager, and obtain, through a predefined monitoring interface, operation data of a component corresponding to the component instance.
A conversion module 300, configured to perform conversion of a target interface protocol of a corresponding target interface on the running data through the global component manager, so as to obtain visual data of the corresponding target interface.
In one embodiment, the conversion module 300 may include:
and the first conversion submodule is used for processing the operating data according to an application programming interface protocol through the global component manager when the target interface is the application programming interface to obtain visual data corresponding to the application programming interface.
And the second conversion submodule is used for processing the running data according to a management frame interface protocol through the global component manager when the target interface is the management frame interface to obtain the visual data corresponding to the management frame interface.
And the third conversion submodule is used for processing the operating data according to an application performance monitoring system interface protocol through the global component manager when the target interface is the application performance monitoring system interface to obtain visual data corresponding to the application performance monitoring system interface.
In one embodiment, the component operation data processing apparatus may further include:
a first establishing module, configured to establish, by a preset injection manner, an association relationship between the component and the component object to form the component instance before the receiving and extracting module 100 receives a start instruction of a target application and extracts the component instance from the target application through a preset interception mechanism.
And the second establishing module is used for establishing the corresponding relation between the component instance and the predefined monitoring interface.
In one embodiment, the component operation data processing apparatus may further include:
the query module is used for receiving a query request for the running data of a target component, wherein the query request carries the component information of the target component.
And the second acquisition module is used for acquiring the running data corresponding to the target component from the global component manager according to the component information of the target component.
And the output module is used for outputting the acquired running data corresponding to the target component.
In one embodiment, the component operation data processing apparatus may further include:
the receiving module is used for receiving an assembly modification instruction for modifying an assembly to be modified, wherein the assembly modification instruction carries the assembly name of the assembly to be modified and modification configuration information for modifying the assembly to be modified.
And the query module is used for querying the component to be modified from the global component manager according to the component name of the component to be modified and modifying the component parameter of the component to be modified according to the modification configuration information.
And the transmission module is used for transmitting the modified component parameters to an application terminal running the target application.
In one embodiment, the component operation data processing apparatus may further include:
the early warning information generating module is configured to, after the first obtaining module 200 obtains the operation data of the component corresponding to the component instance through a predefined monitoring interface, generate early warning information corresponding to the component when the global component manager detects that there is abnormal data exceeding a preset threshold interval in the obtained operation data of the component.
And the sending module is used for sending the early warning information to a management terminal of the target application.
For specific limitations of the component operation data processing apparatus, reference may be made to the above limitations of the component operation data processing method, which are not described herein again. The components described above operate the various modules in the data processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store component operational data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a component operation data processing method.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory storing a computer program and a processor, the processor when executing the computer program implementing the steps of: receiving a starting instruction of a target application, and extracting a component instance from the target application through a preset interception mechanism; writing the component instance into a global component manager, and acquiring the running data of the component corresponding to the component instance through a predefined monitoring interface; and converting the target interface protocol of the corresponding target interface to the running data through the global component manager to obtain the visual data of the corresponding target interface.
In one embodiment, the performing, by the processor when executing the computer program, the target interface protocol conversion on the operation data by the global component manager to obtain the visualization data corresponding to the target interface protocol includes: when the target interface is an application programming interface, processing the operating data according to an application programming interface protocol through the global component manager to obtain visual data corresponding to the application programming interface; when the target interface is a management frame interface, processing the running data according to a management frame interface protocol through the global component manager to obtain visual data corresponding to the management frame interface; and when the target interface is an application performance monitoring system interface, processing the running data according to an application performance monitoring system interface protocol through the global component manager to obtain visual data corresponding to the application performance monitoring system interface.
In an embodiment, before the receiving a start instruction of a target application and extracting a component instance from the target application by a preset interception mechanism, the implementation of the processor when executing the computer program may further include: injecting the assembly and an assembly object corresponding to the assembly into a preset container through a preset injection mode, and establishing an association relationship between the assembly and the assembly object to form the assembly instance; and establishing a corresponding relation between the component instance and the predefined monitoring interface.
In one embodiment, the processor when executing the computer program may further perform the steps of: receiving a query request for operating data of a target component, wherein the query request carries component information of the target component; acquiring running data corresponding to the target component from the global component manager according to the component information of the target component; and outputting the acquired operation data corresponding to the target component.
In one embodiment, the processor when executing the computer program may further perform the steps of: receiving an assembly modification instruction for modifying an assembly to be modified, wherein the assembly modification instruction carries an assembly name of the assembly to be modified and modification configuration information for modifying the assembly to be modified; inquiring the component to be modified from the global component manager according to the component name of the component to be modified, and modifying the component parameter of the component to be modified according to the modification configuration information; and transmitting the modified component parameters to an application terminal running the target application.
In one embodiment, after the processor, implemented when executing the computer program, acquires the operation data of the component corresponding to the component instance through the predefined monitoring interface, the method may further include: when the global component manager detects that abnormal data exceeding a preset threshold interval exists in the acquired running data of the components, generating early warning information corresponding to the components; and sending the early warning information to a management terminal of the target application.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor may carry out the steps of: receiving a starting instruction of a target application, and extracting a component instance from the target application through a preset interception mechanism; writing the component instance into a global component manager, and acquiring the running data of the component corresponding to the component instance through a predefined monitoring interface; and converting the target interface protocol of the corresponding target interface to the running data through the global component manager to obtain the visual data of the corresponding target interface.
In one embodiment, the performing, by the global component manager, target interface protocol conversion on the running data to obtain visualization data corresponding to a target interface protocol when the computer program is executed by the processor includes: when the target interface is an application programming interface, processing the operating data according to an application programming interface protocol through the global component manager to obtain visual data corresponding to the application programming interface; when the target interface is a management frame interface, processing the running data according to a management frame interface protocol through the global component manager to obtain visual data corresponding to the management frame interface; and when the target interface is an application performance monitoring system interface, processing the running data according to an application performance monitoring system interface protocol through the global component manager to obtain visual data corresponding to the application performance monitoring system interface.
In one embodiment, before the computer program, implemented when executed by a processor, receives a start instruction of a target application and extracts a component instance from the target application through a preset interception mechanism, the method may further include: injecting the assembly and an assembly object corresponding to the assembly into a preset container through a preset injection mode, and establishing an association relationship between the assembly and the assembly object to form the assembly instance; and establishing a corresponding relation between the component instance and the predefined monitoring interface.
In one embodiment, the computer program when executed by the processor may further implement the steps of: receiving a query request for operating data of a target component, wherein the query request carries component information of the target component; acquiring running data corresponding to the target component from the global component manager according to the component information of the target component; and outputting the acquired operation data corresponding to the target component.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving an assembly modification instruction for modifying an assembly to be modified, wherein the assembly modification instruction carries an assembly name of the assembly to be modified and modification configuration information for modifying the assembly to be modified; inquiring the component to be modified from the global component manager according to the component name of the component to be modified, and modifying the component parameter of the component to be modified according to the modification configuration information; and transmitting the modified component parameters to an application terminal running the target application.
In one embodiment, after the computer program, when executed by the processor, obtains the operation data of the component corresponding to the component instance through the predefined monitoring interface, the method may further include: when the global component manager detects that abnormal data exceeding a preset threshold interval exists in the acquired running data of the components, generating early warning information corresponding to the components; and sending the early warning information to a management terminal of the target application.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of component operational data processing, the method comprising:
receiving a starting instruction of a target application, and extracting a component instance from the target application through a preset interception mechanism;
writing the component instance into a global component manager, and acquiring the running data of the component corresponding to the component instance through a predefined monitoring interface;
and converting the target interface protocol of the corresponding target interface to the running data through the global component manager to obtain the visual data of the corresponding target interface.
2. The method of claim 1, wherein performing, by the global component manager, target interface protocol conversion on the operation data to obtain visual data corresponding to a target interface protocol comprises:
when the target interface is an application programming interface, processing the operating data according to an application programming interface protocol through the global component manager to obtain visual data corresponding to the application programming interface;
when the target interface is a management frame interface, processing the running data according to a management frame interface protocol through the global component manager to obtain visual data corresponding to the management frame interface;
and when the target interface is an application performance monitoring system interface, processing the running data according to an application performance monitoring system interface protocol through the global component manager to obtain visual data corresponding to the application performance monitoring system interface.
3. The method according to claim 1, before the receiving a start instruction of a target application and extracting a component instance from the target application through a preset interception mechanism, further comprising:
injecting the assembly and an assembly object corresponding to the assembly into a preset container through a preset injection mode, and establishing an association relationship between the assembly and the assembly object to form the assembly instance;
and establishing a corresponding relation between the component instance and the predefined monitoring interface.
4. The method of claim 1, further comprising:
receiving a query request for operating data of a target component, wherein the query request carries component information of the target component;
acquiring running data corresponding to the target component from the global component manager according to the component information of the target component;
and outputting the acquired operation data corresponding to the target component.
5. The method of claim 1, further comprising:
receiving an assembly modification instruction for modifying an assembly to be modified, wherein the assembly modification instruction carries an assembly name of the assembly to be modified and modification configuration information for modifying the assembly to be modified;
inquiring the component to be modified from the global component manager according to the component name of the component to be modified, and modifying the component parameter of the component to be modified according to the modification configuration information;
and transmitting the modified component parameters to an application terminal running the target application.
6. The method of claim 1, after the obtaining the operation data of the component corresponding to the component instance through the predefined monitoring interface, further comprising:
when the global component manager detects that abnormal data exceeding a preset threshold interval exists in the acquired running data of the components, generating early warning information corresponding to the components;
and sending the early warning information to a management terminal of the target application.
7. A data processing apparatus, characterized in that the apparatus comprises:
the receiving and extracting module is used for receiving a starting instruction of the target application and extracting a component instance from the target application through a preset interception mechanism;
the first acquisition module is used for writing the component instance into a global component manager and acquiring the running data of the component corresponding to the component instance through a predefined monitoring interface;
and the conversion module is used for converting the target interface protocol of the corresponding target interface to the running data through the global component manager to obtain the visual data of the corresponding target interface.
8. The apparatus of claim 7, further comprising:
the first establishing module is used for establishing the incidence relation between the component and the component object in a preset injection mode to form the component instance before the receiving and extracting module receives a starting instruction of a target application and extracts the component instance from the target application through a preset interception mechanism;
and the second establishing module is used for establishing the corresponding relation between the component instance and the predefined monitoring interface.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201911258445.9A 2019-12-10 2019-12-10 Component operation data processing method and device, computer equipment and storage medium Active CN111176930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911258445.9A CN111176930B (en) 2019-12-10 2019-12-10 Component operation data processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911258445.9A CN111176930B (en) 2019-12-10 2019-12-10 Component operation data processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111176930A true CN111176930A (en) 2020-05-19
CN111176930B CN111176930B (en) 2023-02-07

Family

ID=70648779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911258445.9A Active CN111176930B (en) 2019-12-10 2019-12-10 Component operation data processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111176930B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654553A (en) * 2020-06-30 2020-09-11 平安银行股份有限公司 Management and control operation method and device based on middleware, computer equipment and medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5991794A (en) * 1997-07-15 1999-11-23 Microsoft Corporation Component integration system for an application program
US6449739B1 (en) * 1999-09-01 2002-09-10 Mercury Interactive Corporation Post-deployment monitoring of server performance
JP2002333996A (en) * 2001-02-14 2002-11-22 Ricoh Co Ltd Remote information collection method and its system
US20030005166A1 (en) * 2001-06-14 2003-01-02 Verano Tracking component manager
US20040024732A1 (en) * 2001-04-02 2004-02-05 Bryan Klisch Constructing a component management database for managing roles using a directed graph
US20050050548A1 (en) * 2003-08-28 2005-03-03 Sun Microsystems, Inc. Application internationalization using dynamic proxies
US20060080443A1 (en) * 2004-08-31 2006-04-13 Microsoft Corporation URL namespace to support multiple-protocol processing within worker processes
CN101408861A (en) * 2007-10-11 2009-04-15 鸿富锦精密工业(深圳)有限公司 Real time monitoring system and method of application program
US20150244585A1 (en) * 2014-02-26 2015-08-27 International Business Machines Corporation Dynamic extensible application server management
US20170315795A1 (en) * 2016-04-29 2017-11-02 Ca, Inc. Monitoring containerized applications
CN108595316A (en) * 2018-04-20 2018-09-28 星环信息科技(上海)有限公司 Life cycle management method, manager, equipment and the medium of Distributed Application
CN109766241A (en) * 2018-12-29 2019-05-17 中国银行股份有限公司 System monitoring method, apparatus, computer equipment and computer readable storage medium
CN110231974A (en) * 2019-06-06 2019-09-13 深圳前海微众银行股份有限公司 O&M information visuallization method, apparatus, equipment and readable storage medium storing program for executing

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5991794A (en) * 1997-07-15 1999-11-23 Microsoft Corporation Component integration system for an application program
US6449739B1 (en) * 1999-09-01 2002-09-10 Mercury Interactive Corporation Post-deployment monitoring of server performance
JP2002333996A (en) * 2001-02-14 2002-11-22 Ricoh Co Ltd Remote information collection method and its system
US20040024732A1 (en) * 2001-04-02 2004-02-05 Bryan Klisch Constructing a component management database for managing roles using a directed graph
US20030005166A1 (en) * 2001-06-14 2003-01-02 Verano Tracking component manager
US20050050548A1 (en) * 2003-08-28 2005-03-03 Sun Microsystems, Inc. Application internationalization using dynamic proxies
US20060080443A1 (en) * 2004-08-31 2006-04-13 Microsoft Corporation URL namespace to support multiple-protocol processing within worker processes
CN101408861A (en) * 2007-10-11 2009-04-15 鸿富锦精密工业(深圳)有限公司 Real time monitoring system and method of application program
US20150244585A1 (en) * 2014-02-26 2015-08-27 International Business Machines Corporation Dynamic extensible application server management
US20170315795A1 (en) * 2016-04-29 2017-11-02 Ca, Inc. Monitoring containerized applications
CN108595316A (en) * 2018-04-20 2018-09-28 星环信息科技(上海)有限公司 Life cycle management method, manager, equipment and the medium of Distributed Application
CN109766241A (en) * 2018-12-29 2019-05-17 中国银行股份有限公司 System monitoring method, apparatus, computer equipment and computer readable storage medium
CN110231974A (en) * 2019-06-06 2019-09-13 深圳前海微众银行股份有限公司 O&M information visuallization method, apparatus, equipment and readable storage medium storing program for executing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654553A (en) * 2020-06-30 2020-09-11 平安银行股份有限公司 Management and control operation method and device based on middleware, computer equipment and medium
CN111654553B (en) * 2020-06-30 2023-07-25 平安银行股份有限公司 Middleware-based management and control operation method and device, computer equipment and medium

Also Published As

Publication number Publication date
CN111176930B (en) 2023-02-07

Similar Documents

Publication Publication Date Title
CN110647438B (en) Event monitoring method and device, computer equipment and storage medium
CN109672741B (en) Micro-service monitoring method and device, computer equipment and storage medium
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN110445637B (en) Event monitoring method, system, computer device and storage medium
CN110290212B (en) Service call recording method, device, computer equipment and storage medium
CN108848142B (en) Message pushing method and device, computer equipment and storage medium
CN109039937B (en) Dynamic current limiting method, dynamic current limiting device, computer equipment and storage medium
CN108256322B (en) Security testing method and device, computer equipment and storage medium
CN108287823B (en) Message data processing method and device, computer equipment and storage medium
CN110083384B (en) Application programming interface creating method and device
CN108052440B (en) Method, device, equipment and storage medium for correcting operation logic of business system
CN110674440A (en) Buried point data processing method, system, computer device and readable storage medium
CN112000903B (en) Data query method and device, computer equipment and storage medium
CN110837956A (en) Underground cable inspection task distribution method and device
CN111143147A (en) Automatic instrument debugging method and device, computer equipment and readable storage medium
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN110674149B (en) Service data processing method and device, computer equipment and storage medium
CN111176930B (en) Component operation data processing method and device, computer equipment and storage medium
CN112181423A (en) Project construction method and device based on configuration file, computer equipment and medium
CN111274091A (en) Log processing method and device, computer equipment and storage medium
CN111224939A (en) Task request intercepting method and device, computer equipment and storage medium
CN108304289B (en) Terminal fingerprint test method and device, computer equipment and storage medium
US10191844B2 (en) Automatic garbage collection thrashing monitoring
CN112907210A (en) Execution work order distribution method, execution work order distribution device, computer equipment and storage medium
CN111416857A (en) Client crash processing method, device, system, 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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230720

Address after: No. 2-1, Building B3, Group B, Phase I, Nanning ASEAN Enterprise Headquarters Base, No. 10, Xinji Road, High tech Zone, Guangxi Zhuang Autonomous Region, 530000

Patentee after: Guangxi sanfangda Supply Chain Technology Service Co.,Ltd.

Address before: 200120 floor 15, No. 1333, Lujiazui Ring Road, Shanghai pilot Free Trade Zone

Patentee before: Weikun (Shanghai) Technology Service Co.,Ltd.