From 1734229125e7bad5f85dfe11d076eeda206236a9 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Mon, 18 Oct 2010 19:41:47 +0000
Subject: [PATCH] Update from OpenDS sdk by Bo Li: Added unmodifiable and copyOf request factories. Added authrate performance utility.
---
sdk/src/com/sun/opends/sdk/tools/LDAPCompare.java | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/sdk/src/com/sun/opends/sdk/tools/LDAPCompare.java b/sdk/src/com/sun/opends/sdk/tools/LDAPCompare.java
index 380462e..a861219 100644
--- a/sdk/src/com/sun/opends/sdk/tools/LDAPCompare.java
+++ b/sdk/src/com/sun/opends/sdk/tools/LDAPCompare.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2009 Sun Microsystems, Inc.
+ * Copyright 2010 Sun Microsystems, Inc.
*/
package com.sun.opends.sdk.tools;
@@ -277,7 +277,8 @@
final ArgumentParser argParser = new ArgumentParser(LDAPCompare.class
.getName(), toolDescription, false, true, 1, 0,
"attribute:value [DN ...]");
- ArgumentParserConnectionFactory connectionFactory;
+ ConnectionFactoryProvider connectionFactoryProvider;
+ ConnectionFactory connectionFactory;
BooleanArgument continueOnError;
BooleanArgument noop;
@@ -293,7 +294,8 @@
try
{
- connectionFactory = new ArgumentParserConnectionFactory(argParser, this);
+ connectionFactoryProvider =
+ new ConnectionFactoryProvider(argParser, this);
propertiesFileArgument = new StringArgument("propertiesFilePath", null,
OPTION_LONG_PROP_FILE_PATH, false, false, true,
INFO_PROP_FILE_PATH_PLACEHOLDER.get(), null, null,
@@ -379,7 +381,8 @@
try
{
argParser.parseArguments(args);
- connectionFactory.validate();
+ connectionFactory =
+ connectionFactoryProvider.getAuthenticatedConnectionFactory();
}
catch (final ArgumentException ae)
{
--
Gitblit v1.10.0