1717
1818package org .apache .iotdb .config ;
1919
20+ import org .apache .iotdb .isession .SessionConfig ;
21+
2022import org .springframework .boot .context .properties .ConfigurationProperties ;
2123
24+ import java .time .ZoneId ;
25+
2226@ ConfigurationProperties (prefix = "iotdb.session" )
2327public class IoTDBSessionProperties {
24- private String url ;
28+ private String node_urls ;
2529 private String username ;
2630 private String password ;
2731 private String database ;
@@ -30,18 +34,27 @@ public class IoTDBSessionProperties {
3034 private Integer fetch_size = 1024 ;
3135 private long query_timeout_in_ms = 60000L ;
3236 private boolean enable_auto_fetch = true ;
33- private boolean use_ssl = false ;
3437 private int max_retry_count = 60 ;
3538 private long wait_to_get_session_timeout_in_msit = 60000L ;
3639 private boolean enable_compression = false ;
37- private long retry_interval_in_ms = 500L ;
40+ private long retry_interval_in_ms = SessionConfig .RETRY_INTERVAL_IN_MS ;
41+ private boolean use_ssl = false ;
42+ private String trust_store ;
43+ private String trust_store_pwd ;
44+ private int connection_timeout_in_ms ;
45+ private ZoneId zone_id ;
46+ private int thrift_default_buffer_size = 1024 ;
47+ private int thrift_max_frame_size = 67108864 ;
48+ private boolean enable_redirection ;
49+ private boolean enable_records_auto_convert_tablet =
50+ SessionConfig .DEFAULT_RECORDS_AUTO_CONVERT_TABLET ;
3851
39- public String getUrl () {
40- return url ;
52+ public String getNode_urls () {
53+ return node_urls ;
4154 }
4255
43- public void setUrl (String url ) {
44- this .url = url ;
56+ public void setNode_urls (String node_urls ) {
57+ this .node_urls = node_urls ;
4558 }
4659
4760 public String getUsername () {
@@ -171,4 +184,68 @@ public long getRetry_interval_in_ms() {
171184 public void setRetry_interval_in_ms (long retry_interval_in_ms ) {
172185 this .retry_interval_in_ms = retry_interval_in_ms ;
173186 }
187+
188+ public String getTrust_store () {
189+ return trust_store ;
190+ }
191+
192+ public void setTrust_store (String trust_store ) {
193+ this .trust_store = trust_store ;
194+ }
195+
196+ public String getTrust_store_pwd () {
197+ return trust_store_pwd ;
198+ }
199+
200+ public void setTrust_store_pwd (String trust_store_pwd ) {
201+ this .trust_store_pwd = trust_store_pwd ;
202+ }
203+
204+ public int getConnection_timeout_in_ms () {
205+ return connection_timeout_in_ms ;
206+ }
207+
208+ public void setConnection_timeout_in_ms (int connection_timeout_in_ms ) {
209+ this .connection_timeout_in_ms = connection_timeout_in_ms ;
210+ }
211+
212+ public ZoneId getZone_id () {
213+ return zone_id ;
214+ }
215+
216+ public void setZone_id (ZoneId zone_id ) {
217+ this .zone_id = zone_id ;
218+ }
219+
220+ public int getThrift_default_buffer_size () {
221+ return thrift_default_buffer_size ;
222+ }
223+
224+ public void setThrift_default_buffer_size (int thrift_default_buffer_size ) {
225+ this .thrift_default_buffer_size = thrift_default_buffer_size ;
226+ }
227+
228+ public int getThrift_max_frame_size () {
229+ return thrift_max_frame_size ;
230+ }
231+
232+ public void setThrift_max_frame_size (int thrift_max_frame_size ) {
233+ this .thrift_max_frame_size = thrift_max_frame_size ;
234+ }
235+
236+ public boolean isEnable_redirection () {
237+ return enable_redirection ;
238+ }
239+
240+ public void setEnable_redirection (boolean enable_redirection ) {
241+ this .enable_redirection = enable_redirection ;
242+ }
243+
244+ public boolean isEnable_records_auto_convert_tablet () {
245+ return enable_records_auto_convert_tablet ;
246+ }
247+
248+ public void setEnable_records_auto_convert_tablet (boolean enable_records_auto_convert_tablet ) {
249+ this .enable_records_auto_convert_tablet = enable_records_auto_convert_tablet ;
250+ }
174251}
0 commit comments