This is an automated email from the ASF dual-hosted git repository.
dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new 2ef8ade746 [INLONG-8491][Manager] Manager client support list inlong
streams with sources and sinks by paginating (#8493)
2ef8ade746 is described below
commit 2ef8ade7466e9c73a99de7e03bd071b385bd0a71
Author: castor <[email protected]>
AuthorDate: Tue Jul 11 13:04:52 2023 +0800
[INLONG-8491][Manager] Manager client support list inlong streams with
sources and sinks by paginating (#8493)
Co-authored-by: castorqin <[email protected]>
---
.../client/api/inner/client/InlongStreamClient.java | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git
a/inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/inner/client/InlongStreamClient.java
b/inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/inner/client/InlongStreamClient.java
index 02f54cb1f7..1709bee418 100644
---
a/inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/inner/client/InlongStreamClient.java
+++
b/inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/inner/client/InlongStreamClient.java
@@ -133,6 +133,19 @@ public class InlongStreamClient {
return response.getData();
}
+ /**
+ * Paging query inlong stream with sources and sinks info list
+ *
+ * @param request query request
+ * @return inlong stream with sources and sinks list
+ */
+ public PageResult<InlongStreamInfo>
listAllByCondition(InlongStreamPageRequest request) {
+ Response<PageResult<InlongStreamInfo>> pageResultResponse =
ClientUtils.executeHttpCall(
+ inlongStreamApi.listStream(request));
+ ClientUtils.assertRespSuccess(pageResultResponse);
+ return pageResultResponse.getData();
+ }
+
/**
* Get inlong stream info.
*/
@@ -236,7 +249,8 @@ public class InlongStreamClient {
/**
* Converts a json string to a streamFields
- * @param method the method for the field information: json or sql
+ *
+ * @param method the method for the field information: json or sql
* @param statement the statement for the field information
* @return list of stream field
*/