Skip to content

Commit 2b7b8a6

Browse files
author
Yu Qing
committed
move to github
0 parents  commit 2b7b8a6

37 files changed

+9748
-0
lines changed

README.md

Whitespace-only changes.

src/HISTORY

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
2+
Version 1.25 2014-12-07
3+
* support connection stats since FastDFS Server v5.04
4+
5+
Version 1.24 2012-12-01
6+
* bug fixed: StorageClient.get_file_info support appender file and
7+
slave file correctly
8+
9+
Version 1.23 2012-11-18
10+
* query_file_info changed, you must
11+
upgrade your FastDFS server to V4.03 or higher version
12+
13+
Version 1.22 2012-10-06
14+
* group and storage stat both add 1 field, you must
15+
upgrade your FastDFS server to V4.00 or higher version
16+
17+
Version 1.21 2012-06-25
18+
* add exception class MyException
19+
* class IniFileReader same as FastDHT java client
20+
21+
Version 1.20 2012-05-27
22+
* appender file support truncate and modify operation
23+
* storage stat add 6 fields, you must upgrade your
24+
FastDFS server to V3.08 or higher version
25+
26+
Version 1.19 2011-05-29
27+
* storage stat add field if_trunk_server, you must upgrade your
28+
FastDFS server to V3.00 or higher version
29+
* tracker or storage close no throw IOException (silence close)
30+
31+
Version 1.18 2011-01-29
32+
* storage stat support total_upload_bytes, success_upload_bytes,
33+
total_download_bytes and success_download_bytes etc. 18 fields
34+
you must upgrade your FastDFS server to V2.08 or higher version
35+
* StorageClient add functions: get_file_info and query_file_info,
36+
StorageClient1 add functions: get_file_info1 and query_file_info1
37+
38+
Version 1.17 2011-01-09
39+
* slave file's prefix name can be empty,
40+
you must upgrade your FastDFS server to V2.07 or higher version
41+
* support list group stats and storage stats
42+
* support delete storage server
43+
* add monitor class: org.csource.fastdfs.test.Monitor
44+
45+
Version 1.16 2010-10-17
46+
* upload file can get available storage server list of the group,
47+
you must upgrade your FastDFS server to V2.01 or higher version
48+
49+
Version 1.15 2010-08-07
50+
* protocol reponse command changed. you must upgrade your FastDFS server
51+
to V2.00 or higher version
52+
* upload file protocol changed, you must upgrade your FastDFS server
53+
to V2.00 or higher version
54+
55+
Version 1.14 2010-06-22
56+
* bug fixed: delete the new created local file when download_file to
57+
local file fail
58+
* support connect timeout for connecting, the network timeout used to
59+
read and write
60+
61+
Version 1.13 2010-05-30
62+
* org.csource.fastdfs.ProtoCommon add method genSlaveFilename
63+
* support ACTIVE_TEST command. you must upgrade your FastDFS server
64+
to V1.28 or higher version
65+
66+
Version 1.12 2009-11-27
67+
* support uploading slave file
68+
* file ext name change from 5 to 6, you must upgrade your FastDFS server
69+
to V1.23 or higher version
70+
71+
Version 1.11 2009-10-22
72+
* correct interface / class name from beginning with Dowload to Download
73+
* auto reconnect with reused connection when IOException ocurs
74+
* test classes move to package org.csource.fastdfs.test
75+
* add classes org.csource.fastdfs.UploadStream and
76+
org.csource.fastdfs.DownloadStream for streaming writing or reading
77+
78+
Version 1.10 2009-10-04
79+
* support multi-tracker server group, you can make multi
80+
org.csource.fastdfs.TrackerClient instances for each tracker server group
81+
82+
Version 1.9 2009-10-01
83+
* add load test class: org.csource.fastdfs.TestLoad
84+
* network IO performance enhancement
85+
* upload file support callback for sending file content
86+
87+
Version 1.8 2009-08-30
88+
* TrackerClient, in function getConnection, add synchronized to avoid conflict
89+
* support file URL with token
90+
91+
Version 1.7 2009-08-01
92+
* support cmd TRACKER_PROTO_CMD_SERVICE_QUERY_FETCH_ALL: query all storage
93+
servers, you must upgrade your FastDFS server to V1.19 or higher version
94+
95+
Version 1.6 2009-05-24
96+
* download file support offset and download bytes, you must upgrade your
97+
FastDFS server to V1.18 or higher version
98+
99+
Version 1.5 2009-02-14
100+
* client can specify group name when upload file, you must upgrade your
101+
FastDFS server to V1.16 or higher version
102+
103+
Version 1.4 2008-11-10
104+
* upload file support ext name, you must upgrade your
105+
FastDFS server to V1.12 or higher version
106+
* upload protocol add field store_path_index (1 byte)
107+
* add method TrackerClient.getUpdateStorage. to support getmeta, setmeta
108+
and delete file
109+
* TrackerClient.getFetchStorage bug fixed
110+
111+
Version 1.3 2008-10-16
112+
* client download file support callback function(class)
113+
* add class "StorageClient1" and function "TrackerClient.getFetchStorage1"
114+
to combine 2 fields: group name and filename to 1 field: file id
115+
* add anothor client test program: TestClient1.java to use file id
116+
117+
Version 1.2 2008-09-08
118+
* communication protocol changed to support large file exceed 2GB:
119+
all integer field is 8 bytes big-endian,
120+
you must upgrade your FastDFS server to V1.8 or higher version
121+
122+
Version 1.1 2008-08-10
123+
* upload file package remove the one pad byte field, you must upgrade your
124+
FastDFS server to V1.4 or higher version
125+
126+
Version 1.0 2008-08-03
127+
* first version

