_HealthService.java 文件源码

java
阅读 29 收藏 0 点赞 0 评论 0

项目:generator-jhipster-grpc 作者:
@Override
public Mono<Health> getHealth(Mono<Empty> request) {
    Map<String, HealthIndicator> healthIndicatorProtos = new HashMap<>();
    this.healthIndicators.forEach((key, indicator) -> healthIndicatorProtos.put(key, healthIndicatorToHealthIndicatorProto(indicator)));

    return request.map( e ->
        Health.newBuilder()
            .setStatus(Status.valueOf(this.healthIndicator.health().getStatus().toString()))
            .putAllHealthIndicators(healthIndicatorProtos)
            .build()
    );
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号