From d954ca4d5899d00df2001ec877fc3ffe94ee28d8 Mon Sep 17 00:00:00 2001
From: Chris Ridd <chris.ridd@forgerock.com>
Date: Tue, 09 Apr 2013 14:45:33 +0000
Subject: [PATCH] CR-1523 Fix OPENDJ-818 dsreplication status shows disabled servers as enabled
---
opends/src/ads/org/opends/admin/ads/ServerDescriptor.java | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java b/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java
index 6cf14d0..a5345ed 100644
--- a/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java
+++ b/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java
@@ -228,6 +228,17 @@
}
/**
+ * Tells whether replication is enabled on this server or not.
+ * @return <CODE>true</CODE> if replication is enabled and
+ * <CODE>false</CODE> otherwise.
+ */
+ public boolean isReplicationEnabled()
+ {
+ return Boolean.TRUE.equals(
+ serverProperties.get(ServerProperty.IS_REPLICATION_ENABLED));
+ }
+
+ /**
* Returns the String representation of this replication server based
* on the information we have ("hostname":"replication port") and
* <CODE>null</CODE> if this is not a replication server.
--
Gitblit v1.10.0