| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| public static final boolean | |
| private static final String | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final String | |
| private static final int | |
| private static final int | |
| private static final long | |
| private static final String | |
| private static final int | |
| private static final String | |
| private static final int | |
| private static final int | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final Pool[] | |
| private static final String | |
| private static final int | |
| private static final String | |
| private static final int | |
| private static boolean | |
| private static boolean | |
| public static final boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | |
| public static void | expire(long
Close connections idle since this time, as
specified in milliseconds since "the epoch". threshold)Closes idle connections idle since specified time. |
| private static int | |
| pack-priv static LdapClient | Returns: an LdapClient that is pooled.Obtains a pooled connection that either already exists or is newly created using the parameters supplied. |
| pack-priv static boolean | isPoolingAllowed(String socketFactory, OutputStream trace, String authMech, String protocol, Hashtable<?, ?> env)
Determines whether pooling is allowed given information on how the connection will be used. |
| public static void | |
| private static void |
| DEBUG | back to summary |
|---|---|
| private static final String DEBUG | |
| debug | back to summary |
|---|---|
| public static final boolean debug | |
| DEFAULT_AUTH_MECHS | back to summary |
|---|---|
| private static final String DEFAULT_AUTH_MECHS | |
| DEFAULT_INIT_POOL_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_INIT_POOL_SIZE | |
| DEFAULT_MAX_POOL_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_MAX_POOL_SIZE | |
| DEFAULT_PREF_POOL_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_PREF_POOL_SIZE | |
| DEFAULT_PROTOCOLS | back to summary |
|---|---|
| private static final String DEFAULT_PROTOCOLS | |
| DEFAULT_TIMEOUT | back to summary |
|---|---|
| private static final int DEFAULT_TIMEOUT | |
| DIGEST | back to summary |
|---|---|
| private static final int DIGEST | |
| idleTimeout | back to summary |
|---|---|
| private static final long idleTimeout | |
| INIT_POOL_SIZE | back to summary |
|---|---|
| private static final String INIT_POOL_SIZE | |
| initSize | back to summary |
|---|---|
| private static final int initSize | |
| MAX_POOL_SIZE | back to summary |
|---|---|
| private static final String MAX_POOL_SIZE | |
| maxSize | back to summary |
|---|---|
| private static final int maxSize | |
| NONE | back to summary |
|---|---|
| private static final int NONE | |
| POOL_AUTH | back to summary |
|---|---|
| private static final String POOL_AUTH | |
| POOL_PROTOCOL | back to summary |
|---|---|
| private static final String POOL_PROTOCOL | |
| POOL_TIMEOUT | back to summary |
|---|---|
| private static final String POOL_TIMEOUT | |
| pools | back to summary |
|---|---|
| private static final Pool[] pools | |
| PREF_POOL_SIZE | back to summary |
|---|---|
| private static final String PREF_POOL_SIZE | |
| prefSize | back to summary |
|---|---|
| private static final int prefSize | |
| SASL_CALLBACK | back to summary |
|---|---|
| private static final String SASL_CALLBACK | |
| SIMPLE | back to summary |
|---|---|
| private static final int SIMPLE | |
| supportPlainProtocol | back to summary |
|---|---|
| private static boolean supportPlainProtocol | |
| supportSslProtocol | back to summary |
|---|---|
| private static boolean supportSslProtocol | |
| trace | back to summary |
|---|---|
| public static final boolean trace | |
| LdapPoolManager | back to summary |
|---|---|
| private LdapPoolManager() | |
| d | back to summary |
|---|---|
| private static void d(String msg) | |
| d | back to summary |
|---|---|
| private static void d(String msg, String o) | |
| expire | back to summary |
|---|---|
| public static void expire(long threshold) Closes idle connections idle since specified time.
| |
| findPool | back to summary |
|---|---|
| private static int findPool(String mech) Find the index of the pool for the specified mechanism. If not one of "none", "simple", "DIGEST-MD5", or "GSSAPI", return -1.
| |
| getLdapClient | back to summary |
|---|---|
| pack-priv static LdapClient getLdapClient(String host, int port, String socketFactory, int connTimeout, int readTimeout, OutputStream trace, int version, String authMech, Control[] ctls, String protocol, String user, Object passwd, Hashtable<?, ?> env) throws NamingException Obtains a pooled connection that either already exists or is newly created using the parameters supplied. If it is newly created, it needs to go through the authentication checks to determine whether an LDAP bind is necessary. Caller needs to invoke ldapClient.authenticateCalled() to determine whether ldapClient.authenticate() needs to be invoked. Caller has that responsibility because caller needs to deal with the LDAP bind response, which might involve referrals, response controls, errors, etc. This method is responsible only for establishing the connection.
| |
| isPoolingAllowed | back to summary |
|---|---|
| pack-priv static boolean isPoolingAllowed(String socketFactory, OutputStream trace, String authMech, String protocol, Hashtable<?, ?> env) throws NamingException Determines whether pooling is allowed given information on how the connection will be used. Non-configurable rejections: - nonstandard socketFactory has been specified: the pool manager cannot track input or parameters used by the socket factory and thus has no way of determining whether two connection requests are equivalent. Maybe in the future it might add a list of allowed socket factories to be configured - trace enabled (except when debugging) - for Digest authentication, if a callback handler has been specified: the pool manager cannot track input collected by the handler and thus has no way of determining whether two connection requests are equivalent. Maybe in the future it might add a list of allowed callback handlers. Configurable tests: - Pooling for the requested protocol (plain or ssl) is supported - Pooling for the requested authentication mechanism is supported | |
| showStats | back to summary |
|---|---|
| public static void showStats(PrintStream out) | |
| startCleanerThread | back to summary |
|---|---|
| private static void startCleanerThread() | |