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/EntryCacheMonitorProvider.java |   22 +---------------------
 1 files changed, 1 insertions(+), 21 deletions(-)

diff --git a/opends/src/server/org/opends/server/monitors/EntryCacheMonitorProvider.java b/opends/src/server/org/opends/server/monitors/EntryCacheMonitorProvider.java
index 613cf78..dd06dbc 100644
--- a/opends/src/server/org/opends/server/monitors/EntryCacheMonitorProvider.java
+++ b/opends/src/server/org/opends/server/monitors/EntryCacheMonitorProvider.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2008-2009 Sun Microsystems, Inc.
+ *      Copyright 2008-2010 Sun Microsystems, Inc.
  */
 package org.opends.server.monitors;
 
@@ -66,7 +66,6 @@
    */
   public EntryCacheMonitorProvider()
   {
-    super("Entry Caches Monitor Provider");
     this.entryCacheName = "Entry Caches";
     this.entryCache = (EntryCache<?>) DirectoryServer.getEntryCache();
   }
@@ -82,7 +81,6 @@
     String entryCacheName,
     EntryCache<? extends EntryCacheCfg> entryCache)
   {
-    super(entryCacheName + " Entry Cache Monitor Provider");
     this.entryCacheName = entryCacheName + " Entry Cache";
     this.entryCache = entryCache;
   }
@@ -128,24 +126,6 @@
   /**
    * {@inheritDoc}
    */
-  public long getUpdateInterval()
-  {
-    // This monitor does not need to run periodically.
-    return 0;
-  }
-
-  /**
-   * {@inheritDoc}
-   */
-  public void updateMonitorData()
-  {
-    // This monitor does not need to run periodically.
-    return;
-  }
-
-  /**
-   * {@inheritDoc}
-   */
   public ArrayList<Attribute> getMonitorData()
   {
     ArrayList<Attribute> attrs = new ArrayList<Attribute>();

--
Gitblit v1.10.0