CN102456027A - Method, terminals and system for copying files in distributed system - Google Patents

Method, terminals and system for copying files in distributed system Download PDF

Info

Publication number
CN102456027A
CN102456027A CN201010521085XA CN201010521085A CN102456027A CN 102456027 A CN102456027 A CN 102456027A CN 201010521085X A CN201010521085X A CN 201010521085XA CN 201010521085 A CN201010521085 A CN 201010521085A CN 102456027 A CN102456027 A CN 102456027A
Authority
CN
China
Prior art keywords
filename
file
client
service end
corresponding relation
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
Application number
CN201010521085XA
Other languages
Chinese (zh)
Inventor
黄海亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING KINGDEE GOVERNMENT AFFAIRS SOFTWARE CO LTD
Original Assignee
BEIJING KINGDEE GOVERNMENT AFFAIRS SOFTWARE CO LTD
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by BEIJING KINGDEE GOVERNMENT AFFAIRS SOFTWARE CO LTD filed Critical BEIJING KINGDEE GOVERNMENT AFFAIRS SOFTWARE CO LTD
Priority to CN201010521085XA priority Critical patent/CN102456027A/en
Publication of CN102456027A publication Critical patent/CN102456027A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method, terminals and system for copying files in a distributed system, belonging to the field of computers. The method comprises the following steps: obtaining the correspondence between the file name of a server and the message digest algorithm 5 (MD5) coding value; obtaining the names of the files with the server but without a client according to the correspondence between the file name of the client and the MD5 coding value as well as the correspondence between the file name of the server and the MD5 coding value; and copying the files corresponding to the obtained file names from the server. The system comprises the server and the client. The client comprises a first obtaining module, a second obtaining module and a copying module. The server comprises a first receiving module, a first sending module, a second receiving module and a second sending module. The efficiency of copying the files can be improved and normal operation of the distributed system can be guaranteed by adopting the method, the terminals and the system.

Description

