From 22094368c2865dcfb6daf8366425212b721a4657 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 05 Feb 2009 17:42:14 +0000
Subject: [PATCH] Merge ASN1 branch to trunk
---
opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java b/opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java
index 73f3118..3773ecd 100644
--- a/opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java
+++ b/opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java
@@ -37,7 +37,7 @@
import org.opends.server.types.Attribute;
import org.opends.server.types.AttributeBuilder;
import org.opends.server.types.AttributeType;
-import org.opends.server.types.AttributeValue;
+import org.opends.server.types.AttributeValues;
import org.opends.server.types.Attributes;
/**
@@ -136,7 +136,7 @@
AttributeBuilder builder = new AttributeBuilder(type, ATTR_SERVER_STATE);
for (String str : domain.getServerState().toStringSet())
{
- builder.add(new AttributeValue(type,str));
+ builder.add(AttributeValues.create(type,str));
}
attributes.add(builder.toAttribute());
@@ -205,7 +205,7 @@
for (Short serverId : srSrvNotAckUps.keySet())
{
String str = serverId + ":" + srSrvNotAckUps.get(serverId);
- builder.add(new AttributeValue(type, str));
+ builder.add(AttributeValues.create(type, str));
}
attributes.add(builder.toAttribute());
}
@@ -238,7 +238,7 @@
for (Short serverId : sdSrvTimUps.keySet())
{
String str = serverId + ":" + sdSrvTimUps.get(serverId);
- builder.add(new AttributeValue(type, str));
+ builder.add(AttributeValues.create(type, str));
}
attributes.add(builder.toAttribute());
}
@@ -270,7 +270,7 @@
int value)
{
AttributeType type = DirectoryServer.getDefaultAttributeType(name);
- attributes.add(Attributes.create(type, new AttributeValue(type,
+ attributes.add(Attributes.create(type, AttributeValues.create(type,
String.valueOf(value))));
}
@@ -288,7 +288,7 @@
long value)
{
AttributeType type = DirectoryServer.getDefaultAttributeType(name);
- attributes.add(Attributes.create(type, new AttributeValue(type,
+ attributes.add(Attributes.create(type, AttributeValues.create(type,
String.valueOf(value))));
}
@@ -306,7 +306,8 @@
String value)
{
AttributeType type = DirectoryServer.getDefaultAttributeType(name);
- attributes.add(Attributes.create(type, new AttributeValue(type, value)));
+ attributes
+ .add(Attributes.create(type, AttributeValues.create(type, value)));
}
/**
--
Gitblit v1.10.0