com.safeidentity.adminservice.loadbalance.ldap
Class LdapConnectionPool

java.lang.Object
  extended bycom.safeidentity.common.ObjectPool
      extended bycom.safeidentity.adminservice.loadbalance.ldap.LdapConnectionPool
All Implemented Interfaces:
ConnectionPool

public class LdapConnectionPool
extends ObjectPool
implements ConnectionPool

Author:
kevin TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
LdapConnectionPool(java.lang.String uniqueId, ServerConfig config)
           
 
Method Summary
protected  java.lang.Object create()
           
 void destroy()
           
protected  void expire(java.lang.Object o)
           
 PooledConnection getConnection()
          Ä¿³Ø¼ÇÀ» °¡Á®¿Â´Ù.
 java.lang.String getId()
           
static java.util.Hashtable getLdapEnv(ServerConfig config)
          ServerConfig °´Ã¼¿¡¼­ LdapÁ¢¼Ó¿¡ ÇÊ¿äÇÑ ¿¬°á ¼³Á¤°ªÀ» °¡Á®¿Â´Ù.
 void releaseConnection(PooledConnection connection)
           
 void setId(java.lang.String id)
           
protected  boolean validate(java.lang.Object o)
           
 
Methods inherited from class com.safeidentity.common.ObjectPool
checkIn, checkOut, cleanUp, close, getCurrentMaxLock, getLastCheckoutTime, getMaxLockCount, getTimeout, setMaxLockCount, setTimeout, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LdapConnectionPool

public LdapConnectionPool(java.lang.String uniqueId,
                          ServerConfig config)
                   throws SFEnvParamException
Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface ConnectionPool

setId

public void setId(java.lang.String id)
Specified by:
setId in interface ConnectionPool

getLdapEnv

public static java.util.Hashtable getLdapEnv(ServerConfig config)
                                      throws SFEnvParamException
ServerConfig °´Ã¼¿¡¼­ LdapÁ¢¼Ó¿¡ ÇÊ¿äÇÑ ¿¬°á ¼³Á¤°ªÀ» °¡Á®¿Â´Ù.

Returns:
Ldap ¿¬°á ¼³Á¤°ª
Throws:
SFEnvParamException

getConnection

public PooledConnection getConnection()
                               throws java.lang.Exception
Description copied from interface: ConnectionPool
Ä¿³Ø¼ÇÀ» °¡Á®¿Â´Ù.

Specified by:
getConnection in interface ConnectionPool
Returns:
Throws:
java.lang.Exception

releaseConnection

public void releaseConnection(PooledConnection connection)
Specified by:
releaseConnection in interface ConnectionPool

destroy

public void destroy()
Specified by:
destroy in interface ConnectionPool

create

protected java.lang.Object create()
                           throws java.lang.Exception
Specified by:
create in class ObjectPool
Throws:
java.lang.Exception

validate

protected boolean validate(java.lang.Object o)
Specified by:
validate in class ObjectPool

expire

protected void expire(java.lang.Object o)
Specified by:
expire in class ObjectPool


Copyright © 2004 SoftForum Corp. All Rights Reserved.