public class DeadlockHealthCheck extends HealthCheck
HealthCheck
implementation which returns a list of deadlocked threads, if any.HealthCheck.Result
Constructor and Description |
---|
DeadlockHealthCheck()
Creates a new
DeadlockHealthCheck . |
DeadlockHealthCheck(VirtualMachineMetrics vm)
Creates a new
DeadlockHealthCheck with the given VirtualMachineMetrics
instance. |
Modifier and Type | Method and Description |
---|---|
protected HealthCheck.Result |
check()
Perform a check of the application component.
|
execute, getName
public DeadlockHealthCheck(VirtualMachineMetrics vm)
DeadlockHealthCheck
with the given VirtualMachineMetrics
instance.vm
- a VirtualMachineMetrics
instancepublic DeadlockHealthCheck()
DeadlockHealthCheck
.protected HealthCheck.Result check() throws Exception
HealthCheck
check
in class HealthCheck
HealthCheck.Result
; otherwise, an unhealthy
HealthCheck.Result
with a descriptive error message or exceptionException
- if there is an unhandled error during the health check; this will result in
a failed health checkCopyright © 2014. All Rights Reserved.