@Service(name="healthcheck-service") @RunLevel(value=10) public class HealthCheckService extends Object implements EventListener, ConfigListener, fish.payara.monitoring.collect.MonitoringDataSource, fish.payara.monitoring.collect.MonitoringWatchSource
EventListener.Event<T>| Constructor and Description |
|---|
HealthCheckService() |
| Modifier and Type | Method and Description |
|---|---|
UnprocessedChangeEvents |
changed(PropertyChangeEvent[] events)
Notification that @Configured objects that were injected have changed
|
void |
collect(fish.payara.monitoring.collect.MonitoringDataCollector collector) |
void |
collect(fish.payara.monitoring.collect.MonitoringWatchCollector collector) |
void |
event(EventListener.Event event)
Process a Glassfish/Payara event
|
boolean |
isEnabled() |
boolean |
isSecurityEnabled() |
void |
performHealthChecks(javax.servlet.http.HttpServletResponse response,
HealthCheckType type)
Execute the call method of every registered HealthCheck and generate the response.
|
void |
postConstruct() |
void |
registerClassLoader(String appName,
ClassLoader classloader)
Register a ClassLoader for an application.
|
void |
registerHealthCheck(String appName,
org.eclipse.microprofile.health.HealthCheck healthCheck,
HealthCheckType type)
Register a HealthCheck to the Set of HealthChecks based on appName to execute when
performHealthChecks is called.
|
@PostConstruct public void postConstruct()
public void collect(fish.payara.monitoring.collect.MonitoringDataCollector collector)
collect in interface fish.payara.monitoring.collect.MonitoringDataSourcepublic void collect(fish.payara.monitoring.collect.MonitoringWatchCollector collector)
collect in interface fish.payara.monitoring.collect.MonitoringWatchSourcepublic void event(EventListener.Event event)
EventListenerevent in interface EventListenerpublic boolean isEnabled()
public boolean isSecurityEnabled()
public void registerHealthCheck(String appName, org.eclipse.microprofile.health.HealthCheck healthCheck, HealthCheckType type)
appName - The name of the application being deployedhealthCheck - The HealthCheck to registerpublic void registerClassLoader(String appName, ClassLoader classloader)
appName - The name of the application being deployedclassloader - public void performHealthChecks(javax.servlet.http.HttpServletResponse response,
HealthCheckType type)
throws IOException
response - The response to returntype - the type of health checkIOException - If there's an issue writing the responsepublic UnprocessedChangeEvents changed(PropertyChangeEvent[] events)
ConfigListenerchanged in interface ConfigListenerevents - list of changesCopyright © 2020. All rights reserved.