站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 Cache API Documentation 英文版文档

RegionManager (JBossCache API) - JBoss 4.0.1 sp1 Cache API Documentation 英文版文档


org.jboss.cache.eviction
Class RegionManager

java.lang.Object
  extended byorg.jboss.cache.eviction.RegionManager

public class RegionManager
extends 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.5.2.1 2004/12/14 08:19:18 starksm Exp $
Author:
Ben Wang 02-2004

Field Summary
static int CAPACITY
           
 
Constructor Summary
RegionManager(EvictionPolicy policy)
           
 
Method Summary
 void checkConflict(String myFqn)
          Check for conflict in the current regions.
 Region createRegion(String fqn, EvictionAlgorithm algorithm)
          Create a region based on fqn.
 Region getRegion(String myFqn)
           
 Region[] getRegions()
           
 boolean hasRegion(String myFqn)
           
 void removeRegion(String fqn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CAPACITY

public static final int CAPACITY
See Also:
Constant Field Values
Constructor Detail

RegionManager

public RegionManager(EvictionPolicy policy)
Method Detail

createRegion

public Region createRegion(String fqn,
                           EvictionAlgorithm algorithm)
                    throws RegionNameConflictException
Create a region based on fqn.

Parameters:
fqn - The region identifier.
algorithm - EvictionAlgorithm that associates with this region.
Throws:
RegionNameConflictException

removeRegion

public void removeRegion(String fqn)

hasRegion

public boolean hasRegion(String myFqn)

getRegion

public Region getRegion(String myFqn)

getRegions

public Region[] getRegions()

checkConflict

public void checkConflict(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.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.