Class HealthResponse
java.lang.Object
org.apache.gravitino.dto.responses.BaseResponse
org.apache.gravitino.dto.responses.HealthResponse
- All Implemented Interfaces:
RESTMessage,RESTResponse
Represents a response containing aggregate health status and per-check results.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for HealthResponse.HealthResponse(HealthCheckDTO.Status status, List<HealthCheckDTO> checks) Constructor for HealthResponse. -
Method Summary
-
Constructor Details
-
HealthResponse
Constructor for HealthResponse.- Parameters:
status- aggregate health statuschecks- per-check results; null is coerced to empty list
-
HealthResponse
public HealthResponse()Default constructor for HealthResponse. (Used for Jackson deserialization.)
-
-
Method Details
-
validate
Validates the response data.- Specified by:
validatein interfaceRESTMessage- Overrides:
validatein classBaseResponse- Throws:
IllegalArgumentException- if status or checks are not set.
-
isUp
public boolean isUp()Returns true if the aggregate status is UP.- Returns:
- true if the aggregate status is UP, false otherwise
-