A method and device for generating dynamic flowing water
By generating dynamic flow flow, the problem of flow flow flow in the existing technology cannot be expanded is solved, and the flexible application of flow flow flow and efficient processing of the system are realized to adapt to the increased demand of peripheral systems.
Patent Information
- Application Number
- CN202111033404.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-03
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2041-09-03
AI Technical Summary
In the prior art, flow stream cannot be flexibly expanded and cannot meet the increased demands of peripheral systems, resulting in the system being unable to be used normally.
By reading the configuration information of the dynamic flow flow, multiple sub flow flow flow flow flow flow flow will be generated and combined into dynamic flow flow according to the arrangement number. The dynamic flow flow will be used to characterize events in the system and support the variable-length processing of system name, module and time information. Improve system compatibility and expansion.
It realizes flexible expansion of flow flow, reduces workload, improves the processing efficiency and compatibility of the system, and can adapt to system changes without affecting other sub-flow flow sections.
Smart Images

Figure CN113672287B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of software processing, and in particular to a method and device for generating dynamic pipelines. Background Art
[0002] In the existing software and hardware IT systems of various software industries and enterprises, the generation of serial numbers between software systems or systems is generally involved, which are used for internal or inter-system interaction. When used within the system, serial numbers can be used to distinguish the uniqueness of records, logs and data, facilitate system problem location, facilitate system data query, and facilitate personnel to conduct statistical analysis, etc. When serial numbers are used between systems, in addition to basic functions such as problem location and data recording, they can also ensure the uniqueness of system calls, strong consistency and other functions or features. In addition, multiple serial numbers can also be used to associate multiple related transactions called before and after, thereby providing a powerful expansion function for the system.
[0003] With the increasing number of systems in various industries, enterprises have brought many disadvantages to the use of traditional flow, including unclear meaning of flow, frequent changes of flow with system changes, and the inability of the system to be used normally when the flow changes. The unclear meaning of flow is mainly reflected in that the flow is essentially composed of some characters or a string, and it is difficult to easily know the meaning of the English letters or numbers in it; the frequent changes of flow with system changes are mainly reflected in that when the peripheral systems increase, the length of the flow or some characters in the flow cannot be expanded, thus failing to meet the increase in peripheral systems; the inability of the system to be used normally when the flow changes is mainly reflected in that the static flow approach in the past usually determines the meaning contained in the flow by parsing some characters in the flow, such as the name of the peripheral system, the module called by this interface, the time when the flow is generated, etc., and then performs corresponding functions or module processing according to these meanings, but when the flow changes cause these meanings to change, the past approach can no longer recognize these meanings, or even if it can recognize these meanings, it cannot make corresponding processing responses.
[0004] In the related art, most software systems generate pipelines statically, that is, in the development code, the length of the pipeline and one or some characters in the pipeline are processed with fixed length or fixed meaning, for example Figure 1 In a simple flow of information, the first 5 characters represent the system name, and the last 7 characters represent the system call time, etc. This approach has many disadvantages, including the following disadvantages:
[0005] A. When the system name is modified, the flow needs to be re-encoded and modified, that is, the entire flow needs to be modified if there is a slight change.
[0006] B. When the pipeline needs to add module information, the original pipeline must be abolished and regenerated, which not only brings a huge workload, but also makes the new pipeline incompatible with the old pipeline.
[0007] C. The meaning of the transaction is unclear. If the meaning of each string in the standard transaction is unclear, it will be difficult for non-system related personnel to identify the meaning of the transaction, which will cause great trouble for troubleshooting and also bring a lot of workload to statistical work.
[0008] Currently, no effective solution has been proposed for the above-mentioned problems existing in the related technologies. Summary of the invention
[0009] The main purpose of the present invention is to provide a method and device for generating dynamic pipelines to solve the technical problem in the related art that the pipelines cannot be expanded and thus cannot meet the increased demands of peripheral systems.
[0010] In order to achieve the above-mentioned purpose, according to one aspect of the present invention, a method for generating dynamic pipeline is provided. The invention comprises: reading the configuration information of the dynamic pipeline, wherein the configuration information includes the arrangement sequence number corresponding to each sub-pipeline segment to be generated; generating multiple sub-pipeline segments according to the configuration information and the generation rule, wherein one sub-pipeline segment is used to represent the basic information of an event in the system; combining multiple sub-pipeline segments into a dynamic pipeline according to the arrangement sequence number, wherein the dynamic pipeline is used to represent the event.
[0011] Furthermore, generating multiple sub-pipeline segments according to generation rules based on configuration information includes: determining basic information corresponding to each sub-pipeline segment to be generated based on the configuration information, the basic information at least including the following: a name corresponding to the basic information, a length corresponding to the sub-pipeline segment, valid information of the sub-pipeline segment, and an arrangement number of the sub-pipeline segment in the dynamic pipeline; determining a generation format and a character length of the basic information contained in each sub-pipeline segment to be generated based on the generation rules; generating multiple sub-pipeline segments based on the basic information corresponding to each sub-pipeline segment to be generated, the generation format of the basic information, and the character length of the basic information.
[0012] Furthermore, combining the plurality of sub-pipeline segments into a dynamic pipeline according to the arrangement sequence number includes: acquiring a host time when combining the plurality of sub-pipeline segments into the dynamic pipeline; and integrating the host time into the dynamic pipeline.
[0013] Furthermore, reading the configuration information of the dynamic pipeline includes: upon receiving the dynamic pipeline generation instruction, reading the configuration information from a configuration file or a database.
[0014] Furthermore, after reading the configuration information of the dynamic pipeline, the method further includes: caching the configuration information in the system memory; and destroying the configuration information after detecting that the event is over.
[0015] Furthermore, after combining multiple sub-pipeline segments into a dynamic pipeline according to the arrangement sequence, the method further includes: parsing the dynamic pipeline and obtaining a processing path that matches an event corresponding to the dynamic pipeline; and executing the event according to the processing path.
[0016] In order to achieve the above-mentioned purpose, according to another aspect of the present invention, a device for generating dynamic pipeline is provided. The device comprises: a reading unit, used to read the configuration information of the dynamic pipeline, wherein the configuration information includes the arrangement sequence number corresponding to each sub-pipeline segment to be generated; a generating unit, used to generate multiple sub-pipeline segments according to the configuration information and the generation rule, wherein one sub-pipeline segment is used to represent the basic information of an event in the system; and a combining unit, used to combine multiple sub-pipeline segments into a dynamic pipeline according to the arrangement sequence number, wherein the dynamic pipeline is used to represent the event.
[0017] In order to achieve the above-mentioned purpose, according to another aspect of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned method for generating dynamic pipeline.
[0018] In order to achieve the above object, according to another aspect of the present invention, a processor is provided, and the processor is used to run a program, wherein the above method for generating dynamic pipeline is executed when the program is run.
[0019] Through the present invention, the following steps are adopted: reading the configuration information of the dynamic pipeline, wherein the configuration information includes the arrangement sequence number corresponding to each sub-pipeline segment to be generated; generating multiple sub-pipeline segments according to the generation rules based on the configuration information, wherein one sub-pipeline segment is used to characterize the basic information of events in the system; combining multiple sub-pipeline segments into a dynamic pipeline according to the arrangement sequence number, wherein the dynamic pipeline is used to characterize the event, thereby solving the technical problem in the related art that the pipeline is solidified and cannot be flexibly expanded, and achieving the technical effect of flexibly using the pipeline to improve the processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:
[0021] Figure 1 is a schematic diagram of pipeline information in the related art; and
[0022] Figure 2 A flow chart of a method for generating dynamic flowing water according to an embodiment of the present invention;
[0023] Figure 3 A schematic diagram of a complete dynamic water flow provided based on this embodiment;
[0024] Figure 4 A schematic diagram of a process for loading configuration information read from a database or data file into a memory provided in an embodiment of the present application;
[0025] Figure 5 is a schematic diagram of a device for generating dynamic flowing water provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] For the convenience of description, some nouns or terms involved in the embodiments of the present invention are explained below:
[0030] Dynamic pipeline: Pipeline refers to the use of characteristic information to distinguish each record in order to maintain the uniqueness of records in IT systems in the software and hardware industries. The traditional pipeline generation method is single, such as fixed length, fixed content, fixed order, etc. Dynamic pipeline is generated through configuration.
[0031] According to an embodiment of the present invention, a method for generating dynamic flowing water is provided.
[0032] Figure 2 FIG. 1 is a flow chart of a method for generating dynamic flow water according to an embodiment of the present invention. Figure 2As shown, the invention comprises the following steps:
[0033] Step S201, reading the configuration information of the dynamic pipeline, the configuration information including the arrangement sequence number corresponding to each sub-pipeline segment to be generated;
[0034] Step S202, generating multiple sub-pipeline segments according to the configuration information and the generation rules, wherein one sub-pipeline segment is used to represent basic information of an event in the system;
[0035] Step S203, combining multiple sub-pipeline segments into a dynamic pipeline according to the arrangement sequence number, wherein the dynamic pipeline is used to represent the event.
[0036] Specifically, in the method for generating dynamic pipeline provided in the present application, the pipeline is configured through configuration information. First, multiple sub-pipeline segments are generated according to the configuration information, and then the sub-pipeline segments are combined into a complete dynamic pipeline. The dynamic pipeline is used to characterize events that will occur in the system.
[0037] Each sub-pipeline segment represents a basic information in the event, such as the system name, calling module, execution event, etc. that represent the execution event.
[0038] Optionally, generating multiple sub-pipeline segments according to the configuration information and the generation rule includes:
[0039] According to the configuration information, basic information corresponding to each sub-pipeline segment to be generated is determined, and the basic information at least includes the following contents: a name corresponding to the basic information, a length corresponding to the sub-pipeline segment, valid information of the sub-pipeline segment, and an arrangement number of the sub-pipeline segment in the dynamic pipeline;
[0040] like Figure 3 As shown, Figure 3 This is a schematic diagram of a complete dynamic pipeline generated based on a dynamic pipeline generation method provided in this embodiment. This dynamic pipeline includes three sub-pipeline segments, namely a sub-pipeline segment for defining a name, a sub-pipeline segment for defining a module, and a sub-pipeline segment for defining time.
[0041] Specifically, each sub-pipeline segment is configured by reading the configuration information, such as Figure 3 As shown, each sub-pipeline segment includes the arrangement sequence number of the sub-pipeline segment in the dynamic pipeline, the name of the sub-pipeline segment, the length of the sub-pipeline segment and the validity information of the sub-pipeline segment, that is, whether the sub-pipeline segment is valid.
[0042] By configuring multiple sub-pipeline segments according to the configuration information, the fixed order of the static pipeline is processed dynamically, that is, after changing the arrangement sequence number of the sub-pipeline segment, the dynamic pipeline is changed accordingly.
[0043] On the other hand, naming each sub-pipeline segment helps the system to simply identify it and perform program logic processing and response based on the name information.
[0044] On the other hand, the length of the sub-flow section can also be adjusted accordingly, which helps to variable the length of each flow section and improves the compatibility and scalability of the system flow.
[0045] On the other hand, since the valid information of each sub-pipeline segment is defined, when it is detected that the sub-pipeline segment is in an invalid state, the invalid sub-pipeline segment can be deleted. It should be noted that the valid time period of the sub-pipeline segment can also be defined in the sub-pipeline segment, that is, the time period during which the sub-pipeline segment is in a valid state.
[0046] It should be noted that the sub-pipeline segment can also define the meaning of each corresponding sub-pipeline segment. The defined meaning helps users or relevant personnel to clearly understand the true meaning of each pipeline segment without having to guess.
[0047] It should also be noted that other information may be defined in the sub-pipeline segment so that the pipeline information may be version controlled, which will not be described in detail here.
[0048] In the embodiments provided in the present application, dynamic pipeline is generated directly inside the machine by combining various sub-pipeline segments. When combined, the above basic information is produced by information configuration. The sequence number involved is obtained by distributed pipeline technology or database sequence technology. When generating dynamic pipeline, the basic information defined by the above sub-pipeline segments is combined with the sequence number to generate dynamic pipeline in real time in the host for use by the system.
[0049] Optionally, according to the generation rule, determining the generation format and character length of the basic information contained in each to-be-generated sub-pipeline segment;
[0050] As described above, the composition of the sub-pipeline segment is defined by the configuration information, and each sub-pipeline segment needs to be generated according to the generation rules, wherein the generation rules are used to define the character generation format and character length in the sub-pipeline segment, for example, whether the serial number in the sub-pipeline segment is generated as 1 or NO.1.
[0051] As mentioned above, the generation rule of the sub-pipeline segment is also the configuration rule of the sub-pipeline segment.
[0052] Optionally, multiple sub-pipeline segments are generated according to basic information corresponding to each sub-pipeline segment to be generated, a generation format of the basic information, and a character length of the basic information.
[0053] It should be noted that the content of each sub-flow segment in the dynamic flow provided by this application is not fixed. Figure 3As shown, after the first configured pipeline is generated, the first pipeline segment is the system name, while the first pipeline segment of the second pipeline is time. Such segmented processing will bring great flexible processing capabilities to the system and greatly enhance the system's recording capabilities.
[0054] It should also be noted that the dynamic pipeline provided by this application has the function of divide and conquer, that is, when each sub-pipeline segment of the dynamic pipeline changes, only the sub-pipeline segment needs to be adjusted, and no other sub-pipeline segment information needs to be adjusted. This processing reduces the workload of modification and also enhances compatibility. As shown in the following figure, when the system changes from A to B, only the system related information needs to be modified, and the module and time information does not need to be modified.
[0055] It should also be noted that the dynamic pipeline provided by this application can be processed in non-fixed length. Traditional pipelines are basically processed using fixed-length pipeline segments, which will result in a fixed length that is difficult to adjust and a large amount of storage space is wasted. Figure 3 As shown in the figure, when the Module field only requires a length of 1 in the system, you only need to modify the length value from 2 to 1, and there is no need to change any other information. In this way, the length of the Module in the generated flow is 1.
[0056] Optionally, combining the plurality of sub-flow segments into a dynamic flow according to the arrangement sequence number includes: acquiring a host time when combining the plurality of sub-flow segments into the dynamic flow; and integrating the host time into the dynamic flow.
[0057] As described above, while combining multiple sub-flow segments into a dynamic flow, it is also necessary to obtain the host time and integrate the host time into the dynamic flow. By integrating the host time into the dynamic flow, the problem can be traced through the time integrated into the dynamic flow in the subsequent processing process.
[0058] Optionally, reading the configuration information of the dynamic pipeline includes: upon receiving the dynamic pipeline generation instruction, reading the configuration information from a configuration file or a database.
[0059] As described above, when a dynamic pipeline generation instruction is received, the configuration file is read from a configuration file (also called a data file) or a database, and the configuration information is loaded into the memory to achieve efficient processing of the pipeline generation configuration information, such as Figure 4 As shown, the configuration information can be loaded by obtaining the configuration information in memory instead of obtaining it from the disk.
[0060] Optionally, after reading the configuration information of the dynamic pipeline, the method further includes: caching the configuration information in the system memory; and destroying the configuration information after detecting that the event is over.
[0061] As described above, the system caches the configuration information of the dynamic pipeline in the memory, and the information will be cached in the memory until the application ends.
[0062] Optionally, after combining multiple sub-pipeline segments into a dynamic pipeline according to the arrangement sequence, the method further includes: parsing the dynamic pipeline and obtaining a processing path that matches an event corresponding to the dynamic pipeline; and executing the event according to the processing path.
[0063] Specifically, since dynamic pipeline is used to represent an event, the system used to generate dynamic pipeline or the interaction between related systems, the processing path of the event corresponding to the dynamic pipeline can be obtained by analyzing the dynamic pipeline, for example: Figure 3 As shown in the dynamic flow of water, Figure 3 The dynamic pipeline in indicates that at a specific time, a system calls a module.
[0064] A method for generating dynamic pipeline provided by an embodiment of the present invention comprises reading configuration information of the dynamic pipeline, wherein the configuration information includes an arrangement sequence number corresponding to each sub-pipeline segment to be generated; generating multiple sub-pipeline segments according to generation rules based on the configuration information, wherein one sub-pipeline segment is used to characterize basic information of events in the system; combining multiple sub-pipeline segments into dynamic pipeline according to the arrangement sequence number, wherein the dynamic pipeline is used to characterize events, thereby solving the technical problem in the related art that the pipeline is solidified and cannot be flexibly expanded, and achieving the technical effect of flexibly using the pipeline to improve processing efficiency.
[0065] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0066] The embodiment of the present invention further provides a device for generating dynamic flowing water. It should be noted that the device for generating dynamic flowing water in the embodiment of the present invention can be used to execute the method for generating dynamic flowing water provided in the embodiment of the present invention. The device for generating dynamic flowing water provided in the embodiment of the present invention is introduced below.
[0067] Figure 5 Schematic diagram of a device for generating dynamic flowing water according to an embodiment of the present invention. Figure 5 As shown, the device comprises:
[0068] A reading unit 501 is used to read the configuration information of the dynamic pipeline, wherein the configuration information includes the arrangement sequence number corresponding to each sub-pipeline segment to be generated;
[0069] A generating unit 502, configured to generate a plurality of sub-pipeline segments according to the configuration information and the generating rules, wherein a sub-pipeline segment is used to represent basic information of an event in the system;
[0070] The combining unit 503 is used to combine multiple sub-pipeline segments into a dynamic pipeline according to the arrangement sequence, wherein the dynamic pipeline is used to represent an event.
[0071] Optionally, the generation unit 502 includes: a first determination subunit, used to determine the basic information corresponding to each sub-pipeline segment to be generated based on the configuration information, the basic information including at least the following contents: the name corresponding to the basic information, the length corresponding to the sub-pipeline segment, the valid information of the sub-pipeline segment, and the arrangement sequence number of the sub-pipeline segment in the dynamic pipeline; a second determination subunit, used to determine the generation format and character length of the basic information contained in each sub-pipeline segment to be generated based on the generation rules; a generation subunit, used to generate multiple sub-pipeline segments based on the basic information corresponding to each sub-pipeline segment to be generated, the generation format of the basic information and the character length of the basic information.
[0072] Optionally, the combining unit 503 includes: an acquiring subunit, used for acquiring the host time when combining multiple sub-pipeline segments into a dynamic pipeline; and a fusion subunit, used for fusion of the host time into the dynamic pipeline.
[0073] Optionally, the reading unit 501 includes: when receiving a dynamic pipeline generation instruction, reading configuration information from a configuration file or a database.
[0074] Optionally, the device further includes: a cache unit, used to cache the configuration information in the system memory after reading the configuration information of the dynamic pipeline; and a destruction unit, used to destroy the configuration information after detecting that the event is over.
[0075] Optionally, the device further includes: a parsing unit, which is used to parse the dynamic pipeline and obtain a processing path matching the event corresponding to the dynamic pipeline after combining multiple sub-pipeline segments into a dynamic pipeline according to the arrangement sequence number; and an execution unit, which is used to execute the event according to the processing path.
[0076] An embodiment of the present invention provides a device for generating dynamic pipeline, which uses a reading unit 501 to read the configuration information of the dynamic pipeline, wherein the configuration information includes an arrangement number corresponding to each sub-pipeline segment to be generated; a generating unit 502 is used to generate multiple sub-pipeline segments according to a generation rule based on the configuration information, wherein a sub-pipeline segment is used to represent basic information of an event in the system; a combining unit 503 is used to combine multiple sub-pipeline segments into a dynamic pipeline according to the arrangement number, wherein the dynamic pipeline is used to represent an event, thereby solving the technical problem in the related art that the pipeline is solidified and cannot be flexibly expanded, and achieving the technical effect of flexibly using the pipeline to improve processing efficiency.
[0077] A device for generating dynamic flow includes a processor and a memory. The reading unit 501 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
[0078] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the technical problem of pipeline solidification and inflexible expansion in related technologies can be solved by adjusting kernel parameters.
[0079] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0080] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, a method for generating dynamic pipeline is implemented.
[0081] An embodiment of the present invention provides a processor, which is used to run a program, wherein a method for generating dynamic pipeline is executed when the program is run.
[0082] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: reading configuration information of a dynamic pipeline, wherein the configuration information includes an arrangement sequence number corresponding to each sub-pipeline segment to be generated; generating multiple sub-pipeline segments according to a generation rule based on the configuration information, wherein one sub-pipeline segment is used to characterize basic information of an event within the system; and combining multiple sub-pipeline segments into a dynamic pipeline based on the arrangement sequence number, wherein the dynamic pipeline is used to characterize the event.
[0083] Optionally, generating multiple sub-pipeline segments according to generation rules based on configuration information includes: determining basic information corresponding to each sub-pipeline segment to be generated based on the configuration information, the basic information including at least the following: a name corresponding to the basic information, a length corresponding to the sub-pipeline segment, valid information of the sub-pipeline segment, and an arrangement number of the sub-pipeline segment in the dynamic pipeline; determining a generation format and a character length of the basic information contained in each sub-pipeline segment to be generated based on the generation rules; generating multiple sub-pipeline segments based on the basic information corresponding to each sub-pipeline segment to be generated, the generation format of the basic information, and the character length of the basic information.
[0084] Optionally, combining the plurality of sub-flow segments into a dynamic flow according to the arrangement sequence number includes: acquiring a host time when combining the plurality of sub-flow segments into the dynamic flow; and integrating the host time into the dynamic flow.
[0085] Optionally, reading the configuration information of the dynamic pipeline includes: upon receiving the dynamic pipeline generation instruction, reading the configuration information from a configuration file or a database.
[0086] Optionally, after reading the configuration information of the dynamic pipeline, the method further includes: caching the configuration information in the system memory; and destroying the configuration information after detecting that the event is over.
[0087] Optionally, after combining multiple sub-pipeline segments into a dynamic pipeline according to the arrangement sequence, the method further includes: parsing the dynamic pipeline and obtaining a processing path matching an event corresponding to the dynamic pipeline; and executing the event according to the processing path. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0088] The present invention also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: reading configuration information of a dynamic pipeline, the configuration information including an arrangement sequence number corresponding to each sub-pipeline segment to be generated; generating multiple sub-pipeline segments according to generation rules based on the configuration information, wherein one sub-pipeline segment is used to characterize basic information of an event within the system; combining multiple sub-pipeline segments into a dynamic pipeline based on the arrangement sequence number, wherein the dynamic pipeline is used to characterize the event.
[0089] Optionally, generating multiple sub-pipeline segments according to generation rules based on configuration information includes: determining basic information corresponding to each sub-pipeline segment to be generated based on the configuration information, the basic information including at least the following: a name corresponding to the basic information, a length corresponding to the sub-pipeline segment, valid information of the sub-pipeline segment, and an arrangement number of the sub-pipeline segment in the dynamic pipeline; determining a generation format and a character length of the basic information contained in each sub-pipeline segment to be generated based on the generation rules; generating multiple sub-pipeline segments based on the basic information corresponding to each sub-pipeline segment to be generated, the generation format of the basic information, and the character length of the basic information.
[0090] Optionally, combining the plurality of sub-flow segments into a dynamic flow according to the arrangement sequence number includes: acquiring a host time when combining the plurality of sub-flow segments into the dynamic flow; and integrating the host time into the dynamic flow.
[0091] Optionally, reading the configuration information of the dynamic pipeline includes: upon receiving the dynamic pipeline generation instruction, reading the configuration information from a configuration file or a database.
[0092] Optionally, after reading the configuration information of the dynamic pipeline, the method further includes: caching the configuration information in the system memory; and destroying the configuration information after detecting that the event is over.
[0093] Optionally, after combining multiple sub-pipeline segments into a dynamic pipeline according to the arrangement sequence, the method further includes: parsing the dynamic pipeline and obtaining a processing path that matches an event corresponding to the dynamic pipeline; and executing the event according to the processing path.
[0094] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0095] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0096] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0097] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0098] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0099] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0100] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0101] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0102] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0103] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A method for generating dynamic flowing water, characterized in that: include: Reading the configuration information of the dynamic pipeline, wherein the configuration information includes the arrangement sequence number corresponding to each sub-pipeline segment to be generated; Generate multiple sub-pipeline segments according to the configuration information and generation rules, wherein one sub-pipeline segment is used to represent basic information of an event in the system; Combining a plurality of the sub-pipeline segments into a dynamic pipeline according to the arrangement sequence number, wherein the dynamic pipeline is used to characterize the event, and after the arrangement sequence number of the sub-pipeline segment is changed, the dynamic pipeline characteristic changes accordingly; generating a plurality of sub-pipeline segments according to the generation rules based on the configuration information comprises: determining the basic information corresponding to each sub-pipeline segment to be generated according to the configuration information, wherein the basic information at least includes the following contents: a name corresponding to the basic information, a length corresponding to the sub-pipeline segment, valid information of the sub-pipeline segment, and an arrangement sequence number of the sub-pipeline segment in the dynamic pipeline; determining the generation format and character length of the basic information contained in each sub-pipeline segment to be generated according to the generation rules; generating a plurality of the sub-pipeline segments according to the basic information corresponding to each sub-pipeline segment to be generated, the generation format of the basic information, and the character length of the basic information.
2. The method according to claim 1, characterized in that Combining the plurality of sub-pipeline segments into a dynamic pipeline according to the arrangement sequence number comprises: Acquire the host time when a plurality of the sub-pipeline segments are combined into the dynamic pipeline; The host time is integrated into the dynamic flow.
3. The method according to claim 1, characterized in that The configuration information for reading dynamic pipeline includes: When a dynamic pipeline generation instruction is received, the configuration information is read from a configuration file or a database.
4. The method according to claim 1, characterized in that: After reading the configuration information of the dynamic pipeline, the method further includes: caching the configuration information in a system memory; After detecting that the event is finished, destroying the configuration information.
5. The method according to claim 1, characterized in that After combining the plurality of sub-pipeline segments into a dynamic pipeline according to the arrangement sequence number, the method further comprises: Parsing the dynamic pipeline and obtaining a processing path matching an event corresponding to the dynamic pipeline; The event is executed according to the processing path.
6. A device for generating dynamic flowing water, characterized in that: include: A reading unit, used to read the configuration information of the dynamic pipeline, wherein the configuration information includes the arrangement sequence number corresponding to each sub-pipeline segment to be generated; A generating unit, configured to generate a plurality of sub-pipeline segments according to the configuration information and a generating rule, wherein one of the sub-pipeline segments is used to represent basic information of an event in the system; A combining unit is used to combine the plurality of sub-pipeline segments into a dynamic pipeline according to the arrangement sequence number, wherein the dynamic pipeline is used to characterize the event.
7. The device according to claim 6, characterized in that The generating unit comprises: A first determining subunit is used to determine the basic information corresponding to each sub-pipeline segment to be generated according to the configuration information, wherein the basic information at least includes the following contents: a name corresponding to the basic information, a length corresponding to the sub-pipeline segment, valid information of the sub-pipeline segment, and an arrangement number of the sub-pipeline segment in the dynamic pipeline; A second determining subunit is used to determine the generation format and character length of the basic information contained in each of the to-be-generated sub-pipeline segments according to the generation rule; A generating sub-unit is used to generate a plurality of the sub-pipeline segments according to the basic information corresponding to each of the sub-pipeline segments to be generated, the generating format of the basic information and the character length of the basic information.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute a method for generating dynamic flow water as described in any one of claims 1 to 5.
9. A processor, characterized in that: The processor is used to run a program, wherein the program, when running, executes a method for generating dynamic pipeline as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method and system for processing remote procedure call request
CN102594891A
Chronological file analysis method and device, computer equipment and storage medium
CN111352907A
Method for automatically deploying OpenStack cloud platform assembly line
CN112882724A
Method, apparatus, and computer-readable medium for dynamic hierarchical data flow mapping
US20200409946A1
