|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.logicalcobwebs.proxool.PrototyperController
Controls the prototypers
Field Summary | |
private static boolean |
keepSweeping
|
private static Log |
LOG
|
private static PrototyperThread |
prototyperThread
|
Constructor Summary | |
PrototyperController()
|
Method Summary | |
protected static ProxyConnectionIF |
buildConnection(java.lang.String alias,
int state,
java.lang.String creator)
Build a new connection |
static void |
cancel(java.lang.String alias)
Cancel this prototyper and stop all prototyping immediately. |
protected static void |
checkSimultaneousBuildThrottle(java.lang.String alias)
Checks whether we are currently already building too many connections |
protected static void |
connectionRemoved(java.lang.String alias)
|
private static ConnectionPool |
getConnectionPool(java.lang.String alias)
|
static boolean |
isKeepSweeping()
|
static void |
sweepStarted()
|
protected static void |
triggerSweep(java.lang.String alias)
Trigger prototyping immediately. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final Log LOG
private static PrototyperThread prototyperThread
private static boolean keepSweeping
Constructor Detail |
public PrototyperController()
Method Detail |
protected static void triggerSweep(java.lang.String alias)
alias
- protected static ProxyConnectionIF buildConnection(java.lang.String alias, int state, java.lang.String creator) throws java.sql.SQLException, ProxoolException
alias
- identifies the poolstate
- the initial state it will be created as (this allows us
to create it as ACTIVE
and avoid
another thread grabbing it before we can)creator
- for log audit
java.sql.SQLException
- if there was a problem building the connection
ProxoolException
- if the alias doesn't existprivate static ConnectionPool getConnectionPool(java.lang.String alias) throws ProxoolException
ProxoolException
protected static void checkSimultaneousBuildThrottle(java.lang.String alias) throws java.sql.SQLException, ProxoolException
alias
- identifies the pool
java.sql.SQLException
- if the throttle has been reached
ProxoolException
public static void cancel(java.lang.String alias)
alias
- identifies the poolprotected static void connectionRemoved(java.lang.String alias)
public static boolean isKeepSweeping()
public static void sweepStarted()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |