CN116701336A - Power data log processing method, electronic device and computer readable medium - Google Patents

Power data log processing method, electronic device and computer readable medium Download PDF

Info

Publication number
CN116701336A
CN116701336A CN202310573065.4A CN202310573065A CN116701336A CN 116701336 A CN116701336 A CN 116701336A CN 202310573065 A CN202310573065 A CN 202310573065A CN 116701336 A CN116701336 A CN 116701336A
Authority
CN
China
Prior art keywords
power data
log
data log
power
server
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
CN202310573065.4A
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.)
State Grid Information and Telecommunication Co Ltd
Beijing Guodiantong Network Technology Co Ltd
State Grid Materials Co Ltd
Original Assignee
State Grid Information and Telecommunication Co Ltd
Beijing Guodiantong Network Technology Co Ltd
State Grid Materials Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Information and Telecommunication Co Ltd, Beijing Guodiantong Network Technology Co Ltd, State Grid Materials Co Ltd filed Critical State Grid Information and Telecommunication Co Ltd
Priority to CN202310573065.4A priority Critical patent/CN116701336A/en
Publication of CN116701336A publication Critical patent/CN116701336A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Public Health (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Power Sources (AREA)

Abstract

Embodiments of the present disclosure disclose a power data log processing method, an electronic device, and a computer readable medium. One embodiment of the method comprises the following steps: the method comprises the steps that a server establishes port number communication connection with a power data end; transmitting a power data log acquisition instruction to a power data terminal through port number communication connection; the power data end responds to receiving a power data log acquisition instruction, acquires a power data log and sends the power data log to the server; the server responds to the received power data log and stores the power data log into a target storage node; the server side responds to the received power log query request, and determines at least one storage node according to power log query information included in the power log query request; at least one power data log corresponding to the power log query information is read from at least one storage node. This embodiment reduces the operating pressure at the server.

Description

Power data log processing method, electronic device and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technology, and in particular, to a power data log processing method, an electronic device, and a computer readable medium.
Background
The power data log is a file that records operations performed on the power data end in order to recover the operations when the power data end fails. Currently, when analyzing a power data log, the following methods are generally adopted: the power data log is read and parsed through a specific interface.
However, the following technical problems generally exist in the above manner:
firstly, different log reading interfaces are required to be set for different power data ends, so that the operation pressure of a server is increased;
second, the power data logs of the power data terminals are usually stored in the same storage node, and when the log reading amount is large, the server is easy to read and stop.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, may contain information that does not form the prior art that is already known to those of ordinary skill in the art in this country.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a power data log processing method, an electronic device, and a computer-readable medium to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a power data log processing method, the method comprising: the method comprises the steps that a server establishes port number communication connection with a power data end; the server side sends a power data log acquisition instruction to the power data side through the port number communication connection; the power data end responds to the receiving of the power data log acquisition instruction, acquires a power data log and sends the power data log to the server; the server responds to the received power data log and stores the power data log into a target storage node; the server responds to the received power log query request, and determines at least one storage node according to the power log query information included in the power log query request; the server reads at least one power data log corresponding to the power log query information from the at least one storage node, and sends the at least one power data log to a request terminal corresponding to the power log query request.
Optionally, before the establishing of the port number communication connection with the power data end, the method further includes: the power data end sends a communication connection request to the server; the server side responds to the received communication connection request and sends communication connection confirmation information to the power data side; and the power data end responds to the received communication connection confirmation information and sends the connection confirmation information to the service end.
Optionally, the method further comprises: the server side responds to the fact that the connection confirmation information sent by the power data side is not received within a preset time length, and the following steps are executed: re-sending communication connection confirmation information to the power data terminal after the target duration, and adding 1 to the communication connection confirmation information, wherein the communication connection confirmation information is 1 initially; determining whether the number of times of the communication connection confirmation information is a target number of times; and transmitting retransmission communication connection request information to the power data terminal in response to determining that the communication connection confirmation information number is a target number.
Optionally, the collecting the power data log includes: responding to the received power data log acquisition instruction, executing a log acquisition command to read the content of a power data log cache area; and executing a log reading thread to read the power data log in the content of the power data log cache area in response to successful reading of the content of the power data log cache area.
Optionally, the sending the power data log to the server includes: splitting the power data logs according to the preset data byte length to generate a power data log packet group; marking the power data log packet according to the position identification for each power data log packet in the power data log packet group to obtain a marked power data log; and sending each marked power data log to the server.
Optionally, after the storing the power data log in the target storage node, the method further includes: the server side responds to the successful storage of the power data log and sends a port number communication connection disconnection instruction to the power data side; and the server side responds to the disconnection information which is sent by the power data side and corresponds to the port number communication connection disconnection instruction, and disconnects the port number communication connection.
Optionally, the power data log includes a power data end identifier and a log type; and storing the power data log in a target storage node, including: acquiring node information of each storage node in a preset storage node set to obtain a node information set, wherein the node information in the node information set comprises: the data end identification and at least one log type; determining whether node information with the same data end identifier as the power data end identifier included in the power data log exists in the node information set; in response to determining that node information including a data end identifier identical to a power data end identifier included in the power data log exists, determining whether a log type identical to a log type included in the power data log exists in at least one log type included in the node information; in response to determining that there is a log type that is the same as a log type included in the power data log, determining a storage node corresponding to the node information as a target storage node, and storing the power data log into the target storage node; and in response to the absence of node information comprising the same data end identifier as the power data end identifier comprising the power data log, establishing a target storage node according to the power data end identifier and the log type comprising the power data log, and storing the power data log into the target storage node.
In a second aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors causes the one or more processors to implement the method described in any of the implementations of the first aspect above.
In a third aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
The above embodiments of the present disclosure have the following advantageous effects: by the power data log processing method of some embodiments of the present disclosure, the operation pressure of the server is reduced. Specifically, the reason why the operating pressure of the server is increased is that: different power data ends need to set different log reading interfaces. Based on this, the power data log processing method of some embodiments of the present disclosure first establishes a port number communication connection with the power data terminal. Thus, the communication connection can be performed by the port number without setting the log reading interface. And secondly, the server side sends a power data log acquisition instruction to the power data side through the port number communication connection. Then, the power data terminal collects the power data log in response to receiving the power data log collection command, and transmits the power data log to the server terminal. Thus, the power data log need not be read through the log reading interface. The operation pressure of the service end is reduced. And then, the server responds to the received power data log and stores the power data log into a target storage node. Therefore, the subsequent user side is convenient to read the power data log. And then, the server side responds to the received power log query request, and determines at least one storage node according to the power log query information included in the power log query request. And finally, the server reads at least one electric power data log corresponding to the electric power log inquiry information from the at least one storage node, and sends the at least one electric power data log to a request terminal corresponding to the electric power log inquiry request. Thus, the related power data log can be transmitted to the corresponding request terminal according to the power log inquiry request. The operation pressure of the service end is reduced.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of some embodiments of a power data log processing method according to the present disclosure;
fig. 2 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
FIG. 1 is a flow chart of some embodiments of a power data log processing method according to the present disclosure. A flow 100 of some embodiments of a power data log processing method according to the present disclosure is shown. The power data log processing method comprises the following steps:
step 101, the server establishes a port number communication connection with the power data terminal.
In some embodiments, the server may establish a port number communication connection with the power data end. That is, the server may establish a Socket communication connection (Socket) with the power data terminal. The power data terminal may be a terminal that collects power data for operation of the power system. The power system may be a power-related system that monitors individual power consumers in an area.
Optionally, before establishing the port number communication connection with the power data end, the method further includes:
the first step, the power data end sends a communication connection request to the server. The communication connection request may refer to a request to establish a socket communication connection.
And a second step, the server transmits communication connection confirmation information to the power data terminal in response to receiving the communication connection request. The communication connection confirmation information may refer to information that determines whether to connect.
And thirdly, the power data end responds to the received communication connection confirmation information and sends the connection confirmation information to the server end. The connection confirmation information may indicate confirmation of the connection.
Optionally, the server side responds to the fact that the connection confirmation information sent by the power data side is not received within a preset time, and performs the following steps:
and the first step, after the target duration, the communication connection confirmation information is sent to the power data terminal again, and the number of times of the communication connection confirmation information is increased by 1. Wherein the number of times of communication connection confirmation information is initially 1. The number of times of communication connection confirmation information may refer to the number of times of transmission of communication connection confirmation information.
And a second step of determining whether the number of times of the communication connection confirmation information is a target number. Here, the setting of the target number of times is not limited.
And thirdly, transmitting retransmission communication connection request information to the power data terminal in response to the fact that the communication connection confirmation information is determined to be the target number.
Step 102, the server sends a power data log acquisition instruction to the power data terminal through the port number communication connection.
In some embodiments, the server may send a power data log collection instruction to the power data end through the port number communication connection. The power data log collection instruction may refer to an instruction to collect a power data log within a certain preset period of time.
Step 103, the power data terminal collects the power data log in response to receiving the power data log collection command, and sends the power data log to the server terminal.
In some embodiments, the power data end may collect a power data log in response to receiving the power data log collection instruction, and send the power data log to the server.
In practice, the power data end may collect a power data log by:
and firstly, responding to the received power data log acquisition instruction, and executing a log acquisition command to read the content of the power data log cache area. Here, the log collection command may be a command to collect a power data log. The power data log cache area may be a node set by the power data end and used for caching the power data log.
And secondly, responding to successful reading of the content of the power data log cache area, executing a log reading thread to read the power data log in the content of the power data log cache area. That is, all of the power data log is read first. And then reading the electric power data log corresponding to the electric power data log acquisition instruction. For example, the power data log collection instructions may include log-directed features such as time intervals, data identifications, and the like.
In practice, the power data end may send the power data log to the server through the following steps:
the first step, splitting the electric power data log according to the preset data byte length to generate an electric power data log packet group. Namely, the power data log is split according to the preset data byte length. And the length of the data bytes corresponding to the electric power data log packets in the electric power data log packet group is smaller than or equal to the preset data byte length.
And a second step of marking the power data log packet according to the position identification for each power data log packet in the power data log packet group to obtain a marked power data log. Here, the location identification may represent an IP address of the power data end. I.e. the power data log package is marked with a location identification.
And thirdly, sending each marked power data log to the server.
Step 104, the server responds to the received power data log and stores the power data log into a target storage node.
In some embodiments, the server may store the power data log in a target storage node in response to receiving the power data log. The power data log comprises a power data end identifier and a log type. Here, the power data terminal identifier may uniquely identify a power data terminal. The log type may refer to a type of power data log.
In practice, the server may store the power data log in the target storage node by:
the first step, node information of each storage node in a preset storage node set is obtained, and a node information set is obtained. Wherein, the node information in the node information set includes: the data end identification is associated with at least one log type. Here, the data terminal identifier may uniquely identify a power data terminal.
And a second step of determining whether the node information set includes node information with the same data end identifier as the power data end identifier included in the power data log.
And a third step of determining, in response to determining that there is node information including a data end identifier identical to the power data end identifier included in the power data log, whether there is a log type identical to the log type included in the power data log among at least one log type included in the node information.
Fourth, in response to determining that there is a log type identical to a log type included in the power data log, determining a storage node corresponding to the node information as a target storage node, and storing the power data log into the target storage node.
And fifthly, in response to the absence of node information including the same data end identifier as the power data end identifier included in the power data log, establishing a target storage node according to the power data end identifier and the log type included in the power data log, and storing the power data log into the target storage node. That is, the server may establish a new storage node in the local database as the target storage node. The Storage Nodes may be (Storage Nodes). The node information of the new storage node includes a power data end identification and a log type.
The related matters in the first step to the fifth step are taken as an invention point of the present disclosure, and solve the second technical problem mentioned in the background art, namely "easy to cause the server to read and clip". Factors that easily cause server reading stuck tend to be as follows: the power data logs of each power data end are usually stored in the same storage node, and when the log reading amount is large, the server is easy to read and stop. If the above factors are solved, the effect of reducing the server reading jamming can be achieved. To achieve this effect, first, node information of each storage node in a preset storage node set is acquired, and a node information set is obtained. Wherein, the node information in the node information set includes: the data end identification is associated with at least one log type. Thereby, it is facilitated to store the power data logs of different power data ends in different storage nodes. And secondly, determining whether the node information set contains node information with the same data end identifier as the power data end identifier contained in the power data log. Then, in response to determining that there is node information including a data end identification identical to a power data end identification included in the power data log, determining whether there is a log type identical to a log type included in the power data log among at least one log type included in the node information. Then, in response to determining that there is a log type identical to a log type included in the above-described power data log, a storage node corresponding to the above-described node information is determined as a target storage node, and the above-described power data log is stored into the target storage node. Thereby, it is avoided that the power data logs of the individual power data terminals are typically stored in the same storage node. And finally, in response to the absence of node information comprising the same data end identifier as the power data end identifier comprising the power data log, establishing a target storage node according to the power data end identifier and the log type comprising the power data log, and storing the power data log into the target storage node. Therefore, different storage nodes can be established according to different power data ends. Therefore, the condition that the power data logs of all the power data ends are usually stored in the same storage node is avoided, and the reading pressure of the server is reduced.
Optionally, the server side responds to the successful storage of the power data log and sends a port number communication connection disconnection instruction to the power data side.
In some embodiments, the server may send a port number communication connection disconnection instruction to the power data end in response to the power data log being stored successfully. That is, the port number communication connection disconnection instruction may refer to an instruction to disconnect the port number communication connection.
Optionally, the server side responds to the disconnection information corresponding to the port number communication connection disconnection instruction sent by the power data side, and disconnects the port number communication connection.
In some embodiments, the server may disconnect the port number communication connection in response to receiving disconnection information corresponding to the port number communication connection disconnection instruction sent by the power data terminal. The disconnection information may represent information of disconnection of communication.
Step 105, the server side responds to the received power log query request, and determines at least one storage node according to the power log query information included in the power log query request.
In some embodiments, the server may determine, in response to receiving the power log query request, at least one storage node according to power log query information included in the power log query request. That is, the power log query information may include at least one power data end identification, at least one log type, a time interval. The server may query the corresponding storage node according to at least one power data end identifier and at least one log type.
And 106, the server reads at least one electric power data log corresponding to the electric power log inquiry information from the at least one storage node, and sends the at least one electric power data log to a request terminal corresponding to the electric power log inquiry request.
In some embodiments, the server may read at least one power data log corresponding to the power log query information from the at least one storage node, and send the at least one power data log to a request terminal corresponding to the power log query request. That is, a power data log corresponding to the at least one power data end identifier, the at least one log type, and the time interval may be read in the at least one storage node. The requesting terminal may refer to a terminal that transmits a power log query request.
Referring now to fig. 2, a schematic diagram of an electronic device (e.g., a server and/or a power data terminal) 200 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, as well as stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 2 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 2, the electronic device 200 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 201, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 202 or a program loaded from a storage means 208 into a Random Access Memory (RAM) 203. In the RAM203, various programs and data necessary for the operation of the electronic apparatus 200 are also stored. The processing device 201, ROM202, and RAM203 are connected to each other through a bus 204. An input/output (I/O) interface 205 is also connected to bus 204.
In general, the following devices may be connected to the I/O interface 205: input devices 206 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 207 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 208 including, for example, magnetic tape, hard disk, etc.; and a communication device 209. The communication means 209 may allow the electronic device 200 to communicate with other devices wirelessly or by wire to exchange data. While fig. 2 shows the electronic device 20 with various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 2 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication device 209, or from the storage device 208, or from the ROM 202. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing device 201.
It should be noted that, the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: the method comprises the steps that a server establishes port number communication connection with a power data end; the server side sends a power data log acquisition instruction to the power data side through the port number communication connection; the power data end responds to the receiving of the power data log acquisition instruction, acquires a power data log and sends the power data log to the server; the server responds to the received power data log and stores the power data log into a target storage node; the server responds to the received power log query request, and determines at least one storage node according to the power log query information included in the power log query request; the server reads at least one power data log corresponding to the power log query information from the at least one storage node, and sends the at least one power data log to a request terminal corresponding to the power log query request.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (5)

1. A power data log processing method, comprising:
the method comprises the steps that a server establishes port number communication connection with a power data end;
the server side sends a power data log acquisition instruction to the power data side through the port number communication connection;
the power data end responds to the receiving of the power data log acquisition instruction, acquires a power data log and sends the power data log to the server;
the server responds to the received power data log and stores the power data log into a target storage node;
the server responds to the received power log query request, and determines at least one storage node according to power log query information included in the power log query request;
the server reads at least one electric power data log corresponding to the electric power log query information from the at least one storage node, and sends the at least one electric power data log to a request terminal corresponding to the electric power log query request.
2. The method of claim 1, wherein the collecting a power data log comprises:
responding to the received power data log acquisition instruction, executing a log acquisition command to read the content of a power data log cache area;
and in response to successful reading of the content of the power data log cache, executing a log reading thread to read the power data log in the content of the power data log cache.
3. The method of claim 1, wherein after the storing the power data log to a target storage node, the method further comprises:
the server side responds to the successful storage of the power data log and sends a port number communication connection disconnection instruction to the power data side;
and the server side responds to the disconnection information which is sent by the power data side and corresponds to the port number communication connection disconnection instruction, and disconnects the port number communication connection.
4. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-3.
5. A computer readable medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of any of claims 1-3.
CN202310573065.4A 2023-05-19 2023-05-19 Power data log processing method, electronic device and computer readable medium Pending CN116701336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310573065.4A CN116701336A (en) 2023-05-19 2023-05-19 Power data log processing method, electronic device and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310573065.4A CN116701336A (en) 2023-05-19 2023-05-19 Power data log processing method, electronic device and computer readable medium

Publications (1)

Publication Number Publication Date
CN116701336A true CN116701336A (en) 2023-09-05

Family

ID=87840158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310573065.4A Pending CN116701336A (en) 2023-05-19 2023-05-19 Power data log processing method, electronic device and computer readable medium

Country Status (1)

Country Link
CN (1) CN116701336A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624562A (en) * 2012-03-13 2012-08-01 网经科技(苏州)有限公司 Safety management method for distributed SYSLOG (System Log) in network management system
CN104778188A (en) * 2014-02-24 2015-07-15 贵州电网公司信息通信分公司 Distributed device log collection method
CN105260399A (en) * 2015-09-17 2016-01-20 西安未来国际信息股份有限公司 Method for acquiring and retrieving distributed log
CN107622084A (en) * 2017-08-10 2018-01-23 深圳前海微众银行股份有限公司 Blog management method, system and computer-readable recording medium
CN113672478A (en) * 2020-05-14 2021-11-19 中兴通讯股份有限公司 Log obtaining method, device, terminal, server and storage medium
CN114036121A (en) * 2021-11-09 2022-02-11 北京金山云网络技术有限公司 Log file processing method, device, system, equipment and storage medium
CN114116774A (en) * 2022-01-28 2022-03-01 北京安帝科技有限公司 Log data query method and device
CN114625594A (en) * 2020-12-11 2022-06-14 北京金山云网络技术有限公司 Configuration file generation method, log collection method, device, equipment and medium
CN115809222A (en) * 2021-09-14 2023-03-17 中移(苏州)软件技术有限公司 Log processing method, device and equipment and computer storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624562A (en) * 2012-03-13 2012-08-01 网经科技(苏州)有限公司 Safety management method for distributed SYSLOG (System Log) in network management system
CN104778188A (en) * 2014-02-24 2015-07-15 贵州电网公司信息通信分公司 Distributed device log collection method
CN105260399A (en) * 2015-09-17 2016-01-20 西安未来国际信息股份有限公司 Method for acquiring and retrieving distributed log
CN107622084A (en) * 2017-08-10 2018-01-23 深圳前海微众银行股份有限公司 Blog management method, system and computer-readable recording medium
CN113672478A (en) * 2020-05-14 2021-11-19 中兴通讯股份有限公司 Log obtaining method, device, terminal, server and storage medium
CN114625594A (en) * 2020-12-11 2022-06-14 北京金山云网络技术有限公司 Configuration file generation method, log collection method, device, equipment and medium
CN115809222A (en) * 2021-09-14 2023-03-17 中移(苏州)软件技术有限公司 Log processing method, device and equipment and computer storage medium
CN114036121A (en) * 2021-11-09 2022-02-11 北京金山云网络技术有限公司 Log file processing method, device, system, equipment and storage medium
CN114116774A (en) * 2022-01-28 2022-03-01 北京安帝科技有限公司 Log data query method and device

Similar Documents

Publication Publication Date Title
CN111694674B (en) Message distribution processing method, device, equipment and storage medium
CN110909521B (en) Online document information synchronous processing method and device and electronic equipment
CN113395353B (en) File downloading method and device, storage medium and electronic equipment
CN110166791B (en) Connection establishing method, device, equipment and storage medium
CN111432001B (en) Method, apparatus, electronic device and computer readable medium for jumping scenes
CN112256733A (en) Data caching method and device, electronic equipment and computer readable storage medium
CN112491859A (en) Domain name certificate detection method and device, electronic equipment and computer readable medium
CN111309366B (en) Method, device, medium and electronic equipment for managing registration core
CN111800223B (en) Method, device and system for generating sending message and processing receiving message
CN112346661B (en) Data processing method and device and electronic equipment
CN116701336A (en) Power data log processing method, electronic device and computer readable medium
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN115102992A (en) Data distribution method and device, electronic equipment and computer readable medium
CN113157365B (en) Program running method, program running device, electronic equipment and computer readable medium
CN112311833B (en) Data updating method and device
CN113535428B (en) Method, device, equipment and medium for processing request message and response message
CN114513548B (en) Directional call information processing method and device
CN114745276B (en) Switch bandwidth adjusting method and device, electronic equipment and computer readable medium
CN111694679B (en) Message processing method and device and electronic equipment
CN112948108B (en) Request processing method and device and electronic equipment
CN110007894B (en) Method and device for transmitting audio information
CN116866229A (en) Network delay monitoring method, message response method, device and electronic equipment
CN115269645A (en) Information query method and device, electronic equipment and computer readable medium
CN113783830A (en) Method and apparatus for data communication
CN114444064A (en) Account processing method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination