You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/08/24 13:31:31 UTC

[GitHub] [inlong] woofyzhao commented on a diff in pull request #5679: [INLONG-5678][Manager] Provide source info for group status

woofyzhao commented on code in PR #5679:
URL: https://github.com/apache/inlong/pull/5679#discussion_r953806623


##########
inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/InlongGroupContext.java:
##########
@@ -75,6 +83,22 @@ public InlongGroupContext(InnerGroupContext groupContext) {
         }
     }
 
+    private List<StreamSource> getGroupSources() {
+        List<StreamSource> groupSources = Lists.newArrayList();
+        this.inlongStreamMap.values().forEach(inlongStream -> {
+            Map<String, StreamSource> sources = inlongStream.getSources();
+            if (MapUtils.isNotEmpty(sources)) {
+                for (Map.Entry<String, StreamSource> entry : sources.entrySet()) {
+                    StreamSource source = entry.getValue();
+                    if (source != null) {
+                        sourcesInGroup.add(source);

Review Comment:
   Out of no where.



-- 
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-unsubscribe@inlong.apache.org

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