Package org.imixs.workflow.engine
Class HealthCheckService
- java.lang.Object
-
- org.imixs.workflow.engine.HealthCheckService
-
- All Implemented Interfaces:
org.eclipse.microprofile.health.HealthCheck
@Liveness @ApplicationScoped public class HealthCheckService extends Object implements org.eclipse.microprofile.health.HealthCheck
The Imixs HealthCheckService implements the Microservice HealthCheck interface.The service returns the count of workflow models
Example:
{"data":{"model.count":1},"name":"imixs-workflow","state":"UP"}This check indicates the overall status of the workflow engine. If models are available also database access and security works.
- Version:
- 1.0
- Author:
- rsoika
-
-
Constructor Summary
Constructors Constructor Description HealthCheckService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.microprofile.health.HealthCheckResponsecall()This is the implementation for the health check call back method.
-
-
-
Method Detail
-
call
public org.eclipse.microprofile.health.HealthCheckResponse call()
This is the implementation for the health check call back method.The method returns the status 'UP' together with the count of workflow models
Example:
{"data":{"model.count":1},"name":"imixs-workflow","state":"UP"}This check indicates the overall status of the workflow engine. If models are available also database access and security works.
- Specified by:
callin interfaceorg.eclipse.microprofile.health.HealthCheck
-
-