com.atlassian.crowd.embedded.impl
Enum SystemConnectionPoolProperties
java.lang.Object
java.lang.Enum<SystemConnectionPoolProperties>
com.atlassian.crowd.embedded.impl.SystemConnectionPoolProperties
- All Implemented Interfaces:
- ConnectionPoolProperties, Serializable, Comparable<SystemConnectionPoolProperties>
public enum SystemConnectionPoolProperties
- extends Enum<SystemConnectionPoolProperties>
- implements ConnectionPoolProperties
Represents the LDAP connection pool properties which are set as system properties. Used in the UI plugin
to display the "Current Settings".
INSTANCE
public static final SystemConnectionPoolProperties INSTANCE
values
public static SystemConnectionPoolProperties[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SystemConnectionPoolProperties c : SystemConnectionPoolProperties.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SystemConnectionPoolProperties valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getInstance
public static ConnectionPoolProperties getInstance()
getInitialSize
public String getInitialSize()
- Specified by:
getInitialSize in interface ConnectionPoolProperties
- Returns:
- Number of connections to create when initially connecting to the pool.
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.
getPreferredSize
public String getPreferredSize()
- Specified by:
getPreferredSize in interface ConnectionPoolProperties
- Returns:
- The preferred number of connections to be maintained in the pool.
getSupportedProtocol
public String getSupportedProtocol()
- Specified by:
getSupportedProtocol in interface ConnectionPoolProperties
- Returns:
- The specified protocol types will be pooled. Valid types are: plain, ssl.
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.
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.
toPropertiesMap
public Map<String,String> toPropertiesMap()
- Specified by:
toPropertiesMap in interface ConnectionPoolProperties
- Returns:
- The LDAP connection pool properties as a map.
Copyright © 2013 Atlassian. All Rights Reserved.