From 90e372637db76c6c9dd14a1206d28c1cb0298590 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sat, 11 Nov 2006 06:02:25 +0000
Subject: [PATCH] Update the plugin API to make the shutdown reason available to shutdown plugins.
---
opends/src/server/org/opends/server/api/plugin/DirectoryServerPlugin.java | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/api/plugin/DirectoryServerPlugin.java b/opends/src/server/org/opends/server/api/plugin/DirectoryServerPlugin.java
index 7d325ec..cbd1193 100644
--- a/opends/src/server/org/opends/server/api/plugin/DirectoryServerPlugin.java
+++ b/opends/src/server/org/opends/server/api/plugin/DirectoryServerPlugin.java
@@ -204,10 +204,13 @@
* method will be called early in the shutdown process after the
* connection handlers are stopped but before other finalization is
* performed.
+ *
+ * @param reason The human-readable reason for the shutdown.
*/
- public void doShutdown()
+ public void doShutdown(String reason)
{
- assert debugEnter(CLASS_NAME, "doShutdown");
+ assert debugEnter(CLASS_NAME, "doShutdown",
+ String.valueOf(reason));
int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED;
String message = getMessage(msgID, String.valueOf(pluginDN),
--
Gitblit v1.10.0