The exhibiting method of real time information and device
Technical field
The application is related to technical field of data processing, more particularly, to a kind of exhibiting method of real time information and dress
Put.
Background technology
For the participant in all kinds financial market, get accurate information in time most important.
Financial service business provides various present quotation softwares, and various to stock, fund, futures etc. finance are produced
User is presented in the real time information of product in terminal.User opens several interactions generally in terminal simultaneously
Interface, to check the real time information of its perpetual object.For example, user can open 3 interfaces simultaneously,
Check the equal line chart of the instant trend graph of certain stock, the K line chart of this stock and this stock.
In prior art, in terminal, the Real time data acquisition data of each interactive interface is processed is independently to enter
Row, specifically, each interactive interface at regular intervals to the real time data that server request is up-to-date,
After the original real-time data obtaining server return, it is calculated this interaction circle using original real-time data
On face, to be represented one is arrived multiple finger target values, and presents to user on this interactive interface.This every
The implementation that individual interactive interface obtains real time data from server respectively causes very big flow consumption,
The delay of information may be caused because bandwidth is not enough when the network condition of terminal is not good, bring damage to user
Lose.
Content of the invention
In view of this, the application provides a kind of exhibiting method of real time information, applies in terminal, including:
Receive the original real-time data from server;
Aggregated data is generated according to original real-time data;Described aggregated data be used for represent one or one with
On interactive interface;
The interactive interface being associated with described aggregated data is assumed using aggregated data.
Present invention also provides a kind of demonstration device of real time information, apply in terminal, including:
Real time data receiving unit, for receiving the original real-time data from server;
Aggregate data unit, for generating aggregated data according to original real-time data;Described aggregated data is used
To represent one or more interactive interface;
Interface display unit, for assuming, using aggregated data, the interactive boundary being associated with described aggregated data
Face.
From above technical scheme, by the original real-time number from server in embodiments herein
Can be multiplexed in the aggregated data of multiple interactive interfaces according to generating, and represent associated using aggregated data
All interactive interfaces, it is to avoid repeat to transmit the identical original real-time data that distinct interaction interface uses,
Decrease flow consumption, improve the speed representing real time information.
Brief description
Fig. 1 is a kind of flow chart of the exhibiting method of real time information in the embodiment of the present application;
Fig. 2 is the logic module composition schematic diagram of the financial App of terminal in the application application example;
Fig. 3 is a kind of hardware structure diagram of terminal;
Fig. 4 is a kind of building-block of logic of the demonstration device of real time information in the embodiment of the present application.
Specific embodiment
When user checks the financial product of its concern by present quotation software or present quotation website, lead to
Commonly use multiple interactive interfaces to represent multiple difference indexs of its several perpetual object, calculate these indexs normal
Often need to use identical original real-time data.So, in prior art multiple interactive interfaces respectively from clothes
Have some Data duplications in the original real-time data that business device obtains to transmit repeatedly, cause the wave of flow
Take.
Embodiments herein proposes a kind of exhibiting method of new real time information, can will obtain from server
A original real-time data obtaining is multiplexed representing in multiple interactive interfaces, it is to avoid the weight of original real-time data
Multiple transmission, to save flow, improves the spread speed of efficiency of transmission and real time information, thus solving existing
Problem present in technology.The real time information that embodiments herein can be not only used for financial product represents,
Can be used for needing in other field original real-time data is carried out passing through after information processing one arrive multiple
Interactive interface is carrying out the scene that different angles represent.
In embodiments herein, pass through network between terminal and server mutually addressable, wherein, eventually
End can be mobile phone, panel computer, PC (Personal Computer, PC), notebook,
There is the equipment such as the intelligent television of calculation function;Server can be a physically or logically server,
Can be to be shared the physically or logically server of different responsibilities, mutually worked in coordination with fact by two or more
The various functions of server in existing the embodiment of the present application.The species to terminal, server for the embodiment of the present application,
And the type of communication network, agreement etc. all do not limit between terminal and server.
Apply the flow process of the exhibiting method of real time information in terminal as shown in Figure 1.
Step 110, receives the original real-time data from server.
Terminal can be all former required at a certain time interval to each interactive interface of server request
Beginning real time data, and the reception server returns requested data.This mode by terminal pulling data
In the case that required original real-time data does not update, also may can carry out request and the sound of data
Answer process, thus causing unnecessary flow.
In order to avoid unnecessary request of data and response process it is also possible to by server in terminal each
When original real-time data required for interactive interface has renewal, actively the original real-time data updating is pushed
To terminal.Terminal, after receiving the packet of server push, decodes the original of renewal from packet
Real time data.
In embodiments herein, server sends the original real-time number of each interactive interface needs to terminal
According to the original real-time data so being used by multiple interactive interfaces only needs to send once, thus reducing
Flow between terminal and server.
Because server would generally send, to terminal, the original real-time data that multiple interactive interfaces need, adopting
During with pushing mode, when occur the byte number of certain or some original real-time data that updates than larger when,
The data volume that may make server push larger so that with interacting of not needing these original real-time data
Interface (not having related interactive interface with these original real-time data) can not be presented to user in time.
In order to avoid this situation occurs, in one implementation, in the packet pushing, permissible
Carry the less original real-time data having renewal of byte number, and larger certain of byte number or some former
Beginning real time data has the notice of renewal.In terminal, which original real-time number is learnt according to the notice in packet
According to having after renewal, can there is at least one original real-time data of renewal to server request, and receive clothes
The original real-time data asked that business device returns.The implementation of this bi-directional synchronization can carry further
The speed that high real time information represents.
In above-mentioned implementation, can be by original real-time data setting larger for usual byte number using more
The new mode notifying pulls process to start terminal;Can be according to the Netowrk tape between server and terminal
Width, to arrange the byte number threshold value of each original real-time data, exceedes the original real-time of this threshold value in byte number
Data has the update notification carrying this original real-time data during renewal in the packet pushing;Can also set
Put the total length threshold value of each propelling data, if the total length of propelling data exceedes this threshold value, by it
One of middle maximum number of byte is carried in the form of update notification to multiple original real-time data, so that pushing away
The size sending data is less than this threshold value;Can also needing using other judgement marks according to concrete application scene
Determining which original real-time data in the form of update notification, embodiments herein does not limit standard.
Step 120, generates aggregated data according to original real-time data;Aggregated data be used for represent one or
More than one interactive interface.
In the embodiment of the present application, the real time information (hereinafter referred to as video data) that represents on interactive interface
Can be original real-time data itself or one to multiple original real-time data is entered row operation or
Other data obtaining after processing.According to specific application scenarios and the processing procedure that obtains video data,
Can using original be data itself as aggregated data;If obtaining two or more video datas
During, same original real-time data can be carried out with part identical process, then can adopt this phase
Result (i.e. intermediate result in the processing procedure obtaining video data) with processing procedure is used as gathering
Close data;If certain video data can be used for obtaining other video datas as intermediate result
Processing procedure, then can be using this video data as aggregated data.
In other words, aggregated data can include original real-time data, shown using original real-time data
Intermediate processing results during registration evidence and/or video data.Corresponding, generate the side of aggregated data
Formula can include directly processing original real-time data aggregated data, the part when obtaining video data
Journey and/or the complete process process obtaining video data, are referred to prior art and realize, repeat no more.
When using in the intermediate processing results being obtained using original real-time data during video data or aobvious
Registration is according to during as aggregated data, can also reducing the repeat number when representing multiple interactive interface in terminal
According to processing procedure, alleviate the computational load of terminal.
Step 130, assumes, using aggregated data, the interactive interface being associated with described aggregated data.
This step can refer to prior art and realizes, and repeats no more.
When the renewal of the original real-time data receiving from server leads at least one aggregated data to change
When, all interactive interfaces that terminal renewal is associated with the aggregated data changing, will be updated with timely
Real time information afterwards is presented to user.
In prior art, terminal is when needing up-to-date real time information, original in real time to server request
Data, carries out obtaining after response process corresponding to interaction circle using the original real-time data receiving in internal memory
The video data in face, and user is presented on interactive interface.Terminal does not preserve the original real-time number of reception
According to (the original real-time data of reception not being stored in nonvolatile storage space), due in internal memory
Data there is no persistency, when network condition is poor, may because displaying can not be got from server
All original real-time data needed for certain interactive interface and this interactive interface cannot be shown.Realize a kind of
In mode, can by the original real-time data receiving from server (include from server pull and or
Original real-time data by server push) it is saved in terminal local and (be stored in local non-volatile
In memory space), and generate aggregated data using the original real-time data preserving, accordingly even when in network
When situation is poor, even if the original real-time data of latest update cannot be obtained, still can be based on preservation
Original real-time data shows interactive interface to user, improves Consumer's Experience.
Such implementation is equivalent to and is synchronized the local original real-time data preserving with server end,
Can to preserve original real-time data in terminal local using with server end identical content and form, with
Simplify the process of data syn-chronization and improve synchronous efficiency.
It can be seen that, in embodiments herein, generated by a original real-time data obtaining from server
Can be used for the aggregated data of multiple interactive interfaces, repeat to transmit by avoiding to the multiplexing of aggregated data
The identical original real-time data that distinct interaction interface uses, decreases flow consumption, improves transmission speed
Thus accelerating the speed representing real time information.
In an application example of the application, the financial App (application program) in terminal can be by gold
Present quotation, real-time messages and the real time information of melting product are presented to user, and wherein, present quotation includes
The ups and downs situation of financial product and trading situation;Real-time messages include being sent to the user's using this terminal
Message, the such as response to this user operation for the server, for another example other users be sent to the message of this user;
Real time information includes the lastest news related to the company etc. in financial market, participation or impact financial market.
In this application example, financial product App includes each logic module as shown in Figure 2.Synchronous control
Real time information that user is subscribed to by device processed or the original real-time number required for all interactive interfaces that user opens
It is which reports service according to (including market data, message data and the information data of this financial product)
Device.These original real-time data are sent to terminal by server, and have renewal in these original real-time data
When, the notice that the original real-time data itself after updating or original real-time data are had renewal is encapsulated in push
In packet, it is sent to terminal.
The isochronous controller of terminal receives after the propelling data bag of server, decodes from packet
Original real-time data, calls storage control, as market data, message data or information data
It is stored in local nonvolatile storage space.If decoding original real-time data from packet has
The notice updating, then the real-time information display needs according to current financial product App, send to server
Pull request to one in notifying to whole original real-time data;What server received terminal pulls request
Afterwards, the original real-time data asked is returned to terminal in the response;The isochronous controller of terminal receives
After response, original real-time data therein is saved in locally by storage control.
Isochronous controller to preserve market data, message count using with server end identical content and form
According to information data, be equivalent in terminal set up server top branch feelings data, message data and
The mirror image of information data.And isochronous controller is then equivalent to the real-time synchronization for realizing these mirror image datas.
Aggregation controller utilizes original real-time data to generate aggregated data.Various skills according to this financial product
The computing formula of art index, aggregated data includes original real-time data, the display number shown in interactive interface
According to and/or using original real-time data obtain video data processing procedure in intermediate result.When this
When market data, message data or the information data that ground preserves changes, aggregation controller updates and is changed
Original real-time data impact aggregated data.
Interfacial level controller reads aggregated data, obtains video data using aggregated data, and is illustrated in
On the interactive interface that user opens.Notification of Changes controller monitoring the renewal of aggregated data, poly- when finding
When conjunction data has renewal, send more new signal to interfacial level controller.After interfacial level controller receives more new signal,
All interactive interfaces that the aggregated data having renewal with this associates are refreshed using aggregated data.
By said process, you can real time information to be presented in time user.In this application example, push
With the high real-time pulling the two-way simultaneous mode combining and can reaching data image;By aggregated data
Multiplexing mirror image data decreases the communication flows between terminal and server;Between terminal and server
Network condition is poor when being difficult to obtain up-to-date original real-time data, still can be using the original reality preserving
When data to user enter row information show.
Corresponding with the realization of above-mentioned flow process, embodiments herein additionally provides a kind of reality applied in terminal
When information demonstration device.This device can be realized by software it is also possible to pass through hardware or software and hardware
In conjunction with mode realize.As a example implemented in software, as the device on logical meaning, it is by terminal
Corresponding computer program instructions are read interior by CPU (Central Process Unit, central processing unit)
Deposit what middle operation was formed.For hardware view, except the CPU shown in Fig. 3, internal memory and non-volatile
Property memorizer outside, the terminal that the demonstration device of real time information is located generally also is included for carrying out wireless communication
Number transmitting-receiving and/or for realizing other hardware such as board of network communicating function.
Fig. 4 show a kind of demonstration device of real time information of the present embodiment offer, applies in terminal,
Including real time data receiving unit, aggregate data unit and interface display unit, wherein:Real time data connects
Receive unit to be used for receiving the original real-time data from server;Aggregate data unit is used for according to original reality
When data genaration aggregated data;Described aggregated data is used for representing one or more interactive interface;
Interface display unit is used for assuming, using aggregated data, the interactive interface being associated with described aggregated data.
Optionally, described interface display unit specifically for:When original real-time data leads at least one to gather
When conjunction data changes, update all interactive interfaces being associated with the aggregated data changing.
Described aggregated data can include:Original real-time data, interactive interface show video data,
And/or the intermediate result in the processing procedure obtaining video data using original real-time data.
Optionally, described real time data receiving unit specifically for:The reception server pushes to described terminal
Packet;The packet of described push includes the part original real-time data updating, and certain or certain
A little original real-time data have the notice of renewal;Described device also includes pull-up request unit, pushes away for basis
The described notice in packet is sent to have at least one original real-time data of renewal to server request;Described
Original real-time data from server includes:The original real-time data of server push, server is returned
The original real-time data asked returning.
Optionally, described device also includes real-time data memory unit, for former by receive from server
Beginning real time data is saved in locally.
Optionally, the original real-time data of described preservation and server end have identical content and form.
Optionally, described real time information includes the real time information of financial product;Described original real-time data bag
Include:Market data, message data and information data.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all this
Within the spirit of application and principle, any modification, equivalent substitution and improvement done etc., should be included in
Within the scope of the application protection.
In a typical configuration, computing device includes one or more processors (CPU), input/output
Interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
(RAM) and/or the form such as Nonvolatile memory, such as read only memory (ROM) or flash memory (flash RAM).
Internal memory is the example of computer-readable medium.
Computer-readable medium include permanent and non-permanent, removable and non-removable media can by appoint
What method or technique is realizing information Store.Information can be computer-readable instruction, data structure, program
Module or other data.The example of the storage medium of computer include, but are not limited to phase transition internal memory (PRAM),
Static RAM (SRAM), dynamic random access memory (DRAM), other kinds of with
Machine access memorizer (RAM), read only memory (ROM), Electrically Erasable Read Only Memory
(EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassette tape, tape magnetic rigid disk stores or it
His magnetic storage apparatus or any other non-transmission medium, can be used for storing the letter that can be accessed by a computing device
Breath.Define according to herein, computer-readable medium does not include temporary computer readable media (transitory
Media), as data signal and the carrier wave of modulation.
Also, it should be noted term " inclusion ", "comprising" or its any other variant be intended to non-
The comprising of exclusiveness, so that include a series of process of key elements, method, commodity or equipment not only wrap
Include those key elements, but also include other key elements being not expressly set out, or also include for this process,
Method, commodity or the intrinsic key element of equipment.In the absence of more restrictions, " included by sentence
One ... " key element that limits is being it is not excluded that including the process of described key element, method, commodity or setting
Also there is other identical element in standby.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey
Sequence product.Therefore, the application can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.And, the application can adopt and wherein include calculating one or more
Machine usable program code computer-usable storage medium (including but not limited to disk memory, CD-ROM,
Optical memory etc.) the upper computer program implemented form.