CN109067899A - data display method and device, data push method and device - Google Patents
data display method and device, data push method and device Download PDFInfo
- Publication number
- CN109067899A CN109067899A CN201810975594.6A CN201810975594A CN109067899A CN 109067899 A CN109067899 A CN 109067899A CN 201810975594 A CN201810975594 A CN 201810975594A CN 109067899 A CN109067899 A CN 109067899A
- Authority
- CN
- China
- Prior art keywords
- data
- display
- server
- push
- parsing
- 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
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- 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]
-
- 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
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides a kind of data display methods and device, data push method and device, wherein, this method comprises: receiving the data to be displayed of server push by the long connection pre-established, wherein the data to be displayed is the data by the server active push;Show the data to be displayed.Solve the problems, such as through the above scheme it is existing to obtain resource cost caused by data by the way of automatic regular polling excessive, reached the reduction wasting of resources, and can be with the technical effect of real-time display data.
Description
Technical field
The present invention relates to Internet technical fields, in particular to a kind of data display method and device, data-pushing
Method and apparatus.
Background technique
Currently, obtaining real-time dynamic data is by the way of automatic regular polling mostly, this mode is by browser timing
Refresh page is actively issued by browser and is requested, to get the data for issuing client on server.If do not had for a long time
There is data update, then this data acquiring mode will cause a large amount of futile requests, server resource can be wasted, and this fixed
When poll mode be also difficult to obtain data in real time.
For problem of resource waste present in existing data acquisition, effective solution side is not yet proposed at present
Formula.
Summary of the invention
The embodiment of the invention provides a kind of data display method and device, data push method and device, to reach pair
The technical effect of data variation progress real-time display.
On the one hand, a kind of data display method is provided, comprising:
The data to be displayed of the server push is received by the long connection pre-established, wherein the number to be shown
According to for by the data of the server active push;
Show the data to be displayed.
In one embodiment, the data to be displayed is shown, comprising:
Obtain flag bit, wherein the flag bit is used to identify whether to receive the data of the server push;
In the case where determining that the mark bit identification has received the data of the server push, the service is shown
The data of device push;
In the case where determining that the mark bit identification does not receive the data of the server push, in called data library
The data of storage are shown.
In one embodiment, the data to be displayed is multi-energy data.
In one embodiment, length is connected as WebSocket long connecting communication.
In one embodiment, the data to be displayed is to acquire and be uploaded to the server and by the clothes in real time
The data for device active push of being engaged in.
On the other hand, a kind of data push method is provided, comprising:
Receive the data that monitored end is reported when data variation occurs;
Received data are parsed;
By the data after parsing, display end is pushed to by the long connection pre-established.
In one embodiment, by the data after parsing, display end is pushed to by the long connection pre-established, is wrapped
It includes:
When determining display end display, if needs handle the data after parsing;
In the case where needing to handle the data after parsing when determining display end display, according to described
The display rule of display end handles the data after parsing, and treated data are passed through to the long connection pre-established and are pushed away
It send to display end;
In the case where not needing to handle the data after parsing when determining display end display, it will parse
Data afterwards pass through the long connection pre-established and push to display end.
In one embodiment, after being parsed to received data, the method also includes:
Data after parsing are stored into database.
Another aspect provides a kind of data presentation device, is located in terminal, comprising:
Receiving module receives the data to be displayed of the server push for the long connection by pre-establishing, wherein
The data to be displayed is the data by the server active push;
Display module, for showing the data to be displayed.
In one embodiment, the display module includes:
Acquiring unit, for obtaining flag bit, wherein the flag bit is for identifying whether to receive the server push
The data sent;
First display unit, for determining the feelings for indicating bit identification and having received the data of the server push
Under condition, the data of the server push are shown;
Second display unit, for determining the feelings for indicating bit identification and not receiving the data of the server push
Under condition, the data stored in called data library are shown.
Another aspect provides a kind of data-pushing device, is located in server, comprising:
Receiving module, the data reported for receiving monitored end when data variation occurs;
Parsing module is used to analyze the received data and is parsed;
Pushing module pushes to display end by the long connection pre-established for the data after parsing.
In one embodiment, the pushing module includes:
Determination unit, when for determining display end display, if needs handle the data after parsing;
First push unit, for needing to handle the data after parsing when determining display end display
In the case where, the data after parsing are handled according to the display rule of the display end, and data pass through by treated
The long connection pre-established pushes to display end;
Second push unit, for not needing when determining display end display at the data after parsing
In the case where reason, the data after parsing are passed through to the long connection pre-established and push to display end.
Another aspect provides a kind of air-conditioning, comprising: above-mentioned data presentation device.
Another aspect provides a kind of terminal device, comprising: memory, processor and storage are on a memory and can be
The step of computer program run on processor, the processor realizes the above method when executing the computer program.
Another aspect provides a kind of server, comprising: memory, processor and storage on a memory and can located
The step of computer program run on reason device, the processor realizes the above method when executing the computer program.
Another aspect provides a kind of non-volatile computer readable storage medium storing program for executing, is stored thereon with computer program, institute
State the step of above method is realized when computer program is executed by processor.
Another aspect provides a kind of non-volatile computer readable storage medium storing program for executing, is stored thereon with computer program, institute
State the step of above method is realized when computer program is executed by processor.
In the above-described embodiments, the data to be displayed of server push is received by the long connection pre-established, wherein to
Show that data are to acquire and be uploaded to the server in real time and by the data of the server active push;Then, it then shows
Data to be displayed.It is shown that is, server after receiving the data acquired in real time, actively sends data to terminal side,
Solve the problems, such as it is existing to obtain resource cost caused by data by the way of automatic regular polling excessive, reached reduction money
Source waste, and can be with the technical effect of real-time display data.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present invention, schematic reality of the invention
It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the method flow diagram of data display method according to an embodiment of the present invention;
Fig. 2 is the method flow diagram of data push method according to an embodiment of the present invention;
Fig. 3 is the configuration diagram of data delivery system according to an embodiment of the present invention;
Fig. 4 is the page data processing schematic of resolution server according to an embodiment of the present invention;
Fig. 5 is the flow diagram that data according to an embodiment of the present invention are shown;
Fig. 6 is the structural block diagram of data presentation device according to an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, right below with reference to embodiment and attached drawing
The present invention is described in further details.Here, exemplary embodiment and its explanation of the invention is used to explain the present invention, but simultaneously
It is not as a limitation of the invention.
It is existing obtain the wasting of resources present in page data in real time by way of automatic regular polling aiming at the problem that,
, can be actively to server reported data in the application it is considered that if deposited in varying situations in data, server will be upper
The data of report, which synchronize, is sent to push server, so as in client-side real-time display, so as to which the variation of data is timely
It is shown, also avoids terminal so repeatedly to the problem of the wasting of resources caused by server request data.
Based on this, for terminal side, that is, for data show side, provide a kind of data display side in this example
Method, as shown in Figure 1, may include steps of:
Step 101: the data to be displayed of the server push is received by the long connection pre-established, wherein described
Data to be displayed is the data by the server active push;
Wherein, long connection refers to that multiple data packets can be continuously transmitted in a connection, can during connecting holding
Data packet is sent with duration, just establishes primary connection without sending a data packet.Within the long connection retention time, such as
Fruit does not have data packet transmission, then both sides is needed to send out link detecting packet, to determine long connection still continuous and effective.
Specifically, the data to be displayed, which can be, acquires and is uploaded to server and by the number of server active push in real time
According to.
Step 102: showing the data to be displayed.
In upper example, the data to be displayed of server push is received by the long connection pre-established, wherein number to be shown
According to acquire and being uploaded to the server in real time and by the data of the server active push;Then, it then shows to be shown
Data.That is, server, which after receiving the data acquired in real time, actively sends data to terminal side, is shown solve
It is existing that the excessive problem of resource cost caused by data is obtained by the way of automatic regular polling, reach reduction resource wave
Take, and can be with the technical effect of real-time display data.
Specifically, in order to enable the data that server obtains can be updated in terminal side real-time perfoming and be shown, for example, user
When checking data by browser, the variation of data can be shown in browser interface in real time, can be in server
Long connection is established between terminal side, is passed through a dohandshake action in this way, can be formed one between browser and server
Express passway.In this way, client no longer needs active transmission request to carry out pulling data after client and server establish connection,
As long as server receives the data sent, server can actively send the data to client.
It may include resolution server for above-mentioned server, for being parsed to data;Push server,
For to the data-pushing after parsing to display terminal.When actually realizing, resolution server and push server can be with
It is to be arranged in same server, is also possible to be arranged in different server.
In order to enable terminal may determine whether to receive the new data that server is sent, flag bit can be set, such as
Fruit has new data just to modify the flag bit, after showing the data, just restores the flag bit.Therefore, according to the variation of flag bit,
New data can be effectively determined whether.
For example, flag bit is the 0 no new data of expression, flag bit indicates new data for 1.Specifically, display is to be shown
Data may include:
S1: flag bit is obtained, wherein the flag bit is used to identify whether to receive the data of the server push;
S2: in the case where determining that the mark bit identification has received the data of the server push, described in display
The data of server push;
S3: in the case where determining that the mark bit identification does not receive the data of the server push, called data
The data stored in library are shown.
That is, in order to enable also confiscating the number that real-time transmission comes at no data variation or the first unlatching interface
In the case where, effective display of data can be carried out, newest data can be obtained from database and are shown, Deng Daoyou
New data come, then show new data.
Above-mentioned data to be displayed can be multi-energy data, thus may be implemented effectively to show multi-energy data in real time
Show.
Above-mentioned long connection can be, but not limited to can also be that other long connections are logical for WebSocket long connecting communication
News mode
In this example, for server side, a kind of data push method is provided, as shown in Fig. 2, may include walking as follows
It is rapid:
Step 201: receiving the data that monitored end is reported when data variation occurs;
Step 202: received data are parsed;
Step 203: by the data after parsing, display end being pushed to by the long connection pre-established.
That is, above-mentioned data can be the data uploaded when being detected end transmission data variation, for example, energy device is in the energy
When data change, the data of variation can be uploaded to server.It, can be with for example, the data of ammeter change
The data of variation are uploaded to server in real time.
For server side, in order to reduce the complexity of display end data processing, server may determine that display end
When display, if need to handle data, if necessary to just complete processing operation in server side, to reduce
The processing complexity of display end.That is, the data after parsing are pushed to display end by the long connection pre-established, can wrap
It includes: when determining display end display, if needs handle the data after parsing;Determining what the display end was shown
When need to handle the data after parsing in the case where, it is regular to the data after parsing according to the display of the display end
It is handled, and treated data is passed through to the long connection pre-established and push to display end;Determining that the display end is aobvious
It is not needed when showing in the case where handling the data after parsing, the data after parsing is passed through to the long company pre-established
It connects and pushes to display end.
For example, display end is that web page is shown, then can determine web page when being shown to the data,
Whether need to carry out data processing operation in addition to display, if it is desired, these processing operations are just put into server
Side is handled, and is pushed to web page again after processing and is shown.
Server side can store the data after parsing into database after parsing to received data,
Terminal in this way can transfer newest data from database and be shown when not data show.
Above-mentioned data can be, but not limited to be multi-energy data, and above-mentioned long connection can be, but not limited to be WebSocket
Long connecting communication.
Above-mentioned method for exhibiting data is illustrated below with reference to a specific embodiment, it should be noted, however, that should
Specific embodiment does not constitute an undue limitation on the present application merely to the application is better described.
In this example, one kind is provided based on web page real-time display energy resources data system and method, which passes through
Web page shows energy state data, and to reenter after page close can also display in real time multi-energy data.
Specifically, the system can be as shown in Figure 2, comprising:
1) data acquisition module, for when multi-energy data changes, to application server reported data;
2) parsing module is located in application server, for solving to the multi-energy data offered on data acquisition module
Analysis, and after having parsed, it is saved in database, and be simultaneously sent to message push server;
3) push server is based on WebSocket long connecting communication mode, realizes complete double between browser and server
Work communication, because browser only needs to do with server once shakes hands using WebSocket long connecting communication mode
Movement, can form an express passway between browser and server.
By establishing WebSocket long connecting communication, client (that is, browser) and message push server establish connection
Afterwards, client no longer needs active transmission request to carry out pulling data, as long as message push server receives application server hair
The data sent, message push server can actively send the data to client.
For push server, as shown in figure 4, after receiving the data of application server, if the page needs
Handle data, then after to data processing, then by data-pushing to front end, if the page does not need to handle data,
Directly by data-pushing to front end, to simplify the corresponding logic in front end, the response speed of the page is improved.
4) data inquiry module is located in terminal, is used in initial page load, if multi-energy data does not change,
Or, transmission delay and occur front end no data reception the case where, then can by inquiry database by one of newest preservation
Multi-energy data is supplied to the page and is shown.
5) it shows interactive module, is used for real-time display multi-energy data.
As shown in figure 5, the read-write behaviour of data can be carried out after terminal and push server establish the channel Socket
Make, to realize real-time data acquisition.When realizing, a flag bit can use to determine whether receiving push
The data that server is sent are shown if it is not, data inquiry module is called to carry out web data, if receiving push clothes
The data of business device push, then update page data and carry out real-time display.
In upper example, web page real-time display energy resources data system and method are based on by this, web page can be real-time
Data are shown, so as to effectively monitor energy state.That is, by providing a kind of data presentation system, comprising: data acquisition
Module, parsing module, push server, data inquiry module, display interactive module carry out dynamically load multi-energy data, so as to
In web page real-time display multi-energy data.Can also solve data through the above scheme does not have no data when real-time change to upload,
The problem of page initial loading not data show can effectively promote user experience, reduce server bandwidth resource.
Based on the same inventive concept, a kind of data presentation device is additionally provided in the embodiment of the present invention, such as following implementation
Described in example.Since the principle that data presentation device solves the problems, such as is similar to data display method, the reality of data presentation device
The implementation that may refer to data display method is applied, overlaps will not be repeated.It is used below, term " unit " or " mould
The combination of the software and/or hardware of predetermined function may be implemented in block ".Although device described in following embodiment is preferably with soft
Part is realized, but the realization of the combination of hardware or software and hardware is also that may and be contemplated.Fig. 6 is of the invention real
A kind of structural block diagram of the data presentation device of example is applied, as shown in fig. 6, may include: receiving module 601 and display module 602,
The structure is illustrated below.
Receiving module 601 receives the data to be displayed of the server push for the long connection by pre-establishing,
In, the data to be displayed is the data by the server active push;Specifically, the data to be displayed is acquisition in real time
And it is uploaded to the server and by the data of the server active push.
Display module 602, for showing the data to be displayed.
In one embodiment, display module 602 may include: acquiring unit, for obtaining flag bit, wherein institute
State the data that flag bit is used to identify whether to receive the server push;First display unit, for determining the mark
In the case that will bit identification has received the data of the server push, the data of the server push are shown;Second is aobvious
Show unit, in the case where determining that the mark bit identification does not receive the data of the server push, called data
The data stored in library are shown.
In one embodiment, above-mentioned data to be displayed can be multi-energy data.
In one embodiment, above-mentioned long connection can be WebSocket long connecting communication.
Present invention also provides a kind of data-pushing devices, are located in server, the apparatus may include:
Receiving module, the data reported for receiving monitored end when data variation occurs;
Parsing module is used to analyze the received data and is parsed;
Pushing module pushes to display end by the long connection pre-established for the data after parsing.
In one embodiment, pushing module may include: determination unit, when for determining display end display,
Whether need to handle the data after parsing;First push unit, for being needed when determining display end display
In the case where handling the data after parsing, according to the display end display rule to the data after parsing at
Reason, and treated data are passed through to the long connection pre-established and push to display end;Second push unit, for determining
It does not need in the case where handling the data after parsing, the data after parsing is passed through preparatory when stating display end display
The long connection of foundation pushes to display end.
In one embodiment, above-mentioned data-pushing device can also include: memory module, for received number
After being parsed, the data after parsing are stored into database.
In another embodiment, a kind of software is additionally provided, the software is for executing above-described embodiment and preferred reality
Apply technical solution described in mode.
In another embodiment, a kind of storage medium is additionally provided, above-mentioned software is stored in the storage medium, it should
Storage medium includes but is not limited to: CD, floppy disk, hard disk, scratch pad memory etc..
It can be seen from the above description that the embodiment of the present invention realizes following technical effect: by what is pre-established
Long connection receives the data to be displayed of server push, wherein data to be displayed is to acquire in real time and be uploaded to the server
And by the data of the server active push;Then, then data to be displayed is shown.That is, server is receiving real-time acquisition
Data after, actively send data to terminal side and shown, solve and existing obtain number by the way of automatic regular polling
According to the problem that caused resource cost is excessive, the reduction wasting of resources is reached, and can be with the technical effect of real-time display data.
Although mentioning different specific embodiments in teachings herein, the application is not limited to be industry
Situation described in standard or embodiment etc., certain professional standards or the implementation base described using customized mode or embodiment
On plinth embodiment modified slightly also may be implemented above-described embodiment it is identical, it is equivalent or it is close or deformation after it is anticipated that
Implementation result.It, still can be with using these modifications or the embodiment of deformed data acquisition, processing, output, judgment mode etc.
Belong within the scope of the optional embodiment of the application.
Although this application provides the method operating procedure as described in embodiment or flow chart, based on conventional or noninvasive
The means for the property made may include more or less operating procedure.The step of enumerating in embodiment sequence is only numerous steps
One of execution sequence mode, does not represent and unique executes sequence.It, can when device or client production in practice executes
To execute or parallel execute (such as at parallel processor or multithreading according to embodiment or method shown in the drawings sequence
The environment of reason, even distributed data processing environment).The terms "include", "comprise" or its any other variant are intended to contain
Lid non-exclusive inclusion, so that process, method, product or equipment including a series of elements are not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, product or equipment
Intrinsic element.In the absence of more restrictions, be not precluded include the process, method of the element, product or
There is also other identical or equivalent elements in person's equipment.
Device that above-described embodiment illustrates or module etc. can specifically realize by computer chip or entity, or by having
There is the product of certain function to realize.For convenience of description, it is divided into various modules when description apparatus above with function to retouch respectively
It states.Certainly, the function of each module can be realized in the same or multiple software and or hardware when implementing the application,
The module for realizing same function can be realized by the combination of multiple submodule etc..Installation practice described above is only
Schematically, for example, the division of the module, only a kind of logical function partition, can there is other draw in actual implementation
The mode of dividing, such as multiple module or components can be combined or can be integrated into another system, or some features can be ignored,
Or it does not execute.
It is also known in the art that other than realizing controller in a manner of pure computer readable program code, it is complete
Entirely can by by method and step carry out programming in logic come so that controller with logic gate, switch, specific integrated circuit, programmable
Logic controller realizes identical function with the form for being embedded in microcontroller etc..Therefore this controller is considered one kind
Hardware component, and the structure that the device for realizing various functions that its inside includes can also be considered as in hardware component.Or
Person even, can will be considered as realizing the device of various functions either the software module of implementation method can be hardware again
Structure in component.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program
Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group
Part, data structure, class etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments,
By executing task by the connected remote processing devices of communication network.In a distributed computing environment, program module can
To be located in the local and remote computer storage media including storage equipment.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can
It realizes by means of software and necessary general hardware platform.Based on this understanding, the technical solution essence of the application
On in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software product
It can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment
(can be personal computer, mobile terminal, server or the network equipment etc.) executes each embodiment of the application or implementation
Method described in certain parts of example.
Each embodiment in this specification is described in a progressive manner, the same or similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.The application can be used for crowd
In mostly general or special purpose computing system environments or configuration.Such as: personal computer, server computer, handheld device or
Portable device, laptop device, multicomputer system, microprocessor-based system, set top box, programmable electronics set
Standby, network PC, minicomputer, mainframe computer, distributed computing environment including any of the above system or equipment etc..
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that the application there are many deformation and
Variation is without departing from spirit herein, it is desirable to which appended embodiment includes these deformations and changes without departing from the application.
Claims (17)
1. a kind of data display method characterized by comprising
The data to be displayed of server push is received by the long connection pre-established, wherein the data to be displayed is by institute
State the data of server active push;
Show the data to be displayed.
2. the method according to claim 1, wherein showing the data to be displayed, comprising:
Obtain flag bit, wherein the flag bit is used to identify whether to receive the data of the server push;
In the case where determining that the mark bit identification has received the data of the server push, the server push is shown
The data sent;
In the case where determining that the mark bit identification does not receive the data of the server push, called data stores in library
Data shown.
3. the method according to claim 1, wherein the data to be displayed is multi-energy data.
4. the method according to claim 1, wherein the length is connected as WebSocket long connecting communication.
5. the method according to claim 1, wherein the data to be displayed is described to acquire and being uploaded in real time
Server and by the data of the server active push.
6. a kind of data push method characterized by comprising
Receive the data that monitored end is reported when data variation occurs;
Received data are parsed;
By the data after parsing, display end is pushed to by the long connection pre-established.
7. according to the method described in claim 6, it is characterized in that, the data after parsing are passed through the long connection pre-established
Push to display end, comprising:
When determining display end display, if needs handle the data after parsing;
In the case where needing to handle the data after parsing when determining display end display, according to the display
The display rule at end handles the data after parsing, and treated data are passed through to the long connection pre-established and are pushed to
Display end;
In the case where not needing to handle the data after parsing when determining display end display, after parsing
Data pass through the long connection pre-established and push to display end.
8. according to the method described in claim 6, it is characterized in that, after being parsed to received data, the method
Further include:
Data after parsing are stored into database.
9. a kind of data presentation device is located in terminal characterized by comprising
Receiving module receives the data to be displayed of server push for the long connection by pre-establishing, wherein described to aobvious
Registration is according to for by the data of the server active push;
Display module, for showing the data to be displayed.
10. device according to claim 9, which is characterized in that the display module includes:
Acquiring unit, for obtaining flag bit, wherein the flag bit is for identifying whether to receive the server push
Data;
First display unit, for determining the case where mark bit identification has received the data of the server push
Under, show the data of the server push;
Second display unit, for determining the case where mark bit identification does not receive the data of the server push
Under, the data stored in called data library are shown.
11. a kind of data-pushing device is located in server characterized by comprising
Receiving module, the data reported for receiving monitored end when data variation occurs;
Parsing module is used to analyze the received data and is parsed;
Pushing module pushes to display end by the long connection pre-established for the data after parsing.
12. device according to claim 11, which is characterized in that the pushing module includes:
Determination unit, when for determining display end display, if needs handle the data after parsing;
First push unit, for determining the feelings for needing to handle the data after parsing when display end display
Under condition, the data after parsing are handled according to the display rule of the display end, and data pass through in advance by treated
The long connection of foundation pushes to display end;
Second push unit, for do not need to handle the data after parsing when determining that the display end is shown
In the case of, the data after parsing are passed through to the long connection pre-established and push to display end.
13. a kind of air-conditioning, comprising: data presentation device described in claim 8 or 9.
14. a kind of terminal device, comprising: memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, which is characterized in that the processor realizes any one of claims 1 to 5 institute when executing the computer program
The step of stating method.
15. a kind of server, comprising: memory, processor and storage are on a memory and the calculating that can run on a processor
Machine program, which is characterized in that the processor is realized described in any one of claim 6 to 8 when executing the computer program
The step of method.
16. a kind of non-volatile computer readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the meter
The step of calculation machine program realizes any one of claims 1 to 5 the method when being executed by processor.
17. a kind of non-volatile computer readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the meter
The step of any one of claim 6 to 8 the method is realized when calculation machine program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810975594.6A CN109067899A (en) | 2018-08-24 | 2018-08-24 | data display method and device, data push method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810975594.6A CN109067899A (en) | 2018-08-24 | 2018-08-24 | data display method and device, data push method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109067899A true CN109067899A (en) | 2018-12-21 |
Family
ID=64756063
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810975594.6A Pending CN109067899A (en) | 2018-08-24 | 2018-08-24 | data display method and device, data push method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109067899A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110417865A (en) * | 2019-06-28 | 2019-11-05 | 苏州浪潮智能科技有限公司 | A kind of method and apparatus that resource is found automatically |
CN111427850A (en) * | 2019-11-06 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | Method, device and system for displaying alarm file |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140068453A1 (en) * | 2010-12-10 | 2014-03-06 | Stevan KOMINAC | Methods And Systems for Accessing and Controlling a Remote Desktop of a Remote Machine in Real Time by a Web Browser at a Client Device Via HTTP API Utilizing a Transcoding Server |
CN104618425A (en) * | 2014-12-17 | 2015-05-13 | 浙江工商大学 | Real-time data monitoring method and system |
CN105005201A (en) * | 2015-06-04 | 2015-10-28 | 广东康宝电器股份有限公司 | Multi-mobile-terminal data synchronization and push system for intelligent household |
CN107062530A (en) * | 2017-03-07 | 2017-08-18 | 青岛海尔空调器有限总公司 | Air conditioner and data server |
-
2018
- 2018-08-24 CN CN201810975594.6A patent/CN109067899A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140068453A1 (en) * | 2010-12-10 | 2014-03-06 | Stevan KOMINAC | Methods And Systems for Accessing and Controlling a Remote Desktop of a Remote Machine in Real Time by a Web Browser at a Client Device Via HTTP API Utilizing a Transcoding Server |
CN104618425A (en) * | 2014-12-17 | 2015-05-13 | 浙江工商大学 | Real-time data monitoring method and system |
CN105005201A (en) * | 2015-06-04 | 2015-10-28 | 广东康宝电器股份有限公司 | Multi-mobile-terminal data synchronization and push system for intelligent household |
CN107062530A (en) * | 2017-03-07 | 2017-08-18 | 青岛海尔空调器有限总公司 | Air conditioner and data server |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110417865A (en) * | 2019-06-28 | 2019-11-05 | 苏州浪潮智能科技有限公司 | A kind of method and apparatus that resource is found automatically |
CN111427850A (en) * | 2019-11-06 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | Method, device and system for displaying alarm file |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105488837B (en) | Real-time off screen rendering method based on cloud computing, apparatus and system | |
WO2018210062A1 (en) | Method and device for determining inventory of items by server system | |
CN106776280B (en) | Configurable performance testing device | |
JP6692000B2 (en) | Risk identification method, risk identification device, cloud risk identification device and system | |
CN105183299B (en) | A kind of man-machine interface service processing system and method | |
CN107103004B (en) | Method, device and system for processing data in webpage | |
CN103124263A (en) | Advertisement serving system, advertisement serving device and advertisement server | |
CN103067214A (en) | Method, client, server and system used for testing web site performance | |
WO2015058204A1 (en) | Automatic asynchronous handoff identification | |
CN103825783A (en) | Test method and device | |
CN105763507A (en) | Message processing method, device and system | |
CN109067899A (en) | data display method and device, data push method and device | |
CN105068801A (en) | Method and system for modifying json date format | |
US20170163505A1 (en) | Application centric network experience monitoring | |
CN109218041B (en) | Request processing method and device for server system | |
CN110750453B (en) | HTML 5-based intelligent mobile terminal testing method, system, server and storage medium | |
US20170222893A1 (en) | Distributed Business Transaction Path Network Metrics | |
CN103905484B (en) | Handle the method and device of hypertext transfer protocol requests | |
US9342281B2 (en) | Method for allowing distributed running of an application and related pre-processing unit | |
CN104468248A (en) | Service performance monitoring method, reverse proxy server, statistical analysis server and system | |
Kamiński et al. | Comparative review of selected Internet communication protocols | |
US20190068736A1 (en) | Push control | |
US10616081B2 (en) | Application aware cluster monitoring | |
CN104821939B (en) | It is a kind of to be used to implement computer and the method and apparatus of mobile equipment room asynchronous communication | |
CN105637904A (en) | Traffic coordination for communication sessions involving wireless terminals and server devices |
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: 20181221 |