@Service(name="healthcheck-stuck") @RunLevel(value=10) public class StuckThreadsHealthCheck extends BaseHealthCheck<HealthCheckStuckThreadExecutionOptions,StuckThreadsChecker> implements MonitoringDataSource
checkerType, healthCheckService, optionsDEFAULT_CONNECTION_POOL_NAME, DEFAULT_CPU_USAGE_NAME, DEFAULT_ENABLED, DEFAULT_GARBAGE_COLLECTOR_NAME, DEFAULT_HEAP_MEMORY_USAGE_NAME, DEFAULT_HOGGING_THREADS_NAME, DEFAULT_MACHINE_MEMORY_USAGE_NAME, DEFAULT_MICROPROFILE_HEALTHCHECK_NAME, DEFAULT_RETRY_COUNT, DEFAULT_STUCK_THREAD_NAME, DEFAULT_THRESHOLD_PERCENTAGE, DEFAULT_TIME, DEFAULT_TIMEOUT, DEFAULT_UNIT, FIVE_MIN, OLD_CONCURRENTMARKSWEEP, OLD_G1GC, OLD_MARK_SWEEP_COMPACT, OLD_PS_MARKSWEEP, ONE_GB, ONE_KB, ONE_MB, ONE_MIN, ONE_SEC, THRESHOLD_CRITICAL, THRESHOLD_DEFAULTVAL_CRITICAL, THRESHOLD_DEFAULTVAL_GOOD, THRESHOLD_DEFAULTVAL_WARNING, THRESHOLD_GOOD, THRESHOLD_WARNING, YOUNG_COPY, YOUNG_G1GC, YOUNG_PARNEW, YOUNG_PS_SCAVENGE| Constructor and Description |
|---|
StuckThreadsHealthCheck() |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(MonitoringDataCollector collector)
Collects all the data points of this at the current moment.
|
HealthCheckStuckThreadExecutionOptions |
constructOptions(StuckThreadsChecker checker) |
protected HealthCheckResult |
doCheckInternal() |
protected String |
getDescription()
The key for a human-friendly description of the healthcheck
|
asTimeUnit, constructBaseOptions, decideOnStatusWithDuration, doCheck, getCheckerType, getChecksDone, getChecksFailed, getOptions, isInProgress, isReady, postConstruct, prettyPrintBytes, prettyPrintStackTrace, resolveDescription, sendNotification, setOptionspublic void collect(MonitoringDataCollector collector)
MonitoringDataSourcecollect in interface MonitoringDataSourcecollector - the MonitoringDataCollector instance to use to collect the data points of this sourceprotected HealthCheckResult doCheckInternal()
doCheckInternal in class BaseHealthCheck<HealthCheckStuckThreadExecutionOptions,StuckThreadsChecker>public HealthCheckStuckThreadExecutionOptions constructOptions(StuckThreadsChecker checker)
constructOptions in class BaseHealthCheck<HealthCheckStuckThreadExecutionOptions,StuckThreadsChecker>protected String getDescription()
BaseHealthCheckgetDescription in class BaseHealthCheck<HealthCheckStuckThreadExecutionOptions,StuckThreadsChecker>Copyright © 2019. All rights reserved.