|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MBean interface.
Field Summary |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Method Summary | |
void |
_put(GlobalTransaction tx,
Fqn fqn,
java.util.Map data,
boolean create_undo_ops)
Does the real work. |
void |
_put(GlobalTransaction tx,
Fqn fqn,
java.util.Map data,
boolean create_undo_ops,
boolean erase_contents)
Does the real work. |
java.lang.Object |
_put(GlobalTransaction tx,
Fqn fqn,
java.lang.Object key,
java.lang.Object value,
boolean create_undo_ops)
|
void |
_put(GlobalTransaction tx,
java.lang.String fqn,
java.util.Map data,
boolean create_undo_ops)
Does the real work. |
java.lang.Object |
_put(GlobalTransaction tx,
java.lang.String fqn,
java.lang.Object key,
java.lang.Object value,
boolean create_undo_ops)
|
void |
_remove(GlobalTransaction tx,
Fqn fqn,
boolean create_undo_ops)
|
java.lang.Object |
_remove(GlobalTransaction tx,
Fqn fqn,
java.lang.Object key,
boolean create_undo_ops)
|
void |
_remove(GlobalTransaction tx,
java.lang.String fqn,
boolean create_undo_ops)
|
java.lang.Object |
_remove(GlobalTransaction tx,
java.lang.String fqn,
java.lang.Object key,
boolean create_undo_ops)
|
void |
activateRegion(java.lang.String subtreeFqn)
Causes the cache to transfer state for the subtree rooted at subtreeFqn and to begin accepting replication messages
for that subtree. |
void |
addTreeCacheListener(TreeCacheListener listener)
|
java.util.List |
callRemoteMethods(java.util.Vector members,
java.lang.reflect.Method method,
java.lang.Object[] args,
boolean synchronous,
boolean exclude_self,
long timeout)
|
java.util.List |
callRemoteMethods(java.util.Vector members,
java.lang.String method_name,
java.lang.Class[] types,
java.lang.Object[] args,
boolean synchronous,
boolean exclude_self,
long timeout)
|
void |
createService()
|
void |
destroyService()
|
java.lang.String |
dumpTransactionTable()
Dumps the contents of the TransactionTable |
void |
evict(Fqn fqn)
Called by eviction policy provider. |
boolean |
exists(Fqn fqn)
Checks whether a given node exists in the tree. |
boolean |
exists(Fqn fqn,
java.lang.Object key)
Checks whether a given key exists in the given node. |
boolean |
exists(java.lang.String fqn)
Checks whether a given node exists in the tree |
boolean |
exists(java.lang.String fqn,
java.lang.Object key)
|
void |
fetchState(long timeout)
Fetch the group state from the current coordinator. |
Node |
get(Fqn fqn)
|
java.lang.Object |
get(Fqn fqn,
java.lang.Object key)
Finds a node given its name and returns the value associated with a given key in its data map. |
Node |
get(java.lang.String fqn)
|
java.lang.Object |
get(java.lang.String fqn,
java.lang.Object key)
Finds a node given its name and returns the value associated with a given key in its data map. |
CacheLoader |
getCacheLoader()
|
boolean |
getCacheLoaderAsynchronous()
|
java.lang.String |
getCacheLoaderClass()
|
java.util.Properties |
getCacheLoaderConfig()
|
boolean |
getCacheLoaderFetchPersistentState()
|
boolean |
getCacheLoaderFetchTransientState()
|
boolean |
getCacheLoaderPassivation()
|
java.lang.String |
getCacheLoaderPreload()
|
boolean |
getCacheLoaderShared()
|
java.lang.String |
getCacheMode()
Returns the current caching mode. |
java.util.Set |
getChildrenNames(Fqn fqn)
Returns all children of a given node |
java.util.Set |
getChildrenNames(java.lang.String fqn)
Returns all children of a given node |
java.lang.String |
getClusterName()
Get the name of the replication group |
java.lang.String |
getClusterProperties()
Get the cluster properties (e.g. |
boolean |
getDeadlockDetection()
|
java.lang.String |
getEvictionPolicyClass()
Returns the name of the cache eviction policy (must be an implementation of EvictionPolicy) |
int |
getEvictionThreadWakeupIntervalSeconds()
Obtain eviction thread (if any) wake up interval in seconds |
boolean |
getFetchStateOnStartup()
Returns whether or not on startup to acquire the initial state from existing members. |
long |
getInitialStateRetrievalTimeout()
Get the max time to wait until the initial state is retrieved. |
TreeCache |
getInstance()
|
java.lang.String |
getInterceptorChain()
|
java.util.List |
getInterceptors()
|
java.lang.String |
getIsolationLevel()
Returns the transaction isolation level. |
java.util.Set |
getKeys(Fqn fqn)
|
java.util.Set |
getKeys(java.lang.String fqn)
|
java.lang.Object |
getLocalAddress()
|
long |
getLockAcquisitionTimeout()
Default max time to wait for a lock. |
java.util.Vector |
getMembers()
|
java.lang.String |
getNodeLockingScheme()
|
int |
getNumberOfAttributes()
Returns an approximation of the total number of attributes in the tree. |
int |
getNumberOfLocksHeld()
Gets the number of read or write locks held across the entire tree |
int |
getNumberOfNodes()
Returns an approximation of the total number of nodes in the tree. |
java.lang.String |
getReplicationVersion()
Gets the format version of the data transferred during an initial state transfer or a call to activateRegion(String) . |
long |
getReplQueueInterval()
|
int |
getReplQueueMaxElements()
|
short |
getStateTransferVersion()
Deprecated. use getReplicationVersion() instead |
boolean |
getSyncCommitPhase()
|
long |
getSyncReplTimeout()
Returns the default max timeout after which synchronous replication calls return. |
boolean |
getSyncRollbackPhase()
|
javax.transaction.TransactionManager |
getTransactionManager()
|
java.lang.String |
getTransactionManagerLookupClass()
|
boolean |
getUseMarshalling()
Gets whether a TreeCacheMarshaller instance should be used
to manage different classloaders to use for unmarshalling replicated
objects. |
boolean |
getUseReplQueue()
|
java.lang.String |
getVersion()
|
void |
inactivateRegion(java.lang.String subtreeFqn)
Causes the cache to stop accepting replication events for the subtree rooted at subtreeFqn and evict all nodes in that subtree. |
boolean |
isCoordinator()
|
boolean |
isInactiveOnStartup()
Gets whether the entire tree is inactive upon startup, only responding to replication messages after activateRegion(String) is
called to activate one or more parts of the tree. |
void |
load(java.lang.String fqn)
Loads the indicated Fqn, plus all parents recursively from the CacheLoader. |
java.lang.String |
print(Fqn fqn)
Prints a representation of the node defined by fqn . |
java.lang.String |
print(java.lang.String fqn)
Prints a representation of the node defined by fqn . |
java.lang.String |
printDetails()
|
java.lang.String |
printLockInfo()
|
void |
put(Fqn fqn,
java.util.Map data)
Adds a new node to the tree and sets its data. |
java.lang.Object |
put(Fqn fqn,
java.lang.Object key,
java.lang.Object value)
Adds a key and value to a given node. |
void |
put(java.lang.String fqn,
java.util.Map data)
Adds a new node to the tree and sets its data. |
java.lang.Object |
put(java.lang.String fqn,
java.lang.Object key,
java.lang.Object value)
Adds a key and value to a given node. |
void |
registerClassLoader(java.lang.String fqn,
java.lang.ClassLoader cl)
Registers the given classloader with TreeCacheMarshaller for
use in unmarshalling replicated objects for the specified region. |
void |
releaseAllLocks(Fqn fqn)
Force-releases all locks in this node and the entire subtree |
void |
releaseAllLocks(java.lang.String fqn)
Force-releases all locks in this node and the entire subtree |
void |
remove(Fqn fqn)
Removes the node from the tree. |
java.lang.Object |
remove(Fqn fqn,
java.lang.Object key)
Removes key from the node's hashmap |
void |
remove(java.lang.String fqn)
Removes the node from the tree. |
java.lang.Object |
remove(java.lang.String fqn,
java.lang.Object key)
Removes key from the node's hashmap |
void |
removeData(Fqn fqn)
|
void |
removeData(java.lang.String fqn)
|
void |
removeTreeCacheListener(TreeCacheListener listener)
|
void |
setCacheLoader(CacheLoader cache_loader)
|
void |
setCacheLoaderAsynchronous(boolean flag)
|
void |
setCacheLoaderClass(java.lang.String cache_loader_class)
|
void |
setCacheLoaderConfig(java.util.Properties cache_loader_config)
|
void |
setCacheLoaderFetchPersistentState(boolean flag)
|
void |
setCacheLoaderFetchTransientState(boolean flag)
|
void |
setCacheLoaderPassivation(boolean passivate)
|
void |
setCacheLoaderPreload(java.lang.String list)
|
void |
setCacheLoaderShared(boolean shared)
|
void |
setCacheMode(java.lang.String mode)
Sets the default caching mode) |
void |
setClusterConfig(org.w3c.dom.Element config)
Convert a list of elements to the JG property string |
void |
setClusterName(java.lang.String name)
Set the name of the replication group |
void |
setClusterProperties(java.lang.String cluster_props)
Set the cluster properties. |
void |
setDeadlockDetection(boolean dt)
|
void |
setEvictionPolicyClass(java.lang.String eviction_policy_class)
Sets the classname of the eviction policy |
void |
setEvictionPolicyConfig(org.w3c.dom.Element config)
Setup eviction policy configuration |
void |
setFetchStateOnStartup(boolean flag)
Sets whether or not on startup to acquire the initial state from existing members. |
void |
setInactiveOnStartup(boolean inactiveOnStartup)
Sets whether the entire tree is inactive upon startup, only responding to replication messages after activateRegion(String) is
called to activate one or more parts of the tree. |
void |
setInitialStateRetrievalTimeout(long timeout)
Set the initial state transfer timeout (see getInitialStateRetrievalTimeout() ) |
void |
setIsolationLevel(java.lang.String level)
Set the transaction isolation level. |
void |
setLockAcquisitionTimeout(long timeout)
Set the max time for lock acquisition. |
void |
setNodeLockingScheme(java.lang.String nodeLockingScheme)
|
void |
setReplicationVersion(java.lang.String version)
Sets the format version of the data transferred during an initial state transfer or a call to activateRegion(String) . |
void |
setReplQueueInterval(long interval)
|
void |
setReplQueueMaxElements(int max_elements)
|
void |
setStateTransferVersion(short version)
Deprecated. use setReplicationVersion(String) instead |
void |
setSyncCommitPhase(boolean sync_commit_phase)
|
void |
setSyncReplTimeout(long timeout)
Sets the default maximum wait time for synchronous replication to receive all results |
void |
setSyncRollbackPhase(boolean sync_rollback_phase)
|
void |
setTransactionManagerLookup(TransactionManagerLookup l)
Sets the TransactionManagerLookup object |
void |
setTransactionManagerLookupClass(java.lang.String cl)
Sets the class of the TransactionManagerLookup impl. |
void |
setUseMarshalling(boolean isTrue)
Sets whether a TreeCacheMarshaller instance should be created
to manage different classloaders to use for unmarshalling replicated
objects. |
void |
setUseReplQueue(boolean flag)
|
void |
startService()
|
void |
stopService()
|
java.lang.String |
toString()
|
void |
unregisterClassLoader(java.lang.String fqn)
Instructs the TreeCacheMarshaller to no longer use a special
classloader to unmarshal replicated objects for the specified region. |
Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
Method Detail |
public java.lang.Object getLocalAddress()
public java.util.Vector getMembers()
public boolean isCoordinator()
public java.lang.String getClusterName()
public java.lang.String getVersion()
public void setClusterName(java.lang.String name)
public void setUseMarshalling(boolean isTrue)
TreeCacheMarshaller
instance should be created
to manage different classloaders to use for unmarshalling replicated
objects.
This property must be set to true
before any call to
registerClassLoader(String, ClassLoader)
or
activateRegion(String)
public boolean getUseMarshalling()
TreeCacheMarshaller
instance should be used
to manage different classloaders to use for unmarshalling replicated
objects.
public void registerClassLoader(java.lang.String fqn, java.lang.ClassLoader cl) throws RegionNameConflictException
TreeCacheMarshaller
for
use in unmarshalling replicated objects for the specified region.
fqn
- The fqn region. This fqn and its children will use this classloader for (un)marshalling.cl
- The class loader to use
RegionNameConflictException
- if fqn
is a descendant of
an FQN that already has a classloader
registered.
java.lang.IllegalStateException
- if useMarshalling
is false
public void unregisterClassLoader(java.lang.String fqn) throws RegionNotFoundException
TreeCacheMarshaller
to no longer use a special
classloader to unmarshal replicated objects for the specified region.
fqn
- The fqn of the root node of region.
RegionNotFoundException
- if no classloader has been registered for
fqn
.
java.lang.IllegalStateException
- if useMarshalling
is false
public java.lang.String getClusterProperties()
public void setClusterProperties(java.lang.String cluster_props)
cluster_props
- The properties for the cluster (JGroups)public java.lang.String dumpTransactionTable()
public java.lang.String getInterceptorChain()
public java.util.List getInterceptors()
public java.lang.String getCacheLoaderClass()
public void setCacheLoaderClass(java.lang.String cache_loader_class)
public java.util.Properties getCacheLoaderConfig()
public void setCacheLoaderConfig(java.util.Properties cache_loader_config)
public CacheLoader getCacheLoader()
public void setCacheLoader(CacheLoader cache_loader)
public boolean getCacheLoaderShared()
public void setCacheLoaderShared(boolean shared)
public void setCacheLoaderPreload(java.lang.String list)
public java.lang.String getCacheLoaderPreload()
public boolean getCacheLoaderPassivation()
public void setCacheLoaderPassivation(boolean passivate)
public void setCacheLoaderFetchPersistentState(boolean flag)
public boolean getCacheLoaderFetchPersistentState()
public void setCacheLoaderFetchTransientState(boolean flag)
public boolean getCacheLoaderFetchTransientState()
public void setCacheLoaderAsynchronous(boolean flag)
public boolean getCacheLoaderAsynchronous()
public boolean getSyncCommitPhase()
public void setSyncCommitPhase(boolean sync_commit_phase)
public boolean getSyncRollbackPhase()
public void setSyncRollbackPhase(boolean sync_rollback_phase)
public void setEvictionPolicyConfig(org.w3c.dom.Element config)
public void setClusterConfig(org.w3c.dom.Element config)
public long getInitialStateRetrievalTimeout()
public void setInitialStateRetrievalTimeout(long timeout)
getInitialStateRetrievalTimeout()
)
public java.lang.String getCacheMode()
public void setCacheMode(java.lang.String mode) throws java.lang.Exception
java.lang.Exception
public long getSyncReplTimeout()
public void setSyncReplTimeout(long timeout)
public boolean getUseReplQueue()
public void setUseReplQueue(boolean flag)
public long getReplQueueInterval()
public void setReplQueueInterval(long interval)
public int getReplQueueMaxElements()
public void setReplQueueMaxElements(int max_elements)
public java.lang.String getIsolationLevel()
public void setIsolationLevel(java.lang.String level)
public boolean getFetchStateOnStartup()
public void setFetchStateOnStartup(boolean flag)
public short getStateTransferVersion()
getReplicationVersion()
instead
activateRegion(String)
. Different
releases of JBossCache may format this data differently; this property
identifies the format version being used by this cache instance.
The default value for this property is
TreeCache.DEFAULT_REPLICATION_VERSION
.
124
for JBossCache 1.2.4public void setStateTransferVersion(short version)
setReplicationVersion(String)
instead
activateRegion(String)
. Different
releases of JBossCache may format this data differently; this property
identifies the format version being used by this cache instance. Setting
this property to a value other than the default allows a cache instance
from a later release to interoperate with a cache instance from an
earlier release.
version
- a short identifying JBossCache release;
e.g. 124
for JBossCache 1.2.4public java.lang.String getReplicationVersion()
activateRegion(String)
. Different
releases of JBossCache may format this data differently; this property
identifies the format version being used by this cache instance.
The default value for this property is
TreeCache.DEFAULT_REPLICATION_VERSION
.
124
for JBossCache 1.2.4public void setReplicationVersion(java.lang.String version)
activateRegion(String)
. Different
releases of JBossCache may format this data differently; this property
identifies the format version being used by this cache instance. Setting
this property to a value other than the default allows a cache instance
from a later release to interoperate with a cache instance from an
earlier release.
version
- a short identifying JBossCache release;
e.g. 124
for JBossCache 1.2.4public long getLockAcquisitionTimeout()
public void setLockAcquisitionTimeout(long timeout)
timeout
- public boolean getDeadlockDetection()
public void setDeadlockDetection(boolean dt)
public java.lang.String getEvictionPolicyClass()
public void setEvictionPolicyClass(java.lang.String eviction_policy_class)
public int getEvictionThreadWakeupIntervalSeconds()
public void setTransactionManagerLookup(TransactionManagerLookup l)
l
- public java.lang.String getTransactionManagerLookupClass()
public void setTransactionManagerLookupClass(java.lang.String cl) throws java.lang.Exception
cl
-
java.lang.Exception
public javax.transaction.TransactionManager getTransactionManager()
public TreeCache getInstance()
public void fetchState(long timeout) throws org.jgroups.ChannelClosedException, org.jgroups.ChannelNotConnectedException
org.jgroups.ChannelClosedException
org.jgroups.ChannelNotConnectedException
public void addTreeCacheListener(TreeCacheListener listener)
public void removeTreeCacheListener(TreeCacheListener listener)
public void createService() throws java.lang.Exception
java.lang.Exception
public void destroyService()
public void startService() throws java.lang.Exception
java.lang.Exception
public void load(java.lang.String fqn) throws java.lang.Exception
fqn
-
java.lang.Exception
public void stopService()
public java.util.Set getKeys(java.lang.String fqn) throws CacheException
CacheException
public java.util.Set getKeys(Fqn fqn) throws CacheException
CacheException
public java.lang.Object get(java.lang.String fqn, java.lang.Object key) throws CacheException
data
map. Returns null if the node was not found in the tree or the key was not found in the hashmap.
fqn
- The fully qualified name of the node.key
- The key.
CacheException
public java.lang.Object get(Fqn fqn, java.lang.Object key) throws CacheException
data
map. Returns null if the node was not found in the tree or the key was not found in the hashmap.
fqn
- The fully qualified name of the node.key
- The key.
CacheException
public Node get(java.lang.String fqn) throws CacheException
CacheException
public Node get(Fqn fqn) throws CacheException
CacheException
public boolean exists(java.lang.String fqn)
fqn
- The fully qualified name of the node
public boolean exists(Fqn fqn)
fqn
- The fully qualified name of the node
public boolean exists(java.lang.String fqn, java.lang.Object key)
public boolean exists(Fqn fqn, java.lang.Object key)
get(Fqn,Object)
fqn
- The fully qualified name of the nodekey
-
public void put(java.lang.String fqn, java.util.Map data) throws CacheException
fqn
- The fully qualified name of the new nodedata
- The new data. May be null if no data should be set in the node.
CacheException
public void put(Fqn fqn, java.util.Map data) throws CacheException
fqn
- The fully qualified name of the new nodedata
- The new data. May be null if no data should be set in the node.
CacheException
public java.lang.Object put(java.lang.String fqn, java.lang.Object key, java.lang.Object value) throws CacheException
fqn
- The fully qualified name of the nodekey
- The keyvalue
- The value
CacheException
public java.lang.Object put(Fqn fqn, java.lang.Object key, java.lang.Object value) throws CacheException
fqn
- The fully qualified name of the nodekey
- The keyvalue
- The value
CacheException
public void remove(java.lang.String fqn) throws CacheException
fqn
- The fully qualified name of the node.
CacheException
public void remove(Fqn fqn) throws CacheException
fqn
- The fully qualified name of the node.
CacheException
public void evict(Fqn fqn) throws CacheException
fqn
- Will remove everythign assoicated with this fqn.
CacheException
public java.lang.Object remove(java.lang.String fqn, java.lang.Object key) throws CacheException
key
from the node's hashmap
fqn
- The fullly qualified name of the nodekey
- The key to be removed
CacheException
public java.lang.Object remove(Fqn fqn, java.lang.Object key) throws CacheException
key
from the node's hashmap
fqn
- The fullly qualified name of the nodekey
- The key to be removed
CacheException
public void removeData(java.lang.String fqn) throws CacheException
CacheException
public void removeData(Fqn fqn) throws CacheException
CacheException
public void releaseAllLocks(java.lang.String fqn)
fqn
- public void releaseAllLocks(Fqn fqn)
fqn
- public java.lang.String print(java.lang.String fqn)
fqn
. Output includes name, fqn and data.
public java.lang.String print(Fqn fqn)
fqn
. Output includes name, fqn and data.
public java.util.Set getChildrenNames(java.lang.String fqn) throws CacheException
fqn
- The fully qualified name of the node
CacheException
public java.util.Set getChildrenNames(Fqn fqn) throws CacheException
fqn
- The fully qualified name of the node
CacheException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String printDetails()
public java.lang.String printLockInfo()
public int getNumberOfLocksHeld()
public int getNumberOfNodes()
public int getNumberOfAttributes()
public java.util.List callRemoteMethods(java.util.Vector members, java.lang.reflect.Method method, java.lang.Object[] args, boolean synchronous, boolean exclude_self, long timeout) throws java.lang.Exception
java.lang.Exception
public java.util.List callRemoteMethods(java.util.Vector members, java.lang.String method_name, java.lang.Class[] types, java.lang.Object[] args, boolean synchronous, boolean exclude_self, long timeout) throws java.lang.Exception
java.lang.Exception
public void _put(GlobalTransaction tx, java.lang.String fqn, java.util.Map data, boolean create_undo_ops) throws CacheException
TransactionEntry
's lock list, (b) add nodes that were created to TransactionEntry
's node list and (c) create Modification
s and add them to TransactionEntry
's modification list and (d) create compensating modifications to undo the changes in case of a rollback
fqn
- data
- create_undo_ops
- If true, undo operations will be created (default is true). Otherwise they will not be created (used by rollback()).
CacheException
public void _put(GlobalTransaction tx, Fqn fqn, java.util.Map data, boolean create_undo_ops) throws CacheException
TransactionEntry
's lock list, (b) add nodes that were created to TransactionEntry
's node list and (c) create Modification
s and add them to TransactionEntry
's modification list and (d) create compensating modifications to undo the changes in case of a rollback
fqn
- data
- create_undo_ops
- If true, undo operations will be created (default is true). Otherwise they will not be created (used by rollback()).
CacheException
public void _put(GlobalTransaction tx, Fqn fqn, java.util.Map data, boolean create_undo_ops, boolean erase_contents) throws CacheException
TransactionEntry
's lock list, (b) add nodes that were created to TransactionEntry
's node list and (c) create Modification
s and add them to TransactionEntry
's modification list and (d) create compensating modifications to undo the changes in case of a rollback
fqn
- data
- create_undo_ops
- If true, undo operations will be created (default is true).erase_contents
- Clear the existing hashmap before putting the new data into it Otherwise they will not be created (used by rollback()).
CacheException
public java.lang.Object _put(GlobalTransaction tx, java.lang.String fqn, java.lang.Object key, java.lang.Object value, boolean create_undo_ops) throws CacheException
CacheException
public java.lang.Object _put(GlobalTransaction tx, Fqn fqn, java.lang.Object key, java.lang.Object value, boolean create_undo_ops) throws CacheException
CacheException
public void _remove(GlobalTransaction tx, java.lang.String fqn, boolean create_undo_ops) throws CacheException
CacheException
public void _remove(GlobalTransaction tx, Fqn fqn, boolean create_undo_ops) throws CacheException
CacheException
public java.lang.Object _remove(GlobalTransaction tx, java.lang.String fqn, java.lang.Object key, boolean create_undo_ops) throws CacheException
CacheException
public java.lang.Object _remove(GlobalTransaction tx, Fqn fqn, java.lang.Object key, boolean create_undo_ops) throws CacheException
CacheException
public void setNodeLockingScheme(java.lang.String nodeLockingScheme)
public java.lang.String getNodeLockingScheme()
public void activateRegion(java.lang.String subtreeFqn) throws RegionNotEmptyException, RegionNameConflictException, CacheException
subtreeFqn
and to begin accepting replication messages
for that subtree.
NOTE: This method will cause the creation of a node
in the local tree at subtreeFqn
whether or not that
node exists anywhere else in the cluster. If the node does not exist
elsewhere, the local node will be empty. The creation of this node will
not be replicated.
subtreeFqn
- Fqn string indicating the uppermost node in the
portion of the tree that should be activated.
RegionNotEmptyException
- if the node subtreeFqn
exists and has either data or children
java.lang.IllegalStateException
- if useMarshalling
is false
RegionNameConflictException
CacheException
public void inactivateRegion(java.lang.String subtreeFqn) throws RegionNameConflictException, CacheException
subtreeFqn
and evict all nodes in that subtree.
subtreeFqn
- Fqn string indicating the uppermost node in the
portion of the tree that should be activated.
RegionNameConflictException
- if subtreeFqn
indicates
a node that is part of another
subtree that is being specially
managed (either by activate/inactiveRegion()
or by registerClassLoader())
CacheException
- if there is a problem evicting nodes
java.lang.IllegalStateException
- if useMarshalling
is false
public boolean isInactiveOnStartup()
activateRegion(String)
is
called to activate one or more parts of the tree.
This property is only relevant if getUseMarshalling()
is
true
.
public void setInactiveOnStartup(boolean inactiveOnStartup)
activateRegion(String)
is
called to activate one or more parts of the tree.
This property is only relevant if getUseMarshalling()
is
true
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |