Moving method, device, terminal, server and the storage medium of utility cession
Technical field
The present invention relates to Internet technical field more particularly to a kind of moving method of utility cession, device, terminals, clothes
Business device and storage medium.
Background technique
The rise of mobile Internet, different internet terminal equipments may have certain identical functions, such as watch movie,
Video calling, but people are also felt when using these smart machines and isolate very much between different product.For example, user exists
On the way home with some program is seen on mobile phone to half, come back home when opening smart television and wanting turning next to same program, just
It is switched on TV and opens corresponding application, search again for relevant program, then the progress interrupted before being fast-forward to manually.It can see
User needs to pass through very cumbersome operation out, uses an application before can restoring in a terminal in other terminals
State.
In order to reduce migration of the user in the product using the same application in different terminals, some applications are live by it
For information preservation to cloud, using in new terminal should be in application, from cloud downloading and restoring scene information.In itself interiors of products reality
Migration of the current some site of deployment relevant informations in family in different terminals and shared.
In existing application migration scheme, each application requires to build the cloud server of oneself, and realizes session
The functions such as upload, preservation, the downloading application of data, implement cost and cost are big.
Summary of the invention
The present invention provides moving method, device, terminal, server and the storage medium of a kind of utility cession, may be implemented
The conversation shift of inexpensive application between different terminals.
In a first aspect, being applied to terminal, the method the embodiment of the invention provides a kind of moving method of utility cession
Include:
It is corresponding that each application at least one application in the terminal is obtained by the agent application module in terminal
Field data;
The scene of the corresponding application of field data described at least one application according to field data recovery;
Wherein, the agent application module be used for transmission in the terminal it is described at least one application between server
The field data.
Further, obtained by the agent application module in terminal it is every at least one application in the terminal
Before the corresponding field data of a application, the method also includes:
According to preset concatenate rule, the first transmission channel with the server is established, or is built by the server
Vertical the second transmission channel with other terminals;Correspondingly,
It is corresponding that each application at least one application in the terminal is obtained by the agent application module in terminal
Field data, comprising:
Based on first transmission channel, obtained from the server by the agent application module in terminal it is described to
The corresponding field data of each application in a few application;Or
Based on second transmission channel, same user is belonged to from the terminal by the agent application module in terminal
Other terminals in obtain the corresponding field data of each application at least one described application.
Further, the corresponding application of field data described at least one application according to field data recovery
Scene, comprising:
According to the preset target application using at least one described application of setup rule starting;
The field data corresponding with the target application in the field data is loaded by the target application to restore
The scene of the target application.
Further, at least one in the terminal is being obtained using corresponding by the agent application module in terminal
Before field data, the method also includes:
Each application pair at least one application in the terminal is being obtained by the agent application module in terminal
Before the field data answered, the method also includes:
Through the agent application module in terminal from least one application obtained in the server in the terminal
The corresponding report status data of each application;
Correspondingly, obtaining each of at least one application in the terminal by the agent application module in terminal
Using corresponding field data, comprising:
In response to user according to the report status data input to each application at least one described application
Data acquisition operations obtain the corresponding field data of each application at least one application in the terminal.
Further, the field data includes User ID, Termination ID, application ID, version number and/or timestamp.
Further, according to preset concatenate rule, it is logical that the second transmission with other terminals is established by the server
Road, comprising:
Belong to remaining any terminal of same user described in obtaining from the server by the agent application module
The use state of upper at least one application;
It is sent according to the use state to the server and is connected with the data of other terminals for belonging to same user
Request is connect, to establish the second transmission channel of the terminal Yu other terminals.
Further, the method also includes:
Heartbeat packet periodically is sent to the server by the agent application module, so as to the terminal and the service
Device persistently keeps connecting.
Second aspect, the embodiment of the invention also provides a kind of moving methods of utility cession, are applied to server, described
Method includes:
It obtains and belongs in any terminal that any terminal of same user is sent by agent application module at least
The corresponding field data of each application in one application;
Each of at least one described application is sent to any of the same user using corresponding field data
Terminal, so that field data described in any terminal at least one application according to field data recovery is corresponding
The scene of application;
Wherein, the agent application module is used for transmission at least one described application and server in any terminal
Between the field data.
Further, the corresponding field data of application each at least one described application is sent to any user
Any terminal before, the method also includes:
It is corresponding existing to obtain each application at least one described application that the target terminal in any terminal is sent
Field recovery request;Correspondingly, the corresponding field data of each application at least one described application is sent to described any
Any terminal of user, comprising:
According to preset concatenate rule, the first transmission channel with the target terminal is established, or establishes the target end
Hold and belong to same user other terminals the second transmission channel;
Based on first transmission channel, the updated field data is answered by the agency in the target terminal
With module transfer to the target terminal;Wherein, second transmission channel, for it is described belong to it is same user's and generate institute
The field data is passed through the agent application module transfer to the target terminal by the terminal for stating field data.
Further, it obtains and belongs to any terminal that any terminal of same user is sent by agent application module
On at least one application in the corresponding field data of each application after, the method also includes:
According to each of at least one described application using the more new state of corresponding field data, belong to together to described
Any terminal of one user sends the corresponding report status data of each application at least one described application, so as to described
User in one terminal inputs corresponding existing to each application at least one described application according to the report status data
Field recovery request.Further, the field data includes User ID, Termination ID, application ID, version number and/or timestamp.
Further, it according to preset concatenate rule, establishes the target terminal and belongs to other terminals of same user
The second transmission channel, comprising:
Obtain at least one application belonged in other terminals of same user with the target terminal uses shape
State;
The target terminal is established according to the use state and the second transmission of other terminals for belonging to same user is logical
Road.
Further, the method also includes: any terminal for periodically belonging to same user to described sends heartbeat packet, with
Just it persistently keeps connecting with any terminal.
The third aspect, the embodiment of the invention also provides a kind of moving apparatus of utility cession, described device includes:
Field data obtains module, for obtaining at least one in the terminal by the agent application module in terminal
The corresponding field data of each application in;
Site of deployment recovery module, for scene number described at least one application according to field data recovery
According to corresponding scene;
Wherein, the agent application module is used for transmission at least one described application in terminal and the institute between server
State field data.
Fourth aspect, the embodiment of the invention also provides a kind of moving apparatus of utility cession, described device includes:
Field data update module belongs to what any terminal of same user was sent by agent application module for obtaining
The corresponding field data of each application at least one application in any terminal;
Field data sending module, for sending the corresponding field data of each application at least one described application
To any terminal of any user, so that any terminal restores at least one described application according to the field data
Described in the corresponding application of field data scene;
Wherein, the agent application module is used for transmission at least one described application in terminal and the institute between server
State field data.
5th aspect, the embodiment of the invention also provides a kind of terminal, the terminal includes:
One or more processors;
Memory device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes the moving method of the utility cession applied to terminal as described in any embodiment of that present invention.
6th aspect, the embodiment of the invention also provides a kind of server, the server includes:
One or more processors;
Memory device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes the moving method of the utility cession applied to server as described in any embodiment of that present invention.
7th aspect, it is described the embodiment of the invention also provides a kind of storage medium comprising computer executable instructions
Computer executable instructions are applied to as described in any embodiment of that present invention when being executed as computer processor for executing
The moving method of the utility cession of terminal.
Eighth aspect, it is described the embodiment of the invention also provides a kind of storage medium comprising computer executable instructions
Computer executable instructions are applied to as described in any embodiment of that present invention when being executed as computer processor for executing
The moving method of the utility cession of server.
It is obtained at least one application in the terminal in the embodiment of the present invention by the agent application module in terminal
The corresponding field data of each application;Field data pair described at least one application according to field data recovery
The scene for the application answered;Wherein, the agent application module is used for transmission at least one described application and clothes in the terminal
The field data between business device.Server wherein, will be in the field data of multiple applications by utilization agent application module
Server or the field data from server downloading application are reached, the cloud service for building oneself for each application is not needed
Device solves and realizes the functions such as upload of session data, preservation, downloading application in the prior art, caused by implementation cost and at
This big problem realizes utility cession migration inexpensive between different terminals.
Detailed description of the invention
Fig. 1 is the flow chart of the moving method of one of the embodiment of the present invention one utility cession.
Fig. 2 is the flow chart of the moving method of one of the embodiment of the present invention two utility cession.
Fig. 3 is the flow chart of the moving method of another utility cession in the embodiment of the present invention two.
Fig. 4 is the flow chart of the moving method of one of the embodiment of the present invention three utility cession.
Fig. 5 is the flow chart of the moving method of one of the embodiment of the present invention four utility cession.
Fig. 6 is the structural schematic diagram of the moving apparatus of one of the embodiment of the present invention five utility cession.
Fig. 7 is the structural schematic diagram of the moving apparatus of one of the embodiment of the present invention six utility cession.
Fig. 8 is the structural schematic diagram of one of the embodiment of the present invention seven terminal.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the moving method for utility cession that the embodiment of the present invention one provides, and the present embodiment can fit
The case where migrating for utility cession between terminal, this method can be executed by a kind of moving apparatus of utility cession, the dress
Setting can be realized by the way of software and/or hardware, and is configured in terminal, and this method specifically comprises the following steps:
S110, each application at least one application in the terminal is obtained by the agent application module in terminal
Corresponding field data.
Wherein, terminal can be any with network communicating function, can install and run one or more application program
The equipment such as electronic equipment, such as smart phone, personal computer, tablet computer and smart television.In general, user can root
Multiple applications with different function are installed according to the actual needs of oneself in the terminal of oneself, such as video playing applies 1, sound
Happy play applies 2, chat application 3 etc..Field data can be it is corresponding some using or operation during generate
Record the file of data and storage.By taking chat application as an example, scene can be user with some good friend chat interface or
Process, corresponding field data may include contact head image, the information etc. of buffering and the picture and logon account downloaded.With
For Video Applications, scene can be the scene that Video Applications 1 play some video, and corresponding field data may include using
The data relevant to the video that family is generated when watching some video, the playback progress data including video.
Agent application module can be used for the agent application module be used for transmission in the terminal it is described at least one
Using the field data between server, i.e. at least one in realization terminal is applied and is directed between proxy server
The data of field data are transmitted.In actual application, the function of agent application module can be integrated in application program, and
It is installed in terminal.Illustratively, agent application module may include user's login function, reflect to the user of using terminal
Power logs in.
Due to the rise of mobile Internet, smart phone has become the main online amusement of people, browses the flat of news
Platform.But other than smart phone, user's stickiness of traditional PC or tablet computer is still very strong, PC or people's routine office work
Absolutely main force, while being also the Important Platform of game, video entertainment.Therefore, user can generally possess for convenience of oneself use
Multiple terminals.Certain applications can be installed on simultaneously in all terminals, and to can be convenient operation in different terminals, these are answered
With.Specifically, during practical operation, user can in all terminals of oneself all installation agent application modules, generation
Reason application module can provide utility cession information by communication interface between application for multiple applications in terminal and upload and download
Service.Each application does not need independently to build cloud server again, it is only necessary to which the interface for calling broker program to provide is just
Utility cession data can be saved in cloud, reduce the cost of each application access conversation shift ability.
The corresponding application of field data described in step 120, at least one application according to field data recovery
Scene.
Wherein, the application in terminal restores according to the field data or restores site of deployment corresponding with the field data.
Using the scene that can be applied according to the field data recovery corresponding with application itself got.Illustratively, user is returning
A video program is watched with the Video Applications 1 installed on mobile phone on the road of family to divide X seconds to X, is come back home and is opened smart television or flat
Want to continue then last viewing A video after plate computer, the agent application module in smart television or tablet computer is got pair
After the field data for answering Video Applications 1, that is, the migration of the field data of application is realized, migrated to smart television or tablet computer
In, the Video Applications 1 in smart television or tablet computer can be restored to last viewing A video according to field data and divide X seconds to X
Progress, the continuation that user can be convenient then watches video, and user does not need to search in smart television or tablet computer
Then progress bar is drawn to troublesome operation at the time of last time viewing, improves user experience by the same program of rope.
Optionally, each of at least one application in the terminal is being obtained by the agent application module in terminal
Before corresponding field data, the method also includes:
Through the agent application module in terminal from least one application obtained in the server in the terminal
The corresponding report status data of each application;
Correspondingly, obtaining each of at least one application in the terminal by the agent application module in terminal
Using corresponding field data, comprising: in response to user according to the report status data input to it is described at least one answer
The data acquisition operations of each application in, each application obtained at least one application in the terminal are corresponding existing
Field data.Wherein, report status data can be used for reflecting the field data situation of change of application or the subject information of variation, example
Some video observing that such as report status data can be in the Video Applications 2 in terminal 1 sees half message.Terminal can be with
Each is received using corresponding report status data.Specifically, user can be according to the actual needs of oneself by acting on behalf of
The field data variation that certain applications in terminal are subscribed in application module, is subscribed to if be provided with, subscribed application
Associated field data report can be real-time or be regularly sent into the different terminals of user.User can be according to the field data of application
Report the operation that is performed the next step, for example the data report that receives of terminal 1 of user is that Video Applications 1 in terminal 2 are seen
The B program seen can carry out clicking corresponding behaviour to the 3rd collection if user wants to continue watching the 4th collection in terminal 1
Make, for example click operation Video Applications 1, then the agent application module in terminal 1 can obtain corresponding live number from server
According to, and then restore site of deployment, so that user continues to watch.Status data by the application got in real time from server
Report is equivalent to and is monitored to the more new state of application field data, and user is allow to recognize the scene letter of application in real time
Breath, facilitates use of the user to the application in different terminals.
Optionally, according to the field data restore it is described at least one apply described in the corresponding application of field data
Scene, comprising:
According to the preset target application using at least one described application of setup rule starting;
The field data corresponding with the target application in the field data is loaded by the target application to restore
The scene of the target application.
Wherein, preset application setup rule can be preset for starting the application of at least one of terminal simultaneously
Restore the condition or rule of the site of deployment in other terminals.Specifically, user can act on behalf of according to the actual conditions of oneself
It is arranged in application module.Illustratively, illustratively, setup rule can be start-up operation or end of the user to certain applications
The rule for the automatic starting application that end is executed according to field data situation.It can be start-up operation of the user to application, such as directly
Contact hits the corresponding icon of target application;Can also set when in the updated data of certain applications include certain type of number
According to when, by taking Video Applications as an example, if in updated status data include do not watch completion video data when, can from
Dynamic starting Video Applications.Specifically, agent application module can reside running background in the terminal, when some applications of discovery
Setup rule when meeting, some applications are started automatically, with user-friendly.
Optionally, the field data includes User ID, Termination ID, application ID, version number and/or timestamp, i.e. scene
Data may include above-mentioned User ID, Termination ID, application ID, version number and/or the combination of timestamp one or more.Wherein, it uses
Family ID can be the account identification of the user for the setting of agent application module, and the agency of the different terminals installation of same user answers
It can be with the account of module identical, to a User ID is applied, Termination ID can be the equipment for terminal electronic device
Number, for being identified to terminal.In the identical situation of User ID, then the different terminals for corresponding to the same User ID can be considered as
It is the terminal for belonging to same user.Application ID can be the application identities for distinguishing different application programs.In different terminals
Identical application the same application ID can be used.Timestamp can be intended to indicate that the when that corresponding field data generates
Between.Version number can be used as the mark of Different field data, for distinguishing different field datas.
Optionally, the method also includes: any terminal for periodically belonging to same user to described sends heartbeat packet, so as to
It persistently keeps connecting with any terminal.
Wherein, heartbeat packet can be periodically notifies one of other side oneself state oneself definition between terminal and server
Command word can be sent according to certain time interval, for example just be sent every 30 seconds or component grade, and other side is allowed to know oneself "
Line ", avoid operator that the connection connection that does not use of identification growth time is automatically closed, with ensure terminal and server it
Between the validity that connects.
The technical solution of the present embodiment, by the agent application module in terminal obtain at least one in the terminal answer
The corresponding field data of each application in;Scene number described at least one application according to field data recovery
According to the scene of corresponding application;Wherein, the agent application module is used for transmission at least one described application in the terminal
The field data of multiple applications wherein, using agent application module is uploaded to service by the field data between server
Device or the field data applied from server downloading do not need the cloud server for building oneself for each application, solve
Realize the functions such as the upload, preservation, downloading application of session data in the prior art, caused by implementation cost and cost is big asks
Topic reduces cost and development amount that conversation shift function is realized in each application, realizes inexpensive between different terminals
Utility cession migration.Meanwhile the agent application module in terminal can be monitored in real time by the report status data of acquisition and be applied
Field data more new information, facilitate use of the user to applying in different terminals.
Embodiment two
Fig. 2 is a kind of flow chart of the moving method of utility cession provided by Embodiment 2 of the present invention, optionally, this implementation
Example has done further optimization to this method on the basis of the various embodiments described above, as shown in Fig. 2, this method specifically includes:
S210, according to preset concatenate rule, establish the first transmission channel with the server, or pass through the service
Device establishes the second transmission channel with other terminals.
S220, each application at least one application in the terminal is obtained by the agent application module in terminal
Corresponding field data.
S230, it is based on first transmission channel, is obtained from the server by the agent application module in terminal
The corresponding field data of each application at least one described application;Or it is based on second transmission channel, by terminal
Agent application module it is every at least one described application from being obtained in other terminals for belonging to same user with the terminal
It is a to apply corresponding field data.
The corresponding application of field data described in S240, at least one application according to field data recovery shows
?.
Wherein, the agent application module installed in the terminal can be equipped with the account of user, agent application module account phase
Same terminal can be considered as belonging to the terminal of same user.Preset concatenate rule can be preset by which kind of mode
The acquisition modes of the field data of at least one application are carried out, for example are to be sent by server or sent out by other terminals
It send.Specifically, the forwarding of mandatory services device can be set, force the different modes such as terminal is direct-connected, preferential terminal is direct-connected.
Wherein, no matter the forwarding of mandatory services device can indicate that situation, terminal must obtain at least one from server
The field data of a application establishes the first transmission channel of terminal and server, such as long connection by agent application module
Message push channel is generally connected to server-side using Transmission Control Protocol.It is incited somebody to action correspondingly, server can use the first transmission channel
Field data is transmitted to terminal.No matter forcing, terminal is direct-connected can to indicate that situation, terminal must be obtained from other terminals
Field data, in such cases, server can to establish the second transmission channel between two terminals, such as two terminals into
When row UDP (User Datagram Protocol, User Datagram Protocol) connection, need through their IP of server exchange and
Port information.Correspondingly, other terminals, which can use the second transmission channel, is transmitted to the terminal for field data.Terminal is direct-connected
Mode can fast implement the transmission of larger data, need not move through transit server, the speed of conversation shift can be accelerated.
The direct-connected preferentially progress terminal that can be of preferential terminal is direct-connected, establishes the second transmission channel;It, can be with if terminal is direct-connected unsuccessful
Server is connected, further to establish the first transmission channel.User can take into account stability and performance requirement, select different companies
Connect mode.
Optionally, the second transmission channel with other terminals is established by the server, comprising:
Belong to remaining any terminal of same user described in obtaining from the server by the agent application module
The use state of upper at least one application;
It is sent according to the use state to the server and is connected with the data of other terminals for belonging to same user
Request is connect, to establish the second transmission channel of the terminal Yu other terminals.
Wherein, the use state of application can be the state that whether application is online or whether logs in.Specifically, can pass through
Using whether with agent application module establishing connection and judge.If being in connection status with proxy module, then it represents that the application
Online, the field data which generates can be transmitted to server or other terminals by agent application module, while can also be with
Field data is obtained from server or other terminals.Correspondingly, terminal can be according to the use state applied in different terminals
Data connection request is sent, illustratively, if the application 1 in terminal 2 is presence, and user wants to restore present terminal
The scene of application 1 in 1 can then send to server and carry out direct-connected data connection request with terminal 2, can by server
Think that terminal 1 and terminal 2 are established after the second transmission channel, the 1 corresponding field data of application in terminal 1 and 2 may be implemented
Transmission.Establishing that terminal is direct-connected according to the use state of application can be more reasonable in a manner of, and transmission speed is very fast between terminal, and
And the transport efficiency of utility cession is improved there is no need to server end participation after transmission channel foundation.
Illustratively, Fig. 3 is the flow chart of the moving method of another utility cession provided in the embodiment of the present invention two,
As shown in figure 3, the application 1 in terminal 1 and 2, can be incited somebody to action using 2 and application 3 by the agent application module in each self terminal
It is sent to server or obtains field data, to restore corresponding site of deployment.Meanwhile it can also lead between terminal 1 and terminal 2
The transmission that the direct-connected data channel established carries out field data is crossed, the recovery of site of deployment is carried out.
The technical solution of the present embodiment, by according to preset concatenate rule, according to preset concatenate rule, foundation and institute
The first transmission channel of server is stated, or the second transmission channel with other terminals is established by the server, is provided a variety of
The transmission mode of field data can take into account the performance of terminal and server, realize the synchronization of field data between different terminals,
Realize the quick seamless migration of the session of cross-terminal.
Embodiment three
Fig. 4 is a kind of flow chart of the moving method for utility cession that the embodiment of the present invention three provides, and the present embodiment can fit
The case where migrating for utility cession between terminal, this method can be applied to server, be filled by a kind of migration of utility cession
It sets to execute, which can be realized by the way of software and/or hardware, and is configured in server, and this method is specific
Include the following steps:
S410, acquisition belong in any terminal that any terminal of same user is sent by agent application module
The corresponding field data of each application at least one application.
Wherein, the agent application module is used for transmission at least one described application and server in any terminal
Between the field data.Agent application module can also update status to the field data of the different application in terminal into
Corresponding updated field data can be sent to server when generating new field data by row monitoring.
S420, each of at least one described application is sent to the same user's using corresponding field data
Any terminal, so as to field data pair described in any terminal at least one application according to field data recovery
The scene for the application answered.
At least one in any terminal for belonging to same user is got in server using corresponding updated scene
While data, the more new state using corresponding field data can be monitored.For example, belonging in the terminal 1 of same user
When the field data of some application is sent to server, if what the field data at this moment was got relative to previous moment
Field data is changed, it may be considered that the field data has update.It then, can be by the live number of the update
According to any terminal for belonging to same user is sent to, so that any terminal restores described corresponding according to the field data
The scene of at least one application.Wherein, the field data that previous moment is got can be any terminal for belonging to same user
It sends.
Optionally, any terminal for belonging to any terminal of same user and sending by agent application module is being obtained
On at least one application in the corresponding field data of each application after, the method also includes:
According to each of at least one described application using the more new state of corresponding field data, belong to together to described
Any terminal of one user sends the corresponding report status data of each application at least one described application, so as to described
User in one terminal inputs corresponding existing to each application at least one described application according to the report status data
Field recovery request.
Wherein, report status data can be used for reflecting the field data situation of change of application or the subject information of variation,
Such as report status data can be some video observing in the Video Applications in terminal 1 and see the site of deployment message such as half.
Specifically, user can subscribe to the application for wanting concern according to the actual needs of oneself in the setting of agent application module, if set
Subscription is set, then the associated field data report of subscribed application can be real-time or be regularly sent into the different terminals of user.
User can report the operation that be performed the next step according to the field data of application, such as the data that receive of terminal 1 of user
Report is the B program of the Video Applications viewing in terminal 2 to the 3rd collection, if user wants to continue continuing to watch in terminal 1
4th collection can then carry out clicking the in-situ FTIR spectroelectrochemitry request that corresponding operation issues at least one application, such as click operation video
Using 1, then the field data can be transmitted to terminal 1 by server, or establish interface channel for terminal 1 and terminal 2
Allow terminal 2 that the field data is sent to terminal 1, and then terminal 1 can restore the scene of target application, for
Family continues to use.
Optionally, the field data includes User ID, Termination ID, application ID, version number and/or timestamp.
Optionally, the method also includes: periodically to any terminal send heartbeat packet, so as to any terminal
It is lasting to keep connection.
Servicing implement body can also include:
Application database server, for save the corresponding login password of a user, Termination ID, application, using starting
The information such as rule.
Application database server, for saving the utility cession using " user-Termination ID-application ID " as inquiry key
Data.
Using span terminal called server, following service is provided for application cross-terminal communication:
1) login of record application, whether the states etc. such as monitored data connection;
2) direct-connected data channel is established for two terminal rooms and support is provided, such as two terminals are needed when carrying out UDP connection
To pass through their IP of the same server exchange and port information.
Long connection message push server, for safeguarding the channel with the agent application module in each terminal.
State synchronized server is modified for application state and issues (post&subscribe), is generally assisted using mqtt
View is to realize.
Wherein, explanation of nouns involved in the present embodiment, method are implemented and corresponding effect and function etc. specifically can be with
Referring to the above embodiment of the present invention, details are not described herein.
The technical solution of the present embodiment, using agent application module by the field data of multiple applications be uploaded to server or
From the field data of server downloading application, the cloud server for building oneself for each application is not needed, is solved existing
Have the functions such as upload of session data that different application is realized in technology, preservation, downloading application, caused by implementation cost and cost
Big problem realizes the conversation shift of at least one application inexpensive between different terminals.Meanwhile server can obtain in real time
The field data for taking at least one of different terminals to apply sends the live number updated according to more new state to any terminal
According to.The synchronization for realizing updated field data between different terminals, realizes the quick seamless migration of the session of cross-terminal.
Example IV
Fig. 5 is a kind of flow chart of the moving method for utility cession that the embodiment of the present invention four provides, optionally, this implementation
Example has done further optimization to this method on the basis of the various embodiments described above, as shown in figure 5, this method specifically includes:
Each application pair at least one described application that target terminal in S510, the acquisition any terminal is sent
The in-situ FTIR spectroelectrochemitry request answered.
S520, according to preset concatenate rule, establish the first transmission channel with the target terminal, or establish the mesh
Second transmission channel of mark terminal and other terminals for belonging to same user.
S530, it is based on first transmission channel, the updated field data is passed through in the target terminal
Agent application module transfer is to the target terminal;Wherein, second transmission channel, for it is described belong to it is same user's and
The updated field data is passed through the agent application module transfer by the terminal for generating the updated field data
To the target terminal.
Explanation of nouns involved in the present embodiment, method implement and effect and function etc. specifically may refer to accordingly
Embodiment is stated, details are not described herein.
Optionally, it according to preset concatenate rule, establishes the target terminal and belongs to other terminals of same user
Second transmission channel, comprising:
Obtain at least one application belonged in other terminals of same user with the target terminal uses shape
State;
The target terminal is established according to the use state and the second transmission of other terminals for belonging to same user is logical
Road.
Wherein, explanation of nouns involved in the present embodiment, method are implemented and corresponding effect and function etc. specifically can be with
Referring to the above embodiment of the present invention, details are not described herein.
Server can be established direct-connected between terminal according to the use state of application, realize more reasonable connection type
The transmission of field data is carried out, realizes quick seamless migration of the utility cession between different terminals.Certainly, server can root
It is direct-connected to judge whether different terminals can carry out according to the use state of application, it is only necessary to which user's sendaisle establishes request, then just
The second transmission channel with other appropriate terminals can be established for the terminal of sending data connection request, to carry out field data
Transmission.
The technical solution of the present embodiment, by establishing and being passed with the first of any terminal according to preset concatenate rule
Defeated channel, or the second transmission channel of the target terminal with other terminals for belonging to same user is established, terminal can be taken into account
With the performance of server, provide the transmission mode of various field data, realize between different terminals the synchronization of field data and across
The quick seamless migration of terminal session improves user experience.
Embodiment five
Fig. 6 is a kind of structural schematic diagram of the moving apparatus for utility cession that the embodiment of the present invention five provides, the present embodiment
It is applicable between terminal the case where utility cession migrates, which can realize by the way of software and/or hardware, can be with
It is configured at terminal, as shown in fig. 6, the device specifically includes:
Field data obtains module 610, for being obtained in the terminal at least by the agent application module in terminal
The corresponding field data of each application in one application;Site of deployment recovery module 620, for extensive according to the field data
The corresponding scene of field data described at least one multiple described application;Wherein, the agent application module is used for transmission terminal
On it is described at least one application and the field data between server.Optionally, described device further include:
Path setup module is used to establish the first transmission channel with the server according to preset concatenate rule, or
The second transmission channel with other terminals is established by the server;
Correspondingly, the field data obtains module 610, it is specifically used for being based on first transmission channel, passes through terminal
In agent application module from the corresponding field data of each application obtained in the server at least one described application;
Or
Based on second transmission channel, same user is belonged to from the terminal by the agent application module in terminal
Other terminals in obtain the corresponding field data of each application at least one described application;
Wherein, the identical terminal of the account of agent application module belongs to the terminal of same user.
Optionally, the site of deployment recovery module 620 includes:
Using start unit, according to the preset target application using at least one described application of setup rule starting;
Application recovery unit, for by the target application load in the field data with the target application pair
The field data answered restores the scene of the target application.
Optionally, described device further include:
State report obtains module, for obtaining at least one in the terminal by the agent application module in terminal
Before the corresponding field data of each application in a application, obtained from the server by the agent application module in terminal
Take the corresponding report status data of each application at least one application in the terminal;
Correspondingly, the field data obtains module 610, it is specifically used in response to user according to the report status data
Input to it is described at least one application in the corresponding data acquisition operations of each application, obtain at least one in the terminal
The corresponding field data of each application in a application.
Optionally, the field data includes User ID, Termination ID, application ID, version number and/or timestamp.
Optionally, the path setup module, further includes:
Use state acquiring unit, it is same for belonging to described in being obtained from the server by the agent application module
The use state of at least one application in remaining any terminal of one user;
Connection request sending module belongs to same use with described for sending according to the use state to the server
The data connection request of other terminals at family, to establish the second transmission channel of the terminal Yu other terminals.
Optionally, described device further include: heartbeat packet sending module is used for through the agent application module periodically to institute
It states server and sends heartbeat packet, so that the terminal persistently keeps connecting with the server.Provided by the embodiment of the present invention
The migration side of the utility cession provided by any embodiment of the invention applied to terminal can be performed in the moving apparatus of utility cession
Method has the corresponding functional module of execution method and beneficial effect.The not technical detail of detailed description in the present embodiment, can join
See the moving method for the utility cession applied to terminal that any embodiment of that present invention provides.
Embodiment six
Fig. 7 is a kind of structural schematic diagram of the moving apparatus for utility cession that the embodiment of the present invention six provides, the present embodiment
It is applicable between terminal the case where utility cession migrates, which can realize by the way of software and/or hardware, can be with
It is configured at server, as shown in fig. 7, the device specifically includes:
Field data update module, 710, belong to any terminal of same user for obtaining and sent out by agent application module
The corresponding field data of each application at least one application in any terminal sent;
Field data sending module 720, for by it is described at least one application in the corresponding field data of each application
Be sent to any terminal of the same user, so as to any terminal according to the field data restore it is described at least one
The scene of the corresponding application of the field data described in;
Wherein, the agent application module is used for transmission at least one described application and server in any terminal
Between the field data.
Optionally, described device further include: in-situ FTIR spectroelectrochemitry request module, at least one application by described in
Each of be sent to using corresponding field data before any terminal of any user, obtain in any terminal
It is each at least one described application that target terminal is sent to apply corresponding in-situ FTIR spectroelectrochemitry request;
Correspondingly, the field data sending module 720, comprising:
Path Setup unit, for establishing the first transmission channel with the target terminal according to preset concatenate rule,
Or establish the second transmission channel of the target terminal with other terminals for belonging to same user;
Data transmission unit passes through the updated field data described for being based on first transmission channel
Agent application module transfer in target terminal is to the target terminal;Wherein, second transmission channel, belongs to for described
It is same user's and to generate the terminal of the updated field data the updated field data is passed through into the agency
Application module is transmitted to the target terminal.
Optionally, described device further include: state report sending module, for obtaining any end for belonging to same user
The corresponding field data of each application at least one application in the terminal that end is sent by agent application module it
Afterwards, according to it is described at least one apply corresponding field data more new state, to any terminal for belonging to same user
The corresponding report status data of each application in sending application, so that the user in any terminal is according to the status number
It was reported that the corresponding in-situ FTIR spectroelectrochemitry of each application at least one described application is requested in input.
Optionally, the field data includes User ID, Termination ID, application ID, version number and/or timestamp.
Optionally, the Path Setup unit, comprising:
Use state obtains subelement, for obtaining the institute belonged in other terminals of same user with the target terminal
State the use state of at least one application;
Second channel establishes subelement, according to the use state establish the target terminal with belong to same user its
Second transmission channel of his terminal.
Optionally, described device further include: heartbeat packet sending module, for periodically to described any for belonging to same user
Terminal sends heartbeat packet, persistently to keep connecting with any terminal.
The moving apparatus of utility cession provided by the embodiment of the present invention can be performed provided by any embodiment of the invention
The moving method of utility cession applied to server has the corresponding functional module of execution method and beneficial effect.Not at this
The technical detail of detailed description in embodiment, reference can be made to the utility cession applied to server that any embodiment of that present invention provides
Moving method.
Embodiment seven
Referring to Fig. 8, a kind of terminal 800 is present embodiments provided comprising: one or more processors 820;Storage device
810, for storing one or more programs, when one or more of programs are executed by one or more of processors 820,
So that one or more of processors 820 are realized provided by the embodiment of the present invention applied to a kind of utility cession of terminal
Moving method, comprising:
It is corresponding that each application at least one application in the terminal is obtained by the agent application module in terminal
Field data;
The scene of the corresponding application of field data described at least one application according to field data recovery;
Wherein, the agent application module be used for transmission in the terminal it is described at least one application between server
The field data.
Certainly, it will be understood by those skilled in the art that processor 720 can also realize that any embodiment of that present invention is provided
A kind of utility cession applied to terminal moving method technical solution.
The terminal 800 that Fig. 8 is shown is only an example, should not function to the embodiment of the present invention and use scope bring
Any restrictions.
As shown in figure 8, terminal 800 is showed in the form of universal computing device.The component of terminal 800 may include but unlimited
In one or more processor 820, storage device 810, different system components (including storage device 810 and processor are connected
820) bus 850.
Bus 850 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Terminal 800 typically comprises a variety of computer system readable media.These media can be it is any can be by terminal
The usable medium of 800 access, including volatile and non-volatile media, moveable and immovable medium.
Storage device 810 may include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (RAM) 811 and/or cache memory 812.Terminal 800 may further include other removable/nonremovable
, volatile/non-volatile computer system storage medium.Only as an example, storage system 813 can be used for reading and writing not removable
Dynamic, non-volatile magnetic media (Fig. 8 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 8, can provide
Disc driver for being read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to removable anonvolatile optical disk
The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can
To be connected by one or more data media interfaces with bus 850.It may include that at least one program produces that storage, which fills 810,
Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention each
The function of embodiment.
Program/utility 814 with one group of (at least one) program module 815 can store in such as storage dress
It sets in 810, such program module 815 includes but is not limited to operating system, one or more application program, other program moulds
It may include the realization of network environment in block and program data, each of these examples or certain combination.Program module
815 usually execute function and/or method in any embodiment described in the invention.
Terminal 800 can also be logical with one or more external equipments 860 (such as keyboard, sensing equipment, display 870 etc.)
Letter, can also be enabled a user to one or more equipment interact with the terminal 800 communicate, and/or with make the terminal 800
Any equipment (such as network interface card, modem etc.) that can be communicated with one or more of the other calculating equipment communicates.This
Kind communication can be carried out by input/output (I/O) interface 830.Also, terminal 800 can also by network adapter 840 with
One or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.Such as
Shown in Fig. 8, network adapter 840 is communicated by bus 850 with other modules of terminal 800.Although should be understood that in Fig. 8 not
Show, can in conjunction with terminal 800 use other hardware and/or software module, including but not limited to: microcode, device driver,
Redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
The program that processor 820 is stored in storage device 810 by operation, thereby executing various function application and number
According to processing, such as realize the moving method provided by the embodiment of the present invention applied to a kind of utility cession of terminal.
Present invention implementation additionally provides a kind of server comprising: one or more processors;Storage device, for depositing
One or more programs are stored up, when one or more of programs are executed by one or more of processors, so that one
Or multiple processors realize the moving method provided by the embodiment of the present invention applied to a kind of utility cession of server, packet
It includes:
It obtains and belongs in any terminal that any terminal of same user is sent by agent application module at least
The corresponding field data of each application in one application;
Each of at least one described application is sent to any of the same user using corresponding field data
Terminal, so that field data described in any terminal at least one application according to field data recovery is corresponding
The scene of application;
Wherein, the agent application module is used for transmission at least one described application and server in any terminal
Between the field data.
Certainly, it will be understood by those skilled in the art that processor can also realize it is provided by any embodiment of the invention
A kind of technical solution of the moving method of utility cession applied to server.
Specifically, the hardware configuration of the terminal may refer to Fig. 7 described in the present embodiment and relevant explanation, herein no longer
It repeats.
Embodiment eight
The embodiment of the present invention eight provides a kind of storage medium comprising computer executable instructions, and the computer is executable
It instructs when being executed as computer processor for executing a kind of application meeting for being applied to terminal provided by the embodiment of the present invention
The moving method of words, comprising:
It is corresponding that each application at least one application in the terminal is obtained by the agent application module in terminal
Field data;
The scene of the corresponding application of field data described at least one application according to field data recovery;
Wherein, the agent application module be used for transmission in the terminal it is described at least one application between server
The field data.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method operation that executable instruction is not limited to the described above, can also be performed provided by any embodiment of the invention be applied to eventually
A kind of relevant operation in the moving method of the utility cession at end.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media
Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or
Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool
There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires
(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage
Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device
Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or
Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service
It is connected for quotient by internet).
The embodiment of the present invention eight also provides another storage medium comprising computer executable instructions, and the computer can
It executes instruction when being executed as computer processor for executing the one kind for being applied to server provided by the embodiment of the present invention
The moving method of utility cession, comprising:
It obtains and belongs in any terminal that any terminal of same user is sent by agent application module at least
The corresponding field data of each application in one application;
Each of at least one described application is sent to any of the same user using corresponding field data
Terminal, so that field data described in any terminal at least one application according to field data recovery is corresponding
The scene of application;
Wherein, the agent application module is used for transmission at least one described application and server in any terminal
Between the field data.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method operation that executable instruction is not limited to the described above can also be performed provided by any embodiment of the invention applied to clothes
Relevant operation in a kind of moving method of utility cession of business device.
The computer storage medium of the embodiment of the present invention is specifically introduced and explanation may refer to the embodiment of the present invention eight,
This is repeated no more.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.