From bbdcd1d918a2f27fccb2e6a3fe4d854b901dffd8 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 06 Jul 2009 13:52:09 +0000
Subject: [PATCH] Fix for issue 4092 (dsreplication should allow to configure servers with no replication server and servers with only a replication server)
---
opends/src/server/org/opends/server/tools/dsreplication/DisableReplicationUserData.java | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/dsreplication/DisableReplicationUserData.java b/opends/src/server/org/opends/server/tools/dsreplication/DisableReplicationUserData.java
index d918cfe..08d5afb 100644
--- a/opends/src/server/org/opends/server/tools/dsreplication/DisableReplicationUserData.java
+++ b/opends/src/server/org/opends/server/tools/dsreplication/DisableReplicationUserData.java
@@ -41,6 +41,8 @@
private boolean useSSL;
private String bindDn;
private String bindPwd;
+ private boolean disableReplicationServer;
+ private boolean disableAll;
/**
* Returns the host name of the server.
@@ -158,4 +160,48 @@
{
this.bindPwd = bindPwd;
}
+
+ /**
+ * Tells whether the user wants to disable all the replication from the
+ * server.
+ * @return <CODE>true</CODE> if the user wants to disable all replication
+ * from the server and <CODE>false</CODE> otherwise.
+ */
+ public boolean disableAll()
+ {
+ return disableAll;
+ }
+
+ /**
+ * Sets whether the user wants to disable all the replication from the
+ * server.
+ * @param disableAll whether the user wants to disable all the replication
+ * from the server.
+ */
+ public void setDisableAll(boolean disableAll)
+ {
+ this.disableAll = disableAll;
+ }
+
+ /**
+ * Tells whether the user asked to disable the replication server in the
+ * server.
+ * @return <CODE>true</CODE> if the user wants to disable replication server
+ * in the server and <CODE>false</CODE> otherwise.
+ */
+ public boolean disableReplicationServer()
+ {
+ return disableReplicationServer;
+ }
+
+ /**
+ * Sets whether the user asked to disable the replication server in the
+ * server.
+ * @param disableReplicationServer whether the user asked to disable the
+ * replication server in the server.
+ */
+ public void setDisableReplicationServer(boolean disableReplicationServer)
+ {
+ this.disableReplicationServer = disableReplicationServer;
+ }
}
--
Gitblit v1.10.0