com.atlassian.crowd.embedded.core
Class SystemConnectionPoolProperties

java.lang.Object
  extended by com.atlassian.crowd.embedded.core.SystemConnectionPoolProperties
All Implemented Interfaces:
ConnectionPoolProperties

public class SystemConnectionPoolProperties
extends java.lang.Object
implements ConnectionPoolProperties

Represents the LDAP connection pool properties which are set as system properties. Used in the UI plugin to display the "Current Settings".


Field Summary
 
Fields inherited from interface com.atlassian.crowd.embedded.api.ConnectionPoolProperties
DEFAULT_INITIAL_POOL_SIZE, DEFAULT_MAXIMUM_POOL_SIZE, DEFAULT_POOL_AUTHENTICATION, DEFAULT_POOL_PROTOCOL, DEFAULT_POOL_TIMEOUT_MS, DEFAULT_PREFERRED_POOL_SIZE, POOL_AUTHENTICATION, POOL_INITIAL_SIZE, POOL_MAXIMUM_SIZE, POOL_PREFERRED_SIZE, POOL_PROTOCOL, POOL_TIMEOUT
 
Method Summary
 java.lang.String getInitialSize()
           
static ConnectionPoolProperties getInstance()
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConnectionPoolProperties getInstance()

getInitialSize

public java.lang.String getInitialSize()
Specified by:
getInitialSize in interface ConnectionPoolProperties
Returns:
Number of connections to create when initially connecting to the pool.

getMaximumSize

public java.lang.String getMaximumSize()
Specified by:
getMaximumSize in interface ConnectionPoolProperties
Returns:
Maximum number of connections to the LDAP server. Value of 0 means no maximum.

getPreferredSize

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

getSupportedProtocol

public java.lang.String getSupportedProtocol()
Specified by:
getSupportedProtocol in interface ConnectionPoolProperties
Returns:
The specified protocol types will be pooled. Valid types are: plain, ssl.

getTimeoutInSec

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

getSupportedAuthentication

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

toPropertiesMap

public java.util.Map<java.lang.String,java.lang.String> toPropertiesMap()
Specified by:
toPropertiesMap in interface ConnectionPoolProperties
Returns:
The LDAP connection pool properties as a map.


Copyright © 2010 Atlassian. All Rights Reserved.