Package org.opends.server.api
Interface DiskSpaceMonitorHandler
- All Known Implementing Classes:
JEStorage
,ReplicationServer
public interface DiskSpaceMonitorHandler
This interface defines the set of methods that must be implemented for a DiskSpaceMonitorHandler. Disk space monitor
handlers are used to receive notifications from the DiskSpaceMonitor service when the registered thresholds have been
reached.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
diskFullThresholdReached
(File directory, long thresholdInBytes) Notifies that the registered "full" threshold have been reached.void
diskLowThresholdReached
(File directory, long thresholdInBytes) Notifies that the registered "low" threshold have been reached.void
diskSpaceRestored
(File directory, long lowThresholdInBytes, long fullThresholdInBytes) Notifies that the free disk space is now above both "low" and "full" thresholds.
-
Method Details
-
diskLowThresholdReached
Notifies that the registered "low" threshold have been reached.- Parameters:
directory
- the directory for which the threshold has been triggeredthresholdInBytes
- the threshold value in bytes
-
diskFullThresholdReached
Notifies that the registered "full" threshold have been reached.- Parameters:
directory
- the directory for which the threshold has been triggeredthresholdInBytes
- the threshold value in bytes
-
diskSpaceRestored
Notifies that the free disk space is now above both "low" and "full" thresholds.- Parameters:
directory
- the directory for which the threshold has been triggeredTODOlowThresholdInBytes
- the low threshold value in bytesfullThresholdInBytes
- the full threshold value in bytes
-