41 #ifndef SDB_DATA_SOURCE_COMM_HPP_
42 #define SDB_DATA_SOURCE_COMM_HPP_
55 #define SDB_DS_TOPRECREATE_THRESHOLD 2
57 #define SDB_DS_CHECKUNNORMALCOORD_INTERVAL (60 * 1000)
59 #define SDB_DS_CREATECONN_RETRYTIME 3
85 _checkInterval(60 * 1000),
86 _keepAliveTimeout(0 * 1000),
87 _syncCoordInterval(0 * 1000),
88 _validateConnection(FALSE),
97 INT32 _initConnCount ;
98 INT32 _deltaIncCount ;
102 INT32 _checkInterval ;
103 INT32 _keepAliveTimeout ;
105 INT32 _syncCoordInterval ;
107 BOOLEAN _validateConnection ;
122 const string &username,
123 const string &passwd ) ;
191 void setCheckIntervalInfo( INT32 interval, INT32 aliveTime = 0 ) ;
210 void setSyncCoordInterval ( INT32 interval )
212 _syncCoordInterval = interval ;
226 void setValidateConnection( BOOLEAN bCheck )
228 _validateConnection = bCheck ;
246 _connectStrategy = strategy ;
254 return _connectStrategy ;
261 void setUseSSL( BOOLEAN useSSL )