From d5e6d06039eb8ca4f2fcec967a32daef3970ffb5 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Tue, 22 Dec 2009 21:37:36 +0000
Subject: [PATCH] Fixed some bugs with the connection pool. Moved heart beat back to heart beat connection factory from isValid method.
---
opendj-sdk/sdk/src/org/opends/sdk/ldap/LDAPConnectionOptions.java | 31 -------------------------------
1 files changed, 0 insertions(+), 31 deletions(-)
diff --git a/opendj-sdk/sdk/src/org/opends/sdk/ldap/LDAPConnectionOptions.java b/opendj-sdk/sdk/src/org/opends/sdk/ldap/LDAPConnectionOptions.java
index 323a27d..1267b96 100644
--- a/opendj-sdk/sdk/src/org/opends/sdk/ldap/LDAPConnectionOptions.java
+++ b/opendj-sdk/sdk/src/org/opends/sdk/ldap/LDAPConnectionOptions.java
@@ -32,9 +32,6 @@
import javax.net.ssl.SSLContext;
import org.opends.sdk.schema.Schema;
-import org.opends.sdk.requests.SearchRequest;
-import org.opends.sdk.requests.Requests;
-import org.opends.sdk.SearchScope;
import com.sun.opends.sdk.util.Validator;
@@ -45,18 +42,12 @@
*/
public final class LDAPConnectionOptions
{
- private static final SearchRequest DEFAULT_PING = Requests
- .newSearchRequest("", SearchScope.BASE_OBJECT, "(objectClass=*)",
- "1.1");
-
private Schema schema = Schema.getDefaultSchema();
private SSLContext sslContext = null;
private boolean useStartTLS = false;
- private SearchRequest pingRequest = DEFAULT_PING;
-
/**
@@ -206,29 +197,7 @@
return this;
}
- /**
- * Retrieves the search request used to verify the validity of a
- * LDAP connection. By default, the root DSE is retrieved without any
- * attributes.
- *
- * @return The search request.
- */
- public SearchRequest getPingRequest()
- {
- return pingRequest;
- }
- /**
- * Sets the search request used to verify the validity of a
- * LDAP connection.
- *
- * @param pingRequest The search request that can be used to verify the
- * validity of a LDAP connection.
- */
- public void setPingRequest(SearchRequest pingRequest)
- {
- this.pingRequest = pingRequest;
- }
// Assigns the provided options to this set of options.
LDAPConnectionOptions assign(LDAPConnectionOptions options)
--
Gitblit v1.10.0