aloyszhang commented on code in PR #1047:
URL: https://github.com/apache/inlong-website/pull/1047#discussion_r1797531344


##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sdk/dataproxy-sdk/java.md:
##########
@@ -28,28 +28,33 @@ import {siteVariables} from '../../version';
 ### 初始化 SDK
 从Demo示例代码我们可以看到,客户端初始化主要是在 `getMessageSender()` 函数中完成:
 ```java
-public DefaultMessageSender getMessageSender(String localIP, String 
inLongManagerAddr, String inLongManagerPort, String inlongGroupId, boolean 
isLocalVisit, boolean isReadProxyIPFromLocal, String configBasePath, int 
msgType) {
-    ProxyClientConfig dataProxyConfig = null;
-    DefaultMessageSender messageSender = null;
-    try {
-        // 初始化客户端配置,其中“test”,“123456”是需要认证的用户名和密码,实际使用时需要根据环境配置进行更替
-        dataProxyConfig = new ProxyClientConfig(localIP, isLocalVisit, 
inLongManagerAddr, Integer.valueOf(inLongManagerPort), inlongGroupId, "test", 
"123456");
-               // 设置配置信息的本地保存路径,该设置可选,缺省情况下 SDK 
会在当前用户工作目录下构造一个"/.inlong/"目录存储配置数据
-               if (StringUtils.isNotEmpty(configBasePath)) {
-            dataProxyConfig.setConfStoreBasePath(configBasePath);
+public DefaultMessageSender getMessageSender(String localIP, String 
inLongManagerAddr, String inLongManagerPort,
+            String inlongGroupId, boolean requestByHttp, boolean 
isReadProxyIPFromLocal,
+            String configBasePath, int msgType) {
+        ProxyClientConfig dataProxyConfig = null;
+        DefaultMessageSender messageSender = null;
+        try {
+              // 
初始化客户端配置,其中“admin,“inlong”是InLong-Manager的用户名和密码,实际使用时需要根据环境配置进行更替
+            dataProxyConfig = new ProxyClientConfig(localIP, requestByHttp, 
inLongManagerAddr,
+                    Integer.valueOf(inLongManagerPort), inlongGroupId, 
"admin", "inlong");
+             // 设置配置信息的本地保存路径,该设置可选,缺省情况下 SDK 
会在当前用户工作目录下构造一个"/.inlong/"目录存储配置数据
+            if (StringUtils.isNotEmpty(configBasePath)) {
+                dataProxyConfig.setConfStoreBasePath(configBasePath);
+            }
+            // 设置是否允许使用本地保存的配置信息,该设置可选,缺省不启用
+            dataProxyConfig.setReadProxyIPFromLocal(isReadProxyIPFromLocal);
+            // =设置采用TCP协议进行数据传输

Review Comment:
   ```suggestion
               // 设置采用TCP协议进行数据传输
   
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@inlong.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to