From ead416fd200146255cc99752d62349471da2bbaa Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Fri, 30 Jul 2010 13:34:25 +0000
Subject: [PATCH] Implements disk space monitoring for the JEB backend, import and rebuild operations. When low disk space is threshold is reached, the operation will abort and close the environment cleanly. All indexes will be left in the "untrusted" state so the user knows the DB is invalid. It will also print the appropriate message depending on which import phase when the threshold is reached: * phase 1 failure: import append + replace required to continue. * phase 2 failure: rebuildAll required to continue.

---
 opendj-sdk/opends/src/server/org/opends/server/extensions/DiskSpaceMonitor.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/extensions/DiskSpaceMonitor.java b/opendj-sdk/opends/src/server/org/opends/server/extensions/DiskSpaceMonitor.java
index b04c7c3..0f41eca 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/extensions/DiskSpaceMonitor.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/extensions/DiskSpaceMonitor.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *       Copyright year Sun Microsystems, Inc.
+ *       Copyright 2010 Sun Microsystems, Inc.
  */
 
 package org.opends.server.extensions;
@@ -265,7 +265,7 @@
           lastState = 2;
           if(handler != null)
           {
-            handler.diskFullThresholdReached(lastFreeSpace);
+            handler.diskFullThresholdReached(this);
           }
         }
       }
@@ -280,7 +280,7 @@
           lastState = 1;
           if(handler != null)
           {
-            handler.diskLowThresholdReached(lastFreeSpace);
+            handler.diskLowThresholdReached(this);
           }
         }
       }
@@ -293,7 +293,7 @@
         lastState = 0;
         if(handler != null)
         {
-          handler.diskSpaceRestored(lastFreeSpace);
+          handler.diskSpaceRestored(this);
         }
       }
     }

--
Gitblit v1.10.0