From e1f7ebfa7dd4bda26a9a2963cbd240306b35d4cc Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 29 Jan 2008 17:59:28 +0000
Subject: [PATCH] Fix for issue 2870: status and dsreplication status do not show replication monitoring The changes consist basically in using the new attributes "approx-older-change-not-synchronized-millis" and "missing-changes" in status and replication status command-lines. In fact a millisecond version of approx-older-change-not-synchronized-millis has been added in order the remote command-line to be able to provide a localized version of the date (instead of directly presenting the date that was written by the server).
---
opends/src/ads/org/opends/admin/ads/ReplicaDescriptor.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opends/src/ads/org/opends/admin/ads/ReplicaDescriptor.java b/opends/src/ads/org/opends/admin/ads/ReplicaDescriptor.java
index 0004c04..9900327 100644
--- a/opends/src/ads/org/opends/admin/ads/ReplicaDescriptor.java
+++ b/opends/src/ads/org/opends/admin/ads/ReplicaDescriptor.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Portions Copyright 2007 Sun Microsystems, Inc.
+ * Portions Copyright 2007-2008 Sun Microsystems, Inc.
*/
package org.opends.admin.ads;
@@ -42,7 +42,7 @@
private Set<String> replicationServers = new HashSet<String>();
private int replicationId = -1;
private int missingChanges = -1;
- private int ageOfOldestMissingChange = -1;
+ private long ageOfOldestMissingChange = -1;
/**
* Returns the number of entries contained in the replica.
@@ -167,7 +167,7 @@
* Returns the age of the oldest missing change.
* @return the age of the oldest missing change.
*/
- public int getAgeOfOldestMissingChange()
+ public long getAgeOfOldestMissingChange()
{
return ageOfOldestMissingChange;
}
@@ -176,7 +176,7 @@
* Sets the age of the oldest missing change.
* @param ageOfOldestMissingChange the age of the oldest missing change.
*/
- public void setAgeOfOldestMissingChange(int ageOfOldestMissingChange)
+ public void setAgeOfOldestMissingChange(long ageOfOldestMissingChange)
{
this.ageOfOldestMissingChange = ageOfOldestMissingChange;
}
--
Gitblit v1.10.0