public abstract class CountMonitor extends IsolatedHealthMonitor
getCount(),
where you could connect to the MBeanServerand return the current heap space being consumed
2. this could be used to keep track of the active thread count of the serviceDiskSpaceMonitor| Modifier and Type | Class and Description |
|---|---|
static class |
CountMonitor.CheckSign |
name| Constructor and Description |
|---|
CountMonitor(String name,
CountMonitor.CheckSign checkSign,
Integer threshold,
TimeEntity timeEntity) |
| Modifier and Type | Method and Description |
|---|---|
abstract Number |
getCount() |
HealthcheckStatus |
monitor()
trigger a single check of the monitor service
|
disable, enable, getHealthStatus, getName, getRunInterval, hasValidUpdatedTime, isDisabled, runpublic CountMonitor(String name, CountMonitor.CheckSign checkSign, Integer threshold, TimeEntity timeEntity)
name - name of monitorcheckSign - CountMonitor.CheckSignthreshold - threshold with which the current count will be checkedtimeEntity - how often the monitor() check needs to be executedpublic HealthcheckStatus monitor()
Monitorpublic abstract Number getCount()
Copyright © 2015–2022. All rights reserved.