|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pom.POMHandler
An adapter to handle dependencies between the wt.method and wt.pom packages which are potentially loaded by different class loaders.
Field Summary | |
private WTConnection[] |
availableConnections
|
private PersistentObjectManager |
pom
|
private static int |
SYNCH_VERBOSE_THRESHOLD
|
private int |
totalConnections
|
Fields inherited from interface wt.method.POMHandlerIfc |
versionID |
Constructor Summary | |
POMHandler()
|
Method Summary | |
void |
freeConnection(Object connection)
Free a datastore connection to be available for reuse. |
int |
getAvailableConnections()
Get total number of available connections. |
Object |
getConnection()
Get an available connection to a datastore. |
Object |
getPom()
Get the POM associated with this handler. |
int |
getTotalConnections()
Get total number of open connections. |
private int |
idleMonitor()
|
private int |
memoryMonitor()
|
private void |
report()
|
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private PersistentObjectManager pom
private int totalConnections
private WTConnection[] availableConnections
private static int SYNCH_VERBOSE_THRESHOLD
Constructor Detail |
public POMHandler()
Method Detail |
public Object getPom() throws POMInitException
getPom
in interface POMHandlerIfc
Exception
- Occurs if the handler cannot construct a persistent
object manager.
POMInitException
public Object getConnection() throws PersistenceException
getConnection
in interface POMHandlerIfc
PersistenceException
- Occurs if the persistent object manager cannot
connect to a datastore.public void freeConnection(Object connection)
freeConnection
in interface POMHandlerIfc
connection
- the datastore connectionpublic int getTotalConnections()
getTotalConnections
in interface POMHandlerIfc
public int getAvailableConnections()
public void run()
run
in interface Runnable
private void report()
private int idleMonitor()
private int memoryMonitor()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |