@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()
);
}
_HealthService.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:generator-jhipster-grpc
作者:
评论列表
文章目录