From 7486ef2bb077feb489a55db86707d96e69d12265 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Fri, 30 Jul 2010 12:44:12 +0000
Subject: [PATCH] Implements a disk space thresholds feature, preventing the server from crashing or exiting of disks full.

---
 opends/src/server/org/opends/server/monitors/ClientConnectionMonitorProvider.java |   42 +-----------------------------------------
 1 files changed, 1 insertions(+), 41 deletions(-)

diff --git a/opends/src/server/org/opends/server/monitors/ClientConnectionMonitorProvider.java b/opends/src/server/org/opends/server/monitors/ClientConnectionMonitorProvider.java
index d34b5a7..02a7d20 100644
--- a/opends/src/server/org/opends/server/monitors/ClientConnectionMonitorProvider.java
+++ b/opends/src/server/org/opends/server/monitors/ClientConnectionMonitorProvider.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2006-2009 Sun Microsystems, Inc.
+ *      Copyright 2006-2010 Sun Microsystems, Inc.
  */
 package org.opends.server.monitors;
 
@@ -68,8 +68,6 @@
    */
   public ClientConnectionMonitorProvider()
   {
-    super("Client Connection Monitor Provider");
-
     // This will monitor all connection handlers.
     this.handler = null;
   }
@@ -84,8 +82,6 @@
    */
   public ClientConnectionMonitorProvider(ConnectionHandler handler)
   {
-    super("Client Connection Monitor Provider");
-
     this.handler = handler;
   }
 
@@ -129,42 +125,6 @@
 
 
   /**
-   * Retrieves the length of time in milliseconds that should elapse
-   * between calls to the <CODE>updateMonitorData()</CODE> method. A
-   * negative or zero return value indicates that the
-   * <CODE>updateMonitorData()</CODE> method should not be periodically
-   * invoked.
-   *
-   * @return The length of time in milliseconds that should elapse
-   *         between calls to the <CODE>updateMonitorData()</CODE>
-   *         method.
-   */
-  @Override
-  public long getUpdateInterval()
-  {
-    // This monitor does not need to run periodically.
-    return 0;
-  }
-
-
-
-  /**
-   * Performs any processing periodic processing that may be desired to
-   * update the information associated with this monitor. Note that
-   * best-effort attempts will be made to ensure that calls to this
-   * method come <CODE>getUpdateInterval()</CODE> milliseconds apart,
-   * but no guarantees will be made.
-   */
-  @Override
-  public void updateMonitorData()
-  {
-    // This monitor does not need to run periodically.
-    return;
-  }
-
-
-
-  /**
    * Retrieves a set of attributes containing monitor data that should
    * be returned to the client if the corresponding monitor entry is
    * requested.

--
Gitblit v1.10.0