From 5d6b56353ce3a2816410052d4b2b531c0c676c06 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Fri, 18 Jan 2008 16:37:24 +0000
Subject: [PATCH] Enhancement to fix for issue 2499. Added nanosecond processing time method to AbstractOperation API. Removed the dashes in the etime resolution configuration enum values. Added get/setUseNanoTime methods to DirectoryServer class
---
opends/src/server/org/opends/server/core/DirectoryServer.java | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index 1c739b1..391b4b1 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -572,6 +572,9 @@
// a search.
private int lookthroughLimit;
+ // Whether to use collect operation processing times in nanosecond resolution
+ private boolean useNanoTime;
+
// The key manager provider configuration manager for the Directory Server.
private KeyManagerProviderConfigManager keyManagerProviderConfigManager;
@@ -8913,6 +8916,36 @@
/**
+ * Specifies whether to collect nanosecond resolution processing times for
+ * operations.
+ *
+ * @param useNanoTime <code>true</code> if nanosecond resolution times
+ * should be collected or <code>false</code> to
+ * only collect in millisecond resolution.
+ */
+ public static void setUseNanoTime(boolean useNanoTime)
+ {
+ directoryServer.useNanoTime = useNanoTime;
+ }
+
+
+
+ /**
+ * Retrieves whether operation processing times should be collected with
+ * nanosecond resolution.
+ *
+ * @return <code>true</code> if nanosecond resolution times are collected
+ * or <code>false</code> if only millisecond resolution times are
+ * being collected.
+ */
+ public static boolean getUseNanoTime()
+ {
+ return directoryServer.useNanoTime;
+ }
+
+
+
+ /**
* Retrieves the writability mode for the Directory Server. This will only
* be applicable for user suffixes.
*
--
Gitblit v1.10.0