CN113672287A - Method and device for generating dynamic running water - Google Patents

Method and device for generating dynamic running water Download PDF

Info

Publication number
CN113672287A
CN113672287A CN202111033404.7A CN202111033404A CN113672287A CN 113672287 A CN113672287 A CN 113672287A CN 202111033404 A CN202111033404 A CN 202111033404A CN 113672287 A CN113672287 A CN 113672287A
Authority
CN
China
Prior art keywords
sub
dynamic
flow
water
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111033404.7A
Other languages
Chinese (zh)
Inventor
鲍远来
刘伟煜
王磊
朱纯磊
苏欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Postal Savings Bank of China Ltd
Original Assignee
Postal Savings Bank of China 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 Postal Savings Bank of China Ltd filed Critical Postal Savings Bank of China Ltd
Priority to CN202111033404.7A priority Critical patent/CN113672287A/en
Publication of CN113672287A publication Critical patent/CN113672287A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3867Concurrent instruction execution, e.g. pipeline or look ahead using instruction pipelines
    • G06F9/3869Implementation aspects, e.g. pipeline latches; pipeline synchronisation and clocking

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a device for generating dynamic running water. The invention comprises the following steps: reading configuration information of the dynamic flow, wherein the configuration information comprises a sequence number corresponding to each sub-flow section to be generated; generating a plurality of sub-flow sections according to configuration information and a generation rule, wherein one sub-flow section is used for representing basic information of events in the system; and combining the plurality of sub-stream segments into dynamic stream according to the sequence number, wherein the dynamic stream is used for representing the event. The invention solves the technical problem that the flow curing in the related technology can not be flexibly expanded.

Description

