|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.eviction.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.
Field Summary | |
---|---|
static int |
CAPACITY
Default region capacity. |
static Fqn |
DEFAULT_REGION
|
Constructor Summary | |
---|---|
RegionManager()
|
Method Summary | |
---|---|
void |
checkConflict(Fqn fqn)
Check for conflict in the current regions. |
void |
checkConflict(java.lang.String myFqn)
Check for conflict in the current regions. |
void |
configure(TreeCache cache)
|
Region |
createRegion(Fqn fqn,
org.w3c.dom.Element regionConfig)
|
Region |
createRegion(Fqn fqn,
EvictionAlgorithm algorithm)
Deprecated. DO NOT USE THIS METHOD. IT IS PROVIDED FOR EJB3 INTEGRATION BACKWARDS COMPATIBILITY |
Region |
createRegion(Fqn fqn,
EvictionPolicy policy,
EvictionConfiguration config)
|
Region |
createRegion(java.lang.String fqn,
org.w3c.dom.Element regionConfig)
Create a region based on fqn. |
Region |
createRegion(java.lang.String fqn,
EvictionAlgorithm algorithm)
Deprecated. DO NOT USE THIS METHOD. IT IS PROVIDED FOR EJB3 INTEGRATION BACKWARDS COMPATIBILITY |
Region |
createRegion(java.lang.String fqn,
EvictionPolicy policy,
EvictionConfiguration config)
|
int |
getEvictionThreadWakeupIntervalSeconds()
|
Region |
getRegion(Fqn fqn)
Returns the Region corresponding to this Fqn. |
Region |
getRegion(java.lang.String myFqn)
Returns the Region belonging to a String FQN. |
Region[] |
getRegions()
Returns an ordered list of regions. |
boolean |
hasRegion(Fqn fqn)
Returns true if the region exists. |
boolean |
hasRegion(java.lang.String myFqn)
Returns true if the region exists. |
static boolean |
isUsingNewStyleConfiguration(org.w3c.dom.Element evictionRegionConfigElem)
|
void |
markNodeCurrentlyInUse(Fqn fqn,
long timeout)
Mark a node as currently in use. |
boolean |
removeRegion(Fqn fqn)
Removes a region by Fqn, returns true if the region was found. |
void |
removeRegion(java.lang.String fqn)
Removes a region by string. |
java.lang.String |
toString()
|
void |
unmarkNodeCurrentlyInUse(Fqn fqn)
Unmark a node currently in use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CAPACITY
public static final Fqn DEFAULT_REGION
Constructor Detail |
---|
public RegionManager()
Method Detail |
---|
public int getEvictionThreadWakeupIntervalSeconds()
public Region createRegion(java.lang.String fqn, EvictionAlgorithm algorithm) throws RegionNameConflictException
RegionNameConflictException
public Region createRegion(Fqn fqn, EvictionAlgorithm algorithm) throws RegionNameConflictException
RegionNameConflictException
public Region createRegion(java.lang.String fqn, org.w3c.dom.Element regionConfig) throws RegionNameConflictException
fqn
- The region identifier.regionConfig
- The XML configuration DOM Element for this region.
RegionNameConflictException
public Region createRegion(Fqn fqn, org.w3c.dom.Element regionConfig) throws RegionNameConflictException
RegionNameConflictException
public Region createRegion(java.lang.String fqn, EvictionPolicy policy, EvictionConfiguration config) throws RegionNameConflictException
RegionNameConflictException
public Region createRegion(Fqn fqn, EvictionPolicy policy, EvictionConfiguration config) throws RegionNameConflictException
RegionNameConflictException
public void configure(TreeCache cache)
public void removeRegion(java.lang.String fqn)
public boolean removeRegion(Fqn fqn)
public boolean hasRegion(java.lang.String myFqn)
public boolean hasRegion(Fqn fqn)
public Region getRegion(java.lang.String myFqn)
public Region getRegion(Fqn fqn)
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.public void checkConflict(Fqn fqn) throws RegionNameConflictException
RegionNameConflictException
public void markNodeCurrentlyInUse(Fqn fqn, long timeout)
fqn
- Fqn of the node.public void unmarkNodeCurrentlyInUse(Fqn fqn)
fqn
- Fqn of the node.public static boolean isUsingNewStyleConfiguration(org.w3c.dom.Element evictionRegionConfigElem)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |