
com.bazaarvoice.ostrich.examples.dictionary.service.DictionaryHealthCheck Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dictionary-service Show documentation
Show all versions of dictionary-service Show documentation
Service implementation for the dictionary example
The newest version!
package com.bazaarvoice.ostrich.examples.dictionary.service;
import com.codahale.metrics.health.HealthCheck;
import javax.ws.rs.core.Response;
public class DictionaryHealthCheck extends HealthCheck {
@Override
protected Result check() throws Exception {
if (DictionaryService.STATUS_OVERRIDE == Response.Status.OK) {
return Result.healthy();
} else {
return Result.unhealthy("unhealthy by toggle");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy