Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.Response.Status;
import lombok.extern.slf4j.Slf4j;

/**
* Web resource used by the VIP service to check to availability of the service instance.
*/
@Slf4j
@Path("/status.html")
public class VipStatus {

Expand All @@ -40,7 +42,6 @@ public class VipStatus {
protected ServletContext servletContext;

@GET
@Context
public String checkStatus() {
String statusFilePath = (String) servletContext.getAttribute(ATTRIBUTE_STATUS_FILE_PATH);
@SuppressWarnings("unchecked")
Expand All @@ -54,6 +55,7 @@ public String checkStatus() {
return "OK";
}
}
log.warn("Failed to access \"status.html\". The service is not ready");
throw new WebApplicationException(Status.NOT_FOUND);
}

Expand Down