Method and device for generating dynamic running water
Technical Field
The invention relates to the field of software processing, in particular to a method and a device for generating dynamic running water.
Background
In the existing software and hardware IT systems of various software industries and enterprises, the serial number generation of software systems or systems is generally involved, the serial number generation is used for the internal or interactive use of the systems, and the serial number generation can be used for distinguishing the uniqueness of records, logs and data when the serial number generation is used in the internal of the systems, so that the problems of the systems are conveniently located, the systems can conveniently inquire the data, and personnel can conveniently perform statistical analysis and the like. When the pipeline is used among systems, besides basic functions such as problem positioning, data recording and the like, the functions or characteristics of uniqueness, strong consistency and the like of system calling can be ensured, and in addition, multiple related transactions of front and back calling can be related through a plurality of pipeline numbers, so that powerful expanding functions of the system are provided.
With more and more systems in various industries, enterprises use traditional flowing water to bring about a plurality of disadvantages, wherein the meaning of the flowing water is not clear, the flowing water changes along with the change of the systems frequently, and the systems cannot be used normally when the flowing water changes. The ambiguity of flowing water is mainly reflected in that flowing water is essentially composed of characters or a character string, and English letters or numbers in the flowing water cannot easily know the meanings of the characters or the character string; the frequent change of running water along with the change of the system is mainly reflected in that when the peripheral system is increased, the length of the running water or certain characters in the running water cannot be expanded, so that the increasing requirements of the peripheral system cannot be met; the reason why the system cannot be normally used when the pipeline changes is mainly that the past static pipeline practice generally determines meanings contained in the pipeline by analyzing some characters in the pipeline, such as peripheral system names, present interface calling modules, pipeline generation time, and the like, and then performs corresponding function or module processing according to the meanings, but when the pipeline changes, the meaning cannot be recognized any more, or even if the meaning can be recognized, a corresponding processing response cannot be made.
In the related art, most software systems are statically used to generate running water, that is, the running water length and one or some characters in the running water are processed with fixed length or fixed meaning in the development code, for example, a simple running water message in fig. 1, the first 5 characters represent the system name, and the last 7 characters represent the system call time, and the like, which has great disadvantages, including the following disadvantages:
A. when the system name is modified, the flow needs to be re-encoded and modified, namely, if the system name is slightly modified, the whole flow needs to be modified.
B. When module information needs to be added in the running water, the original running water needs to be abandoned and regenerated, so that huge workload is brought, and new running water and old running water cannot be compatible.
C. The flowing water meaning is not clear, and the meaning of each character string in the standard flowing water is not clear, so that the non-system related personnel can hardly recognize the meaning represented by the flowing water, thereby bringing great trouble to the problem troubleshooting and bringing great workload to the statistical work.
In view of the above problems in the related art, no effective solution has been proposed.
Disclosure of Invention
The invention mainly aims to provide a method and a device for generating dynamic running water, so as to solve the technical problem that the running water in the related technology cannot be expanded and further cannot meet the increased requirements of a peripheral system.
To achieve the above object, according to one aspect of the present invention, there is provided a method of generating a dynamic flow water. The invention comprises the following steps: reading configuration information of the dynamic flow, wherein the configuration information comprises a sequence number corresponding to each sub-flow section to be generated; generating a plurality of sub-flow sections according to configuration information and a generation rule, wherein one sub-flow section is used for representing basic information of events in the system; and combining the plurality of sub-stream segments into dynamic stream according to the sequence number, wherein the dynamic stream is used for representing the event.
Further, generating a plurality of sub-flow water segments according to the configuration information and the generation rule includes: according to the configuration information, determining basic information corresponding to each sub-flow water segment to be generated, wherein the basic information at least comprises the following contents: the name corresponding to the basic information, the length corresponding to the sub-flow water section, the effective information of the sub-flow water section and the arrangement serial number of the sub-flow water section in the dynamic flow water; determining the generation format and the character length of the basic information contained in each sub-flow section to be generated according to the generation rule; and generating a plurality of sub-flow water segments according to the basic information corresponding to each sub-flow water segment to be generated, the generation format of the basic information and the character length of the basic information.
Further, combining the plurality of sub-stream segments into the dynamic stream according to the permutation sequence number includes: acquiring host machine time when a plurality of sub-flow water segments are combined into dynamic flow water; and fusing the host time into the dynamic flowing water.
Further, reading configuration information of the dynamic pipeline includes: and when the dynamic pipeline generation instruction is received, reading the configuration information from the configuration file or the database.
Further, after reading the configuration information of the dynamic pipeline, the method further comprises: caching the configuration information in a system memory; and destroying the configuration information after the event is detected to be finished.
Further, after combining the plurality of sub-stream segments into the dynamic stream according to the sequence number, the method further includes: analyzing the dynamic flow and acquiring a processing path matched with the event corresponding to the dynamic flow; and executing the event according to the processing path.
To achieve the above object, according to another aspect of the present invention, there is provided an apparatus for generating dynamic running water. The device includes: the reading unit is used for reading the configuration information of the dynamic flow, and the configuration information comprises the arrangement serial number corresponding to each sub-flow section to be generated; the generating unit is used for generating a plurality of sub-flow water sections according to the configuration information and a generating rule, wherein one sub-flow water section is used for representing basic information of events in the system; and the combination unit is used for combining the plurality of sub-flowing water segments into dynamic flowing water according to the sequence number, wherein the dynamic flowing water is used for representing the event.
To achieve the above object, according to another aspect of the present invention, there is provided a computer-readable storage medium, a computer-readable storage medium comprising a stored program, wherein the program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the above method for generating dynamic flow.
To achieve the above object, according to another aspect of the present invention, there is provided a processor for executing a program, wherein the program executes the above method for generating dynamic pipelining.
The invention adopts the following steps: reading configuration information of the dynamic flow, wherein the configuration information comprises a sequence number corresponding to each sub-flow section to be generated; generating a plurality of sub-flow sections according to configuration information and a generation rule, wherein one sub-flow section is used for representing basic information of events in the system; and combining the plurality of sub-stream segments into dynamic stream according to the sequence number, wherein the dynamic stream is used for representing events, so that the technical problem that stream solidification in the related technology cannot be flexibly expanded is solved, and the technical effect of flexibly utilizing the stream to improve the treatment efficiency is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic diagram of flow information in the related art; and
FIG. 2 is a flow chart of a method for generating dynamic pipelining according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a complete dynamic flow water provided according to this embodiment;
fig. 4 is a schematic diagram illustrating a process of loading configuration information read from a database or a data file into a memory according to an embodiment of the present application;
fig. 5 is a schematic diagram of an apparatus for generating dynamic flowing water according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged under appropriate circumstances in order to facilitate the description of the embodiments of the invention herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of description, some terms or expressions referring to the embodiments of the present invention are explained below:
dynamic flowing water: the pipelining refers to that in an IT system in the software and hardware industry, in order to keep the uniqueness of records, each record is distinguished by using one piece of characteristic information, the traditional pipelining method is that a single, for example, fixed length, fixed content, fixed sequence and the like, and dynamic pipelining is generated through configuration.
According to an embodiment of the invention, a method of generating a dynamic flow is provided.
Fig. 2 is a flowchart of a method for generating a dynamic flow according to an embodiment of the present invention. As shown in fig. 2, the present invention comprises the steps of:
step S201, reading configuration information of the dynamic flow, wherein the configuration information comprises an arrangement serial number corresponding to each sub-flow section to be generated;
step S202, generating a plurality of sub-flow water segments according to configuration information and a generation rule, wherein one sub-flow water segment is used for representing basic information of events in the system;
step S203, combining the plurality of sub-stream segments into dynamic stream according to the sequence number, wherein the dynamic stream is used for representing the event.
Specifically, in the method for generating dynamic running water provided by the present application, the running water is configured according to the configuration information, a plurality of sub-flow water segments are generated according to the configuration information, and then the sub-flow water segments are combined into complete dynamic running water, and the dynamic running water is used for representing events to be generated in the system.
Each sub-flow section characterizes one basic information in the event, such as a system name characterizing the execution event, a calling module, an execution event, and the like.
Optionally, generating the plurality of sub-flow water segments according to the configuration information and the generation rule includes:
according to the configuration information, determining basic information corresponding to each sub-flow water segment to be generated, wherein the basic information at least comprises the following contents: the name corresponding to the basic information, the length corresponding to the sub-flow water section, the effective information of the sub-flow water section and the arrangement serial number of the sub-flow water section in the dynamic flow water;
as shown in fig. 3, fig. 3 is a schematic diagram of a complete dynamic flow generated based on the method for generating a dynamic flow provided in this embodiment, where the dynamic flow includes three sub-flow water segments, which are a sub-flow water segment for defining a name, a sub-flow water segment for defining a module, and a sub-flow water segment for defining a time.
Specifically, each sub-flow water segment is configured by the read configuration information, as shown in fig. 3, each sub-flow water segment includes an arrangement serial number of the sub-flow water segment in the dynamic flow water, a name of the sub-flow water segment, a length of the sub-flow water segment, and valid information of the sub-flow water segment, that is, whether the sub-flow water segment is valid.
The static flowing water is dynamically processed in a fixed sequence by configuring a plurality of sub-flowing water segments according to the configuration information, namely, after the sequence number of the sub-flowing water segments is changed, the dynamic flowing water is changed.
On the other hand, name naming is carried out on each sub-flow water segment, so that the system can carry out simple identification and program logic processing and response according to name information.
On the other hand, the length of the sub-flowing water section can be correspondingly adjusted and changed, which is beneficial to lengthening each flowing water section, and improves the compatibility and expansibility of the flowing water of the system.
On the other hand, since the valid information of each sub-flow water segment is defined, when the sub-flow water segment is detected to be in the invalid state, the invalid sub-flow water segment can be deleted, and it should be noted that the valid time period of the sub-flow water segment can also be defined in the sub-flow water segment, that is, in which time period the sub-flow water segment is in the valid state.
It should be noted that the sub-flow water segments can also define the meaning of each corresponding sub-flow water segment, and the defined meaning helps a user or related personnel to clearly understand the true meaning of each segment of the flowing water without performing guessing and other actions.
It should be further noted that other information may be defined in the sub-stream segment, so that the stream information may be versioned and controlled, which is not described herein again.
In the embodiment provided by the application, the dynamic flow is generated by combining the sub-flow sections directly inside the machine, and when the sub-flow sections are combined, the basic information is generated in an information configuration mode.
Optionally, determining a generation format and a character length of basic information contained in each sub-flow section to be generated according to a generation rule;
as described above, the configuration information defines the structure of the sub-stream segments, and each sub-stream segment needs to be generated according to the generation rule, where the generation rule is used to define the character generation format and the character length in the sub-stream segment, for example, whether the generation mode of the serial number in the sub-stream segment is 1 or No. 1.
As described above, the generation rule of the sub-stream segment is also the configuration rule of the sub-stream segment.
Optionally, a plurality of sub-flow water segments are generated according to the basic information corresponding to each sub-flow water segment to be generated, the generation format of the basic information, and the character length of the basic information.
It should be noted that, the content of each sub-stream segment in the dynamic stream provided by the present application is not fixed, as shown in fig. 3, after the first configured stream is generated, the first stream segment is the system name, and the first stream segment of the second stream is time, such a segmentation process will bring great flexible processing capability to the system, and the recording capability of the system is greatly enhanced.
Meanwhile, it is also noted that the dynamic running water provided by the present application has a divide-and-conquer function, that is, when each sub-flow water segment of the dynamic running water changes, only the sub-flow water segment needs to be adjusted, and other sub-flow water segment information does not need to be adjusted. As shown in the following, when the System is changed from A to B, only System related information needs to be modified, and Module and Time information does not need to be modified.
In addition, it is further noted that the dynamic running water provided by the present application may perform non-fixed-length processing, and the conventional running water basically uses a fixed-length running water segment processing manner, which may cause the length to be fixed and not to be easily adjusted, and a large amount of storage space is wasted, as shown in fig. 3, when the Module field only needs the length of unit 1 in the system, only the length value needs to be modified from 2 to 1, and no other information needs to be changed, so that the length of the Module in the generated running water is 1.
Optionally, the combining the plurality of sub-stream segments into the dynamic stream according to the permutation sequence number includes: acquiring host machine time when a plurality of sub-flow water segments are combined into dynamic flow water; and fusing the host time into the dynamic flowing water.
In the above, when the plurality of sub-flow water segments are combined into the dynamic flow water, the host time is also required to be acquired, the host time is fused into the dynamic flow water, and by fusing the host time into the dynamic flow water, the problem tracing can be performed through the time of the dynamic flow water fusion in the subsequent processing process.
Optionally, reading the configuration information of the dynamic flow comprises: and when the dynamic pipeline generation instruction is received, reading the configuration information from the configuration file or the database.
As described above, when the dynamic pipeline generation instruction is received, the configuration file (also called a data file) or the database is read, and the configuration information is loaded into the memory to implement efficient processing of the pipeline generation configuration information, as shown in fig. 4, the configuration information is obtained from the memory instead of the disk, so that the configuration information can be loaded.
Optionally, after reading the configuration information of the dynamic pipeline, the method further includes: caching the configuration information in a system memory; and destroying the configuration information after the event is detected to be finished.
In the above way, the system caches the configuration information of the dynamic flow in the memory, and the information is cached in the memory until the application program is finished and is destroyed.
Optionally, after combining the plurality of sub-stream segments into the dynamic stream according to the permutation sequence number, the method further includes: analyzing the dynamic flow and acquiring a processing path matched with the event corresponding to the dynamic flow; and executing the event according to the processing path.
Specifically, since the dynamic flow is used to characterize an event, and the interaction between systems for generating the dynamic flow or the associated systems, the processing path of the event corresponding to the dynamic flow can be known by analyzing the dynamic flow, for example: as shown in the dynamic pipeline of FIG. 3, the dynamic pipeline of FIG. 3 indicates that a certain system calls a certain module at a certain time.
The method for generating dynamic flow provided by the embodiment of the invention reads the configuration information of the dynamic flow, wherein the configuration information comprises the corresponding arrangement serial number of each sub-flow segment to be generated; generating a plurality of sub-flow sections according to configuration information and a generation rule, wherein one sub-flow section is used for representing basic information of events in the system; and combining the plurality of sub-stream segments into dynamic stream according to the sequence number, wherein the dynamic stream is used for representing events, so that the technical problem that stream solidification in the related technology cannot be flexibly expanded is solved, and the technical effect of flexibly utilizing the stream to improve the treatment efficiency is achieved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment of the present invention further provides a device for generating dynamic flow water, and it should be noted that the device for generating dynamic flow water according to the embodiment of the present invention may be used to execute the method for generating dynamic flow water provided by the embodiment of the present invention. The following describes an apparatus for generating dynamic running water according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of an apparatus for generating dynamic flowing water according to an embodiment of the present invention. As shown in fig. 5, the apparatus includes:
a reading unit 501, configured to read configuration information of the dynamic pipelining, where the configuration information includes a sequence number corresponding to each sub-pipelining segment to be generated;
the generating unit 502 is configured to generate a plurality of sub-flow water segments according to the configuration information and a generating rule, where one sub-flow water segment is used to represent basic information of an event in the system;
a combining unit 503, configured to combine the multiple sub-stream segments into a dynamic stream according to the sequence number, where the dynamic stream is used to characterize the event.
Optionally, the generating unit 502 includes: the first determining subunit is configured to determine, according to the configuration information, basic information corresponding to each to-be-generated sub-flow section, where the basic information at least includes the following contents: the name corresponding to the basic information, the length corresponding to the sub-flow water section, the effective information of the sub-flow water section and the arrangement serial number of the sub-flow water section in the dynamic flow water; the second determining subunit is used for determining the generation format and the character length of the basic information contained in each sub-flow section to be generated according to the generation rule; and the generating subunit is used for generating a plurality of sub-flow water segments according to the basic information corresponding to each sub-flow water segment to be generated, the generating format of the basic information and the character length of the basic information.
Optionally, the combining unit 503 includes: the acquisition subunit is used for acquiring the host time when the plurality of sub-flow sections are combined into the dynamic flow; and the fusion subunit is used for fusing the host time into the dynamic flowing water.
Alternatively, the reading unit 501 includes: and when the dynamic pipeline generation instruction is received, reading the configuration information from the configuration file or the database.
Optionally, the apparatus further comprises: the cache unit is used for caching the configuration information in a system memory after reading the configuration information of the dynamic flow; and the destroying unit is used for destroying the configuration information after the event is detected to be finished.
Optionally, the apparatus further comprises: the analysis unit is used for analyzing the dynamic running water and acquiring a processing path matched with an event corresponding to the dynamic running water after the plurality of sub-flow water segments are combined into the dynamic running water according to the arrangement serial number; and the execution unit is used for executing the event according to the processing path.
The device for generating dynamic flow water provided by the embodiment of the present invention is configured to read configuration information of the dynamic flow water through the reading unit 501, where the configuration information includes a sequence number corresponding to each sub-flow water segment to be generated; the generating unit 502 is configured to generate a plurality of sub-flow water segments according to the configuration information and a generating rule, where one sub-flow water segment is used to represent basic information of an event in the system; the combining unit 503 is configured to combine the multiple sub-stream segments into dynamic stream according to the sequence number, where the dynamic stream is used to represent an event, so as to solve a technical problem that stream solidification in the related art cannot be flexibly expanded, and achieve a technical effect of flexibly using the stream to improve processing efficiency.
An apparatus for generating a dynamic pipeline includes a processor and a memory, the reading unit 501 and the like are stored in the memory as a program unit, and the processor executes the program unit stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. One or more than one kernel can be set, and the technical problem that the flow curing in the related technology cannot be flexibly expanded is solved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium on which a program is stored, the program implementing a method of generating dynamic flow water when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the method for generating dynamic flow is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps: reading configuration information of the dynamic flow, wherein the configuration information comprises a sequence number corresponding to each sub-flow section to be generated; generating a plurality of sub-flow sections according to configuration information and a generation rule, wherein one sub-flow section is used for representing basic information of events in the system; and combining the plurality of sub-stream segments into dynamic stream according to the sequence number, wherein the dynamic stream is used for representing the event.
Optionally, generating the plurality of sub-flow water segments according to the configuration information and the generation rule includes: according to the configuration information, determining basic information corresponding to each sub-flow water segment to be generated, wherein the basic information at least comprises the following contents: the name corresponding to the basic information, the length corresponding to the sub-flow water section, the effective information of the sub-flow water section and the arrangement serial number of the sub-flow water section in the dynamic flow water; determining the generation format and the character length of the basic information contained in each sub-flow section to be generated according to the generation rule; and generating a plurality of sub-flow water segments according to the basic information corresponding to each sub-flow water segment to be generated, the generation format of the basic information and the character length of the basic information.
Optionally, the combining the plurality of sub-stream segments into the dynamic stream according to the permutation sequence number includes: acquiring host machine time when a plurality of sub-flow water segments are combined into dynamic flow water; and fusing the host time into the dynamic flowing water.
Optionally, reading the configuration information of the dynamic flow comprises: and when the dynamic pipeline generation instruction is received, reading the configuration information from the configuration file or the database.
Optionally, after reading the configuration information of the dynamic pipeline, the method further includes: caching the configuration information in a system memory; and destroying the configuration information after the event is detected to be finished.
Optionally, after combining the plurality of sub-stream segments into the dynamic stream according to the permutation sequence number, the method further includes: analyzing the dynamic flow and acquiring a processing path matched with the event corresponding to the dynamic flow; and executing the event according to the processing path. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The invention also provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: reading configuration information of the dynamic flow, wherein the configuration information comprises a sequence number corresponding to each sub-flow section to be generated; generating a plurality of sub-flow sections according to configuration information and a generation rule, wherein one sub-flow section is used for representing basic information of events in the system; and combining the plurality of sub-stream segments into dynamic stream according to the sequence number, wherein the dynamic stream is used for representing the event.
Optionally, generating the plurality of sub-flow water segments according to the configuration information and the generation rule includes: according to the configuration information, determining basic information corresponding to each sub-flow water segment to be generated, wherein the basic information at least comprises the following contents: the name corresponding to the basic information, the length corresponding to the sub-flow water section, the effective information of the sub-flow water section and the arrangement serial number of the sub-flow water section in the dynamic flow water; determining the generation format and the character length of the basic information contained in each sub-flow section to be generated according to the generation rule; and generating a plurality of sub-flow water segments according to the basic information corresponding to each sub-flow water segment to be generated, the generation format of the basic information and the character length of the basic information.
Optionally, the combining the plurality of sub-stream segments into the dynamic stream according to the permutation sequence number includes: acquiring host machine time when a plurality of sub-flow water segments are combined into dynamic flow water; and fusing the host time into the dynamic flowing water.
Optionally, reading the configuration information of the dynamic flow comprises: and when the dynamic pipeline generation instruction is received, reading the configuration information from the configuration file or the database.
Optionally, after reading the configuration information of the dynamic pipeline, the method further includes: caching the configuration information in a system memory; and destroying the configuration information after the event is detected to be finished.
Optionally, after combining the plurality of sub-stream segments into the dynamic stream according to the permutation sequence number, the method further includes: analyzing the dynamic flow and acquiring a processing path matched with the event corresponding to the dynamic flow; and executing the event according to the processing path.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, 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 disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present invention, and are not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, 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 (10)

