From 06e8f819bcda0d7162d662af94c6ade794e1cfe6 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 08 Dec 2006 23:54:57 +0000
Subject: [PATCH] Update the backend API to provide a method for getting the number of entries contained in that backend. Also, create a new monitor entry for each registered backend that will report the backend ID, base DNs, writability mode, and entry count for that backend.
---
opends/src/server/org/opends/server/util/ServerConstants.java | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/util/ServerConstants.java b/opends/src/server/org/opends/server/util/ServerConstants.java
index 3cb85e8..c103f85 100644
--- a/opends/src/server/org/opends/server/util/ServerConstants.java
+++ b/opends/src/server/org/opends/server/util/ServerConstants.java
@@ -185,6 +185,39 @@
/**
+ * The name of the monitor attribute that is used to hold a backend ID.
+ */
+ public static final String ATTR_MONITOR_BACKEND_ID = "ds-backend-id";
+
+
+
+ /**
+ * The name of the monitor attribute that is used to hold the set of base DNs.
+ */
+ public static final String ATTR_MONITOR_BACKEND_BASE_DN =
+ "ds-backend-base-dn";
+
+
+
+ /**
+ * The name of the monitor attribute that is used to hold the backend entry
+ * count.
+ */
+ public static final String ATTR_MONITOR_BACKEND_ENTRY_COUNT =
+ "ds-backend-entry-count";
+
+
+
+ /**
+ * The name of the monitor attribute that is used to hold the backend
+ * writability mode.
+ */
+ public static final String ATTR_MONITOR_BACKEND_WRITABILITY_MODE =
+ "ds-backend-writability-mode";
+
+
+
+ /**
* The name of the standard attribute that is used to specify the set of
* public naming contexts (suffixes) for the Directory Server, formatted in
* camel case.
--
Gitblit v1.10.0