|
@@ -2,6 +2,7 @@ package com.abi.qms.platform;
|
|
|
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.abi.task.common.tablestore.TableStoreUtils;
|
|
|
+import com.alicloud.openservices.tablestore.SyncClient;
|
|
|
import com.alicloud.openservices.tablestore.model.*;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.junit.jupiter.api.Test;
|
|
@@ -99,4 +100,22 @@ public class TableStoreTest {
|
|
|
UpdateTableResponse response = tableStoreUtils.updateTable(100000,tableName);
|
|
|
log.info("更新表结构吞吐:{}",JSONUtil.toJsonStr(response));
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * ABIALI-BEES-PROD
|
|
|
+ * SRV_QMS_tablestoreprod@ab-inbev.onaliyun.com
|
|
|
+ * password: o3R)RfFIKbdmcO{bFwAXz72Tzh5Q}Rw(
|
|
|
+ * 公网: https://ABIALI-BEES-PROD.cn-shanghai.ots.aliyuncs.com
|
|
|
+ */
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void connectTest(){
|
|
|
+ SyncClient syncClient = new SyncClient("https://ABIALI-BEES-PROD.cn-shanghai.ots.aliyuncs.com",
|
|
|
+ "LTAI5tEnSbbQikjB2y4W7TVx", "crgPm74zKMljrycoF2OsBGrYtkxdtY", "ABIALI-BEES-PROD");
|
|
|
+ syncClient.asAsyncClient();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|