A kind of in distributed system method, terminal and the system of xcopy
Technical field
The present invention relates to computer realm, particularly a kind of in distributed system method, terminal and the system of xcopy.
Background technology
Distributed system (Distributed System) is the system that is based upon on the network, and it is made up of many computing machines.Distributed system can improve the efficient of routine processes.When the user utilized distributed system to handle a program, the file copy that will deposit this program earlier went to handle this program by distributed system again in every computing machine of distributed system.
Wherein, The method of existing xcopy is specially: when the user utilizes distributed system to handle a program; The user manually will deposit on file copy each computing machine in distributed system of this program earlier, then, utilize distributed system to handle this program again.
In realizing process of the present invention, the inventor finds that there is following problem at least in prior art:
The computing machine that distributed system comprises is more, and the user manually will deposit the file copy of program in every computing machine, and the efficient of xcopy is lower; In addition; The user is easy to not xcopy of holiday computing machine, and distributed system can't normally be moved when xcopy.
Summary of the invention
For the efficient that improves xcopy and ensure that distributed system normally moves, the invention provides a kind of in distributed system method, terminal and the system of xcopy.Said technical scheme is following:
A kind of in distributed system the method for xcopy, said method comprises:
Obtain the filename of service end and the corresponding relation of MD5 (Message Digest Algorithm MD5, Message Digest Algorithm 5) encoded radio;
According to the filename of client and corresponding relation and the filename of said service end and the corresponding relation of MD5 encoded radio of MD5 encoded radio, obtain said service end and exist and the filename of the non-existent file of client;
From said service end, duplicate the said filename corresponding file of obtaining.
The said filename of service end and the corresponding relation of MD5 encoded radio of obtaining specifically comprises:
Transmission is obtained the request of corresponding relation and is given said service end;
Receive the filename that said service end returns and the corresponding relation of MD5 encoded radio.
Said according to the filename of client and corresponding relation and the filename of said service end and the corresponding relation of MD5 encoded radio of MD5 encoded radio, obtain that said service end exists and the filename of the non-existent file of client specifically comprises:
The filename of said client and the corresponding relation of MD5 encoded radio and the filename of said service end and the corresponding relation of MD5 encoded radio are compared; Draw non-existent record in the corresponding relation of filename and MD5 encoded radio of said client, the file that comprises in the said record that draws said service end by name exists and the filename of the non-existent file of client.
Saidly from said service end, duplicate the said filename corresponding file of obtaining, specifically comprise:
Send duplicate requests and give said service end, said duplicate requests is carried the said filename that obtains;
Receive the said filename corresponding file content of obtaining that said service end is returned;
Create blank file, and the file content of said reception is filled in the file of said blank.
A kind of client, said client comprises:
First acquisition module is used to obtain the filename of service end and the corresponding relation of MD5 encoded radio;
Second acquisition module is used for according to the filename of client and corresponding relation and the filename of said service end and the corresponding relation of MD5 encoded radio of MD5 encoded radio, obtains said service end and exists and the filename of the non-existent file of client;
Replication module is used for duplicating the said filename corresponding file of obtaining from said service end.
Said first acquisition module specifically comprises:
First transmitting element is used to send the request of obtaining corresponding relation and gives said service end;
First receiving element is used to receive the filename that said service end returns and the corresponding relation of MD5 encoded radio.
Said second acquisition module; Specifically be used for the filename of said client and the corresponding relation of MD5 encoded radio and the filename of said service end and the corresponding relation of MD5 encoded radio are compared; Draw non-existent record in the corresponding relation of filename and MD5 encoded radio of said client, the filename of non-existent file in the file that comprises in the said record that the draws said client by name.
Said replication module specifically comprises:
Second transmitting element is used to send duplicate requests and gives said service end, and said duplicate requests is carried the said filename that obtains;
Second receiving element is used to receive the said filename corresponding file content of obtaining that said service end is returned;
Fill in the unit, be used to create blank file, and the file content of said reception is filled in the file of said blank.
A kind of service end, said service end comprises:
First receiver module is used to receive the request of obtaining corresponding relation from client;
First sending module is used to send the corresponding relation of files stored name and MD5 encoded radio and gives said client;
Second receiver module is used to receive the duplicate requests from said client, and said duplicate requests is carried self and existed and the filename of the non-existent file of said client;
Second sending module is used to obtain and self exists and the filename corresponding file content of the non-existent file of said client sends to said client with said file content.
A kind of in distributed system the system of xcopy, said system comprises service end and client;
Said service end is used to receive the request of obtaining corresponding relation from said client, and sends the corresponding relation of files stored name and MD5 encoded radio and give said client; Reception is from the duplicate requests of said client, obtain that said duplicate requests carries self exist and the filename corresponding file content of the non-existent file of said client sends to said client with said file content;
Said client; Be used to receive the filename of said service end transmission and the corresponding relation of MD5 encoded radio; Corresponding relation and the filename of said reception and the corresponding relation of MD5 encoded radio according to self files stored name and MD5 encoded radio; Obtain that said service end exists and the filename of self non-existent file, send and carry that said service end exists and the duplicate requests of the filename of self non-existent file is given said service end, receive the file content that said service end is returned; Create null file, said file content is filled in the file of said blank.
Client is obtained the filename of service end and the corresponding relation of MD5 encoded radio, according to the filename of self and corresponding relation and the filename of service end and the corresponding relation of MD5 encoded radio of MD5 encoded radio, obtains the filename of the file that self does not exist in; The filename corresponding file of self non-existent file of acquisition request from service end again.So; The user only need be with file copy in service end; Client is duplicated this document automatically from service end; Avoided artificial and duplicated this document for each computing machine in the distributed system and the holiday computing machine does not duplicate this document, thereby improved the efficient of xcopy and ensured that distributed system normally moves.
Description of drawings
Fig. 1 be the embodiment of the invention 1 provide a kind of in distributed system the method flow diagram of xcopy;
Fig. 2 be the embodiment of the invention 2 provide a kind of in distributed system the method flow diagram of xcopy;
Fig. 3 is a kind of client terminal structure synoptic diagram that the embodiment of the invention 3 provides;
Fig. 4 is a kind of service end structural representation that the embodiment of the invention 4 provides;
Fig. 5 be the embodiment of the invention 5 provide a kind of in distributed system the system schematic of xcopy.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
Embodiment 1
As shown in Figure 1, the embodiment of the invention provide a kind of in distributed system the method for xcopy, comprising:
Step 101: obtain the filename of service end and the corresponding relation of MD5 encoded radio;
Step 102:, obtain service end and exist and the filename of the non-existent file of client according to the filename of client and corresponding relation and the filename of service end and the corresponding relation of MD5 encoded radio of MD5 encoded radio;
Step 103: from service end, duplicate the filename corresponding file of obtaining.
Wherein, file can be jar file, class file or cpp file.
In embodiments of the present invention; Client is obtained the filename of service end and the corresponding relation of MD5 encoded radio; According to the filename of self and corresponding relation and the filename of service end and the corresponding relation of MD5 encoded radio of MD5 encoded radio, obtain the filename of the file that self does not exist in; The filename corresponding file of self non-existent file of acquisition request from service end again.So; The user only need be with file copy in service end; Client is duplicated this document automatically from service end; Avoided artificial and duplicated this document for each computing machine in the distributed system and the holiday computing machine does not duplicate this document, thereby improved the efficient of xcopy and ensured that distributed system normally moves.
Embodiment 2
The embodiment of the invention provide a kind of in distributed system the method for xcopy.Wherein, The user at first selects a computing machine as service end in the computing machine that distributed system comprises; With other computing machine as client; The user again with stored program file copy in service end, and the method that the client in the distributed system utilizes present embodiment to provide is duplicated this document automatically from service end.Referring to Fig. 2, this method comprises:
Step 201: service end is obtained the filename and the MD5 encoded radio of each file of self storage, and the filename and the MD5 encoded radio of each file is stored in the corresponding relation of filename and MD5 encoded radio;
Particularly; The service end sequential scanning is stored in each file in self the file directory; From each file of scanning, read filename and file content; Calculate the MD5 encoded radio of each file according to the file content of each file, the filename and the MD5 encoded radio of each file is stored in the corresponding relation of filename and MD5 encoded radio.
Wherein, in distributed system, each computing machine will be from one's body file storage in file directory, so in distributed system, all there are the file directory of a store files in service end and client.
Wherein, in the present embodiment, file can be the jar file or the class file of storage java applet, also can be the cpp file of storage C++ program.Wherein, The java applet that utilizes the Java developing instrument to develop; At first compile the class file that obtains one or more expansions .class by name through compiler; The class file that again this java applet is comprised compresses the jar file that packing obtains an expansion .jar by name, so a java applet can leave in one or more class files, also can leave in the jar file; Utilize the C++ developing instrument to develop the C++ program, at first compile the cpp file that obtains one or more expansions .cpp by name, so a C++ program leaves in one or more cpp files through compiler.
Wherein, the MD5 encoded radio of each file is that the file content according to each file calculates, so for any two files, if the content of these two files is inequality, then the MD5 encoded radio of these two files is also inequality.
Wherein, The MD5 encoded radio is 32 a character string; Client can be called the MD5 encoded radio that the API that is used to calculate the MD5 encoded radio calculates each jar file from API (Application Programming Interface, API) function library.The API that is used to calculate the MD5 encoded radio can be java.security.MessageDigest.
For example, the files stored catalogue is as shown in table 1 on the service end, in the file directory of service end, has stored jar1 file, jar2 file ...
Table 1
The jar1 file
The jar2 file
......
The file directory that service end scanning is as shown in table 1; The file " jar1 " by name and the MD5 encoded radio that obtain the jar1 file are " MD1 "; The file " jar2 " by name and the MD5 encoded radio that obtain the jar2 file are " MD2 " ...; With " jar1 " and " MD1 " of jar1 file, " jar2 " of jar2 file and " MD2 " are stored in respectively in the corresponding relation of filename as shown in table 2 and MD5 encoded radio.
Table 2
Filename The MD5 encoded radio
jar1 MD1
jar2 MD2
...... ......
Step 202: client is obtained the filename and the MD5 encoded radio of each file that is stored in self, and the filename and the MD5 encoded radio of each file is stored in the corresponding relation of filename and MD5 encoded radio;
Particularly; The client sequential scanning is stored in each file in self the file directory; From each file of scanning, read filename and file content; Calculate the MD5 encoded radio of each file according to the file content of each file, the filename and the MD5 encoded radio of each file is stored in the corresponding relation of filename and MD5 encoded radio.
For example, the files stored catalogue is as shown in table 3 on the client, in the file directory of client, has stored the jar1 file ...
Table 3
The jar1 file
......
The file directory that client scan is as shown in table 3; The file " jar1 " by name and the MD5 encoded radio that obtain the jar1 file are " MD3 " ..., " jar1 " and " MD3 " of jar1 file is stored in the corresponding relation of filename as shown in table 4 and MD5 encoded radio.
Table 4
Filename The MD5 encoded radio
jar1 MD3
...... ......
Step 203: client is sent the request of obtaining corresponding relation and is given service end;
Step 204: service end receives the request obtain corresponding relation, and the corresponding relation that returns self files stored name and MD5 encoded radio is to client;
For example, service end will return to client like the filename of table 2 and the corresponding relation of MD5 encoded radio after receiving and obtaining the request of corresponding relation.
Step 205: the filename that client reception service end is returned and the corresponding relation of MD5 encoded radio;
Step 206: client is according to the filename and the corresponding relation of MD5 encoded radio and the corresponding relation of self files stored name and MD5 encoded radio that receive, obtains the service end existence and the filename of self non-existent file;
Particularly; Client compares the corresponding relation of filename that receives and MD5 encoded radio and the corresponding relation of self files stored name and MD5 encoded radio; Compare non-existent record in the corresponding relation of self files stored name and MD5 encoded radio; Wherein, the file that comprises in the record that compares service end by name exists and the filename of the non-existent file of client self.
Wherein, Every record in the filename that client scan receives and the corresponding relation of MD5 encoded radio; According to the filename in the record of scanning; Search the corresponding relation of self files stored name and MD5 encoded radio,, then do not exist in the corresponding relation that is recorded in self files stored name and MD5 encoded radio of scanning if in the corresponding relation of self files stored name and MD5 encoded radio, do not find out corresponding MD5 encoded radio; If from the corresponding relation of self files stored name and MD5 encoded radio, find out corresponding MD5 encoded radio; MD5 encoded radio in the record that then relatively scans and the MD5 encoded radio of searching; If it is inequality to compare two MD5 encoded radios, then do not exist in the corresponding relation that is recorded in self files stored name and MD5 encoded radio of scanning.
For example, the filename as shown in table 2 that client scan receives and the corresponding relation of MD5 encoded radio, the at first corresponding relation that is recorded as " jar1 " and " MD1 " of scanning; According to " jar1 " in this record; From the corresponding relation of filename as shown in table 4 and the MD5 encoded radio of self storage, find out " MD3 ", relatively " MD1 " in this record and " MD3 " that search; The result who obtains is inequality for both; So " jar1 " of scanning do not exist in the corresponding relation of filename of self storing as shown in table 4 and MD5 encoded radio with the corresponding relation of " MD1 ", wherein, the file content of two files that the MD5 encoded radio is different is inequality; So the jar1 file in the client in jar1 file and the service end is a different files, promptly there is not the jar1 file in the service end in the client.
The corresponding relation that is recorded as " jar2 " and " MD2 " that scans then; According to " jar2 " in this record; From the corresponding relation of filename as shown in table 4 and the MD5 encoded radio of self storage, do not find out corresponding MD5 encoded radio; So the corresponding relation that is recorded as " jar2 " and " MD2 " of scanning does not exist in the corresponding relation of filename of self storing as shown in table 4 and MD5 encoded radio, promptly in client, does not have the jar2 file.
Step 207: client is sent duplicate requests and is given service end, and this duplicate requests is carried the filename of self non-existent file;
For example, client is sent duplicate requests and is given service end, and this duplicate requests is carried " jar1 " and " jar2 " that obtains.
Step 208: service end receives duplicate requests, and the filename corresponding file content that duplicate requests is carried is sent client;
Particularly, service end receives duplicate requests, according to the filename that duplicate requests is carried, from the file directory of self, searches corresponding file, reads the file content of the file of searching, and the file content that reads is sent to client.
For example; Service end receives the duplicate requests of carrying " jar1 " and " jar2 "; According to " jar1 " and " jar2 "; From file directory as shown in table 2, find out corresponding " jar1 file " and " jar2 file " respectively, from " jar1 file ", read file content, the file content of " jar1 file " is sent to client; From " jar2 file ", read file content, the file content of " jar2 file " is sent to client.
Step 209: client receives file content, creates blank file, and the file content that receives is filled in the blank file.
For example, client receives the file content of " jar1 file ", sets up blank " jar1 file ", and the file content of " the jar1 file " that receive is filled in blank " jar1 file "; Receive the file content of " jar2 file ", set up blank " jar2 file ", the file content of " the jar2 file " that receive is filled in blank " jar2 file ".
In embodiments of the present invention; The user will deposit the file copy of program in the service end of distributed system; Service end and client are obtained the corresponding relation of filename and MD5 encoded radio respectively according to the file directory of self; Client is obtained the filename of service end and the corresponding relation of MD5 encoded radio again, according to the filename of self and corresponding relation and the filename of service end and the corresponding relation of MD5 encoded radio of MD5 encoded radio, obtains the filename of self non-existent file; The filename corresponding file of self non-existent file of acquisition request from service end again.So; The user only need be with file copy in service end; Client is duplicated this document automatically from service end; Avoided artificial and duplicated this document for each computing machine in the distributed system and the holiday computing machine does not duplicate this document, thereby improved the efficient of xcopy and ensured that distributed system normally moves.
Embodiment 3
As shown in Figure 3, the embodiment of the invention provides a kind of client, comprising:
First acquisition module 301 is used to obtain the filename of service end and the corresponding relation of MD5 encoded radio;
Second acquisition module 302 is used for according to the filename of client and corresponding relation and the filename of service end and the corresponding relation of MD5 encoded radio of MD5 encoded radio, obtains service end and exists and the filename of the non-existent file of client;
Replication module 303 is used for duplicating the filename corresponding file of obtaining from service end.
Wherein, first acquisition module 301 specifically comprises:
First transmitting element 3011 is used to send the request of obtaining corresponding relation and gives service end;
First receiving element 3012 is used to receive the filename that service end returns and the corresponding relation of MD5 encoded radio.
Second acquisition module 302; Specifically be used for the filename of client and the corresponding relation of MD5 encoded radio and the filename of service end and the corresponding relation of MD5 encoded radio are compared; Draw non-existent record in the corresponding relation of filename and MD5 encoded radio of client, the file that comprises in the record that draws service end by name exists and the filename of the non-existent file of client
Wherein, replication module 303 specifically comprises:
Second transmitting element 3031 is used to send duplicate requests and gives service end, and wherein, this duplicate requests is carried the filename that obtains;
Second receiving element 3032 is used to receive the filename corresponding file content of obtaining that service end is returned;
Fill in unit 3033, be used to create blank file, and the file content that receives is filled in the blank file.
In embodiments of the present invention; The user only need be with file copy in service end; Client is duplicated this document automatically from service end; Avoided artificial and duplicated this document for each computing machine in the distributed system and the holiday computing machine does not duplicate this document, thereby improved the efficient of xcopy and ensured that distributed system normally moves.
Embodiment 4
As shown in Figure 4, the embodiment of the invention provides a kind of service end, comprising:
First receiver module 401 is used to receive the request of obtaining corresponding relation from client;
First sending module 402 is used to send the corresponding relation of files stored name and MD5 encoded radio and gives client;
Second receiver module 403 is used to receive the duplicate requests from client, and duplicate requests is carried self and existed and the filename of the non-existent file of client;
Second sending module 404 is used to obtain and self exists and the filename corresponding file content of the non-existent file of client sends to client with file content.
In embodiments of the present invention; Service end receives the duplicate requests that the client sends, and the file content of the non-existent file of client is sent to client, so; The user only need be with file copy in service end; Client is duplicated this document automatically from service end, avoided artificial and duplicated this document for each computing machine in the distributed system and the holiday computing machine does not duplicate this document, thereby improved the efficient of xcopy and ensured that distributed system normally moves.
Embodiment 5
As shown in Figure 5, the embodiment of the invention provide a kind of in distributed system the system of xcopy, this system comprises service end 501 and client 502;
Service end 501 is used to receive the request of obtaining corresponding relation from client 502, and sends the corresponding relation of files stored name and MD5 encoded radio and give client 502; Reception is from the duplicate requests of client 502, obtain that duplicate requests carries self exist and the filename corresponding file content of client 502 non-existent files sends to client 502 with file content;
Client 502; Be used to receive the filename of service end 501 transmissions and the corresponding relation of MD5 encoded radio; Corresponding relation and the filename of reception and the corresponding relation of MD5 encoded radio according to self files stored name and MD5 encoded radio; Obtain that service end 501 exists and the filename of self non-existent file, send and carry that service end 501 exists and the duplicate requests of the filename of self non-existent file is given service end 501, receive the file content that service end 501 is returned; Create null file, file content is filled in the blank file.
In embodiments of the present invention; The user only need be with file copy in service end; Client is duplicated this document automatically from service end; Avoided artificial and duplicated this document for each computing machine in the distributed system and the holiday computing machine does not duplicate this document, thereby improved the efficient of xcopy and ensured that distributed system normally moves.
In embodiments of the present invention; Client is obtained the filename of service end and the corresponding relation of MD5 encoded radio; According to the filename of self and corresponding relation and the filename of service end and the corresponding relation of MD5 encoded radio of MD5 encoded radio, obtain the filename of self non-existent file; The filename corresponding file of self non-existent file of acquisition request from service end again.So; The user only need be with file copy in service end; Client is duplicated this document automatically from service end; Avoided artificial and duplicated this document for each computing machine in the distributed system and the holiday computing machine does not duplicate this document, thereby improved the efficient of xcopy and ensured that distributed system normally moves.
All or part of content in the technical scheme that above embodiment provides can realize that through software programming its software program is stored in the storage medium that can read, storage medium for example: the hard disk in the computing machine, CD or floppy disk.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the method for an xcopy in distributed system is characterized in that, said method comprises:
Obtain the filename of service end and the corresponding relation of Message Digest Algorithm 5 MD5 encoded radio;
According to the filename of client and corresponding relation and the filename of said service end and the corresponding relation of MD5 encoded radio of MD5 encoded radio, obtain said service end and exist and the filename of the non-existent file of client;
From said service end, duplicate the said filename corresponding file of obtaining.
2. the method for claim 1 is characterized in that, the said filename of service end and the corresponding relation of MD5 encoded radio of obtaining specifically comprises:
Transmission is obtained the request of corresponding relation and is given said service end;
Receive the filename that said service end returns and the corresponding relation of MD5 encoded radio.
3. the method for claim 1; It is characterized in that; Said according to the filename of client and corresponding relation and the filename of said service end and the corresponding relation of MD5 encoded radio of MD5 encoded radio, obtain that said service end exists and the filename of the non-existent file of client specifically comprises:
The filename of said client and the corresponding relation of MD5 encoded radio and the filename of said service end and the corresponding relation of MD5 encoded radio are compared; Draw non-existent record in the corresponding relation of filename and MD5 encoded radio of said client, the file that comprises in the said record that draws said service end by name exists and the filename of the non-existent file of client.
4. the method for claim 1 is characterized in that, saidly from said service end, duplicates the said filename corresponding file of obtaining, and specifically comprises:
Send duplicate requests and give said service end, said duplicate requests is carried the said filename that obtains;
Receive the said filename corresponding file content of obtaining that said service end is returned;
Create blank file, and the file content of said reception is filled in the file of said blank.
5. a client is characterized in that, said client comprises:
First acquisition module is used to obtain the filename of service end and the corresponding relation of Message Digest Algorithm 5 MD5 encoded radio;
Second acquisition module is used for according to the filename of client and corresponding relation and the filename of said service end and the corresponding relation of MD5 encoded radio of MD5 encoded radio, obtains said service end and exists and the filename of the non-existent file of client;
Replication module is used for duplicating the said filename corresponding file of obtaining from said service end.
6. client as claimed in claim 5 is characterized in that, said first acquisition module specifically comprises:
First transmitting element is used to send the request of obtaining corresponding relation and gives said service end;
First receiving element is used to receive the filename that said service end returns and the corresponding relation of MD5 encoded radio.
7. client as claimed in claim 5 is characterized in that,
Said second acquisition module; Specifically be used for the filename of said client and the corresponding relation of MD5 encoded radio and the filename of said service end and the corresponding relation of MD5 encoded radio are compared; Draw non-existent record in the corresponding relation of filename and MD5 encoded radio of said client, the filename of non-existent file in the file that comprises in the said record that the draws said client by name.
8. client as claimed in claim 5 is characterized in that, said replication module specifically comprises:
Second transmitting element is used to send duplicate requests and gives said service end, and said duplicate requests is carried the said filename that obtains;
Second receiving element is used to receive the said filename corresponding file content of obtaining that said service end is returned;
Fill in the unit, be used to create blank file, and the file content of said reception is filled in the file of said blank.
9. a service end is characterized in that, said service end comprises:
First receiver module is used to receive the request of obtaining corresponding relation from client;
First sending module is used to send the corresponding relation of files stored name and Message Digest Algorithm 5 MD5 encoded radio and gives said client;
Second receiver module is used to receive the duplicate requests from said client, and said duplicate requests is carried self and existed and the filename of the non-existent file of said client;
Second sending module is used to obtain and self exists and the filename corresponding file content of the non-existent file of said client sends to said client with said file content.
10. the system of an xcopy in distributed system is characterized in that, said system comprises service end and client;
Said service end is used to receive the request of obtaining corresponding relation from said client, and sends the corresponding relation of files stored name and Message Digest Algorithm 5 MD5 encoded radio and give said client; Reception is from the duplicate requests of said client, obtain that said duplicate requests carries self exist and the filename corresponding file content of the non-existent file of said client sends to said client with said file content;
Said client; Be used to receive the filename of said service end transmission and the corresponding relation of MD5 encoded radio; Corresponding relation and the filename of said reception and the corresponding relation of MD5 encoded radio according to self files stored name and MD5 encoded radio; Obtain that said service end exists and the filename of self non-existent file, send and carry that said service end exists and the duplicate requests of the filename of self non-existent file is given said service end, receive the file content that said service end is returned; Create null file, said file content is filled in the file of said blank.
CN201010521085XA 2010-10-21 2010-10-21 Method, terminals and system for copying files in distributed system Pending CN102456027A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010521085XA CN102456027A (en) 2010-10-21 2010-10-21 Method, terminals and system for copying files in distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010521085XA CN102456027A (en) 2010-10-21 2010-10-21 Method, terminals and system for copying files in distributed system