1. A method of generating a dynamic flow of water, comprising:
reading configuration information of the dynamic flow, wherein the configuration information comprises a sequence number corresponding to each sub-flow section to be generated;
generating a plurality of sub-flow water sections according to the configuration information and a generation rule, wherein one sub-flow water section is used for representing basic information of events in the system;
and combining the sub-stream sections into dynamic stream according to the sequence number, wherein the dynamic stream is used for representing the event.
2. The method of claim 1, wherein generating a plurality of sub-stream segments according to a generation rule based on the configuration information comprises:
according to the configuration information, determining the basic information corresponding to each sub-flow water section to be generated, wherein the basic information at least comprises the following contents: the name corresponding to the basic information, the length corresponding to the sub-flow water segment, the effective information of the sub-flow water segment, and the arrangement serial number of the sub-flow water segment in the dynamic flow water;
determining the generation format and the character length of the basic information contained in each sub-flow section to be generated according to the generation rule;
and generating a plurality of sub-flow water segments according to the basic information corresponding to each sub-flow water segment to be generated, the generation format of the basic information and the character length of the basic information.
3. The method of claim 1, wherein combining the plurality of sub-stream segments into a dynamic stream according to the permutation sequence number comprises:
acquiring host time when the plurality of sub-flow water segments are combined into the dynamic flow water;
fusing the host time to the dynamic flowing water.
4. The method of claim 1, wherein reading configuration information for a dynamic pipeline comprises:
and when the dynamic pipeline generation instruction is received, reading the configuration information from a configuration file or a database.
5. The method of claim 1, wherein after reading configuration information of the dynamic pipeline, the method further comprises:
caching the configuration information in a system memory;
and destroying the configuration information after the event is detected to be finished.
6. The method of claim 1, wherein after combining the plurality of sub-stream segments into a dynamic stream according to the permutation sequence number, the method further comprises:
analyzing the dynamic running water and acquiring a processing path matched with an event corresponding to the dynamic running water;
and executing the event according to the processing path.
7. An apparatus for generating dynamic flowing water, comprising:
the reading unit is used for reading configuration information of the dynamic flow, wherein the configuration information comprises an arrangement serial number corresponding to each sub-flow section to be generated;
the generating unit is used for generating a plurality of sub-flow water sections according to the configuration information and a generating rule, wherein one sub-flow water section is used for representing basic information of events in the system;
and the combining unit is used for combining the sub-stream sections into dynamic running water according to the sequence number, wherein the dynamic running water is used for representing the event.
8. The apparatus of claim 7, wherein the generating unit comprises:
a first determining subunit, configured to determine, according to the configuration information, the basic information corresponding to each sub-flow section to be generated, where the basic information at least includes the following contents: the name corresponding to the basic information, the length corresponding to the sub-flow water segment, the effective information of the sub-flow water segment, and the arrangement serial number of the sub-flow water segment in the dynamic flow water;
the second determining subunit is configured to determine, according to the generation rule, a generation format and a character length of the basic information included in each to-be-generated sub-flow segment;
and the generating subunit is used for generating a plurality of sub-flow water segments according to the basic information corresponding to each sub-flow water segment to be generated, the generating format of the basic information and the character length of the basic information.
9. A computer-readable storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform a method for generating a dynamic flow of water as claimed in any one of claims 1 to 6.
10. A processor configured to execute a program, wherein the program when executed performs the method of generating a dynamic flow of water of any one of claims 1 to 6.
CN202111033404.7A 2021-09-03 2021-09-03 Method and device for generating dynamic running water Pending CN113672287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111033404.7A CN113672287A (en) 2021-09-03 2021-09-03 Method and device for generating dynamic running water

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111033404.7A CN113672287A (en) 2021-09-03 2021-09-03 Method and device for generating dynamic running water

