Description: A few days ago the site made a synchronous source, its function is to read the database file information, and then the appropriate file from the client side to send to the server side.I slightly altered, to achieve the designated directory information to read, and then sent to the server side, and maintain real-time updates (that is, if there are any new files created client-side will be immediately synchronized to the server side). Taking into account the limitations on the implementation method (using the thread-recursive round robin scanning mode), I just realized this function, other details are not addressed, there is interest in yourself to do better. Limitations: For hundreds, thousands of file synchronization speed is acceptable, but if the number on the synchronization of thousands or millions, the problem is big In addition, it is to achieve a repetition synchronization.
- [JThreadSynch] - this source is to achieve synchronizatio
- [JAVA_NetTest] - online examination system (cs) This my g
- [TASK] - Thread scheduling, time slice rotation,
- [Cthread] - Through the thread scheduling, first-com
- [RR] - Realized using JAVA processor CPU time s
- [DataBaseSyncDesktopApplication] - Remote database synchronization software
- [FileUtil] - Java SWT code, file synchronization tool
- [01] - The design process of scheduling algorit
- [semaphoretest] - The code is written JAVA, " semaphor
- [javaVoiceChar] - failed to translate
File list (Check if you may need any files):
fileSync(java)\client\.classpath
..............\......\.project
..............\......\com\filesync\client\CollectThread.class
..............\......\...\........\......\CollectThread.java
..............\......\...\........\......\CollectThreadFactory.class
..............\......\...\........\......\CollectThreadFactory.java
..............\......\...\........\......\FileDisList.class
..............\......\...\........\......\FileDisList.java
..............\......\...\........\......\FileList.class
..............\......\...\........\......\FileList.java
..............\......\...\........\......\FileListThread.class
..............\......\...\........\......\FileListThread.java
..............\......\...\........\......\FileListThreadFactory.class
..............\......\...\........\......\FileListThreadFactory.java
..............\......\...\........\......\Log.class
..............\......\...\........\......\Log.java
..............\......\...\........\......\MonitorThread.class
..............\......\...\........\......\MonitorThread.java
..............\......\...\........\......\MonitorThreadFactory.class
..............\......\...\........\......\MonitorThreadFactory.java
..............\......\...\........\......\SendFile.class
..............\......\...\........\......\SendFileClientMain.class
..............\......\...\........\......\SendFileClientMain.java
..............\......\...\........\......\SendFileThread.class
..............\......\...\........\......\SendFileThread.java
..............\......\...\........\......\SendFileThreadFactory.class
..............\......\...\........\......\SendFileThreadFactory.java
..............\......\fileforupload\test1.doc
..............\......\.............\test1.html
..............\......\.............\test1.pdf
..............\......\.............\test1.ppt
..............\......\.............\test1.txt
..............\......\.............\新建 文本文档 (2).txt
..............\......\.............\新建 文本文档.txt
..............\......\.............\新建 档 (3).txt
..............\......\.............\档.doc
..............\......\log.properties
..............\......\readme.txt
..............\......\start.bat
..............\server\.classpath
..............\......\.project
..............\......\com\filesync\server\FileList.class
..............\......\...\........\......\FileList.java
..............\......\...\........\......\FileServerMain.class
..............\......\...\........\......\FileServerMain.java
..............\......\...\........\......\FileThread.class
..............\......\...\........\......\FileThread.java
..............\......\...\........\......\FileThreadFactory.class
..............\......\...\........\......\FileThreadFactory.java
..............\......\...\........\......\InceptThread.class
..............\......\...\........\......\InceptThread.java
..............\......\...\........\......\Log.class
..............\......\...\........\......\Log.java
..............\......\...\........\......\ServerThread.class
..............\......\...\........\......\ServerThread.java
..............\......\...\........\......\ServerThreadFactory.class
..............\......\...\........\......\ServerThreadFactory.java
..............\......\...\........\......\ServerThreadFactory.java.bak
..............\......\...\........\......\SocketList.class
..............\......\...\........\......\SocketList.java
..............\......\...\........\......\UpFile.class
..............\......\lib\jmagick.jar
..............\......\log.properties
..............\......\readme.txt
..............\......\start.bat
..............\......\upload\test1.doc
..............\......\......\test1.html
..............\......\......\test1.pdf
..............\......\......\test1.ppt
..............\......\......\test1.txt
..............\......\......\新建 文本文档 (2).tx
..............\......\......\新建 文本文档.txt
..............\......\......\新建 档 (3).txt
..............\......\......\档.doc
..............\client\com\filesync\client
..............\server\com\filesync\server
..............\client\com\filesync
.............