From 32b028879371c5786d959504d97c93c22280a304 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 30 Oct 2013 14:24:06 +0000
Subject: [PATCH] DSInfo.java: Added cloneWithReplicationServerId().
---
opends/src/server/org/opends/server/replication/common/DSInfo.java | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/common/DSInfo.java b/opends/src/server/org/opends/server/replication/common/DSInfo.java
index 2340170..e4ecab5 100644
--- a/opends/src/server/org/opends/server/replication/common/DSInfo.java
+++ b/opends/src/server/org/opends/server/replication/common/DSInfo.java
@@ -239,6 +239,22 @@
}
/**
+ * Returns a new instance of {@link DSInfo} with the specified replication
+ * server Id.
+ *
+ * @param rsId
+ * the replication server Id to set on the new DSInfo object.
+ * @return a new instance of {@link DSInfo} with the specified replication
+ * server Id.
+ */
+ public DSInfo cloneWithReplicationServerId(int rsId)
+ {
+ return new DSInfo(dsId, dsUrl, rsId, generationId, status, assuredFlag,
+ assuredMode, safeDataLevel, groupId, refUrls, eclIncludes,
+ eclIncludesForDeletes, protocolVersion);
+ }
+
+ /**
* Test if the passed object is equal to this one.
* @param obj The object to test
* @return True if both objects are equal
--
Gitblit v1.10.0