Method, terminals and system for copying files in distributed system
A distributed system and file copying technology, applied in the computer field, can solve the problems of low copying file efficiency, distributed system cannot run normally, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] like figure 1 As shown, the embodiment of the present invention provides a method for copying files in a distributed system, including:
[0049] Step 101: Obtain the corresponding relationship between the file name of the server and the MD5 encoded value;
[0050] Step 102: According to the corresponding relationship between the file name of the client and the MD5 encoded value and the corresponding relationship between the file name of the server and the MD5 encoded value, obtain the file name of the file that exists in the server but does not exist in the client;
[0051] Step 103: Copy the file corresponding to the obtained file name from the server.
[0052] Wherein, the file may be a jar file, a class file or a cpp file.
[0053] In the embodiment of the present invention, the client obtains the corresponding relationship between the file name of the server and the MD5 encoded value, and obtains the corresponding relationship between its own file name and the MD5...
Embodiment 2
[0055] The embodiment of the invention provides a method for copying files in a distributed system. Among them, the user first selects a computer among the computers included in the distributed system as the server, and other computers as the client, and then the user copies the file of the stored program to the server, and the client in the distributed system uses this The method provided by the embodiment automatically copies the file from the server. see figure 2 , the method includes:
[0056] Step 201: the server obtains the file name and MD5 code value of each file stored by itself, and stores the file name and MD5 code value of each file in the corresponding relationship between the file name and the MD5 code value;
[0057] Specifically, the server sequentially scans each file stored in its own file directory, reads the file name and file content from each scanned file, calculates the MD5 encoding value of each file according to the file content of each file, and conv...
Embodiment 3
[0094] like image 3 As shown, the embodiment of the present invention provides a client, including:
[0095] The first obtaining module 301 is used to obtain the corresponding relationship between the file name of the server and the MD5 encoded value;
[0096] The second acquisition module 302 is used to obtain the file name of the file that exists in the server and does not exist in the client according to the corresponding relationship between the file name of the client and the MD5 encoded value and the corresponding relationship between the file name of the server and the MD5 encoded value;
[0097] The copying module 303 is configured to copy the obtained file corresponding to the file name from the server.
[0098]Wherein, the first acquisition module 301 specifically includes:
[0099] The first sending unit 3011 is configured to send a request for obtaining the corresponding relationship to the server;
[0100] The first receiving unit 3012 is configured to receive...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 