com.atlassian.crowd.embedded.impl
Enum SystemConnectionPoolProperties
java.lang.Object
java.lang.Enum<SystemConnectionPoolProperties>
com.atlassian.crowd.embedded.impl.SystemConnectionPoolProperties
- All Implemented Interfaces:
- ConnectionPoolProperties, java.io.Serializable, java.lang.Comparable<SystemConnectionPoolProperties>
public enum SystemConnectionPoolProperties
- extends java.lang.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".
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
INSTANCE
public static final SystemConnectionPoolProperties INSTANCE
values
public static final SystemConnectionPoolProperties[] values()
- Returns an array containing the constants of this enum type, in
the order they're 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're declared
valueOf
public static SystemConnectionPoolProperties valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
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 © 2011 Atlassian. All Rights Reserved.