use of org.apache.inlong.manager.common.pojo.sink.SinkBriefResponse in project incubator-inlong by apache.
the class InlongStreamServiceImpl method getBriefList.
@Override
public List<StreamBriefResponse> getBriefList(String groupId) {
LOGGER.debug("begin to get inlong stream brief list by groupId={}", groupId);
Preconditions.checkNotNull(groupId, Constant.GROUP_ID_IS_EMPTY);
List<InlongStreamEntity> entityList = streamMapper.selectByGroupId(groupId);
List<StreamBriefResponse> briefInfoList = CommonBeanUtils.copyListProperties(entityList, StreamBriefResponse::new);
// Query stream sinks based on groupId and streamId
for (StreamBriefResponse briefInfo : briefInfoList) {
String streamId = briefInfo.getInlongStreamId();
List<SinkBriefResponse> sinkList = sinkService.listBrief(groupId, streamId);
briefInfo.setSinkList(sinkList);
}
LOGGER.info("success to get inlong stream brief list for groupId={}", groupId);
return briefInfoList;
}
Aggregations