in prototype/dispatch/order-dispatcher/src/main/java/com/aws/proto/dispatching/api/health/ReadinessCheckResource.java [47:61]
public HealthCheckResponse call() {
HealthCheckResponseBuilder responseBuilder = HealthCheckResponse.named("Graphhopper fully loaded");
try {
GraphHopper hopper = routingConfig.graphHopper();
if (hopper != null && hopper.getFullyLoaded()) {
responseBuilder.up().withData("profile", ProfileManager.getActiveProfile());
}
} catch(Exception e) {
responseBuilder.down();
}
return responseBuilder.build();
}