com.bankframe.ei.txnhandler.hostcache
Class CacheFactory

java.lang.Object
  extended bycom.bankframe.ei.txnhandler.hostcache.CacheFactory

Deprecated. Use the com.bankframe.serives.cache package instead

public class CacheFactory
extends java.lang.Object

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

CacheFactory

public CacheFactory()
Deprecated. 
Method Detail

getInstance

public static Cache getInstance()
Deprecated. 
This will get the only instance of a Cache object that can exist within a JVM. For example if we have: 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.jndiName
 
We require 0 < threshold < maxMemCacheSize < maxDbCacheSize and that for any of these values Integer.parseInt() must not throw an exception. We also require:
 transactionHandler.hostcache.cacheType
 
where the value assoc. with this prop can be in the set { "CLUSTERABLE", "SINGLEJVM" }.
 transactionHandler.dataSource.jndiName
 
must be your DataSource name.

Returns:
This method returns an instance of a cache object.

isInstantiated

public static boolean isInstantiated()
Deprecated. 
This method returns whether or not the cache has been instantiated.

Returns:
If the cache has been instantiated return true. Otherwise return false.


Copyright © 2005, 2007, Oracle. All rights reserved.