|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.marshall.RegionManager
public class RegionManager
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.
Note that this is almost identical to the one used in eviction policy. We will need to refactor them in the future for everyone to use.
Constructor Summary | |
---|---|
RegionManager()
|
Method Summary | |
---|---|
void |
checkConflict(java.lang.String myFqn)
Check for conflict in the current regions. |
Region |
createRegion(java.lang.String fqn,
java.lang.ClassLoader cl)
Create a region based on fqn. |
Region |
createRegion(java.lang.String fqn,
java.lang.ClassLoader cl,
boolean inactive)
Create a region based on fqn. |
Region |
getRegion(java.lang.String myFqn)
|
Region[] |
getRegions()
|
boolean |
hasRegion(java.lang.String myFqn)
|
void |
removeRegion(java.lang.String fqn)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegionManager()
Method Detail |
---|
public Region createRegion(java.lang.String fqn, java.lang.ClassLoader cl) throws RegionNameConflictException
fqn
- The region identifier.cl
- Class loader
RegionNameConflictException
public Region createRegion(java.lang.String fqn, java.lang.ClassLoader cl, boolean inactive) throws RegionNameConflictException
fqn
- The region identifier.cl
- Class loader
RegionNameConflictException
public void removeRegion(java.lang.String fqn)
public boolean hasRegion(java.lang.String myFqn)
public Region getRegion(java.lang.String myFqn)
public Region[] getRegions()
public void checkConflict(java.lang.String myFqn) throws RegionNameConflictException
myFqn
- Current fqn for potential new region.
RegionNameConflictException
- to indicate a region name conflict has ocurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |