org.jboss.cache.eviction
Class RegionManager
java.lang.Object
org.jboss.cache.eviction.RegionManager
public class RegionManager
- extends java.lang.Object
Factory to create region from configuration, to track region,
and to resolve naming conflict for regions. Note that in addition to
user-specified regions, there is also a global cache _default_
region that covers everything else.
- Version:
- $Id: RegionManager.java,v 1.9.2.1 2006/04/07 11:54:50 bwang Exp $
- Author:
- Ben Wang 02-2004, Daniel Huang (dhuang@jboss.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CAPACITY
public static final int CAPACITY
- See Also:
- Constant Field Values
RegionManager
public RegionManager()
getEvictionThreadWakeupIntervalSeconds
public int getEvictionThreadWakeupIntervalSeconds()
createRegion
public Region createRegion(java.lang.String fqn,
EvictionAlgorithm algorithm)
throws RegionNameConflictException
- Deprecated. DO NOT USE THIS METHOD. IT IS PROVIDED FOR EJB3 INTEGRATION BACKWARDS COMPATIBILITY
- Throws:
RegionNameConflictException
createRegion
public Region createRegion(java.lang.String fqn,
org.w3c.dom.Element regionConfig)
throws RegionNameConflictException
- Create a region based on fqn.
- Parameters:
fqn
- The region identifier.regionConfig
- The XML configuration DOM Element for this region.
- Throws:
RegionNameConflictException
createRegion
public Region createRegion(java.lang.String fqn,
EvictionPolicy policy,
EvictionConfiguration config)
throws RegionNameConflictException
- Throws:
RegionNameConflictException
configure
public void configure(TreeCache cache)
removeRegion
public void removeRegion(java.lang.String fqn)
hasRegion
public boolean hasRegion(java.lang.String myFqn)
getRegion
public Region getRegion(java.lang.String myFqn)
getRegions
public Region[] getRegions()
checkConflict
public void checkConflict(java.lang.String myFqn)
throws RegionNameConflictException
- Check for conflict in the current regions. There is a conflict
if fqn is any parent fqn of the current regions.
- Parameters:
myFqn
- Current fqn for potential new region.
- Throws:
RegionNameConflictException
- to indicate a region name conflict has ocurred.
isUsingNewStyleConfiguration
public static boolean isUsingNewStyleConfiguration(org.w3c.dom.Element evictionRegionConfigElem)
Copyright © 1998-2005 JBoss Inc . All Rights Reserved.