From 77e5e195fc05593141f765e492e7a83616503408 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 06 Apr 2007 23:39:26 +0000
Subject: [PATCH] Update the bind operation so that it provides access to the protocol version. Note that the protocol version is formatted as a string, because it may not necessarily always be purely numeric.
---
opends/src/server/org/opends/server/protocols/jmx/RmiConnector.java | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/protocols/jmx/RmiConnector.java b/opends/src/server/org/opends/server/protocols/jmx/RmiConnector.java
index 59fdc4b..0c1a3d4 100644
--- a/opends/src/server/org/opends/server/protocols/jmx/RmiConnector.java
+++ b/opends/src/server/org/opends/server/protocols/jmx/RmiConnector.java
@@ -128,7 +128,12 @@
/**
* The Underlying Socket factory.
*/
- OpendsRmiServerSocketFactory rmiSsf;
+ private OpendsRmiServerSocketFactory rmiSsf;
+
+ /**
+ * The RMI protocol verison used by this connector.
+ */
+ private String rmiVersion;
// ===================================================================
// CONSTRUCTOR
@@ -398,6 +403,7 @@
// TODO Should we do that?
ObjectName name = new ObjectName(jmxRmiConnectorNoClientCertificateName);
mbs.registerMBean(jmxRmiConnectorNoClientCertificate, name);
+ rmiVersion = opendsRmiConnectorServer.getVersion();
if (debugEnabled())
{
@@ -505,4 +511,16 @@
}
}
+
+
+
+ /**
+ * Retrieves the RMI protocol version string in use for this connector.
+ *
+ * @return The RMI protocol version string in use for this connector.
+ */
+ public String getProtocolVersion()
+ {
+ return rmiVersion;
+ }
}
--
Gitblit v1.10.0