Publications (1)

Publication Number Publication Date
CN113672287A true CN113672287A (en) 2021-11-19

Family

ID=78548373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111033404.7A Pending CN113672287A (en) 2021-09-03 2021-09-03 Method and device for generating dynamic running water

Country Status (1)

Country Link
CN (1) CN113672287A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594891A (en) * 2012-02-17 2012-07-18 中国科学院计算技术研究所 Method and system for processing remote procedure call request
CN111352907A (en) * 2020-03-30 2020-06-30 见知数据科技(上海)有限公司 Method and device for analyzing pipeline file, computer equipment and storage medium
US20200409946A1 (en) * 2019-06-28 2020-12-31 Informatica Llc Method, apparatus, and computer-readable medium for dynamic hierarchical data flow mapping
CN112882724A (en) * 2021-03-29 2021-06-01 浪潮云信息技术股份公司 Method for automatic deployment of OpenStack cloud platform pipeline

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594891A (en) * 2012-02-17 2012-07-18 中国科学院计算技术研究所 Method and system for processing remote procedure call request
US20200409946A1 (en) * 2019-06-28 2020-12-31 Informatica Llc Method, apparatus, and computer-readable medium for dynamic hierarchical data flow mapping
CN111352907A (en) * 2020-03-30 2020-06-30 见知数据科技(上海)有限公司 Method and device for analyzing pipeline file, computer equipment and storage medium
CN112882724A (en) * 2021-03-29 2021-06-01 浪潮云信息技术股份公司 Method for automatic deployment of OpenStack cloud platform pipeline

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马琳, 陈莉, 冯晓兵: "基于动态profiling技术的流水粒度调优", 计算机研究与发展, no. 06, 16 June 2005 (2005-06-16) *

