CN107342896A - A kind of information acquisition method, apparatus and system - Google Patents
A kind of information acquisition method, apparatus and system Download PDFInfo
- Publication number
- CN107342896A CN107342896A CN201710537954.XA CN201710537954A CN107342896A CN 107342896 A CN107342896 A CN 107342896A CN 201710537954 A CN201710537954 A CN 201710537954A CN 107342896 A CN107342896 A CN 107342896A
- Authority
- CN
- China
- Prior art keywords
- websocket
- warning information
- sent
- service ends
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Abstract
The embodiment of the invention discloses a kind of information acquisition method, apparatus and system, including obtain monitoring data;Whether the monitoring data obtained by judging meets default alarm conditions;If monitoring data meets default alarm conditions, sent a warning message to the communication end point Socket interfaces for data exchange between the executive process in host operating system so that Socket interfaces are to for being carried out in single transmission control protocol (TCP) connection, the protocol Web socket service ends of full duplex communication send a warning message, Websocket service ends send a warning message to Websocke clients, Websocket client display alarm information.From technical scheme provided by the invention, Socket interfaces, Websocket service ends and Websocket clients can allow warning information to be sent to application layer in time to be shown, refresh without waiting for alarm display interface.
Description
Technical field
The present invention relates to field of information processing, more particularly to a kind of information acquisition method, apparatus and system.
Background technology
Supervising device is monitoring equipment to be monitored, obtains monitoring data and obtain exception from acquired monitoring data
The device of data, it is generally the case that the abnormal data obtained by supervising device be all stored in database for keeper according to
Alarm conditions are inquired about, and then obtain warning information.
In correlation technique, keeper usually believes by the way of periodic refreshing alerts display interface to obtain new alarm
Breath, which specifically include:The refresh interval of Administrator alarm display interface first, every refresh time is by business procedure
To server send a warning message acquisition request, server parsing warning information obtain request, and will parsing obtain it is a series of
Query statement is sent to database, and a series of data that database root is stored according to query statements to itself are polled to obtain
After Query Result, retransmit to client be shown in alarm display interface upper supply tube reason person check.
However, this method can just send a warning message only when refreshing warning information display interface, acquisition request is to service
Device, is parsed to obtain query statement and is sent to database by server, finally is polled to obtain according to query statement by database root
Query Result, therefore, the acquisition of warning information very not in time, and work as warning information and obtain the query statement included in request
When more, it is easy to cause server parsing pressure and database inquiry pressure it is excessive.
The content of the invention
In order to solve the above-mentioned technical problem, the present invention provides a kind of information acquisition method, apparatus and system, without to
Server send a warning message acquisition request can just obtain warning information in real time, and avoid server produce parsing pressure,
Database produces inquiry pressure.
In order to reach the object of the invention, the invention provides a kind of information acquisition method, including:
Supervising device obtains monitoring data;
Whether the monitoring data obtained by judging meets default alarm conditions;
If the monitoring data meets the default alarm conditions, to between the executive process in host operating system
The communication end point Socket interfaces of data exchange send a warning message, so that the Socket interfaces in single transmission to for controlling
The protocol Web socket of full duplex communication is carried out in agreement (Transmission Control Protocol, TCP) connection processed
Service end send the warning information, the Websocket service ends to Websocket clients send the warning information,
The Websocket clients show the warning information.
Present invention also offers a kind of information acquisition method, including:
The warning information that supervising device described in Socket interfaces is sent;Wherein, the warning information is supervising device
Monitoring data obtained by judging meets what is sent after default warning information;
The warning information is sent to Websocket service ends, so that the Websocket service ends are to Websocket
Client sends the warning information, the Websocket clients show the warning information.
Present invention also offers a kind of information acquisition method, including:
Websocket service ends receive the warning information that Socket interfaces are sent;Wherein, the warning information is monitoring dress
Put the monitoring data obtained by judging and meet what is sent to the Socket after default warning information;
Connected by Websocket to Websocket clients and send the warning information, so that the Websocket
Client shows the warning information;Wherein, the Websocket is connected as the Websocket service ends pre-established
Connection between the Websocket clients.
Before the Websocket service ends obtain warning information, methods described also includes:
Receive the solicited message for establishing Websocket connections that the Websocket clients are sent;
The return information for confirming to establish Websocket connections is sent to the Websocket clients.
Present invention also offers a kind of information acquisition method, including:
Websocket clients receive warning information of the Websocket service ends by Websocket linkup transmits;Its
In, the warning information is that the monitoring data obtained by supervising device judges meets default warning information the Socket connects backward
Mouthful send, again sent from the Socket interfaces to the Websocket service ends;
Show the warning information.
The Websocket clients receive warning information of the Websocket service ends by Websocket linkup transmits
Before, methods described also includes:
The solicited message for establishing Websocket connections is sent to the Websocket service ends;
Receive the Websocket service ends and send the return information for building vertical Websocket connections really;
The Websocket is established at itself between the Websocket service ends to be connected.
Present invention also offers a kind of supervising device, including:
Acquisition module, for obtaining monitoring data;
Judge module, whether meet default alarm conditions for the monitoring data obtained by judging;
First sending module, if meeting the default alarm conditions for the monitoring data, sent to Socket interfaces
Warning information is so that the Socket interfaces send the warning information, Websocket services to Websocket service ends
Hold to Websocket clients send the warning information, the Websocket clients show the warning information.
Present invention also offers a kind of Websocket service ends, including:
First receiving module, for receiving the warning information of Socket interfaces transmission;Wherein, the warning information is monitoring
Monitoring data obtained by device judges meets what is sent to the Socket interfaces after default warning information;
Second sending module, the warning information is sent for being connected by Websocket to Websocket clients,
So that the Websocket clients show the warning information;Wherein, the Websocket is connected as the institute pre-established
State the connection between Websocket service ends and the Websocket clients.
Present invention also offers a kind of Websocket clients, including:
Second receiving module, for receiving warning information of the Websocket service ends by Websocket linkup transmits;
Wherein, the warning information is that the monitoring data obtained by supervising device judges meets the default warning information Socket backward
Interface sends, again sent from the Socket interfaces to the Websocket service ends;
Display module, for showing the warning information.
Present invention also offers a kind of Information Acquisition System, including:
Supervising device as described above, Websocket service ends as described above, Websocket client as described above
End, and Socket interfaces;
Wherein, the Socket interfaces are used to receive the warning information that the supervising device is sent;Serviced to Websocket
End sends the warning information.
Compared with prior art, the present invention comprises at least supervising device and obtains monitoring data;Monitoring number obtained by judging
According to whether meeting default alarm conditions;If monitoring data meets default alarm conditions, to Socket interfaces send a warning message with
Socket interfaces are made to be sent a warning message to Websocket service ends, Websocket service ends are sent out to Websocket clients
Send warning information, Websocket client display alarm information.From technical scheme provided by the invention, without waiting for
Refresh time up to alarm display interface could obtain warning information, Socket interfaces, Websocket service ends and
Websocket clients provide a passage that warning information can be allowed to be sent directly to application layer, by such a logical
Road, warning information is sent to application layer to enter by can immediately after determining monitored data fit and presetting alarm conditions
Row display, it is achieved that warning information in real time obtain;Simultaneously because no longer please to send a warning message acquisition to server
The mode asked obtains warning information so that server need not receive and parse through warning information obtain request, also cause database without
It need to be inquired about according to query statement, so as to avoid server from producing parsing pressure, database produces inquiry pressure.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by specification, rights
Specifically noted structure is realized and obtained in claim and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this
The embodiment of application is used to explain technical scheme together, does not form the limitation to technical solution of the present invention.
Fig. 1 is a kind of schematic flow sheet of information acquisition method provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another information acquisition method provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of another information acquisition method provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of another information acquisition method provided in an embodiment of the present invention;
Fig. 5 is the schematic flow sheet of another information acquisition method provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of supervising device provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of Socket interfaces provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of Websocket service ends provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation of Websocket clients provided in an embodiment of the present invention;
Figure 10 is a kind of structural representation of Information Acquisition System provided in an embodiment of the present invention.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with accompanying drawing to the present invention
Embodiment be described in detail.It should be noted that in the case where not conflicting, in the embodiment and embodiment in the application
Feature can mutually be combined.
The embodiment of the present invention provides a kind of information acquisition method, as shown in figure 1, this method includes:
Step 101, supervising device obtain monitoring data.
Specifically, supervising device can be Monitoring framework, monitoring data is one that supervising device monitors equipment to be monitored
Acquired in monitored item or multinomial monitored item, wherein, the quantity of equipment to be monitored can be one or more.
Step 102, judge whether resulting monitoring data meets default alarm conditions.
Specifically, default alarm conditions are the conditions that monitoring data can reach alarm, for example, it is assumed that monitored item is CPU
Occupancy situation, default alarm conditions are that CPU occupancy reaches 95%, then when it is 95% that monitoring data, which shows CPU occupancy, with regard to symbol
Default alarm conditions are closed.
If step 103, monitoring data meet default alarm conditions, sent a warning message to Socket interfaces, so that
Socket interfaces are sent a warning message to Websocket service ends, Websocket service ends are sent to Websocket clients
Warning information, Websocket client display alarm information.
Specifically, supervising device is sent out after the monitoring data obtained by judging meets default alarm conditions to Socket interfaces
Warning information is sent, is to reach default alarm conditions to Socket interfaces transmission alarm letter by being write in the script of supervising device
The sentence of breath so after judging that monitoring data meets default alarm conditions, can send come what is realized from trend Socket interfaces
Warning information.
It should be noted that prior art, which is supervising device, obtains warning information, warning information is then stored in data
In storehouse, device to be serviced receives warning information and obtains request and analyze after obtaining query statement, just by database root it is investigated that asking language
Sentence inquiry obtains warning information;And the present invention is that default alarm conditions are set directly on supervising device, and for warning information by
Internet enters application layer and provides a passage, after such supervising device is once it is determined that monitoring data meets default alarm conditions,
It will send a warning message, warning information enters application layer to be shown from the passage of offer.
The information acquisition method that the embodiment of the present invention is provided, supervising device obtain monitoring data;Prison obtained by judging
Whether control data meet default alarm conditions;If monitoring data meets default alarm conditions, alarm letter is sent to Socket interfaces
Cease so that Socket interfaces send a warning message to Websocket service ends, Websocket service ends are to Websocket client
End sends a warning message, Websocket client display alarm information.From technical scheme provided by the invention, without etc.
The refresh time for waiting to reach alarm display interface could obtain warning information, Socket interfaces, Websocket service ends and
Websocket clients provide a passage that warning information can be allowed to be sent directly to application layer, by such a logical
Road, warning information is sent to by can immediately after supervising device determines the default alarm conditions of monitored data fit answers
With layer to be shown, it is achieved that warning information in real time obtain;Simultaneously because no longer believed with sending alarm to server
The mode that breath obtains request obtains warning information so that server need not receive and parse through warning information and obtain request, also cause
Database according to query statement without being inquired about, and so as to avoid server from producing parsing pressure, database produces inquiry pressure.
The embodiment of the present invention provides another information acquisition method, as shown in Fig. 2 this method includes:
The warning information that step 201, Socket interfaces supervising device are sent.
Wherein, warning information is that supervising device judges that resulting monitoring data is sent after meeting default warning information.
Specifically, Socket interfaces are the interfaces on system level, it has following advantage:
1st, the data transfer of high concurrent can be handled, multiple warning information that supervising device obtains can
It is transmitted by it.
2nd, there is the leakage that compared with stiff stability, can be largely avoided data to pass.
3rd, the communication with Websocket service ends is more convenient.
If directly sent warning information to Websocket service ends, because Websocket service ends are to be deployed in answer
With layer, and the generation of warning information is in Internet, and the two is not on a level, it is easy to cause a part of warning information without
Method is received by Websocket service ends, therefore by the use of Socket interfaces as " terminal " of warning information, because Socket connects
Mouthful it is network layer protocol and with the convenient characteristic of communication with Websocket service ends, on the one hand can be real in Internet
Obtain existing warning information exhaustive, on the other hand can also realize the good connection of Internet and application layer.
Step 202, send a warning message to Websocket service ends, so that Websocket service ends are to Websocket
Client sends a warning message, Websocket client display alarm information.
The information acquisition method that the embodiment of the present invention is provided, the alarm letter that Socket interfaces supervising device is sent
Breath, wherein, warning information is sent after the monitoring data obtained by supervising device judges meets default warning information;To
Websocket service ends send a warning message so that Websocket service ends sent a warning message to Websocket clients,
Websocket client display alarm information.From technical scheme provided by the invention, boundary is shown without waiting for reaching to alert
The refresh time in face could obtain warning information, and Socket interfaces, Websocket service ends and Websocket clients provide
One can allow passage that warning information is sent directly to application layer, by such a passage, be determined in supervising device
Warning information is sent to application layer to be shown by can immediately after the data fit monitored presets alarm conditions, therefore
Obtain in real time with realizing warning information;Simultaneously because no longer obtained in a manner of being sent a warning message to server and obtaining request
Warning information so that server need not receive and parse through warning information and obtain request, also cause database without according to inquiry language
Sentence is inquired about, and so as to avoid server from producing parsing pressure, database produces inquiry pressure.
The embodiment of the present invention provides another information acquisition method, as shown in figure 3, this method includes:
Step 301, Websocket service ends receive the warning information that Socket interfaces are sent.
Wherein, warning information is that the monitoring data obtained by supervising device judges meets after default warning information to Socket
What interface was sent.
Step 302, connected to Websocket clients and sent a warning message by Websocket, so that Websocket
Client display alarm information.
Wherein, Websocket is connected as between the Websocket service ends pre-established and Websocket clients
Connection.
Specifically, Websocket connections are a kind of long connections, this is connected to Websocket service ends and Websocket visitors
Family is established between end, and is existed always once established.
The information acquisition method that the embodiment of the present invention is provided, Websocket service ends receive what Socket interfaces were sent
Warning information, wherein, warning information is that to meet default warning information backward for monitoring data obtained by supervising device judges
What Socket interfaces were sent;Connected to Websocket clients and sent a warning message so that Websocket by Websocket
Client display alarm information.From technical scheme provided by the invention, without waiting for the refreshing for reaching alarm display interface
Time could obtain warning information, and Socket interfaces, Websocket service ends and Websocket clients provide an energy
Enough allow warning information to be sent directly to the passage of application layer, by such a passage, determine what is monitored in supervising device
Warning information is sent to application layer to be shown by can immediately after data fit presets alarm conditions, it is achieved that accusing
Obtain in real time to alert information;Simultaneously because alarm letter is no longer obtained in a manner of being sent a warning message to server and obtain request
Breath so that server need not receive and parse through warning information and obtain request, also cause database without being carried out according to query statement
Inquiry, so as to avoid server from producing parsing pressure, database produces inquiry pressure.
The embodiment of the present invention provides another information acquisition method, as shown in figure 4, this method includes:
Step 401, Websocket clients receive alarm of the Websocket service ends by Websocket linkup transmits
Information.
Wherein, warning information is that the monitoring data obtained by supervising device judges meets after default warning information to Socket
Interface sends, again sent from Socket interfaces to Websocket service ends.
Step 402, display alarm information.
It should be noted that Websocket clients usual display alarm on a display screen after warning information is received
Information.
The information acquisition method that the embodiment of the present invention is provided, Websocket clients receive Websocket service ends and led to
The warning information of Websocket linkup transmits is crossed, wherein, warning information is that the monitoring data obtained by supervising device judges meets
Send to Socket interfaces after default warning information, sent again from Socket interfaces to Websocket service ends;Display alarm
Information.From technical scheme provided by the invention, announcement could be obtained without waiting for the refresh time for reaching alarm display interface
Alert information, Socket interfaces, Websocket service ends and Websocket clients, which provide one, can allow warning information straight
Sending and receiving are sent to the passage of application layer, and by such a passage, the default announcement of monitored data fit is determined in supervising device
Warning information is sent to application layer to be shown by can immediately after alert condition, it is achieved that warning information obtain in real time
Take;Simultaneously because no longer by sent a warning message to server obtain request in a manner of obtain warning information so that server without
Warning information need to be received and parsed through and obtain request, also cause database without being inquired about according to query statement, so as to avoid taking
Being engaged in, device produces parsing pressure, database produces inquiry pressure.
The embodiment of the present invention provides another information acquisition method, comprehensively to show if obtaining warning information, such as Fig. 5
Shown, this method includes:
Step 501, Websocket clients send the request letter for establishing Websocket connections to Websocket service ends
Breath.
What step 502, Websocket service ends reception Websocket clients were sent establishes asking for Websocket connections
Seek information.
Step 503, Websocket service ends are sent to Websocket clients to be confirmed to establish returning for Websocket connections
Complex information.
Step 504, Websocket clients receive the transmission of Websocket service ends and build vertical Webso-cket companies really
The return information connect.
Step 505, Websocket clients are established Websoc-ket between Websocket service ends at itself and are connected.
Step 506, supervising device obtain monitoring data.
Step 507, supervising device judge whether resulting monitoring data meets default alarm conditions.
If step 508, monitoring data meet default alarm conditions, supervising device sends a warning message to Socket interfaces.
The warning information that step 509, Socket interfaces supervising device are sent.
Step 510, Socket interfaces send a warning message to Websocket service ends.
Step 511, Websocket service ends receive the warning information that Socket interfaces are sent.
Step 512, Websocket service ends are connected to Websocket clients by Websocket sends alarm letter
Breath.
Step 513, Websocket clients receive alarm of the Websocket service ends by Websocket linkup transmits
Information.
Step 514, Websocket client display alarm information.
The information acquisition method that the embodiment of the present invention is provided, supervising device obtain monitoring data;Prison obtained by judging
Whether control data meet default alarm conditions;If monitoring data meets default alarm conditions, alarm letter is sent to Socket interfaces
Cease so that Socket interfaces send a warning message to Websocket service ends, Websocket service ends are to Websocket client
End sends a warning message, Websocke client display alarm information.From technical scheme provided by the invention, without waiting for
Warning information could be obtained by reaching the refresh time of alarm display interface, Socket interfaces, Websocket service ends and
Websocket clients provide a passage that warning information can be allowed to be sent directly to application layer, by such a logical
Road, warning information is sent to by can immediately after supervising device determines the default alarm conditions of monitored data fit answers
With layer to be shown, it is achieved that warning information in real time obtain;Simultaneously because no longer believed with sending alarm to server
The mode that breath obtains request obtains warning information so that server need not receive and parse through warning information and obtain request, also cause
Database according to query statement without being inquired about, and so as to avoid server from producing parsing pressure, database produces inquiry pressure.
The embodiment of the present invention provides a kind of supervising device, as shown in fig. 6, the supervising device 6 includes:
Acquisition module 61, for obtaining monitoring data.
Judge module 62, whether meet default alarm conditions for the monitoring data obtained by judging.
First sending module 63, if meeting default alarm conditions for monitoring data, alarm letter is sent to Socket interfaces
Cease so that Socket interfaces send a warning message to Websocket service ends, Websocket service ends are to Websocket client
End sends a warning message, Websocket client display alarm information.
The supervising device that the embodiment of the present invention is provided, obtain monitoring data;Whether the monitoring data obtained by judging accords with
Close default alarm conditions;If monitoring data meets default alarm conditions, sent a warning message to Socket interfaces so that Socket
Interface sends a warning message to Websocket service ends, Websocket service ends send alarm letter to Websocket clients
Breath, Websocket client display alarm information.It is aobvious without waiting for alarm is reached from technical scheme provided by the invention
Warning information, Socket interfaces, Websocket service ends and Websocket clients could be obtained by showing the refresh time at interface
A passage that warning information can be allowed to be sent directly to application layer is provided, by such a passage, is sentenced in supervising device
Warning information is sent to application layer to be shown by can after presetting alarm conditions to the data fit monitored of breaking immediately,
It is achieved that warning information in real time obtain;Simultaneously because no longer in a manner of being sent a warning message to server and obtain request
Acquisition warning information so that server need not receive and parse through warning information and obtain request, also database be looked into without basis
Ask sentence to be inquired about, so as to avoid server from producing parsing pressure, database produces inquiry pressure.
In actual applications, the acquisition module 61, the sending module 63 of judge module 62 and first can be by positioned at monitoring
Central processing unit (Central Processing Unit, CPU), microprocessor (Micro Processor in device
Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or field programmable gate array
(Field Programmable Gate Array, FPGA) etc. is realized.
The embodiment of the present invention provides a kind of Socket interfaces, as shown in fig. 7, the Socket interfaces 7 include:
3rd receiving module 71, for receiving the warning information of supervising device transmission;Wherein, warning information is supervising device
Monitoring data obtained by judging meets what is sent after default warning information.
3rd sending module 72, for being sent a warning message to Websocket service ends, so that Websocket service ends
Sent a warning message to Websocket clients, Websocket client display alarm information.
The Socket interfaces that the embodiment of the present invention is provided, the warning information that supervising device is sent is received, wherein, alarm letter
Breath is sent after the monitoring data obtained by supervising device judges meets default warning information;Sent out to Websocket service ends
Warning information is sent, so that Websocket service ends send a warning message to Websocket clients, Websocket clients show
Show warning information.From technical scheme provided by the invention, without waiting for the refresh time ability for reaching alarm display interface
Warning information is obtained, Socket interfaces, Websocket service ends and Websocket clients, which provide one, can allow alarm
Information is sent directly to the passage of application layer, and by such a passage, monitored data fit is determined in supervising device
Warning information is sent to application layer to be shown by can immediately after default alarm conditions, it is achieved that warning information
Obtain in real time;Simultaneously because no longer obtain warning information in a manner of being sent a warning message to server and obtain request so that clothes
Business device need not receive and parse through warning information and obtain request, also cause database without being inquired about according to query statement, so as to
Server is avoided to produce parsing pressure, database produces inquiry pressure.
In actual applications, the 3rd receiving module 71 and the 3rd sending module 72 can be by Socket interfaces
CPU, MPU, DSP or FPGA etc. are realized.
The embodiment of the present invention provides a kind of Websocket service ends, as shown in figure 8, the Websocket service ends 8 include:
First receiving module 81, for receiving the warning information of Socket interfaces transmission;Wherein, warning information is monitoring dress
Put the monitoring data obtained by judging and meet what is sent to Socket interfaces after default warning information.
Second sending module 82, sends a warning message for being connected by Websocket to Websocket clients, with
Make Websocket client display alarm information;Wherein, Websocket be connected as the Websocket service ends that pre-establish and
Connection between Websocket clients.
Further, the first receiving module 81, the Websocket that establishes for being additionally operable to receive the transmission of Websocket clients connect
The solicited message connect.
Second sending module 82, it is additionally operable to send the reply for confirming to establish Websocket connections to Websocket clients
Information.
The Websocket service ends that the embodiment of the present invention is provided, the warning information that Socket interfaces are sent is received, its
In, warning information is to be sent after the monitoring data obtained by supervising device judges meets default warning information to Socket interfaces
's;Connected and sent a warning message to Websocket clients so that Websocket client display alarms by Websocket
Information.From technical scheme provided by the invention, announcement could be obtained without waiting for the refresh time for reaching alarm display interface
Alert information, Socket interfaces, Websocket service ends and Websocket clients, which provide one, can allow warning information straight
Sending and receiving are sent to the passage of application layer, and by such a passage, the default announcement of monitored data fit is determined in supervising device
Warning information is sent to application layer to be shown by can immediately after alert condition, it is achieved that warning information obtain in real time
Take;Simultaneously because no longer by sent a warning message to server obtain request in a manner of obtain warning information so that server without
Warning information need to be received and parsed through and obtain request, also cause database without being inquired about according to query statement, so as to avoid taking
Being engaged in, device produces parsing pressure, database produces inquiry pressure.
In actual applications, the sending module 82 of the first receiving module 81 and second can be by taking positioned at Websocket
CPU, MPU, DSP or FPGA being engaged in end etc. is realized.
The embodiment of the present invention provides a kind of Websocket clients, as shown in figure 9, the Websocket clients 9 include:
Second receiving module 91, believed for receiving Websocket service ends by the alarm of Websocket linkup transmits
Breath;Wherein, warning information is that the monitoring data obtained by supervising device judges meets after default warning information to Socket interfaces
Send, again sent from Socket to Websocket service ends.
Display module 92, for display alarm information.
Further, in addition to:
4th sending module 93, the solicited message of Websocket connections is established for being sent to Websocket service ends.
Processing module 94, connect for establishing Websocket between Websocket clients and Websocket service ends
Connect.
Second receiving module 91, it is additionally operable to reception Websocket service end transmissions and builds vertical Websocket connections really
Return information.
The Websocket clients that the embodiment of the present invention is provided, receive Websocket service ends and pass through Websocket
The warning information of linkup transmit, wherein, warning information is that the monitoring data obtained by supervising device judges meets default alarm letter
Send to Socket interfaces after breath, again sent from Socket interfaces to Websocket service ends;Display alarm information.From this
The technical scheme that invention provides is visible, and warning information could be obtained without waiting for the refresh time for reaching alarm display interface,
Socket interfaces, Websocket service ends and Websocket clients, which provide one, to allow warning information to be sent directly to
The passage of application layer, by such a passage, after supervising device determines the default alarm conditions of monitored data fit
Warning information is sent to application layer to be shown by can immediately, it is achieved that warning information in real time obtain;Simultaneously
Due to no longer obtaining warning information in a manner of being sent a warning message to server and obtain request so that server is without receiving simultaneously
Parse warning information and obtain request, also cause database without being inquired about according to query statement, so as to avoid server from producing
Parse pressure, database produces inquiry pressure.
In actual applications, second receiving module 91, display module 92, the 4th sending module 93 and processing module 94
It can be realized by CPU, MPU, DSP or FPGA in Websocket clients etc..
The embodiment of the present invention also provides a kind of Information Acquisition System, and as shown in Figure 10, the system 10 includes:
The Socket that supervising device 1001 that embodiment corresponding to above-mentioned Fig. 6 provides, embodiment corresponding to above-mentioned Fig. 7 provide
Websocket service ends 1003 that embodiment corresponding to interface 1002, above-mentioned Fig. 8 provides, embodiment corresponding to above-mentioned Fig. 9 provide
Websocket clients.
Although disclosed herein embodiment as above, described content be only readily appreciate the present invention and use
Embodiment, it is not limited to the present invention.Technical staff in any art of the present invention, taken off not departing from the present invention
On the premise of the spirit and scope of dew, any modification and change, but the present invention can be carried out in the form and details of implementation
Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.
Claims (10)
- A kind of 1. information acquisition method, it is characterised in that including:Supervising device obtains monitoring data;Whether the monitoring data obtained by judging meets default alarm conditions;If the monitoring data meets the default alarm conditions, to for data between the executive process in host operating system The communication end point Socket interfaces of exchange send a warning message, so that the Socket interfaces are to in single biography transport control protocol Discuss the protocol Web socket service ends transmission warning information, the Websocket that full duplex communication is carried out in TCP connections Service end is to Websocket clients send the warning information, the Websocket clients show the warning information.
- A kind of 2. information acquisition method, it is characterised in that including:The warning information that supervising device described in Socket interfaces is sent;Wherein, the warning information is that supervising device judges Resulting monitoring data meets what is sent after default warning information;The warning information is sent to Websocket service ends, so that the Websocket service ends are to Websocket client End sends the warning information, the Websocket clients show the warning information.
- A kind of 3. information acquisition method, it is characterised in that including:Websocket service ends receive the warning information that Socket interfaces are sent;Wherein, the warning information is that supervising device is sentenced Monitoring data obtained by breaking meets what is sent to the Socket after default warning information;Connected by Websocket to Websocket clients and send the warning information, so that the Websocket client End shows the warning information;Wherein, the Websocket is connected as the Websocket service ends pre-established and institute State the connection between Websocket clients.
- 4. acquisition methods according to claim 3, it is characterised in that the Websocket service ends obtain warning information Before, methods described also includes:Receive the solicited message for establishing Websocket connections that the Websocket clients are sent;The return information for confirming to establish Websocket connections is sent to the Websocket clients.
- A kind of 5. information acquisition method, it is characterised in that including:Websocket clients receive warning information of the Websocket service ends by Websocket linkup transmits;Wherein, institute It is that the monitoring data obtained by supervising device judges meets the default warning information Socket interfaces hair backward to state warning information Send, again sent from the Socket interfaces to the Websocket service ends;Show the warning information.
- 6. acquisition methods according to claim 5, it is characterised in that the Websocket clients receive Websocket Before warning information of the service end by Websocket linkup transmits, methods described also includes:The solicited message for establishing Websocket connections is sent to the Websocket service ends;Receive the Websocket service ends and send the return information for building vertical Websocket connections really;The Websocket is established at itself between the Websocket service ends to be connected.
- A kind of 7. supervising device, it is characterised in that including:Acquisition module, for obtaining monitoring data;Judge module, whether meet default alarm conditions for the monitoring data obtained by judging;First sending module, if meeting the default alarm conditions for the monitoring data, send and alert to Socket interfaces Information so that the Socket interfaces to Websocket service ends send the warning information, the Websocket service ends to Websocket clients send the warning information, the Websocket clients show the warning information.
- A kind of 8. Websocket service ends, it is characterised in that including:First receiving module, for receiving the warning information of Socket interfaces transmission;Wherein, the warning information is supervising device Monitoring data obtained by judging meets what is sent to the Socket interfaces after default warning information;Second sending module, the warning information is sent for being connected by Websocket to Websocket clients, so that The Websocket clients show the warning information;Wherein, the Websocket is connected as pre-establishing described Connection between Websocket service ends and the Websocket clients.
- A kind of 9. Websocket clients, it is characterised in that including:Second receiving module, for receiving warning information of the Websocket service ends by Websocket linkup transmits;Wherein, The warning information is that the monitoring data obtained by supervising device judges meets the default warning information Socket interfaces backward Send, again sent from the Socket interfaces to the Websocket service ends;Display module, for showing the warning information.
- A kind of 10. Information Acquisition System, it is characterised in that including:Supervising device as claimed in claim 7, Websocket service ends as claimed in claim 8, such as claim 9 institute The Websocket clients stated, and Socket interfaces;Wherein, the Socket interfaces are used to receive the warning information that the supervising device is sent;Sent out to Websocket service ends Send the warning information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710537954.XA CN107342896A (en) | 2017-07-04 | 2017-07-04 | A kind of information acquisition method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710537954.XA CN107342896A (en) | 2017-07-04 | 2017-07-04 | A kind of information acquisition method, apparatus and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107342896A true CN107342896A (en) | 2017-11-10 |
Family
ID=60218424
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710537954.XA Pending CN107342896A (en) | 2017-07-04 | 2017-07-04 | A kind of information acquisition method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107342896A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107426029A (en) * | 2017-08-08 | 2017-12-01 | 郑州云海信息技术有限公司 | A kind of information acquisition method, apparatus and system |
CN111122934A (en) * | 2020-01-03 | 2020-05-08 | 郑州嘉晨电器有限公司 | Oscilloscope system based on internet of things technology |
CN111212117A (en) * | 2019-12-24 | 2020-05-29 | 曙光信息产业(北京)有限公司 | Remote interaction method and device |
CN111427850A (en) * | 2019-11-06 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | Method, device and system for displaying alarm file |
CN111884861A (en) * | 2020-08-03 | 2020-11-03 | 南京信息职业技术学院 | Real-time alarm method for Internet of things equipment based on Netty |
CN113157534A (en) * | 2021-03-08 | 2021-07-23 | 国能信息技术有限公司 | Alarm management method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101729567A (en) * | 2009-12-14 | 2010-06-09 | 北京神州泰岳软件股份有限公司 | Web alarm monitoring system and method based on Socket protocol |
CN101741615B (en) * | 2009-12-14 | 2012-03-21 | 北京神州泰岳软件股份有限公司 | Server-based alarm filtering system and method |
CN103259683A (en) * | 2013-05-16 | 2013-08-21 | 烽火通信科技股份有限公司 | Web network management system second level cache pushing method based on HTML5 |
CN103281366A (en) * | 2013-05-21 | 2013-09-04 | 山东地纬计算机软件有限公司 | Embedded agency monitoring device and method supporting real-time operating state acquiring |
CN104219070A (en) * | 2013-05-31 | 2014-12-17 | 华为技术有限公司 | Network fault monitoring method and network fault monitoring system |
CN104834582A (en) * | 2015-05-19 | 2015-08-12 | 上海玖道信息科技股份有限公司 | Monitoring event display method |
-
2017
- 2017-07-04 CN CN201710537954.XA patent/CN107342896A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101729567A (en) * | 2009-12-14 | 2010-06-09 | 北京神州泰岳软件股份有限公司 | Web alarm monitoring system and method based on Socket protocol |
CN101741615B (en) * | 2009-12-14 | 2012-03-21 | 北京神州泰岳软件股份有限公司 | Server-based alarm filtering system and method |
CN103259683A (en) * | 2013-05-16 | 2013-08-21 | 烽火通信科技股份有限公司 | Web network management system second level cache pushing method based on HTML5 |
CN103281366A (en) * | 2013-05-21 | 2013-09-04 | 山东地纬计算机软件有限公司 | Embedded agency monitoring device and method supporting real-time operating state acquiring |
CN104219070A (en) * | 2013-05-31 | 2014-12-17 | 华为技术有限公司 | Network fault monitoring method and network fault monitoring system |
CN104834582A (en) * | 2015-05-19 | 2015-08-12 | 上海玖道信息科技股份有限公司 | Monitoring event display method |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107426029A (en) * | 2017-08-08 | 2017-12-01 | 郑州云海信息技术有限公司 | A kind of information acquisition method, apparatus and system |
CN111427850A (en) * | 2019-11-06 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | Method, device and system for displaying alarm file |
WO2021088773A1 (en) * | 2019-11-06 | 2021-05-14 | 杭州海康威视数字技术股份有限公司 | Method, apparatus and system for displaying alarm file |
CN111212117A (en) * | 2019-12-24 | 2020-05-29 | 曙光信息产业(北京)有限公司 | Remote interaction method and device |
CN111122934A (en) * | 2020-01-03 | 2020-05-08 | 郑州嘉晨电器有限公司 | Oscilloscope system based on internet of things technology |
CN111884861A (en) * | 2020-08-03 | 2020-11-03 | 南京信息职业技术学院 | Real-time alarm method for Internet of things equipment based on Netty |
CN111884861B (en) * | 2020-08-03 | 2022-07-29 | 南京信息职业技术学院 | Real-time alarm method for Internet of things equipment based on Netty |
CN113157534A (en) * | 2021-03-08 | 2021-07-23 | 国能信息技术有限公司 | Alarm management method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107342896A (en) | A kind of information acquisition method, apparatus and system | |
US7685292B1 (en) | Techniques for establishment and use of a point-to-point tunnel between source and target devices | |
EP3229420A1 (en) | Method for establishing persistent connection between multiple smart devices and server, and smart device | |
US8854419B2 (en) | Method and system for controlling multipoint video conference, central control subsystem and video terminal | |
CN106993043B (en) | Data communication system and method based on agency | |
CN109729002A (en) | Center monitoring alarm, disappear alarm method and device | |
CN105897652A (en) | Standard protocol based heterogeneous terminal dynamic access method | |
CN107360239A (en) | A kind of client connection status detection method and system | |
CN113098985B (en) | Session management method and scheduling server | |
CN103259684A (en) | Internet service monitoring method and system | |
CN107733679A (en) | The management method and device of parking lot terminal | |
KR100630435B1 (en) | Method for transmitting monitored status information, and cable modem | |
CN107426166B (en) | A kind of acquisition methods of information, device and electronic equipment | |
CN103312586B (en) | A kind of method of instant messaging, system and server | |
CN107426029A (en) | A kind of information acquisition method, apparatus and system | |
CN102412983B (en) | Reporting method for equipment alarm | |
CN109889369A (en) | A kind of more net redundant data transmissions methods | |
CN103078865A (en) | Network server communication model based on transmission control protocol (TCP) | |
CN106302432A (en) | A kind of communicator based on car networking and control method | |
CN107888683A (en) | A kind of client exchange method and device | |
CN114844738A (en) | Data management method based on service gateway | |
CN107274622A (en) | A kind of fire-alarm service data shares transmission method and system | |
CN106790534A (en) | A kind of power system information push method, apparatus and system | |
CN114125021A (en) | Terminal information issuing system based on Netty message drive | |
CN108347368A (en) | A kind of instant communication method, device send terminal and receive terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171110 |