src/README

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (C) 2008 Happy Fish / YuQing
2+
3+
FastDFS Java Client API may be copied only under the terms of
4+
the BSD license.
5+
Please visit the FastDFS Home Page for more detail.
6+
English language: http://english.csource.org/
7+
Chinese language: http://www.csource.org/
8+
9+
10+
The jar file is compiled by JDK1.5, you can download the last version
11+
from google code: http://code.google.com/p/fastdfs/downloads/list
12+
13+
run the FastDFS Java Client test:
14+
java -cp <fastdfs_client_jar_filename> org.csource.fastdfs.test.TestClient <config_filename> <upload_filename>
15+
16+
eg.:
17+
java -cp fastdfs_client_v1.22.jar org.csource.fastdfs.test.TestClient fdfs_client.conf c:\windows\system32\notepad.exe
18+
19+
or:
20+
java -cp fastdfs_client_v1.22.jar org.csource.fastdfs.test.TestClient fdfs_client.conf /usr/include/stdlib.h
21+
22+
23+
run the FastDFS monitor:
24+
java -cp <fastdfs_client_jar_filename> org.csource.fastdfs.test.Monitor <config_filename>
25+
26+
eg.:
27+
java -cp fastdfs_client_v1.22.jar org.csource.fastdfs.test.Monitor fdfs_client.conf

src/build.xml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version="1.0"?>
2+
3+
<!-- obfuscate -->
4+
<project name="fastdfs_client" default="jar" basedir=".">
5+
6+
<target name="init">
7+
<!-- The root directory of the workspace -->
8+
<property name="fastdfs_client.home" value="."/>
9+
10+
<!-- The destination directory for the build -->
11+
<property name="fastdfs_client.build" value="${fastdfs_client.home}/build"/>
12+
13+
<!-- The source directory for the build -->
14+
<property name="fastdfs_client.src" value="${fastdfs_client.home}"/>
15+
16+
<!-- The destination directory for all the compiled classes. -->
17+
<property name="fastdfs_client.bin_dir" value="${fastdfs_client.build}/classes"/>
18+
19+
<!-- The classpath used for building the workspace. -->
20+
<property name="jar" value="${fastdfs_client.build}/fastdfs_client.jar"/>
21+
</target>
22+
23+
<target name="compile" depends="init">
24+
<mkdir dir="${fastdfs_client.bin_dir}"/>
25+
<javac srcdir="${fastdfs_client.src}"
26+
destdir="${fastdfs_client.bin_dir}"
27+
includes="org/**/*.java"
28+
debug="on"
29+
encoding="ISO8859-1"
30+
failonerror="true"/>
31+
</target>
32+
33+
<target name="components" depends="init">
34+
</target>
35+
36+
<!-- create .jar -->
37+
<target name="jar" depends="compile">
38+
<jar jarfile="${jar}"
39+
basedir="${fastdfs_client.bin_dir}"
40+
includes="org/csource/**">
41+
<fileset dir="${fastdfs_client.src}">
42+
<include name="*.conf"/>
43+
</fileset>
44+
</jar>
45+
</target>
46+
47+
<target name="clean" depends="init">
48+
<delete dir="${fastdfs_client.build}"/>
49+
</target>
50+
51+
<!--<target name="core" depends="compile, components"/>-->
52+
<target name="core" depends="compile"/>
53+
54+
</project>
55+

src/fdfs_client.conf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
connect_timeout = 2
2+
network_timeout = 30
3+
charset = ISO8859-1
4+
http.tracker_http_port = 8080
5+
http.anti_steal_token = no
6+
http.secret_key = FastDFS1234567890
7+
8+
tracker_server = 192.168.0.116:22122
9+
tracker_server = 192.168.0.119:22122

0 commit comments

Comments
 (0)