Updated documentation for REST health check and changed method name

This commit is contained in:
2020-07-07 22:18:33 +02:00
parent eb53af66c4
commit 385346f9ed

View File

@ -14,15 +14,7 @@ import org.springframework.web.client.RestTemplate;
import java.util.Optional; import java.util.Optional;
/** /**
* A Healtcheck which checks if the rest services are working. * A Health check which checks if the rest services are working.]
*
* If you have a complex service behind grpc, you should think about an easy greeting or echo service, which only tests
* the network/service stack and not the full application.
*
* The healthcheck will be called by kubernetes to check if the container/pod shuold be in loadbalancing. It is possible
* to have as much healthchecks as you loke.
*
* There should be a healtcheck which is ok not before all data is loaded.
*/ */
@Slf4j @Slf4j
@Component @Component
@ -55,7 +47,7 @@ public class RestHealthCheck extends AbstractHealthCheck implements HealthIndica
@Override @Override
String getMethodName() { String getMethodName() {
return "infodb-rest"; return "template-service-rest";
} }
String mkEndpoint() { String mkEndpoint() {