From dfee862f2637845769ee7c9ed594985920c4c6aa Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Mon, 31 May 2010 13:06:56 +0000
Subject: [PATCH] Add support for displaying replication CSNs in the Access Logs. The default is disabled, but the log of replication CSNs can be activated by setting the log-changenumber property in the Replication domain configuration.
---
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java | 24 +++++++++++++++---------
1 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java
index 92721ea..9b4fd91 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java
@@ -79,9 +79,9 @@
private SortedSet<String> fractionalIncludes = new TreeSet<String>();
private SortedSet<String> eclIncludes = new TreeSet<String>();
- private ExternalChangelogDomainCfg eclCfg =
+ private ExternalChangelogDomainCfg eclCfg =
new ExternalChangelogDomainFakeCfg(true, new TreeSet<AttributeType>());
-
+
/**
* Creates a new Domain with the provided information
* (assured mode disabled, default group id)
@@ -379,12 +379,12 @@
{
return true;
}
-
+
public void setEclIncludes(SortedSet<String> attrs)
{
this.eclIncludes = attrs;
}
-
+
public SortedSet<String> getECLInclude()
{
return this.eclIncludes;
@@ -394,7 +394,7 @@
{
return 180;
}
-
+
public int getInitializationWindowSize()
{
@@ -414,7 +414,7 @@
* be successfully decoded.
*/
public ExternalChangelogDomainCfg getExternalChangelogDomain()
- throws ConfigException
+ throws ConfigException
{ return eclCfg; }
@@ -427,7 +427,7 @@
* be successfully decoded.
*/
public void setExternalChangelogDomain(ExternalChangelogDomainCfg eclCfg)
- throws ConfigException
+ throws ConfigException
{ this.eclCfg=eclCfg;}
@@ -469,7 +469,7 @@
* @throws ConfigException
* If the delete listener could not be registered.
*/
- public void
+ public void
addECLDomainDeleteListener(
ConfigurationDeleteListener<ExternalChangelogDomainCfg> listener)
throws ConfigException
@@ -483,8 +483,14 @@
* @param listener
* The ECL Domain configuration delete listener.
*/
- public void
+ public void
removeECLDomainDeleteListener(
ConfigurationDeleteListener<ExternalChangelogDomainCfg> listener)
{}
+
+ @Override
+ public boolean isLogChangenumber()
+ {
+ return true;
+ }
}
--
Gitblit v1.10.0