com.atlassian.crowd.embedded.api
Interface ConnectionPoolProperties

All Known Implementing Classes:
DefaultConnectionPoolProperties, SystemConnectionPoolProperties, UpdateConnectionPool

public interface ConnectionPoolProperties

The system-wide settings for LDAP connection pooling, as provided by JNDI. http://java.sun.com/products/jndi/tutorial/ldap/connect/pool.html


Field Summary
static java.lang.String DEFAULT_INITIAL_POOL_SIZE
           
static java.lang.String DEFAULT_MAXIMUM_POOL_SIZE
           
static java.lang.String DEFAULT_POOL_AUTHENTICATION
           
static java.lang.String DEFAULT_POOL_PROTOCOL
           
static java.lang.String DEFAULT_POOL_TIMEOUT_MS
           
static java.lang.String DEFAULT_PREFERRED_POOL_SIZE
           
static java.lang.String POOL_AUTHENTICATION
           
static java.lang.String POOL_INITIAL_SIZE
           
static java.lang.String POOL_MAXIMUM_SIZE
           
static java.lang.String POOL_PREFERRED_SIZE
           
static java.lang.String POOL_PROTOCOL
           
static java.lang.String POOL_TIMEOUT
           
 
Method Summary
 java.lang.String getInitialSize()
           
 java.lang.String getMaximumSize()
           
 java.lang.String getPreferredSize()
           
 java.lang.String getSupportedAuthentication()
           
 java.lang.String getSupportedProtocol()
           
 java.lang.String getTimeoutInSec()
           
 java.util.Map<java.lang.String,java.lang.String> toPropertiesMap()
           
 

Field Detail

POOL_INITIAL_SIZE

static final java.lang.String POOL_INITIAL_SIZE
See Also:
Constant Field Values

POOL_MAXIMUM_SIZE

static final java.lang.String POOL_MAXIMUM_SIZE
See Also:
Constant Field Values

POOL_PREFERRED_SIZE

static final java.lang.String POOL_PREFERRED_SIZE
See Also:
Constant Field Values

POOL_PROTOCOL

static final java.lang.String POOL_PROTOCOL
See Also:
Constant Field Values

POOL_TIMEOUT

static final java.lang.String POOL_TIMEOUT
See Also:
Constant Field Values

POOL_AUTHENTICATION

static final java.lang.String POOL_AUTHENTICATION
See Also:
Constant Field Values

DEFAULT_INITIAL_POOL_SIZE

static final java.lang.String DEFAULT_INITIAL_POOL_SIZE
See Also:
Constant Field Values

DEFAULT_MAXIMUM_POOL_SIZE

static final java.lang.String DEFAULT_MAXIMUM_POOL_SIZE
See Also:
Constant Field Values

DEFAULT_PREFERRED_POOL_SIZE

static final java.lang.String DEFAULT_PREFERRED_POOL_SIZE
See Also:
Constant Field Values

DEFAULT_POOL_TIMEOUT_MS

static final java.lang.String DEFAULT_POOL_TIMEOUT_MS
See Also:
Constant Field Values

DEFAULT_POOL_PROTOCOL

static final java.lang.String DEFAULT_POOL_PROTOCOL
See Also:
Constant Field Values

DEFAULT_POOL_AUTHENTICATION

static final java.lang.String DEFAULT_POOL_AUTHENTICATION
See Also:
Constant Field Values
Method Detail

getInitialSize

java.lang.String getInitialSize()
Returns:
Number of connections to create when initially connecting to the pool.

getMaximumSize

java.lang.String getMaximumSize()
Returns:
Maximum number of connections to the LDAP server. Value of 0 means no maximum.

getPreferredSize

java.lang.String getPreferredSize()
Returns:
The preferred number of connections to be maintained in the pool.

getTimeoutInSec

java.lang.String getTimeoutInSec()
Returns:
Idle time in seconds for a connection before it is removed from the pool. Value of 0 means there is no timeout.

getSupportedAuthentication

java.lang.String getSupportedAuthentication()
Returns:
The specified authentication types will be pooled. Valid types are: none, simple, DIGEST-MD5.

getSupportedProtocol

java.lang.String getSupportedProtocol()
Returns:
The specified protocol types will be pooled. Valid types are: plain, ssl.

toPropertiesMap

java.util.Map<java.lang.String,java.lang.String> toPropertiesMap()
Returns:
The LDAP connection pool properties as a map.


Copyright © 2010 Atlassian. All Rights Reserved.