Similar Documents

Publication Publication Date Title
US10956684B2 (en) Topic kernelization for real-time conversation data
CN109561117B (en) Data acquisition method and device
US11301444B2 (en) Methods and systems for data traceability and provenance
CN108874379B (en) Page processing method and device
US20210247969A1 (en) Automated source code log generation
US10957089B2 (en) Animation generation
WO2023160327A1 (en) Container image management
CN113672222B (en) Application program interface management device and construction method thereof
US11289092B2 (en) Text editing using speech recognition
CN113672287A (en) Method and device for generating dynamic running water
CN114647548A (en) Log generation method and device
US20200364296A1 (en) Prescan device activation prevention
US20200104365A1 (en) Clause analysis based on collection coherence in legal domain
CN115934999A (en) Video stream data storage method, device and medium based on block file
US10481882B2 (en) Reducing waste areas inside strings
WO2022057634A1 (en) Containerized software discovery and identification
CN115048083A (en) Visualization method and device for assembly, storage medium and electronic equipment
CN114416840A (en) Data acquisition method and device combining RPA and AI, server and storage medium
US10606939B2 (en) Applying matching data transformation information based on a user's editing of data within a document
CN114692583A (en) Electronic form approval serial number generation method, device, equipment and storage medium
CN109508446B (en) Log processing method and device
CN110956672A (en) Marketing strategy construction method and device
US20180144011A1 (en) Indexing and archiving multiple statements using a single statement dictionary
US11615109B1 (en) Efficient deserialization from standardized data files
US10936671B2 (en) Linked record declaration of related content items

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