Package org.imageconverter.config.health
Class TesseractHealthService
java.lang.Object
org.imageconverter.config.health.TesseractHealthService
- All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor
,org.springframework.boot.actuate.health.HealthIndicator
@Component("tesseract")
public class TesseractHealthService
extends Object
implements org.springframework.boot.actuate.health.HealthIndicator
Tesseract health checker.
- Author:
- Fernando Romulo da Silva
-
Constructor Summary
ConstructorDescriptionTesseractHealthService
(org.springframework.core.io.Resource imageFile) Default constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.actuate.health.HealthIndicator
getHealth
-
Constructor Details
-
TesseractHealthService
public TesseractHealthService(@Value("classpath:check-image.png") org.springframework.core.io.Resource imageFile) Default constructor.- Parameters:
imageFile
- image used for tesseract check
-
-
Method Details
-
health
public org.springframework.boot.actuate.health.Health health()- Specified by:
health
in interfaceorg.springframework.boot.actuate.health.HealthIndicator
-