com.atlassian.crowd.embedded.impl
Class DefaultConnectionPoolProperties

java.lang.Object
  extended by com.atlassian.crowd.embedded.impl.DefaultConnectionPoolProperties
All Implemented Interfaces:
ConnectionPoolProperties

public class DefaultConnectionPoolProperties
extends Object
implements ConnectionPoolProperties

Form-backing bean used to set default values in the connection pool UI and convert the values for storage as application attributes.


Constructor Summary
DefaultConnectionPoolProperties()
           
 
Method Summary
static ConnectionPoolProperties fromPropertiesMap(Map<String,String> map)
           
 String getInitialSize()
           
 String getMaximumSize()
           
 String getPreferredSize()
           
 String getSupportedAuthentication()
           
 String getSupportedProtocol()
           
 String getTimeoutInSec()
           
 void setInitialSize(String initialSize)
           
 void setMaximumSize(String maximumSize)
           
 void setPreferredSize(String preferredSize)
           
 void setSupportedAuthentication(String supportedAuthentication)
           
 void setSupportedProtocol(String supportedProtocol)
           
 void setTimeoutInSec(String timeoutInSec)
           
 Map<String,String> toPropertiesMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConnectionPoolProperties

public DefaultConnectionPoolProperties()
Method Detail

getInitialSize

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

setInitialSize

public void setInitialSize(String initialSize)

getMaximumSize

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

setMaximumSize

public void setMaximumSize(String maximumSize)

getPreferredSize

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

setPreferredSize

public void setPreferredSize(String preferredSize)

getTimeoutInSec

public 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.

setTimeoutInSec

public void setTimeoutInSec(String timeoutInSec)

getSupportedAuthentication

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

setSupportedAuthentication

public void setSupportedAuthentication(String supportedAuthentication)

getSupportedProtocol

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

setSupportedProtocol

public void setSupportedProtocol(String supportedProtocol)

toPropertiesMap

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

fromPropertiesMap

public static ConnectionPoolProperties fromPropertiesMap(Map<String,String> map)


Copyright © 2013 Atlassian. All Rights Reserved.