public class NettyDnsHealthCheck extends Object implements HealthCheck
| Constructor and Description |
|---|
NettyDnsHealthCheck(NettyDnsResolver dnsResolver) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
The description of the
HealthCheck, e.g. |
Response |
perform(Context context)
Implements the check itself, e.g.
|
public NettyDnsHealthCheck(NettyDnsResolver dnsResolver)
public String getDescription()
HealthCheckHealthCheck, e.g. "Connecting to OpenNMS ReST API".
This is used when visualizing the progress or result of the checks.getDescription in interface HealthCheckpublic Response perform(Context context) throws InterruptedException, ExecutionException, TimeoutException
HealthCheckHealthCheckService, it is advised that all timeout restrictions
etc are handled by the service instead of the HealthCheck implementation.
Implementations might throw an Exception, which should be handled by the HealthCheckService as well.
The response indicates if the check was successful, or encountered other problems. If null is returned,
the HealthCheckService should consider this as Status.Unknown.perform in interface HealthCheckInterruptedExceptionExecutionExceptionTimeoutExceptionHealthCheckServiceCopyright © 2022. All rights reserved.