|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.attribute.resolver.provider.dataConnector.LdapPoolVTStrategy
public class LdapPoolVTStrategy
Ldap pool strategy backed by the vt-ldap library.
Field Summary | |
---|---|
private int |
blockWaitTime
Amount of time to wait, in milliseconds, if blocking when the pool is empty. |
private boolean |
blockWhenEmpty
Whether to block when empty. |
private edu.vt.middleware.ldap.pool.LdapFactory<edu.vt.middleware.ldap.Ldap> |
ldapFactory
Factory for making ldap objects. |
private edu.vt.middleware.ldap.pool.LdapPool<edu.vt.middleware.ldap.Ldap> |
ldapPool
Underlying pool. |
private edu.vt.middleware.ldap.pool.LdapPoolConfig |
ldapPoolConfig
Ldap pool configuration. |
private org.slf4j.Logger |
log
Class logger. |
Constructor Summary | |
---|---|
LdapPoolVTStrategy()
Default constructor. |
Method Summary | |
---|---|
void |
checkIn(edu.vt.middleware.ldap.Ldap l)
Return an ldap object. |
edu.vt.middleware.ldap.Ldap |
checkOut()
Retrieve an ldap object. |
void |
initialize()
Prepare the pool for use. |
void |
setBlockWaitTime(int waitTime)
Sets the amount of time to wait, in milliseconds, if blocking when the pool is empty. |
void |
setBlockWhenEmpty(boolean block)
Sets whether to block when the pool is empty. |
void |
setLdapFactory(edu.vt.middleware.ldap.pool.LdapFactory<edu.vt.middleware.ldap.Ldap> factory)
Sets the ldap factory. |
void |
setLdapPoolConfig(edu.vt.middleware.ldap.pool.LdapPoolConfig config)
Sets the ldap pool configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final org.slf4j.Logger log
private edu.vt.middleware.ldap.pool.LdapPool<edu.vt.middleware.ldap.Ldap> ldapPool
private edu.vt.middleware.ldap.pool.LdapPoolConfig ldapPoolConfig
private edu.vt.middleware.ldap.pool.LdapFactory<edu.vt.middleware.ldap.Ldap> ldapFactory
private boolean blockWhenEmpty
private int blockWaitTime
Constructor Detail |
---|
public LdapPoolVTStrategy()
Method Detail |
---|
public void setLdapPoolConfig(edu.vt.middleware.ldap.pool.LdapPoolConfig config)
setLdapPoolConfig
in interface LdapPoolStrategy
config
- to manage ldap pool withpublic void setLdapFactory(edu.vt.middleware.ldap.pool.LdapFactory<edu.vt.middleware.ldap.Ldap> factory)
setLdapFactory
in interface LdapPoolStrategy
factory
- to create ldap objects withpublic void setBlockWhenEmpty(boolean block)
setBlockWhenEmpty
in interface LdapPoolStrategy
block
- when the pool is emptypublic void setBlockWaitTime(int waitTime)
waitTime
- amount of time to wait, in milliseconds, if blocking when the pool is emptypublic void initialize()
initialize
in interface LdapPoolStrategy
public edu.vt.middleware.ldap.Ldap checkOut() throws Exception
checkOut
in interface LdapPoolStrategy
Exception
- thrown if there is a problem checking in an Ldap
objectpublic void checkIn(edu.vt.middleware.ldap.Ldap l) throws Exception
checkIn
in interface LdapPoolStrategy
l
- the ldap object
Exception
- thrown if there is a problem checking out an Ldap
object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |