Class DiskSpaceMonitor
java.lang.Object
io.appform.ranger.core.healthservice.monitor.IsolatedHealthMonitor<HealthcheckStatus>
io.appform.ranger.core.healthservice.monitor.sample.CountMonitor
io.appform.ranger.core.healthservice.monitor.sample.DiskSpaceMonitor
- All Implemented Interfaces:
Monitor<HealthcheckStatus>,Runnable
A simple monitor to keep track of the disk space in a partition
-
Nested Class Summary
Nested classes/interfaces inherited from class io.appform.ranger.core.healthservice.monitor.sample.CountMonitor
CountMonitor.CheckSign -
Field Summary
Fields inherited from class io.appform.ranger.core.healthservice.monitor.IsolatedHealthMonitor
name -
Constructor Summary
ConstructorsConstructorDescriptionDiskSpaceMonitor(String partition, Integer countThreshhold, TimeEntity timeEntity) DiskSpaceMonitor(String partition, String name, Integer threshhold, TimeEntity timeEntity) -
Method Summary
Methods inherited from class io.appform.ranger.core.healthservice.monitor.sample.CountMonitor
monitorMethods inherited from class io.appform.ranger.core.healthservice.monitor.IsolatedHealthMonitor
disable, enable, getHealthStatus, hasValidUpdatedTime, isDisabled, run
-
Constructor Details
-
DiskSpaceMonitor
- Parameters:
partition- partition to be monitoredcountThreshhold- maximum freespace of partition, below which, the monitor will mark itself as unhealthytimeEntity- how often theCountMonitor.monitor()check needs to be executed
-
DiskSpaceMonitor
- Parameters:
partition- partition to be monitoredname- name of monitorthreshhold- maximum freespace of partition, below which, the monitor will mark itself as unhealthytimeEntity- how often theCountMonitor.monitor()check needs to be executed
-
-
Method Details
-
getCount
- Specified by:
getCountin classCountMonitor- Returns:
- the current value of the entity being monitored
-