public class SimpleHealthIndicator extends Object implements HealthIndicator<Map<String,Object>>
HealthIndicator
that returns a status and also
attempts a simple database test.Constructor and Description |
---|
SimpleHealthIndicator() |
Modifier and Type | Method and Description |
---|---|
protected String |
detectQuery(String product) |
Map<String,Object> |
health() |
void |
setDataSource(DataSource dataSource) |
void |
setQuery(String query) |
public Map<String,Object> health()
health
in interface HealthIndicator<Map<String,Object>>
public void setDataSource(DataSource dataSource)
public void setQuery(String query)
Copyright © 2014. All rights reserved.