From 8117c910d984295ef39159631f264023f0b3e6b5 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 09 Oct 2006 17:57:44 +0000
Subject: [PATCH] Remove unused methods from the MonitorProvider API class.  The methods are from the ServerShutdownListener interface, which MonitorProvider was originally going to implement.  However, the Directory Server explicitly notifies all monitor providers during the shutdown process anyway, so it was not necessary to implement the ServerShutdownListener interface but the methods associated with that interface were never removed from the MonitorProvider API class.

---
 opends/src/server/org/opends/server/api/MonitorProvider.java |   33 +--------------------------------
 1 files changed, 1 insertions(+), 32 deletions(-)

diff --git a/opends/src/server/org/opends/server/api/MonitorProvider.java b/opends/src/server/org/opends/server/api/MonitorProvider.java
index bc80452..9ea1f34 100644
--- a/opends/src/server/org/opends/server/api/MonitorProvider.java
+++ b/opends/src/server/org/opends/server/api/MonitorProvider.java
@@ -131,7 +131,7 @@
     }
     catch (Exception e)
     {
-      assert debugException(CLASS_NAME, "processServerShutdown", e);
+      assert debugException(CLASS_NAME, "finalizeMonitorProvider", e);
     }
   }
 
@@ -245,36 +245,5 @@
       }
     }
   }
-
-
-
-  /**
-   * Retrieves the human-readable name for this shutdown listener.
-   *
-   * @return  The human-readable name for this shutdown listener.
-   */
-  public final String getShutdownListenerName()
-  {
-    assert debugEnter(CLASS_NAME, "getShutdownListenerName");
-
-    return "Monitor Provider " + getMonitorInstanceName();
-  }
-
-
-
-  /**
-   * Indicates that the Directory Server has received a request to
-   * stop running and that this shutdown listener should take any
-   * action necessary to prepare for it.
-   *
-   * @param  reason  The human-readable reason for the shutdown.
-   */
-  public final void processServerShutdown(String reason)
-  {
-    assert debugEnter(CLASS_NAME, "processServerShutdown",
-                      String.valueOf(reason));
-
-    finalizeMonitorProvider();
-  }
 }
 

--
Gitblit v1.10.0