Unlock instant, AI-driven research and patent intelligence for your innovation.

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.

Inactive Publication Date: 2012-05-16
北京市金蝶政务软件有限公司
View PDF1 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The distributed system includes many computers, and the user manually copies the files storing the program in each computer, and the efficiency of copying the files is low. In addition, when the user copies the files, it is easy to miss some computers that have not copied the files, so that the Distributed systems don't work properly

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, terminals and system for copying files in distributed system
  • Method, terminals and system for copying files in distributed system
  • Method, terminals and system for copying files in distributed system

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

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

technical field [0001] The invention relates to the field of computers, in particular to a method, terminal and system for copying files in a distributed system. Background technique [0002] A distributed system (Distributed System) is a system built on a network, which consists of multiple computers. Distributed systems can improve the efficiency of program processing. When a user uses a distributed system to process a program, the file storing the program is first copied to each computer in the distributed system, and then the distributed system processes the program. [0003] Among them, the existing method of copying files is as follows: when a user uses a distributed system to process a program, the user first manually copies the file storing the program on each computer in the distributed system, and then uses the distributed system to process a program. system to handle the program. [0004] In the process of realizing the present invention, the inventor finds tha...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 黄海亮
Owner 北京市金蝶政务软件有限公司