CN108259566A - The method of data synchronization and device of a kind of application - Google Patents
The method of data synchronization and device of a kind of application Download PDFInfo
- Publication number
- CN108259566A CN108259566A CN201711402238.7A CN201711402238A CN108259566A CN 108259566 A CN108259566 A CN 108259566A CN 201711402238 A CN201711402238 A CN 201711402238A CN 108259566 A CN108259566 A CN 108259566A
- Authority
- CN
- China
- Prior art keywords
- synchronized
- application
- network
- data synchronization
- data
- 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/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- 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/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
The present invention provides the method for data synchronization and device of a kind of application, this method includes:Determine that network state and the application to be synchronized of application to be synchronized are corresponding data cached;When the network state be network-in-dialing when, determine it is described it is to be synchronized application corresponding sync server and the sync server in the corresponding teledata of the application to be synchronized;Determine the corresponding network-in-dialing type of the application to be synchronized;According to the network-in-dialing type, preset data synchronization service is called;Using the data synchronization service of calling, data cached synchronized described with the teledata.On the one hand this programme can reduce the size of code that developer need to write, on the other hand can improve the efficiency of data synchronization.
Description
Technical field
The present invention relates to field of computer technology, the method for data synchronization and device of more particularly to a kind of application.
Background technology
With the development of computer technology, the application that user uses in terminal device is more and more.For the ease of with it is each
It is a that corresponding server is applied to interact, it usually needs the local data being stored in terminal device is uploaded into corresponding clothes
It is engaged in device.
In order to realize that data synchronize, in the application and development stage, developer corresponds to firstly the need of monitoring network state is write
Monitoring code, corresponding service code is write further according to the network state that listens to of code is monitored, to utilize corresponding service
Code realizes that the data of application synchronize.
In the process, developer needs to rewrite corresponding service again according to the network state for monitoring Code obtaining
Code, and can not realize and carry out data synchronization automatically according to heterogeneous networks state, so as to reduce the efficiency of data synchronization.
Invention content
An embodiment of the present invention provides the method for data synchronization and device of a kind of application, can reduce the work of developer
Amount.
In a first aspect, an embodiment of the present invention provides a kind of method of data synchronization of application, including:
Determine that network state and the application to be synchronized of application to be synchronized are corresponding data cached;
When the network state is network-in-dialing, the corresponding sync server of the application to be synchronized, Yi Jisuo are determined
State in sync server with the corresponding teledata of the application to be synchronized;
Determine the corresponding network-in-dialing type of the application to be synchronized;
According to the network-in-dialing type, preset data synchronization service is called;
Using the data synchronization service of calling, data cached synchronized described with the teledata.
Preferably,
Described using the data synchronization service called, data cached synchronized described with the teledata
Before, further comprise:
According to the identification information of the sync server, using preset the Internet packets survey meter to the sync server
Send echo request;
When receiving the echo response information that the sync server is returned according to the echo request, the utilization is performed
The data synchronization service called data cached is synchronized described with the teledata.
Preferably,
Further comprise:
It obtains the corresponding data synchronization service of at least one network type and each described data synchronization service corresponds to
Calling path;
Each calling path is stored to preset allocation list;
It is described that preset data synchronization service is called according to the network-in-dialing type, including:
Calling path corresponding with the network-in-dialing type is determined from the allocation list;
According to the calling path determined, data synchronization service corresponding with the network-in-dialing type is called.
Preferably,
It is described using call the data synchronization service, by it is described it is data cached synchronized with the teledata,
Including:
Start preset synchronizing thread;
Using the synchronizing thread of startup, the data synchronization service is run, it will be described data cached and described remote
Number of passes evidence synchronizes.
Preferably,
The network state for determining application to be synchronized, including:
According to the preset training in rotation period, training in rotation monitoring is carried out to the application to be synchronized;
According to training in rotation snoop results, the network state of the application to be synchronized is determined.
Second aspect, an embodiment of the present invention provides a kind of data synchronization unit of application, including:Status determining unit,
Server determination unit, service call unit and data synchronisation unit;Wherein,
The status determining unit, for determining that the network state of application to be synchronized and the application to be synchronized correspond to
It is data cached;
The server determination unit, for when the network state is network-in-dialing, determining the application to be synchronized
In corresponding sync server and the sync server with the corresponding teledata of the application to be synchronized;
The service call unit, for determining the corresponding network-in-dialing type of the application to be synchronized, and according to described
Network-in-dialing type calls preset data synchronization service;
The data synchronisation unit, for using call the data synchronization service, by it is described it is data cached with it is described
Teledata synchronizes.
Preferably,
The data synchronisation unit for the identification information according to the sync server, utilizes preset the Internet packets
Survey meter sends echo request to the sync server;It is returned when the reception sync server according to the echo request
During echo response information, the data synchronization service using calling is performed, by the described data cached and long-range number
According to synchronizing.
Preferably,
Further comprise:Service acquisition unit;Wherein,
The service acquisition unit, for obtaining the corresponding data synchronization service of at least one network type and each
The corresponding calling path of a data synchronization service, and each calling path is stored to preset allocation list;
The service call unit, for determining calling road corresponding with the network-in-dialing type from the allocation list
Diameter, and according to the calling path determined, call data synchronization service corresponding with the network-in-dialing type.
Preferably,
The data synchronisation unit for starting preset synchronizing thread, and utilizes the synchronizing thread started, operation
The data synchronization service data cached is synchronized described with the teledata.
Preferably,
The status determining unit, for according to the preset training in rotation period, training in rotation monitoring to be carried out to the application to be synchronized;
According to training in rotation snoop results, the network state of the application to be synchronized is determined.
An embodiment of the present invention provides the method for data synchronization and device of a kind of application, when the network state of application to be synchronized
During for network-in-dialing, according to the network-in-dialing type of application to be synchronized, corresponding data synchronization service is called automatically, and utilize tune
Data synchronization service, by the teledata to be synchronized using in corresponding data cached corresponding sync server into
Row synchronizes.It is thus achieved that data synchronization is carried out according to heterogeneous networks state automatically, so as to improve the efficiency of data synchronization.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention
Some embodiments, for those of ordinary skill in the art, without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 is a kind of flow chart of the method for data synchronization of application provided by one embodiment of the present invention;
Fig. 2 is a kind of flow chart of the method for data synchronization for application that another embodiment of the present invention provides;
Fig. 3 is a kind of structure diagram of the data synchronization unit of application provided by one embodiment of the present invention;
Fig. 4 is a kind of structure diagram of the data synchronization unit for application that another embodiment of the present invention provides.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art
The all other embodiments obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
As shown in Figure 1, an embodiment of the present invention provides a kind of method of data synchronization of application, this method can include following
Step:
Step 101:Determine that network state and the application to be synchronized of application to be synchronized are corresponding data cached;
Step 102:When the network state is network-in-dialing, the corresponding synchronous service of the application to be synchronized is determined
In device and the sync server with the corresponding teledata of the application to be synchronized;
Step 103:Determine the corresponding network-in-dialing type of the application to be synchronized;
Step 104:According to the network-in-dialing type, preset data synchronization service is called;
Step 105:It, will be described data cached same with teledata progress using the data synchronization service of calling
Step.
In above-described embodiment, when the network state of application to be synchronized is network-in-dialing, according to the network of application to be synchronized
Connectivity types call corresponding data synchronization service, and using the data synchronization service called, application to be synchronized are corresponded to automatically
Data cached corresponding sync server in teledata synchronize.Thus network state is monitored and data is same
Step is unified in same set of code to be realized, is compiled again again according to the network state for monitoring Code obtaining every time without developer
Corresponding service code is write, the size of code that developer need to write is thus reduced, alleviates the workload of developer, simultaneously
It realizes and data synchronization is carried out according to heterogeneous networks state automatically, so as to improve the efficiency of data synchronization.
In one embodiment of the invention, before step 105, further comprise:
According to the identification information of the sync server, using preset the Internet packets survey meter to the sync server
Send echo request;
When receiving the echo response information that the sync server is returned according to the echo request, the utilization is performed
The data synchronization service called data cached is synchronized described with the teledata.
When it is network-in-dialing to detect network state, it can not ensure that the corresponding sync server of application to be synchronized is exactly to connect
Logical, if carrying out data synchronization when the network-in-dialing but sync server of application to be synchronized do not connect, it is different to be susceptible to data
Normal or error in data.In order to ensure sync server is also at connected state, using the Internet packets survey meter to synchronous service
Device sends echo request, i.e., judges whether sync server can be used by carrying out network detection using Ping () method.Work as energy
When receiving the echo response of sync server return, illustrate that sync server is in connected state, i.e., application to be synchronized can visit
It asks its corresponding sync server, is just carried out to be synchronized using the corresponding data cached teledata with sync server
It is synchronous, to ensure the accuracy of data synchronization.
In one embodiment of the invention, this method may further include:Obtain the corresponding number of at least one network type
According to synchronous service and the corresponding calling path of each described data synchronization service;
Each calling path is stored to preset allocation list;
The specific embodiment of step 104 can include:
Calling path corresponding with the network-in-dialing type is determined from the allocation list;
According to the calling path determined, data synchronization service corresponding with the network-in-dialing type is called.
Herein, developer can write the corresponding data synchronization service of different network type, such as 2G networks in advance
Connected state, 3G network connected state, 4G network-in-dialings state data corresponding with wifi network connected state are synchronous to be taken
Then business stores in the calling path of each data synchronization service in allocation list, and the network type defined in allocation list with
Correspondence between data synchronization service, for example, defining 2G network-in-dialing state corresponding data synchronous services A, 3G corresponds to number
According to synchronous service B, 4G corresponding data synchronous service C, wifi corresponding data synchronous services D.When the net for determining application to be synchronized
After network connectivity types, calling path and correspondence in allocation list call out number corresponding with network-in-dialing type
According to synchronous service, for example, when it is 4G to determine network-in-dialing type, then data synchronization service C is called.Thus allocation list is utilized
In calling path, data synchronization service corresponding with network-in-dialing type is directly invoked out, without to data synchronization service
It is searched one by one, so as to improve the calling efficiency of data synchronization service, and then further improves the efficiency of data synchronization.
In one embodiment of the invention, the specific embodiment of step 105 can include:
Start preset synchronizing thread;
Using the synchronizing thread of startup, the data synchronization service is run, it will be described data cached and described remote
Number of passes evidence synchronizes.
In order to ensure user's energy normal use application, data are synchronized to be carried out using asynchronous system.Specifically, work as network state
When the service of monitoring listens to application to be synchronized as network-in-dialing state, that is, broadcast is sent, when data synchronization service receives data
During synchronized broadcast, first judge whether its status meets preset data synchronous condition, the data synchronous condition is predominantly same
The connected state of server is walked, may also comprise user-defined other conditions.It is automatic to start when meeting data synchronous condition
Preset synchronizing thread, it is data cached synchronous with teledata to realize using the thread operation data synchronous service, so as to
Realize complete from the background it is data cached synchronous with teledata, do not influence user's normal use data synchronize it is corresponding should
With so as to improve user experience.
In one embodiment of the invention, the specific embodiment of step 101 can include:
According to the preset training in rotation period, training in rotation monitoring is carried out to the application to be synchronized;
According to training in rotation snoop results, the network state of the application to be synchronized is determined.
Herein, by encapsulating android system grade API ConnectivityManager, network state training in rotation is realized
Monitor, and support the configuration training in rotation period, such as every five seconds for example once monitored, and can according to network-in-dialing type (2G, 3G, 4G,
Wifi and bluetooth etc.) the different data synchronization logic of setting.Synchronous applications are treated according to the training in rotation period and carry out training in rotation monitoring, it can be real
When monitor the network state of application to be synchronized, the accuracy of the network state of application to be synchronized listened to is ensured, so as to advantageous
It is normally carried out in what data synchronized.
As shown in Fig. 2, an embodiment of the present invention provides a kind of method of data synchronization of application, this method can include following
Step:
Step 201:It obtains the corresponding data synchronization service of at least one network type and each described data synchronizes
Corresponding calling path is serviced, and each calling path is stored to preset allocation list.
Developer can write the corresponding data synchronization service of different network type, such as 2G network-in-dialing shapes in advance
State, 3G network connected state, 4G network-in-dialings state and the corresponding data synchronization service of wifi network connected state, then
The calling path of each data synchronization service is stored into allocation list, and network type is synchronous with data defined in allocation list
Correspondence between service, for example, defining 2G network-in-dialing state corresponding data synchronous service A, 3G corresponding data synchronizes clothes
Be engaged in B, 4G corresponding data synchronous service C, wifi corresponding data synchronous services D.
Step 202:According to the preset training in rotation period, training in rotation monitoring is carried out to the application to be synchronized, is monitored according to training in rotation
As a result, determining the network state of the application to be synchronized, and determine that the application to be synchronized is corresponding data cached.
Herein, network state wheel can be realized by encapsulating android system grade API ConnectivityManager
Instruction is monitored, and supports that configuration training in rotation period, such as every five seconds for example are once monitored.
The step can at least be realized by following procedure language:
Step 203:When the network state is network-in-dialing, the corresponding synchronous service of the application to be synchronized is determined
Device.
Step 204:According to the identification information of the sync server, using preset the Internet packets survey meter to described same
It walks server and sends echo request.
Step 205:When receiving the echo response information that the sync server is returned according to the echo request, determine
In the sync server with the corresponding teledata of the application to be synchronized.
In order to ensure sync server is also at connected state, sent using the Internet packets survey meter to sync server
Echo request judges whether sync server can be used using Ping () method by carrying out network detection.When can receive
During the echo response that sync server returns, illustrate that sync server is in connected state.
Step 206:Determine the corresponding network-in-dialing type of the application to be synchronized, and the determining and institute from the allocation list
The corresponding calling path of network-in-dialing type is stated, according to the calling path determined, is called corresponding with the network-in-dialing type
Data synchronization service.
Step 207:Start preset synchronizing thread, using the synchronizing thread of startup, run the data and synchronize clothes
Business data cached is synchronized described with the teledata.
When network state, which monitors service, listens to application to be synchronized as network-in-dialing state, that is, broadcast is sent, works as data
When synchronous service receives data synchronized broadcast, first judge whether its status meets preset data synchronous condition, the number
It is mainly the connected state of sync server according to synchronous condition, may also comprise user-defined other conditions.When meeting data
During synchronous condition, according to path is called, corresponding data synchronization service is directly invoked, it is data cached and teledata to carry out
It is synchronous.
The above process can at least be realized by following procedure language:
When the application above method carries out data synchronization, the jar of program provided in this embodiment can be first introduced in engineering
Then packet is starting to be synchronized in application, starting service and binding broadcast reception, then developer can utilize integrated interface to compile
Oneself synchronization script is written from, that is, defines the correspondence between heterogeneous networks connected state and data synchronization service.
" starting service and binding broadcast reception " in the process is realized using following procedure language:
In conclusion the method for data synchronization has unified network monitoring and the method for sync server detection, support
The unified of the relevant technologies is realized in the different editions of Android system and other different platforms.Also, the script based on configuration
Parsing and reflection calling process, give the realization of data synchronous service to developer, theoretically support all service client databases
Synchronizing process.In addition, asynchronous data synchronization process, data synchronization process performs on backstage, and the business for not influencing user should
With user experience can be improved.Meanwhile calling implementation method of the invention is easy to use, can facilitate and be integrated with existing system, be passed through
Configuration can be run, and reduce the complexity of programming, and then improve the efficiency of programming.
As shown in figure 3, an embodiment of the present invention provides a kind of data synchronization unit of application, including:Status determining unit
301st, server determination unit 302, service call unit 303 and data synchronisation unit 304;Wherein,
The status determining unit 301, for determining the network state of application to be synchronized and the application pair to be synchronized
That answers is data cached;
The server determination unit 302, for when the network state be network-in-dialing when, determine it is described it is to be synchronized should
With in corresponding sync server and the sync server with the corresponding teledata of the application to be synchronized;
The service call unit 303, for determining the corresponding network-in-dialing type of the application to be synchronized, and according to institute
Network-in-dialing type is stated, calls preset data synchronization service;
The data synchronisation unit 304, for utilizing the data synchronization service called, by described data cached and institute
Teledata is stated to synchronize.
In one embodiment of the invention, the data synchronisation unit 304, for being believed according to the mark of the sync server
Breath sends echo request using preset the Internet packets survey meter to the sync server;When the reception sync server
During according to the echo response information of echo request return, the data synchronization service using calling is performed, by institute
It states and data cached is synchronized with the teledata.
As shown in figure 4, in one embodiment of the invention, which may further include:Service acquisition unit 401;Its
In,
The service acquisition unit 401, for obtaining the corresponding data synchronization service of at least one network type and every
The corresponding calling path of one data synchronization service, and each calling path is stored to preset allocation list;
The service call unit 303, for determining tune corresponding with the network-in-dialing type from the allocation list
With path, and according to the calling path determined, call data synchronization service corresponding with the network-in-dialing type.
In one embodiment of the invention, the data synchronisation unit 304 for starting preset synchronizing thread, and utilizes
The synchronizing thread started, runs the data synchronization service, will be described data cached same with teledata progress
Step.
In one embodiment of the invention, the status determining unit 301, for according to the preset training in rotation period, to described
Application to be synchronized carries out training in rotation monitoring;According to training in rotation snoop results, the network state of the application to be synchronized is determined.
The contents such as the information exchange between each unit, implementation procedure in above device, due to implementing with the method for the present invention
Example can be found in the narration in the method for the present invention embodiment based on same design, particular content, and details are not described herein again.
The embodiment of the present invention additionally provides a kind of readable medium, including execute instruction, when the processor of storage control is held
During the row execute instruction, the storage control performs the method that any of the above-described embodiment of the present invention provides.
The embodiment of the present invention additionally provides a kind of storage control, including:Processor, memory and bus;The storage
For storing execute instruction, the processor is connect device with the memory by the bus, when the storage control is transported
During row, the processor performs the execute instruction of the memory storage, so that the storage control performs the present invention
The method that any of the above-described embodiment provides.
In conclusion the above each embodiment of the present invention at least has the advantages that:
1st, in embodiments of the present invention, when the network state of application to be synchronized is network-in-dialing, according to application to be synchronized
Network-in-dialing type, call corresponding data synchronization service automatically, and using the data synchronization service called, to be synchronized will answer
It is synchronized with the teledata in corresponding data cached corresponding sync server.Thus by network state monitor and
Data synchronization is unified in same set of code to be realized, without developer every time according to monitoring the network state of Code obtaining again
Corresponding service code is rewritten, the size of code that developer need to write is thus reduced, alleviates the work of developer
Amount, while realize and data synchronization is carried out according to heterogeneous networks state automatically, so as to improve the efficiency of data synchronization.
2nd, in embodiments of the present invention, echo request is sent to sync server using the Internet packets survey meter, works as reception
To sync server return echo response when, just by it is to be synchronized using it is corresponding it is data cached with it is long-range in sync server
Data synchronize, so as to ensure the accuracy of data synchronization.
3rd, in embodiments of the present invention, the corresponding data synchronization service of different network type is obtained in advance, by each data
In the calling path storage to allocation list of synchronous service, and defined in allocation list between network type and data synchronization service
Correspondence.After the network-in-dialing type for determining application to be synchronized, calling path and corresponding pass in allocation list
System, calls out data synchronization service corresponding with network-in-dialing type.Thus it using the calling path in allocation list, directly invokes
Go out data synchronization service corresponding with network-in-dialing type, without being searched one by one data synchronization service, so as to improve
The calling efficiency of data synchronization service, and then further improve the efficiency of data synchronization.
4th, in embodiments of the present invention, using pre-determined synchronization thread operation data synchronous service, with using asynchronous system into
Row data synchronize, it is achieved thereby that completing from the background data cached synchronous with teledata, do not influence user's normal use number
According to corresponding application is synchronized, so as to improve user experience.
5th, in embodiments of the present invention, synchronous applications are treated according to the training in rotation period and carries out training in rotation monitoring, can monitored and treat in real time
The network state of synchronous applications ensures the accuracy of the network state of application to be synchronized listened to, same so as to be conducive to data
Step is normally carried out.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity
Or operation is distinguished with another entity or operation, is existed without necessarily requiring or implying between these entities or operation
Any actual relationship or order.Moreover, term " comprising ", "comprising" or its any other variant be intended to it is non-
It is exclusive to include, so that process, method, article or equipment including a series of elements not only include those elements,
But also it including other elements that are not explicitly listed or further includes solid by this process, method, article or equipment
Some elements.In the absence of more restrictions, the element limited by sentence " including one ", is not arranged
Except in the process, method, article or apparatus that includes the element also in the presence of other identical factor.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and aforementioned program can be stored in computer-readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is performed;And aforementioned storage medium includes:ROM, RAM, magnetic disc or light
In the various media that can store program code such as disk.
It is last it should be noted that:The foregoing is merely presently preferred embodiments of the present invention, is merely to illustrate the skill of the present invention
Art scheme, is not intended to limit the scope of the present invention.Any modification for being made all within the spirits and principles of the present invention,
Equivalent replacement, improvement etc., are all contained in protection scope of the present invention.
Claims (10)
1. a kind of method of data synchronization of application, which is characterized in that including:
Determine that network state and the application to be synchronized of application to be synchronized are corresponding data cached;
When the network state is network-in-dialing, the corresponding sync server of the application to be synchronized and described same is determined
Walk server in the corresponding teledata of the application to be synchronized;
Determine the corresponding network-in-dialing type of the application to be synchronized;
According to the network-in-dialing type, preset data synchronization service is called;
Using the data synchronization service of calling, data cached synchronized described with the teledata.
2. according to the method described in claim 1, it is characterized in that,
Described using the data synchronization service called, the described data cached and teledata is synchronized it
Before, further comprise:
According to the identification information of the sync server, sent using preset the Internet packets survey meter to the sync server
Echo request;
When receiving the echo response information that the sync server is returned according to the echo request, perform described utilize and call
The data synchronization service, data cached synchronized described with the teledata.
3. according to the method described in claim 1, it is characterized in that,
Further comprise:
Obtain the corresponding data synchronization service of at least one network type and the corresponding tune of each described data synchronization service
Use path;
Each calling path is stored to preset allocation list;
It is described that preset data synchronization service is called according to the network-in-dialing type, including:
Calling path corresponding with the network-in-dialing type is determined from the allocation list;
According to the calling path determined, data synchronization service corresponding with the network-in-dialing type is called.
4. according to the method described in claim 1, it is characterized in that,
It is described using call the data synchronization service, by it is described it is data cached synchronized with the teledata, including:
Start preset synchronizing thread;
Using the synchronizing thread of startup, the data synchronization service is run, by the described data cached and long-range number
According to synchronizing.
5. according to the method described in claim 1, it is characterized in that,
The network state for determining application to be synchronized, including:
According to the preset training in rotation period, training in rotation monitoring is carried out to the application to be synchronized;
According to training in rotation snoop results, the network state of the application to be synchronized is determined.
6. a kind of data synchronization unit of application, which is characterized in that including:Status determining unit, server determination unit, service
Call unit and data synchronisation unit;Wherein,
The status determining unit, for determining that the network state of application to be synchronized and the application to be synchronized are corresponding slow
Deposit data;
The server determination unit, for when the network state is network-in-dialing, determining that the application to be synchronized corresponds to
Sync server and the sync server in the corresponding teledata of the application to be synchronized;
The service call unit, for determining the corresponding network-in-dialing type of the application to be synchronized, and according to the network
Connectivity types call preset data synchronization service;
The data synchronisation unit, will be described data cached and described long-range for utilizing the data synchronization service called
Data synchronize.
7. device according to claim 6, which is characterized in that
The data synchronisation unit for the identification information according to the sync server, is explored using preset the Internet packets
Device sends echo request to the sync server;When the echo that the reception sync server is returned according to the echo request
During response message, perform it is described using the data synchronization service called, will the data cached and teledata into
Row synchronizes.
8. device according to claim 6, which is characterized in that
Further comprise:Service acquisition unit;Wherein,
The service acquisition unit, for obtaining the corresponding data synchronization service of at least one network type and each institute
The corresponding calling path of data synchronization service is stated, and each calling path is stored to preset allocation list;
The service call unit, for determining calling path corresponding with the network-in-dialing type from the allocation list,
And according to the calling path determined, call data synchronization service corresponding with the network-in-dialing type.
9. device according to claim 6, which is characterized in that
The data synchronisation unit for starting preset synchronizing thread, and utilizes the synchronizing thread started, described in operation
Data synchronization service data cached is synchronized described with the teledata.
10. device according to claim 6, which is characterized in that
The status determining unit, for according to the preset training in rotation period, training in rotation monitoring to be carried out to the application to be synchronized;According to
Training in rotation snoop results determine the network state of the application to be synchronized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711402238.7A CN108259566A (en) | 2017-12-22 | 2017-12-22 | The method of data synchronization and device of a kind of application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711402238.7A CN108259566A (en) | 2017-12-22 | 2017-12-22 | The method of data synchronization and device of a kind of application |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108259566A true CN108259566A (en) | 2018-07-06 |
Family
ID=62722628
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711402238.7A Pending CN108259566A (en) | 2017-12-22 | 2017-12-22 | The method of data synchronization and device of a kind of application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108259566A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112333232A (en) * | 2020-09-18 | 2021-02-05 | 天地互联科技(广州)有限公司 | Data synchronization method and system on IFEC (Integrated Foreground communication System) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102710665A (en) * | 2012-06-27 | 2012-10-03 | 深圳中兴网信科技有限公司 | Mobile terminal, and data synchronization method of server and mobile terminal |
CN103796040A (en) * | 2012-10-31 | 2014-05-14 | 上海心动企业发展有限公司 | Method and device for releasing multimedia data according to network status of mobile terminal |
US9002992B2 (en) * | 2013-03-21 | 2015-04-07 | Nexbit Systems, Inc. | Location based game state synchronization |
CN105050063A (en) * | 2015-09-22 | 2015-11-11 | 北京金山安全软件有限公司 | Method and device for pushing information |
US20160065612A1 (en) * | 2014-08-29 | 2016-03-03 | Uchicago Argonne, Llc | Multiple operating system rotation environment moving target defense |
US20160219127A1 (en) * | 2002-08-06 | 2016-07-28 | Open Text S.A. | Providing access to information of multiple types via coordination of distinct information services |
CN106453306A (en) * | 2016-10-08 | 2017-02-22 | 广东欧珀移动通信有限公司 | Media data transmission synchronous method, device and system |
CN106537883A (en) * | 2014-07-25 | 2017-03-22 | 高通股份有限公司 | Methods and systems for triggering efficient application synchronization |
CN107453950A (en) * | 2017-08-09 | 2017-12-08 | 郑州云海信息技术有限公司 | A kind of information processing method and monitoring system |
-
2017
- 2017-12-22 CN CN201711402238.7A patent/CN108259566A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160219127A1 (en) * | 2002-08-06 | 2016-07-28 | Open Text S.A. | Providing access to information of multiple types via coordination of distinct information services |
CN102710665A (en) * | 2012-06-27 | 2012-10-03 | 深圳中兴网信科技有限公司 | Mobile terminal, and data synchronization method of server and mobile terminal |
CN103796040A (en) * | 2012-10-31 | 2014-05-14 | 上海心动企业发展有限公司 | Method and device for releasing multimedia data according to network status of mobile terminal |
US9002992B2 (en) * | 2013-03-21 | 2015-04-07 | Nexbit Systems, Inc. | Location based game state synchronization |
CN106537883A (en) * | 2014-07-25 | 2017-03-22 | 高通股份有限公司 | Methods and systems for triggering efficient application synchronization |
US20160065612A1 (en) * | 2014-08-29 | 2016-03-03 | Uchicago Argonne, Llc | Multiple operating system rotation environment moving target defense |
CN105050063A (en) * | 2015-09-22 | 2015-11-11 | 北京金山安全软件有限公司 | Method and device for pushing information |
CN106453306A (en) * | 2016-10-08 | 2017-02-22 | 广东欧珀移动通信有限公司 | Media data transmission synchronous method, device and system |
CN107453950A (en) * | 2017-08-09 | 2017-12-08 | 郑州云海信息技术有限公司 | A kind of information processing method and monitoring system |
Non-Patent Citations (1)
Title |
---|
林阳欧: "多个业务系统间数据同步系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112333232A (en) * | 2020-09-18 | 2021-02-05 | 天地互联科技(广州)有限公司 | Data synchronization method and system on IFEC (Integrated Foreground communication System) |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105389222B (en) | A kind of methods, devices and systems of dynamic call native interface | |
US10613853B2 (en) | Updating software components through online stores | |
CN101799751B (en) | Method for building monitoring agent software of host machine | |
CN106127036B (en) | The worker process of duration and elasticity | |
CN109857518A (en) | A kind of distribution method and equipment of Internet resources | |
CN104539487B (en) | A kind of system testing and reliability estimation method based on cloud platform | |
CN105138398B (en) | SOCKET communication and management of process general-purpose platform and method under synchronous communication mode | |
JPH09231156A (en) | Remote execution device with program receiving function | |
CN104967644A (en) | Message push method, apparatus and system | |
CN105357273A (en) | Universal SOCKET communication and process management platform and method in asynchronous communication mode | |
WO2017000601A1 (en) | Software compiling method and apparatus | |
CN106155763A (en) | Dispatching method of virtual machine and device | |
CN102207888A (en) | Method and device for managing timer | |
CN106502717A (en) | application program operation method and device | |
CN103618732A (en) | Execution flow of App engine structure of PaaS and Erlang | |
CN109933356A (en) | The hot replacement method of remote agent class and device | |
CN109086119A (en) | A kind of method of quick detection container operating status | |
CN106775620B (en) | Timing method and device | |
Yao et al. | Design and implementation of IOT gateway based on embedded μTenux operating system | |
CN108259566A (en) | The method of data synchronization and device of a kind of application | |
CN104750553B (en) | Using operation method and device | |
CN109939441A (en) | Using discs verifying method and system | |
CN109274734A (en) | A kind of service processes call method and device based on Internet of Things cloud platform | |
CN107249050A (en) | The management method and device of resource in cloud platform | |
US9430301B2 (en) | Distributed system for downloading internet information and a method thereof |
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: 20180706 |