Skip to content

Commit a79eac1

Browse files
author
chengyitian
committed
AJ-829: add reconnect for MTW;
1 parent a4a53a3 commit a79eac1

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

src/com/xxdb/multithreadedtablewriter/MultithreadedTableWriter.java

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,49 @@ public MultithreadedTableWriter(String hostName, int port, String userId, String
409409
batchSize, throttle, threadCount, partitionCol, compressTypes, Mode.M_Append, null, callbackHandler, enableActualSendTime, false, -1);
410410
}
411411

412+
public MultithreadedTableWriter(String hostName, int port, String userId, String password,
413+
String dbName, String tableName, boolean useSSL,
414+
boolean enableHighAvailability, String[] highAvailabilitySites,
415+
int batchSize, float throttle,
416+
int threadCount, String partitionCol,
417+
int[] compressTypes, Mode mode, String[] pModeOption,
418+
boolean enableActualSendTime, boolean reconnect) throws Exception {
419+
init(hostName, port, userId, password, dbName, tableName, useSSL, enableHighAvailability, highAvailabilitySites,
420+
batchSize, throttle, threadCount, partitionCol, compressTypes, mode, pModeOption, null, enableActualSendTime, reconnect, -1);
421+
}
422+
423+
public MultithreadedTableWriter(String hostName, int port, String userId, String password,
424+
String dbName, String tableName, boolean useSSL,
425+
boolean enableHighAvailability, String[] highAvailabilitySites,
426+
int batchSize, float throttle,
427+
int threadCount, String partitionCol,
428+
int[] compressTypes,
429+
boolean enableActualSendTime, boolean reconnect) throws Exception {
430+
init(hostName, port, userId, password, dbName, tableName, useSSL, enableHighAvailability, highAvailabilitySites,
431+
batchSize, throttle, threadCount, partitionCol, compressTypes, Mode.M_Append, null, null, enableActualSendTime, reconnect, -1);
432+
}
433+
434+
public MultithreadedTableWriter(String hostName, int port, String userId, String password,
435+
String dbName, String tableName, boolean useSSL,
436+
boolean enableHighAvailability, String[] highAvailabilitySites,
437+
int batchSize, float throttle,
438+
int threadCount, String partitionCol,
439+
boolean enableActualSendTime, boolean reconnect) throws Exception {
440+
init(hostName, port, userId, password, dbName, tableName, useSSL, enableHighAvailability, highAvailabilitySites,
441+
batchSize, throttle, threadCount, partitionCol, null, Mode.M_Append, null, null, enableActualSendTime, reconnect, -1);
442+
}
443+
444+
public MultithreadedTableWriter(String hostName, int port, String userId, String password,
445+
String dbName, String tableName, boolean useSSL,
446+
boolean enableHighAvailability, String[] highAvailabilitySites,
447+
int batchSize, float throttle,
448+
int threadCount, String partitionCol,
449+
int[] compressTypes, Callback callbackHandler,
450+
boolean enableActualSendTime, boolean reconnect) throws Exception {
451+
init(hostName, port, userId, password, dbName, tableName, useSSL, enableHighAvailability, highAvailabilitySites,
452+
batchSize, throttle, threadCount, partitionCol, compressTypes, Mode.M_Append, null, callbackHandler, enableActualSendTime, reconnect, -1);
453+
}
454+
412455
public MultithreadedTableWriter(String hostName, int port, String userId, String password,
413456
String dbName, String tableName, boolean useSSL,
414457
boolean enableHighAvailability, String[] highAvailabilitySites,

0 commit comments

Comments
 (0)