Summary of the invention
The embodiment of the invention discloses a kind of file update information method for pushing and device, so that server end receives after the message that file destination is updated, the client of being determined reception file update information can be known the lastest imformation of this document in time.
For achieving the above object, the embodiment of the invention discloses a kind of file update information method for pushing, described method comprises:
The message that receiving target file is updated;
Described file destination is being had in the client of requirements for access, determining the propelling movement object of lastest imformation;
To determined propelling movement object, push the lastest imformation of described file destination.
Preferably, described having in the client of requirements for access described file destination, determines the propelling movement object of lastest imformation, for:
Determine before the message being updated at receiving target file, accessing the client of described file destination.
Preferably, describedly determine before the message being updated at receiving target file, accessing the client of described file destination, comprising:
Determine all clients of accessing file destination;
In all clients of accessing file destination, determine before receiving the message that file destination is updated, just in the client of access destination file.
Preferably, described lastest imformation, comprising:
The sign of file destination, the client identification that upgrades file destination, update time and/or renewal synopsis information.
Preferably, after determining the propelling movement object of lastest imformation, described file update information method for pushing also comprises:
To determined propelling movement object, send the file destination after upgrading.
For achieving the above object, the embodiment of the invention discloses a kind of file update information pusher, described device comprises:
File is updated message sink module, the message being updated for receiving target file;
Client determination module, for described file destination being had to the client of requirements for access, determines the propelling movement object of lastest imformation;
File update information pushing module, for pushing the lastest imformation of described file destination to determined propelling movement object.
Preferably, described client determination module, specifically for determining before the message being updated at receiving target file, is accessing the client of described file destination.
Preferably, described client determination module, comprising: first determines submodule and second definite submodule;
Described first determines submodule, for determining all clients of accessing file destination;
Described second determines submodule, in described first definite result of determining submodule, determines before receiving the message that file destination is updated, just in the client of access destination file.
Preferably, described file update information pushing module, specifically for comprising the lastest imformation of the sign of file destination, the client identification that upgrades file destination, update time and/or renewal synopsis information to determined client push.
Preferably, described file update information pusher also comprises: data transmission blocks after upgrading;
Data transmission blocks after described renewal, for determining at described client determination module after the propelling movement object of lastest imformation, sends the file destination after upgrading to determined propelling movement object.
As seen from the above technical solutions, in this programme, server end receives after the message that file destination is updated, to being determined the client push file update information that receives file update information.In prior art, by manual detection or close this document and reopen again file, to detect the mode whether file be updated, to compare, this programme can make to be determined that the client that receives file update information can know the lastest imformation of this document in time.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
In practical application, when a plurality of clients are simultaneously during the identical file of access services device ends, if wherein a certain client has carried out upgrading after operation to this document, other client cannot be known the lastest imformation of this document in time, therefore, the application provides a kind of file update information method for pushing and device.
Below by specific embodiment, the present invention is described in detail.
A kind of file update information method for pushing schematic flow sheet that Fig. 1 provides for the embodiment of the present invention, the method can be applied to server end, comprises the following steps:
Step 101: the message that receiving target file is updated.
In practical application, a plurality of clients are a certain file destination of access services device end simultaneously, and this file destination can be text document, image file, video file, audio file etc.One or more clients in a plurality of clients can be upgraded this file destination, after file destination is updated, the message that client is updated this file destination sends to server end, and server end receives after the message that file destination is updated, and triggers the operation of step 102.
After client is upgraded file destination, can be first the file destination after upgrading be sent to server end, after the file destination after to be updated is sent, then send to server end the message that file destination is updated.But, in practical application, because client is when sending the file destination after upgrading to server end, be subject to the impact of the factors such as the network bandwidth, file size, transfer files may need the long period, so client also can first send to server end the message that file destination is updated, file destination after send upgrading again, so that server end can push information that file destination is updated in time to client.But may exist in this case client to receive the message that file destination is updated, and file destination after upgrading is not also sent to the situation of server completely.
In practical application, when a plurality of clients or a client are repeatedly upgraded file destination, server end can be according to the time sequencing that receives file destination and be updated message, by the file destination after the up-to-date renewal of time of reception, be defined as the file destination of latest edition, for other client-access.
For example: customer end A has carried out upgrading operation at 9: 10 to the file X of server end; Customer end B has carried out upgrading operation at the file X of 9: 30 pairs of server ends; Client C has carried out upgrading operation at 9: 31 to the X of server end, and A, B, C have all sent to server end the message that file destination is updated after having upgraded file, server end is received the message of A, B, C transaction file X successively, and the file of client C after the upgrading X file that is latest edition.
The application just be take time sequencing as example, and situation when server end receives the message that a plurality of files are updated is described, in practical application, is not limited only to this, for example, it is also conceivable that priority orders of client etc.
It should be noted that, when client is upgraded file destination, and the file destination after upgrading is sent to after server, server end can only retain the file destination of latest edition, also can retain the file destination after each renewal, but only the file destination of latest edition be offered to client-access.
Step 102: described file destination is being had in the client of requirements for access, determining the propelling movement object of lastest imformation.
In this step, there is the client of requirements for access, can comprise following several:
Before the message being updated at server end receiving target file, just in the client of access destination file;
Before the message being updated at server end receiving target file, all clients of accessing file destination;
The client of this file destination Regeneration dynamics of all subscription;
All clients in same working group;
Etc..
In practical application, when determined propelling movement object is " before the message being updated at receiving target file; accessing the client of this file destination ", can first determine all clients of accessing this file destination, again in these clients, determine before receiving the message that file destination is updated, accessing the client of this file destination.
In addition, in a specific embodiment, server end can arrange one for recording the access list of each client-access server end situation, during any one file in a certain client-access server, in this access list, record the sign of this client, current state information of the file identification of access, access time, client etc.Receive before the message that file destination is updated determining, while accessing the client of this file destination, can be according in access list, the file identification of access and the corresponding relation of client identification are determined all clients of accessing this file destination, again according to the current state information of client, determine and receive before the message that file destination is updated, accessing the client of this file destination.Certainly, the application just describes as example, determines that the mode of client is not limited only to this in practical application.
Step 103: the lastest imformation that pushes described file destination to determined propelling movement object.
In this step, push the lastest imformation of file destination to propelling movement object definite described in step 102, the sign of carrying at least one file destination in this information, to inform that this propelling movement subject object file is updated.
For example, in step 102, determined propelling movement object is " before the message being updated at receiving target file; accessing the client of this file destination ", in this step to the lastest imformation of determined these client push file destinations, through determining, if only have a client accessing, upgrade preceding document data, only to this client push lastest imformation; If there are a plurality of clients accessing the file data before renewal, to a plurality of client push lastest imformations.
Lastest imformation can comprise: the sign of file destination, the client identification that upgrades file destination, update time and/or renewal synopsis information etc., certainly in practical application, the content of lastest imformation is not limited only to this, for example, can also comprise: upgrade the version number of preceding document, version number of the rear file of renewal etc.
Wherein, the sign of file destination, can be title of file destination, identification code, No. ID etc.; Upgrading the client identification of file destination, can be the title of client, IP address etc.In practical application, the client identification of the sign of file destination and renewal file destination is not limited only to this, so long as can all can with the sign of upgrading the client of file destination by unique definite file destination in certain limit.
In practical application, client is after the file update information pushing, can select the file destination after down loading updating and the file destination after upgrading is presented, also can select the file destination after down loading updating not, and continue the file destination before access is upgraded or ignore this document lastest imformation.
As seen from the above, in this programme, at server end, receive after the message that file destination is updated, by the mode to there being the client push lastest imformation of access destination file demand, make each client can know timely the message that this document is updated.
The another kind of file update information method for pushing schematic flow sheet that Fig. 2 provides for the embodiment of the present invention, the method can be applied to server end, comprises the following steps:
Step 201: the message that receiving target file is updated.
Step 202: described file destination is being had in the client of requirements for access, determining the propelling movement object of lastest imformation.
Step 203: send the file destination after upgrading to determined propelling movement object.
Step 204: the lastest imformation that pushes described file destination to determined propelling movement object.
It should be noted that, step 201,202 and 204 in the present embodiment, can be respectively and middle step 101 embodiment illustrated in fig. 1,102 identical with 103, therefore, no longer repeats here.
The present embodiment and difference embodiment illustrated in fig. 1 are, after step 202 has been determined the propelling movement object of lastest imformation, can send the file destination after upgrading to determined propelling movement object.
It should be noted that, step 203 and step 204 do not have strict execution sequence restriction, and step 203 can be carried out before step 204, also can after step 204, carry out, and can also carry out with step 204 simultaneously.
In concrete application, when server end successfully receives after the file destination after renewal, can first to the determined propelling movement object of step 202, send the file destination after upgrading, when pushing object, each successfully receives after the file destination after renewal, then the information of upgrading to the definite propelling movement object pushing files of step 202.The propelling movement object definite in step 202 receives after the information of file update, can select to upgrade file destination to latest edition, also can ignore this document lastest imformation, continues the file destination before access is upgraded.
It should be noted that, because server end is when sending the file destination after upgrading to propelling movement object, can carry out on backstage, thereby avoid bothering the normal use that pushes object user, for example, the file destination after renewal file destination after this renewal can be stored in the buffer memory that pushes object, so when selecting to upgrade file destination to latest edition, can present fast.
When server end successfully receives after the file destination after renewal, if step 203 and step 204 are carried out simultaneously, and while pushing Object Selection renewal file destination to latest edition, because server end has started the file destination after active push is upgraded, so the file destination after upgrading also can faster present.
In addition, when server end successfully receives after the file destination after renewal, if step 203 is carried out after step 204, and while pushing Object Selection renewal file destination to latest edition, because server end is after having pushed file destination lastest imformation, the file destination after upgrading do not need to push in the situation of Object Selection, started the file destination after active push is upgraded, so can faster present yet.
As seen from the above, server end receives after the message that file destination is updated, file destination after server end can active push upgrades and the lastest imformation of file destination, so that client can be known the information of file update in time, and can, so that the file after upgrading can present fast in client, obtain good user's experience effect.
A kind of file update information pusher structural representation that Fig. 3 provides for the embodiment of the present invention, this device comprises: file is updated message sink module 301, client determination module 302 and file update information pushing module 303.
Wherein, file is updated message sink module 301, the message being updated for receiving target file;
Client determination module 302, for described file destination being had to the client of requirements for access, determines the propelling movement object of lastest imformation;
File update information pushing module 303, for pushing the lastest imformation of described file destination to determined propelling movement object.
In the present embodiment, client determination module 302 can, specifically for determining before receiving the message that file destination is updated, accessed the client of described file destination.
Wherein, client determination module 302 can comprise: first determines submodule and second definite submodule (not shown).First determines submodule, for determining all clients of accessing file destination; Second determines submodule, in described first definite result of determining submodule, determines before receiving the message that file destination is updated, just in the client of access destination file.
In the present embodiment, file update information pushing module 303 can be specifically for comprising the lastest imformation of the sign of file destination, the client identification that upgrades file destination, update time and/or renewal synopsis information to determined client push.
As seen from the above, in this programme, at server end, receive after the message that file destination is updated, by the mode to there being the client push lastest imformation of access destination file demand, make each client can know timely the message that this document is updated.
The another kind of file update information pusher structural representation that Fig. 4 provides for the embodiment of the present invention, this device comprises: file is updated message sink module 401, client determination module 402, upgrades rear data transmission blocks 403 and file update information pushing module 404.
It should be noted that, in embodiment illustrated in fig. 4, file is updated message sink module 401, client determination module 402 and file update information pushing module 404, can respectively at the file in embodiment illustrated in fig. 3, be updated message sink module 301, client determination module 302 is identical with file update information pushing module 303, therefore, no longer repeat here.
In the present embodiment, data transmission blocks 403 after upgrading, for determining at described client determination module after the propelling movement object of lastest imformation, sends the file destination after upgrading to determined propelling movement object.
As seen from the above, server end receives after the message that file destination is updated, server end is first sent to by the file destination after this renewal the client that each has access destination file demand, carry out again lastest imformation propelling movement, so that client can be known the information of file update in time, and can, so that the file after upgrading can present fast in client, obtain good user's experience effect.
For device embodiment, because it is substantially similar in appearance to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method execution mode is to come the hardware that instruction is relevant to complete by program, described program can be stored in computer read/write memory medium, here alleged storage medium, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any modifications of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.