Publications (1)

Publication Number Publication Date
CN102456027A true CN102456027A (en) 2012-05-16

Family

ID=46039224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010521085XA Pending CN102456027A (en) 2010-10-21 2010-10-21 Method, terminals and system for copying files in distributed system

Country Status (1)

Country Link
CN (1) CN102456027A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682436A (en) * 2017-10-09 2018-02-09 武汉斗鱼网络科技有限公司 A kind of method, apparatus and equipment of more new file
CN107820129A (en) * 2017-11-16 2018-03-20 四川长虹电器股份有限公司 A kind of automatic method for safeguarding smart machine application data bag

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453418A (en) * 2007-12-05 2009-06-10 高德软件有限公司 Updating method for synchronization between customer terminal and server

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453418A (en) * 2007-12-05 2009-06-10 高德软件有限公司 Updating method for synchronization between customer terminal and server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682436A (en) * 2017-10-09 2018-02-09 武汉斗鱼网络科技有限公司 A kind of method, apparatus and equipment of more new file
CN107820129A (en) * 2017-11-16 2018-03-20 四川长虹电器股份有限公司 A kind of automatic method for safeguarding smart machine application data bag

Similar Documents

Publication Publication Date Title
US7478113B1 (en) Boundaries
AU762283B2 (en) Content addressable information encapsulation, representation, and transfer
CN102629247B (en) Method, device and system for data processing
US7640363B2 (en) Applications for remote differential compression
CN1753368B (en) Efficient algorithm for finding candidate objects for remote differential compression
CN101009516A (en) A method and system for data synchronization
CN107291796A (en) File management method and device
US20050010794A1 (en) Content addressable information encapsulation, representation, and transfer
KR101078287B1 (en) Method Recovering Data Server at the Applying Multiple Reproduce Dispersion File System and Metadata Storage and Save Method Thereof
CN103324552A (en) Two-stage single-instance data de-duplication backup method
US20070011142A1 (en) Method and apparatus for non-redundant search results
CN102546740B (en) Method, device and system used for compression and uncompression and based on cloud compression file
CN101141476A (en) File storing, downloading method and device
JP2014526748A (en) Efficient data recovery
CN103095843A (en) Method and client of data backup based on version vectors
CN110399348A (en) File deletes method, apparatus, system and computer readable storage medium again
CN101080056A (en) A management method and system of network browser collection folder of mobile terminal
EP1964362A2 (en) System and method for data communication between devices
CN105069111A (en) Similarity based data-block-grade data duplication removal method for cloud storage
JP2011118771A (en) Information processor, information processing method, data management server, and data synchronization system
CN102012933A (en) Distributed file system and method for storing data and providing services by utilizing same
CN103279502B (en) A kind of framework and method with the data de-duplication file system be combined with parallel file system
EP1265155A2 (en) File tree comparator
CN109905479B (en) File transmission method and device
CN103118104A (en) Data restoration method based on version vector, and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120516