mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
09.57.2006 397e77b4dfb73ded389bd7522406a8f8d5158367
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.
2 files modified
35 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/api/MonitorProvider.java 33 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/DirectoryServer.java 2 ●●● patch | view | raw | blame | history
opendj-sdk/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();
  }
}
opendj-sdk/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -6801,7 +6801,7 @@
    {
      try
      {
        monitor.processServerShutdown(reason);
        monitor.finalizeMonitorProvider();
      }
      catch (Exception e)
      {