|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.adapter.HostConnPool
Pools HostAccess connections to reduce the number of host authentications and avoid simultaneous logins of the same AccountIterator. Note: when we go to a multiple server model, this pool will not prevent 2 different Lighthouse servers from logging into the same host with the same user ID at the same time.
Field Summary | |
protected static Trace |
_trace
|
static java.lang.String |
code_id
|
protected static int |
DEFAULT_MAX_CONNECTIONS
|
Method Summary | |
static HostAccess |
getAffinityConnection(HostAccessLogin haLogin)
|
static HostAccess |
getAffinityConnection(HostAccessLogin haLogin,
java.lang.String poolKey,
int maxConnections)
|
static java.util.List |
getAllPoolStatistics()
Return a list of lists of elements which are all of the contents of all of the pools. |
static HostAccess |
getConnection(HostAccessLogin haLogin)
Deprecated. Use getAffinityConnection instead |
protected HostAccess |
getFree(java.lang.String key)
|
java.lang.String |
getKey()
|
java.lang.String |
getPoolStatistics()
Get useful statistics for the whole pool. |
protected boolean |
putFree(HostAccess ha)
Deprecated. switch to affinity connections and use putAffinityFree instead |
protected void |
putInUse(HostAccess ha)
|
void |
reapConnections()
|
static void |
releaseConnection(HostAccess hostAccess)
|
void |
setKey(java.lang.String key)
|
void |
setMaxConnections(int max)
|
void |
shutdown()
|
static void |
shutdownAll()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
protected static final Trace _trace
protected static final int DEFAULT_MAX_CONNECTIONS
Method Detail |
public void setMaxConnections(int max)
public java.lang.String getKey()
public void setKey(java.lang.String key)
public void reapConnections()
public static HostAccess getConnection(HostAccessLogin haLogin) throws java.lang.Exception
java.lang.Exception
public static HostAccess getAffinityConnection(HostAccessLogin haLogin) throws java.lang.Exception
java.lang.Exception
public static HostAccess getAffinityConnection(HostAccessLogin haLogin, java.lang.String poolKey, int maxConnections) throws java.lang.Exception
java.lang.Exception
public static java.util.List getAllPoolStatistics()
public java.lang.String getPoolStatistics()
public static void releaseConnection(HostAccess hostAccess)
protected HostAccess getFree(java.lang.String key)
protected boolean putFree(HostAccess ha)
protected void putInUse(HostAccess ha)
public static void shutdownAll()
public void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |