/**
 * @Copyright to Yonggang.Yang .
 * @ClassName: GeneralDBClient.
 * @Project: AutoShardingDBPlatform.
 * @Package: generaldbplatform.
 * @Description: The basic client of the auto sharding general database platform.
 * @Author: Yonggang.Yang 
 * @Version: V2.0
 * @Date: 2015-07-22
 * @History: 
 *    1.2015-07-21 First version of GeneralDBClient was written.
 */

//package name.
package generaldbplatform;




public class GeneralDBClient 
{
	/**
     * @FieldName: mCacheClient.
     * @Description: the cache database client as a private member, just can be used by the GeneralDBClient itself.
     *               (when we use the client, we get the cache database real client according to the key).
     */
    private CacheLayerClient mCacheClient;
    
	/**
     * @FieldName: mPersistClient.
     * @Description: the persistent database client as a private member,just can be used by the GeneralDBClient itself.
     *               (when we use the client, we get the persistent database real client according to the key).
     */
    private PersistentLayerClient mPersistClient;
    
	/**
     * @FieldName: allClientOK.
     * @Description: a boolean value which indicates the states of the CacheClient & PersistClient.
     *               (when both ok, and this boolean value should be true).
     *               the GeneralDBClient user could check this value to decide when to start the service.
     */
    protected boolean allClientOK = false;
    
    

    
    
    public GeneralDBClient(String ip, String cache_channel, String persist_channel)
    {
    	this.mCacheClient = new CacheLayerClient(ip, cache_channel);
    	this.mPersistClient = new PersistentLayerClient(ip, persist_channel);
    	
    	if((this.mCacheClient.CachaInitOK == true) && (this.mPersistClient.PersistInitOK == true))
    	{
    		this.allClientOK = true;
    	}
    	else
    	{
    		this.allClientOK = false;
    	}
    }
}

@@ -14,30 +14,36 @@
 ight to 
-Yonggang.Yang 
+Hades.Yang 2015~2020
 .%0A * @Cl
@@ -235,16 +235,13 @@
 or: 
-Yonggang
+Hades
 .Yan
@@ -257,17 +257,17 @@
 rsion: V
-2
+1
 .0%0A * @D
@@ -361,16 +361,95 @@
 ritten.%0A
+ *    2.2015-08-13 Modify the constructor function add ConfigDBClient support.%0A
  */%0A%0A//p
@@ -490,18 +490,16 @@
 form;%0A%0A%0A
-%0A%0A
 public c
@@ -1568,45 +1568,719 @@
     
-%0A    public GeneralDBClient(String ip
+/**%0A     * @Title: PersistentLayerClient.%0A     * @Description: the construct function of this PersistentLayerClient class.%0A%09 * @param serverinfo_0: the first redis server node ip & port information in the redis sentinel.%0A%09 * @param serverinfo_1: the second redis server node ip & port information in the redis sentinel.%0A     * @param serverinfo_2: the third redis server node ip & port information in the redis sentinel.%0A%09 * @param cache_channel: the channel that subscribed by the CacheLayerClient.    %0A%09 * @param persist_channel: the channel that subscribed by the PersistentLayerClient.%0A     * @return none.%0A     */    %0A    public GeneralDBClient(String serverinfo_0, String serverinfo_1, String serverinfo_2
 , St
@@ -2375,18 +2375,56 @@
 rClient(
-ip
+serverinfo_0, serverinfo_1, serverinfo_2
 , cache_
@@ -2486,18 +2486,56 @@
 rClient(
-ip
+serverinfo_0, serverinfo_1, serverinfo_2
 , persis

Update GeneralDBClient.java