edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.dataConnector
Class LdapPoolVTStrategy

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.dataConnector.LdapPoolVTStrategy
All Implemented Interfaces:
LdapPoolStrategy

public class LdapPoolVTStrategy
extends Object
implements LdapPoolStrategy

Ldap pool strategy backed by the vt-ldap library.


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

Constructor Detail

LdapPoolVTStrategy

public LdapPoolVTStrategy()
Default constructor.

Method Detail

setLdapPoolConfig

public void setLdapPoolConfig(edu.vt.middleware.ldap.pool.LdapPoolConfig config)
Sets the ldap pool configuration.

Specified by:
setLdapPoolConfig in interface LdapPoolStrategy
Parameters:
config - to manage ldap pool with

setLdapFactory

public void setLdapFactory(edu.vt.middleware.ldap.pool.LdapFactory<edu.vt.middleware.ldap.Ldap> factory)
Sets the ldap factory.

Specified by:
setLdapFactory in interface LdapPoolStrategy
Parameters:
factory - to create ldap objects with

setBlockWhenEmpty

public void setBlockWhenEmpty(boolean block)
Sets whether to block when the pool is empty.

Specified by:
setBlockWhenEmpty in interface LdapPoolStrategy
Parameters:
block - when the pool is empty

initialize

public void initialize()
Prepare the pool for use.

Specified by:
initialize in interface LdapPoolStrategy

checkOut

public edu.vt.middleware.ldap.Ldap checkOut()
                                     throws Exception
Retrieve an ldap object.

Specified by:
checkOut in interface LdapPoolStrategy
Returns:
ldap object
Throws:
Exception

checkIn

public void checkIn(edu.vt.middleware.ldap.Ldap l)
             throws Exception
Return an ldap object.

Specified by:
checkIn in interface LdapPoolStrategy
Throws:
Exception


Copyright © 2006-2011 Internet2. All Rights Reserved.