The content of the invention
The embodiment of the invention discloses a kind of file update information method for pushing and device, so that received server-side arrives
After the message that file destination is updated, the renewal of this document can be known in time by being determined the client of reception file update information
Information.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of file update information method for pushing, the method bag
Include:
Receive the message that file destination is updated;
In having the client of requirements for access to the file destination, the push object of fresh information is determined;
To the fresh information of file destination described in identified push Object Push.
Preferably, it is described in having the client of requirements for access to the file destination, determine the push pair of fresh information
As being:
Determine before the message that file destination is updated is received, accessing the client of the file destination.
Preferably, described determine before the message that file destination is updated is received, the visitor of the file destination is being accessed
Family end, including:
Determine all clients for accessing file destination;
The client of file destination was accessed all, was determined before the message that file destination is updated is received, just
In the client of access target file.
Preferably, the fresh information, including:
The mark of file destination, the client identification for updating file destination, renewal time and/or renewal synopsis letter
Breath.
Preferably, after the push object of fresh information is determined, the file update information method for pushing further includes:
The file destination after renewal is sent to identified push object.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of file update information pusher, described device bag
Include:
File is updated message reception module, the message being updated for receiving file destination;
Client determining module, in having the client of requirements for access to the file destination, determining fresh information
Push object;
File update information pushing module, believes for the renewal to file destination described in identified push Object Push
Breath.
Preferably, the client determining module, specifically for determining before the message that file destination is updated is received, just
Accessing the client of the file destination.
Preferably, the client determining module, including:First determination sub-module and the second determination sub-module;
First determination sub-module, for determining all clients for accessing file destination;
Second determination sub-module, in the definitive result of first determination sub-module, determining receiving
Before the message that file destination is updated, the client just in access target file.
Preferably, the file update information pushing module, specifically for including target to identified client push
The mark of file, the client identification for updating file destination, renewal time and/or the fresh information for updating synopsis information.
Preferably, the file update information pusher further includes:Data transmission blocks after renewal;
Data transmission blocks after the renewal, for determining the push object of fresh information in the client determining module
Afterwards, the file destination after renewal is sent to identified push object.
As seen from the above technical solutions, in the present solution, after the message that received server-side is updated to file destination, to
It is determined receiving the client push file update information of file update information.With in the prior art, manually detecting or closing
Close this document and reopen file again, compared in a manner of detecting file and whether being updated, this programme enables to be determined connecing
The fresh information of this document can be known in time by receiving the client of file update information.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment, belongs to the scope of protection of the invention.
Due in practical application, when multiple client accesses the identical file of server end at the same time, if wherein a certain visitor
After family end has carried out this document renewal operation, other clients can not know the fresh information of this document, therefore, this Shen in time
It please provide a kind of file update information method for pushing and device.
Below by specific embodiment, the present invention is described in detail.
Fig. 1 is a kind of file update information method for pushing flow diagram provided in an embodiment of the present invention, and this method can be with
Applied to server end, comprise the following steps:
Step 101:Receive the message that file destination is updated.
In practical application, multiple client can access a certain file destination of server end at the same time, which can
Think text document, image file, video file, audio file etc..One or more of multiple client client can
To be updated to the file destination, after file destination is updated, the message which is updated is sent to by client
Server end, after the message that received server-side to file destination is updated, triggers the operation of step 102.
After client is updated file destination, first the file destination after renewal can be sent to server end,
After file destination after to be updated is sent, then to server end send the message that is updated of file destination.Should but actual
In, since client is when sending the file destination after renewal to server end, easily by factors such as network bandwidth, file sizes
Influence, transmission file may need the long period, so, client can also first to server end send file destination by more
New message, retransmits the file destination after renewal, in order to which server end can push the letter that file destination is updated in time
Cease to client.But there may be client in this case to have been received by the message that file destination is updated, and update
File destination afterwards is not sent also to the situation of server completely.
In practical application, when multiple client or a client are repeatedly updated file destination, server
End can be according to the time sequencing for receiving file destination and being updated message, by the target text after the newest renewal of receiving time
Part, is determined as the file destination of latest edition, so that other clients access.
Such as:Customer end A has carried out renewal operation in 9 points of 10 minutes file X to server end;Customer end B is right 9: 30
The file X of server end has carried out renewal operation;Client C has carried out renewal operation in 9 points of 31 minutes X to server end, and
A, B, C have sent the message that file destination is updated to server end having updated the rear of file, then server end is received successively
To the message of A, B, C more new file X, and the X-File that the file after client C renewals is latest edition.
The application simply by taking time sequencing as an example, illustrates the feelings during message that the multiple files of received server-side are updated
Condition, is not limited only to this in practical application, for example, it is also possible to consider priority orders of client etc..
File destination is updated it should be noted that working as client, and the file destination after renewal is sent to server
Afterwards, server end can only retain the file destination of latest edition, can also retain the file destination after renewal every time, but only
It is supplied to client to access the file destination of latest edition.
Step 102:In having the client of requirements for access to the file destination, the push object of fresh information is determined.
In this step, there is the client of requirements for access, can include following several:
Before the message that received server-side file destination is updated, the client just in access target file;
Before the message that received server-side file destination is updated, all clients for accessing file destination;
All subscription file destinations update dynamic client;
All clients in same working group;
Etc..
In practical application, when identified push object is " before the message that file destination is updated is received, to access
During the client of the file destination ", all clients for accessing the file destination can be determined first, then in these clients
In end, determine before the message that file destination is updated is received, accessing the client of the file destination.
In addition, in a specific embodiment, server end can set one to be used to record each client access
The access list of server-side conditions, when a certain client accesses any one file in server, in the access list
Record current state information of the mark of the client, the file identification accessed, access time, client etc..Determining
Before receiving the message that file destination is updated, when accessing the client of the file destination, can according in access list,
The file identification of access and the correspondence of client identification determine all clients for accessing the file destination, further according to
The current state information of client, determines before receiving the message that file destination is updated, is accessing the file destination
Client.Certainly, the application is simply illustrated as example, determines that the mode of client is not limited only to this in practical application.
Step 103:To the fresh information of file destination described in identified push Object Push.
In this step, to the fresh information of the push Object Push file destination determined described in step 102, in the letter
The mark of at least one file destination is carried in breath, to inform that the push subject object file has been updated.
For example, identified push object is " before the message that file destination is updated is received, in a step 102
Access the client of the file destination ", then the renewal to these identified client push file destinations is believed in this step
Breath, through determining, if an only client is accessing renewal preceding document data, only to the client push fresh information;
If there is multiple client accessing the file data before renewal, fresh information is pushed to multiple client.
Fresh information can include:The mark of file destination, the client identification for updating file destination, renewal time and/
Or renewal synopsis information etc., in certain practical application, the content of fresh information is not limited only to this, such as can also wrap
Include:Update the version number etc. of file after the version number of preceding document, renewal.
Wherein, the mark of file destination, can be title, identification code, ID number of file destination etc.;Update file destination
Client identification, can be the title of client, IP address etc..The mark of file destination and more fresh target in practical application
The client identification of file is not limited only to this, as long as it can uniquely determine file destination and more fresh target text in a certain range
The mark of the client of part.
In practical application, after client receives the file update information of push, it can select to download the target after updating
File simultaneously shows the file destination after renewal, can also select not download the file destination after renewal, and continues to access
File destination before renewal ignores this document fresh information.
As seen from the above, in this programme after the message that received server-side to file destination is updated, by there is visit
Ask the mode of the client push fresh information of file destination demand so that each client can timely know this document quilt
The message of renewal.
Fig. 2 is another file update information method for pushing flow diagram provided in an embodiment of the present invention, and this method can
Applied to server end, to comprise the following steps:
Step 201:Receive the message that file destination is updated.
Step 202:In having the client of requirements for access to the file destination, the push object of fresh information is determined.
Step 203:The file destination after renewal is sent to identified push object.
Step 204:To the fresh information of file destination described in identified push Object Push.
It should be noted that step 201,202 and 204 in the present embodiment, can respectively with step in embodiment illustrated in fig. 1
101st, 102 is identical with 103, therefore, is not repeated herein.
The present embodiment and embodiment illustrated in fig. 1 difference lies in, step 202 determine fresh information push object it
Afterwards, the file destination after renewal can be sent to identified push object.
It should be noted that step 203 and step 204 are limited without stringent execution sequence, step 203 can be in step
Performed before 204, can also after step 204 perform, can also be performed at the same time with step 204.
, can be first to step 202 institute after file destination after server end is successfully received renewal in specific application
Definite push object sends the file destination after renewal, after file destination after each push object is properly received renewal,
The information of the push Object Push file renewal determined again to step 202.File is received in the push object that step 202 determines more
After new information, renewal file destination can be selected to ignore this document fresh information to latest edition, continue to access more
File destination before new.
It should be noted that since server end to push object when sending the file destination after renewal, can be rear
Platform carries out, so as to avoid bothering the normal use of push object user, for example, the file destination after can this be updated is stored in
In the caching for pushing object, so when selection updates file destination to latest edition, the file destination after renewal can be quick
Show.
After file destination after server end is successfully received renewal, if step 203 and step 204 perform at the same time, and
When pushing Object Selection renewal file destination to latest edition, since server end has begun to the target after active push renewal
File, so what the file destination after renewal can also be faster shows.
In addition, after the file destination that server end is successfully received after renewal, if step 203 is held after step 204
OK, when and push Object Selection updates file destination to latest edition, since server end is pushing file destination renewal letter
After breath, it is not necessary in the case of pushing Object Selection, the file destination after active push renewal is had begun to, so after renewal
File destination can also be faster show.
As seen from the above, after the message that received server-side is updated to file destination, server end can be with active push
The fresh information of file destination and file destination after renewal, so that client can know the information of file renewal in time,
And the file after renewal can be enabled quickly to be showed in client, obtain preferable user experience effect.
Fig. 3 is a kind of file update information pusher structure diagram provided in an embodiment of the present invention, which includes:
File is updated message reception module 301, client determining module 302 and file update information pushing module 303.
Wherein, file is updated message reception module 301, the message being updated for receiving file destination;
Client determining module 302, in having the client of requirements for access to the file destination, determining renewal letter
The push object of breath;
File update information pushing module 303, for the renewal to file destination described in identified push Object Push
Information.
In the present embodiment, client determining module 302 can be specifically used for determining receiving what file destination was updated
Before message, the client of the file destination is being accessed.
Wherein, client determining module 302 can include:First determination sub-module and the second determination sub-module(In figure not
Show).First determination sub-module, for determining all clients for accessing file destination;Second determination sub-module, for
In the definitive result of first determination sub-module, determine before the message that file destination is updated is received, accessing mesh
Mark the client of file.
In the present embodiment, file update information pushing module 303 can be specifically used for identified client push bag
Include the mark of file destination, the client identification for updating file destination, renewal time and/or the renewal for updating synopsis information
Information.
As seen from the above, in this programme after the message that received server-side to file destination is updated, by there is visit
Ask the mode of the client push fresh information of file destination demand so that each client can timely know this document quilt
The message of renewal.
Fig. 4 is another file update information pusher structure diagram provided in an embodiment of the present invention, the device bag
Include:Data transmission blocks 403 and file be more after file is updated message reception module 401, client determining module 402, renewal
New information pushing module 404.
It should be noted that in embodiment illustrated in fig. 4, file is updated message reception module 401, client determining module
402 and file update information pushing module 404, message sink mould can be updated respectively at the file in embodiment illustrated in fig. 3
Block 301, client determining module 302 are identical with file update information pushing module 303, therefore, are not repeated herein.
In the present embodiment, data transmission blocks 403 after renewal, for determining fresh information in the client determining module
Push object after, to it is identified push object send renewal after file destination.
As seen from the above, after the message that received server-side is updated to file destination, after server end first updates this
File destination send to each and have the client of access target file demand, then information push is updated, so that client
End can know the information of file renewal in time, and the file after renewal can be enabled quickly to be showed in client,
Preferable user experience effect is obtained.
For device embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those
Element, but also including other elements that are not explicitly listed, or further include as this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there are other identical element in process, method, article or equipment including the key element.
Can one of ordinary skill in the art will appreciate that realizing that all or part of step in above method embodiment is
To instruct relevant hardware to complete by program, the program can be stored in computer read/write memory medium,
The storage medium designated herein obtained, such as:ROM/RAM, magnetic disc, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.