From 7ccaa46b4a749896b2daabda390d8ddd3ae7743f Mon Sep 17 00:00:00 2001
From: Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Date: Fri, 10 Apr 2015 14:55:54 +0000
Subject: [PATCH] 

---
 opendj-server-legacy/src/main/java/org/opends/server/api/DiskSpaceMonitorHandler.java |   23 ++++++++++++++---------
 1 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/api/DiskSpaceMonitorHandler.java b/opendj-server-legacy/src/main/java/org/opends/server/api/DiskSpaceMonitorHandler.java
index 637879d..97de7e8 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/api/DiskSpaceMonitorHandler.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/api/DiskSpaceMonitorHandler.java
@@ -27,7 +27,8 @@
 
 package org.opends.server.api;
 
-import org.opends.server.extensions.DiskSpaceMonitor;
+import java.io.File;
+
 
 /**
  * This interface defines the set of methods that must be implemented
@@ -40,22 +41,26 @@
   /**
    * Notifies that the registered "low" threshold have been reached.
    *
-   * @param monitor The DiskSpaceMonitor that detected this event.
+   * @param directory the directory for which the threshold has been triggered
+   * @param thresholdInBytes the threshold value in bytes
    */
-  void diskLowThresholdReached(DiskSpaceMonitor monitor);
+  void diskLowThresholdReached(File directory, long thresholdInBytes);
 
   /**
    * Notifies that the registered "full" threshold have been reached.
    *
-   * @param monitor The DiskSpaceMonitor that detected this event.
+   * @param directory the directory for which the threshold has been triggered
+   * @param thresholdInBytes the threshold value in bytes
    */
-  void diskFullThresholdReached(DiskSpaceMonitor monitor);
+  void diskFullThresholdReached(File directory, long thresholdInBytes);
 
   /**
-   * Notifies that the free disk space is now above both "low" and
-   * "full" thresholds.
+   * Notifies that the free disk space is now above both "low" and "full" thresholds.
    *
-   * @param monitor The DiskSpaceMonitor that detected this event.
+   * @param directory the directory for which the threshold has been triggeredTODO
+   *
+   * @param lowThresholdInBytes the low threshold value in bytes
+   * @param fullThresholdInBytes the full threshold value in bytes
    */
-  void diskSpaceRestored(DiskSpaceMonitor monitor);
+  void diskSpaceRestored(File directory, long lowThresholdInBytes, long fullThresholdInBytes);
 }

--
Gitblit v1.10.0