|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nitido.nimx.services.dirpool.mozilla.DirPool
public class DirPool
The DirPool data object contains all the data associated to a specific pool.
| Field Summary | |
|---|---|
protected java.lang.String |
_name
The pool's name. |
protected netscape.ldap.util.ConnectionPool |
_pool
The Netscape LDAP Java SDK's ConnectionPool object. |
protected java.lang.Object |
_readMutex
Mutex object for connection requesting thread. |
protected int |
_throttleLimit
|
protected int |
_timeLimit
|
protected long |
_timestamp
The timestamp when the connection pool will expired. |
| Constructor Summary | |
|---|---|
DirPool(java.lang.String name,
netscape.ldap.util.ConnectionPool pool,
int timeLimit,
int throttleLimit)
|
|
| Method Summary | |
|---|---|
DirConnection |
getConnection(java.lang.String dn,
java.lang.String password)
|
protected int |
getObtainedCount()
|
protected int[] |
getReservedAndObtained()
|
protected int |
getReservedCount()
|
boolean |
releaseConnection(DirConnection dirCon,
boolean isGoodConn)
Trying to release the connection to the pool. |
protected void |
setIsRetired(boolean isRetired)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String _name
protected final long _timestamp
protected netscape.ldap.util.ConnectionPool _pool
protected final int _timeLimit
protected final int _throttleLimit
protected final java.lang.Object _readMutex
| Constructor Detail |
|---|
public DirPool(java.lang.String name,
netscape.ldap.util.ConnectionPool pool,
int timeLimit,
int throttleLimit)
| Method Detail |
|---|
public DirConnection getConnection(java.lang.String dn,
java.lang.String password)
throws netscape.ldap.LDAPException
netscape.ldap.LDAPException
public boolean releaseConnection(DirConnection dirCon,
boolean isGoodConn)
throws netscape.ldap.LDAPException
netscape.ldap.LDAPExceptionprotected void setIsRetired(boolean isRetired)
protected int getReservedCount()
protected int getObtainedCount()
protected int[] getReservedAndObtained()
|
Nitido NiM 2.5 Java API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.