From aaee394b8c7fdcb653d09d35ea1a28e574632a22 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 08 May 2007 21:29:14 +0000
Subject: [PATCH] Do not display the replication monitoring information if there are no replicated suffixes.
---
opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/ServerStatusDescriptor.java | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/ServerStatusDescriptor.java b/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/ServerStatusDescriptor.java
index f33fab8..ecfc56c 100644
--- a/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/ServerStatusDescriptor.java
+++ b/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/ServerStatusDescriptor.java
@@ -238,6 +238,11 @@
if (equals)
{
+ equals = desc.getListeners().equals(getListeners());
+ }
+
+ if (equals)
+ {
equals = desc.getDatabases().equals(getDatabases());
}
@@ -266,8 +271,7 @@
*/
public int hashCode()
{
- return status.hashCode() + openConnections + databases.hashCode() +
- listeners.hashCode() + administrativeUsers.hashCode() +
+ return status.hashCode() + openConnections +
(String.valueOf(
installPath+openDSVersion+javaVersion+errorMsg+isAuthenticated)).
hashCode();
--
Gitblit v1.10.0