|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.ei.txnhandler.hostcache.CacheFactory
com.bankframe.serives.cache
package instead
This class creates and returns an instance of the Cache class.
Constructor Summary | |
CacheFactory()
Deprecated. |
Method Summary | |
static Cache |
getInstance()
Deprecated. This will get the only instance of a Cache object that can exist within a JVM. |
static boolean |
isInstantiated()
Deprecated. This method returns whether or not the cache has been instantiated. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CacheFactory()
Method Detail |
public static Cache getInstance()
Cache c1=CacheFactory.getInstance();
Cache c2=CacheFactory.getInstance();
Then the following be true:
c1==c2
The instantiation is based on parameters gleaned from the BankframeResource.properties file.
The following parameters are required:
transactionHandler.hostcache.maxMemCacheSize transactionHandler.hostcache.threshold transactionHandler.hostcache.maxDbCacheSize transactionHandler.dataSource.jndiNameWe require 0 < threshold < maxMemCacheSize < maxDbCacheSize and that for any of these values Integer.parseInt() must not throw an exception. We also require:
transactionHandler.hostcache.cacheTypewhere the value assoc. with this prop can be in the set { "CLUSTERABLE", "SINGLEJVM" }.
transactionHandler.dataSource.jndiNamemust be your DataSource name.
public static boolean isInstantiated()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |