Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
veryben
committed
May 19, 2017
1 parent
548d2fb
commit ad4e330
Showing
7 changed files
with
294 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## fastdfs-client.properties | ||
|
||
fastdfs.connect_timeout_in_seconds = 5 | ||
fastdfs.network_timeout_in_seconds = 30 | ||
|
||
fastdfs.charset = UTF-8 | ||
|
||
fastdfs.http_anti_steal_token = false | ||
fastdfs.http_secret_key = FastDFS1234567890 | ||
fastdfs.http_tracker_http_port = 80 | ||
|
||
fastdfs.tracker_servers = 10.0.11.201:22122,10.0.11.202:22122,10.0.11.203:22122 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## fastdfs-client.properties | ||
|
||
fastdfs.connect_timeout_in_seconds = 5 | ||
fastdfs.network_timeout_in_seconds = 30 | ||
|
||
fastdfs.charset = UTF-8 | ||
|
||
fastdfs.http_anti_steal_token = false | ||
fastdfs.http_secret_key = FastDFS1234567890 | ||
fastdfs.http_tracker_http_port = 80 | ||
|
||
fastdfs.tracker_servers = 10.0.11.201:22122,10.0.11.202:22122,10.0.11.203:22122 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.csource.fastdfs; | ||
|
||
import java.util.Properties; | ||
|
||
/** | ||
* Created by James on 2017/5/19. | ||
*/ | ||
public class ClientGlobalTests { | ||
|
||
public static void main(String[] args) throws Exception { | ||
String trackerServers = "10.0.11.101:22122,10.0.11.102:22122"; | ||
ClientGlobal.initByTrackers(trackerServers); | ||
System.out.println("ClientGlobal.configInfo() : " + ClientGlobal.configInfo()); | ||
|
||
String propFilePath = "fastdfs-client.properties"; | ||
ClientGlobal.initByProperties(propFilePath); | ||
System.out.println("ClientGlobal.configInfo() : " + ClientGlobal.configInfo()); | ||
|
||
Properties props = new Properties(); | ||
props.put(ClientGlobal.PROP_KEY_TRACKER_SERVERS, "10.0.11.101:22122,10.0.11.102:22122"); | ||
ClientGlobal.initByProperties(props); | ||
System.out.println("ClientGlobal.configInfo(): " + ClientGlobal.configInfo()); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## fastdfs-client.properties | ||
|
||
fastdfs.connect_timeout_in_seconds = 5 | ||
fastdfs.network_timeout_in_seconds = 30 | ||
|
||
fastdfs.charset = UTF-8 | ||
|
||
fastdfs.http_anti_steal_token = false | ||
fastdfs.http_secret_key = FastDFS1234567890 | ||
fastdfs.http_tracker_http_port = 80 | ||
|
||
fastdfs.tracker_servers = 10.0.11.201:22122,10.0.11.202:22122,10.0.11.203:22122 | ||
|