|
Dashboard Builder Commons 6.0.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dashboard.factory.BasicFactoryElement
org.jboss.dashboard.database.cache.custom.CacheFactory
public class CacheFactory
A convenient generator of multicast caches using an underlying LRU or Automatic algorithm.
| Field Summary | |
|---|---|
CacheOptions |
cacheOptions
|
MultiCacheManager |
multiCacheManager
|
static String |
TYPE_AUTO
The Automatic cache type. |
static String |
TYPE_FIFO
The FIFO cache type. |
static String |
TYPE_HYBRID
The Hybrid cache type. |
static String |
TYPE_LRU
The LRU cache type. |
static String |
TYPE_TIMER
The Timer cache type. |
| Constructor Summary | |
|---|---|
CacheFactory()
|
|
| Method Summary | |
|---|---|
ObjectCache |
createCache(String name)
Creates a new cache. |
void |
createCustomCache(String cacheRegionName)
|
ObjectCache |
createObjectCache(CacheElement element,
String name)
|
Map<String,CacheStatistics> |
getCacheStatistics()
Get the cache statistics |
boolean |
isMonitorizeCaches()
|
void |
printStatistics(PrintStream out,
String separator)
Print statistics to output |
void |
setMonitorizeCaches(boolean monitorizeCaches)
|
| Methods inherited from class org.jboss.dashboard.factory.BasicFactoryElement |
|---|
addPeriodicTask, addPeriodicTask, factoryLookup, getComponentAlias, getComponentDescription, getComponentName, getComponentScope, init, setComponentAlias, shutdown, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public CacheOptions cacheOptions
public MultiCacheManager multiCacheManager
public static final String TYPE_LRU
public static final String TYPE_AUTO
public static final String TYPE_TIMER
public static final String TYPE_HYBRID
public static final String TYPE_FIFO
| Constructor Detail |
|---|
public CacheFactory()
| Method Detail |
|---|
public boolean isMonitorizeCaches()
public void setMonitorizeCaches(boolean monitorizeCaches)
public ObjectCache createCache(String name)
name - a name for the cache. Useful if there will be multiple caches for various objects.
public ObjectCache createObjectCache(CacheElement element,
String name)
throws Exception
Exceptionpublic Map<String,CacheStatistics> getCacheStatistics()
public void createCustomCache(String cacheRegionName)
public void printStatistics(PrintStream out,
String separator)
out - output stream to write to
|
Dashboard Builder Commons 6.0.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||