文件名称:fileSync(java)
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 84kb
- 下载次数:
- 0次
- 提 供 者:
- 吴**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
前几天在本站下了个同步源码,其功能是读取数据库文件信息,然后将相应的文件由client端传送到server端。本人略做改变,实现读取指定目录信息,然后传送到server端,并保持实时更新(就是说如果client端有新增文件产生,会立刻被同步到server端)。由于考虑到实现方法上的局限(采用线程递归轮循扫描的方式),我仅仅是实现了这个功能,其它细节都未处理,有兴趣的可以自己去改进。局限:对于上百、上千的文件同步速度可以接受,但是如果同步数量上十万、百万,问题就大了;另外,现在是实现的是重复同步。-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.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
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
.............
..............\......\.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
.............