We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public CompletableFuture getClusterUniversalState(String app, String ip, int port) { return sentinelApiClient.fetchClusterMode(ip, port) .thenApply(e -> new ClusterUniversalStateVO().setStateInfo(e)) .thenCompose(vo -> { if (vo.getStateInfo().getClientAvailable()) { return sentinelApiClient.fetchClusterClientInfoAndConfig(ip, port) .thenApply(cc -> vo.setClient(new ClusterClientStateVO().setClientConfig(cc))); } else { return CompletableFuture.completedFuture(vo); } }).thenCompose(vo -> { if (vo.getStateInfo().getServerAvailable()) { return sentinelApiClient.fetchClusterServerBasicInfo(ip, port) //这个ip 和 port还是客户端的? .thenApply(vo::setServer); } else { return CompletableFuture.completedFuture(vo); } }); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
public CompletableFuture getClusterUniversalState(String app, String ip, int port) {
return sentinelApiClient.fetchClusterMode(ip, port)
.thenApply(e -> new ClusterUniversalStateVO().setStateInfo(e))
.thenCompose(vo -> {
if (vo.getStateInfo().getClientAvailable()) {
return sentinelApiClient.fetchClusterClientInfoAndConfig(ip, port)
.thenApply(cc -> vo.setClient(new ClusterClientStateVO().setClientConfig(cc)));
} else {
return CompletableFuture.completedFuture(vo);
}
}).thenCompose(vo -> {
if (vo.getStateInfo().getServerAvailable()) {
return sentinelApiClient.fetchClusterServerBasicInfo(ip, port) //这个ip 和 port还是客户端的?
.thenApply(vo::setServer);
} else {
return CompletableFuture.completedFuture(vo);
}
});
}
The text was updated successfully, but these errors were encountered: