class NetworkResourceController {

    private final NetworkResourceManager resourceManager;

    @GetMapping("/alive")
    @Operation(summary = "获取可用的资源信息")
    public Flux<NetworkResource> getResources() {<FILL_FUNCTION_BODY>}

    @GetMapping("/alive/_all")
    @Operation(summary = "获取全部集群节点的资源信息")
    public Flux<NetworkResource> getAllResources() {
        return resourceManager.getAliveResources();
    }


    @GetMapping("/alive/_current")
    @Operation(summary = "获取当前集群节点的资源信息")
    public Flux<NetworkResource> getCurrentAliveResources() {
        return resourceManager.getAliveResources();
    }

}

        return resourceManager
            .getAliveResources()
            //只获取绑定全部网卡的信息
            .filter(NetworkResource::hostIsBindAll)
            .groupBy(NetworkResource::getHost)
            .flatMap(group -> {
                String host = group.key();
                return group
                    //只获取端口交集
                    .reduce(NetworkResource.of(host), (a, b) -> a.retainPorts(b.getPorts()));
            });
    
<no_super_class>