|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeCacheMBean
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. |
java.lang.Object |
get(Fqn fqn,
java.lang.Object key,
boolean sendNodeEvent,
Option option)
The same as calling get(Fqn, Object, boolean) except that you can pass in options for this specific method invocation. |
java.lang.Object |
get(Fqn fqn,
java.lang.Object key,
Option option)
The same as calling get(Fqn, Object) except that you can pass in options for this specific method invocation. |
DataNode |
get(Fqn fqn,
Option option)
The same as calling get(Fqn) except that you can pass in options for this specific method invocation. |
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. |
org.w3c.dom.Element |
getBuddyReplicationConfig()
Retrieves the buddy replication cofiguration element |
CacheLoader |
getCacheLoader()
|
boolean |
getCacheLoaderAsynchronous()
Deprecated. |
java.lang.String |
getCacheLoaderClass()
Deprecated. |
java.util.Properties |
getCacheLoaderConfig()
Deprecated. |
org.w3c.dom.Element |
getCacheLoaderConfiguration()
|
boolean |
getCacheLoaderFetchPersistentState()
Deprecated. |
boolean |
getCacheLoaderFetchTransientState()
Deprecated. |
boolean |
getCacheLoaderPassivation()
Deprecated. |
java.lang.String |
getCacheLoaderPreload()
Deprecated. |
boolean |
getCacheLoaderShared()
Deprecated. |
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(Fqn fqn,
Option option)
The same as calling getChildrenNames(Fqn) except that you can pass in options for this specific method invocation. |
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 |
getFetchInMemoryState()
Returns whether or not any initial state transfer or subsequent partial state transfer following an activateRegion call should
include in-memory state. |
boolean |
getFetchStateOnStartup()
Returns whether or not on startup the initial state will be acquired from existing members. |
long |
getInitialStateRetrievalTimeout()
Get the max time to wait until the initial state is retrieved. |
TreeCache |
getInstance()
Returns a reference to the TreeCache object itself. |
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 |
getMultiplexerService()
Retrieves the JGroups multiplexer service name if defined. |
java.lang.String |
getMultiplexerStack()
Retrieves the JGroups multiplexer stack name if defined. |
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. |
org.w3c.dom.Element |
getPojoCacheConfig()
|
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 |
getUseInterceptorMbeans()
Gets whether the cache should register its interceptor mbeans. |
boolean |
getUseMarshalling()
Deprecated. |
boolean |
getUseRegionBasedMarshalling()
Tests whether region based marshaling s used. |
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. |
boolean |
isUsingEviction()
|
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 |
purgeCacheLoaders()
Purges the contents of all configured CacheLoader s |
void |
put(Fqn fqn,
java.util.Map data)
Adds a new node to the tree and sets its data. |
void |
put(Fqn fqn,
java.util.Map data,
Option option)
The same as calling put(Fqn, Map) except that you can pass in options for this specific method invocation. |
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(Fqn fqn,
java.lang.Object key,
java.lang.Object value,
Option option)
The same as calling put(Fqn, Object, Object) except that you can pass in options for this specific method invocation. |
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 |
java.lang.Object |
remove(Fqn fqn,
java.lang.Object key,
Option option)
The same as calling remove(Fqn, Object) except that you can pass in options for this specific method invocation. |
void |
remove(Fqn fqn,
Option option)
The same as calling remove(Fqn) except that you can pass in options for this specific method invocation. |
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 |
setBuddyReplicationConfig(org.w3c.dom.Element config)
Sets the buddy replication configuration element |
void |
setCacheLoader(CacheLoader loader)
Deprecated. |
void |
setCacheLoaderAsynchronous(boolean b)
Deprecated. |
void |
setCacheLoaderClass(java.lang.String cache_loader_class)
Deprecated. |
void |
setCacheLoaderConfig(java.util.Properties cache_loader_config)
Deprecated. |
void |
setCacheLoaderConfiguration(org.w3c.dom.Element cache_loader_config)
|
void |
setCacheLoaderFetchPersistentState(boolean flag)
Deprecated. |
void |
setCacheLoaderFetchTransientState(boolean flag)
Deprecated. |
void |
setCacheLoaderPassivation(boolean passivate)
Deprecated. |
void |
setCacheLoaderPreload(java.lang.String list)
Deprecated. |
void |
setCacheLoaderShared(boolean shared)
Deprecated. |
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 |
setFetchInMemoryState(boolean flag)
Sets whether or not any initial or subsequent partial state transfer should include in-memory state. |
void |
setFetchStateOnStartup(boolean flag)
Deprecated. will just log a warning; use setFetchInMemoryState and any cache loader's setFetchPersistentState property |
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 |
setMultiplexerService(java.lang.String serviceName)
Sets the JGroups multiplexer service name. |
void |
setMultiplexerStack(java.lang.String stackName)
Used with JGroups multiplexer, specifies stack to be used (e.g., fc-fast-minimalthreads) This attribute is optional; if not provided, a default multiplexer stack will be used. |
void |
setNodeLockingScheme(java.lang.String nodeLockingScheme)
|
void |
setPojoCacheConfig(org.w3c.dom.Element config)
|
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)
Deprecated. |
void |
setUseRegionBasedMarshalling(boolean isTrue)
Sets whether marshalling uses scoped class loaders on a per region basis. |
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 |
---|
java.lang.Object getLocalAddress()
java.util.Vector getMembers()
boolean isCoordinator()
java.lang.String getClusterName()
java.lang.String getVersion()
void setClusterName(java.lang.String name)
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)
TreeCacheMarshaller is ALWAYS used. This is now synonymous with setUseRegionBasedMarshalling()
boolean getUseMarshalling()
TreeCacheMarshaller
instance should be used
to manage different classloaders to use for unmarshalling replicated
objects.
TreeCacheMarshaller is ALWAYS used. This is now synonymous with getUseRegionBasedMarshalling()
void setUseRegionBasedMarshalling(boolean isTrue)
true
before any call to
registerClassLoader(String, ClassLoader)
or
activateRegion(String)
isTrue
- boolean getUseRegionBasedMarshalling()
boolean getUseInterceptorMbeans()
boolean isUsingEviction()
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
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
java.lang.String getClusterProperties()
void setClusterProperties(java.lang.String cluster_props)
cluster_props
- The properties for the cluster (JGroups)java.lang.String dumpTransactionTable()
java.lang.String getInterceptorChain()
java.util.List getInterceptors()
org.w3c.dom.Element getCacheLoaderConfiguration()
void setCacheLoaderConfiguration(org.w3c.dom.Element cache_loader_config)
CacheLoader getCacheLoader()
boolean getSyncCommitPhase()
void setSyncCommitPhase(boolean sync_commit_phase)
boolean getSyncRollbackPhase()
void setSyncRollbackPhase(boolean sync_rollback_phase)
void setEvictionPolicyConfig(org.w3c.dom.Element config)
void setClusterConfig(org.w3c.dom.Element config)
long getInitialStateRetrievalTimeout()
void setInitialStateRetrievalTimeout(long timeout)
getInitialStateRetrievalTimeout()
)
java.lang.String getCacheMode()
void setCacheMode(java.lang.String mode) throws java.lang.Exception
java.lang.Exception
long getSyncReplTimeout()
void setSyncReplTimeout(long timeout)
boolean getUseReplQueue()
void setUseReplQueue(boolean flag)
long getReplQueueInterval()
void setReplQueueInterval(long interval)
int getReplQueueMaxElements()
void setReplQueueMaxElements(int max_elements)
void setPojoCacheConfig(org.w3c.dom.Element config) throws CacheException
CacheException
org.w3c.dom.Element getPojoCacheConfig()
java.lang.String getIsolationLevel()
void setIsolationLevel(java.lang.String level)
boolean getFetchStateOnStartup()
true
if isInactiveOnStartup()
is
false
, buddy replication is not configured and
either getFetchInMemoryState()
is true
or a cache loader's FetchPersistentState
property
is true
.boolean getFetchInMemoryState()
activateRegion
call should
include in-memory state. Allows for warm/hot caches (true/false). The
characteristics of a state transfer can be further defined by a cache
loader's FetchPersistentState property.
void setFetchStateOnStartup(boolean flag)
void setFetchInMemoryState(boolean flag)
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.4void 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.4java.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.4void 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.4long getLockAcquisitionTimeout()
void setLockAcquisitionTimeout(long timeout)
timeout
- boolean getDeadlockDetection()
void setDeadlockDetection(boolean dt)
java.lang.String getEvictionPolicyClass()
void setEvictionPolicyClass(java.lang.String eviction_policy_class)
int getEvictionThreadWakeupIntervalSeconds()
void setTransactionManagerLookup(TransactionManagerLookup l)
l
- java.lang.String getTransactionManagerLookupClass()
void setTransactionManagerLookupClass(java.lang.String cl) throws java.lang.Exception
cl
-
java.lang.Exception
javax.transaction.TransactionManager getTransactionManager()
TreeCache getInstance()
void fetchState(long timeout) throws org.jgroups.ChannelClosedException, org.jgroups.ChannelNotConnectedException
org.jgroups.ChannelClosedException
org.jgroups.ChannelNotConnectedException
void addTreeCacheListener(TreeCacheListener listener)
void removeTreeCacheListener(TreeCacheListener listener)
void createService() throws java.lang.Exception
java.lang.Exception
void destroyService()
void startService() throws java.lang.Exception
java.lang.Exception
void load(java.lang.String fqn) throws java.lang.Exception
fqn
-
java.lang.Exception
void stopService()
java.util.Set getKeys(java.lang.String fqn) throws CacheException
CacheException
java.util.Set getKeys(Fqn fqn) throws CacheException
CacheException
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
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
Node get(java.lang.String fqn) throws CacheException
CacheException
Node get(Fqn fqn) throws CacheException
CacheException
boolean exists(java.lang.String fqn)
fqn
- The fully qualified name of the node
boolean exists(Fqn fqn)
fqn
- The fully qualified name of the node
boolean exists(java.lang.String fqn, java.lang.Object key)
boolean exists(Fqn fqn, java.lang.Object key)
get(Fqn,Object)
fqn
- The fully qualified name of the nodekey
-
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
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
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
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
void remove(java.lang.String fqn) throws CacheException
fqn
- The fully qualified name of the node.
CacheException
void remove(Fqn fqn) throws CacheException
fqn
- The fully qualified name of the node.
CacheException
void evict(Fqn fqn) throws CacheException
fqn
- Will remove everythign assoicated with this fqn.
CacheException
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
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
void removeData(java.lang.String fqn) throws CacheException
CacheException
void removeData(Fqn fqn) throws CacheException
CacheException
void releaseAllLocks(java.lang.String fqn)
fqn
- void releaseAllLocks(Fqn fqn)
fqn
- java.lang.String print(java.lang.String fqn)
fqn
. Output includes name, fqn and data.
java.lang.String print(Fqn fqn)
fqn
. Output includes name, fqn and data.
java.util.Set getChildrenNames(java.lang.String fqn) throws CacheException
fqn
- The fully qualified name of the node
CacheException
java.util.Set getChildrenNames(Fqn fqn) throws CacheException
fqn
- The fully qualified name of the node
CacheException
java.lang.String toString()
toString
in class java.lang.Object
java.lang.String printDetails()
java.lang.String printLockInfo()
int getNumberOfLocksHeld()
int getNumberOfNodes()
int getNumberOfAttributes()
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
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
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
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
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
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
java.lang.Object _put(GlobalTransaction tx, Fqn fqn, java.lang.Object key, java.lang.Object value, boolean create_undo_ops) throws CacheException
CacheException
void _remove(GlobalTransaction tx, java.lang.String fqn, boolean create_undo_ops) throws CacheException
CacheException
void _remove(GlobalTransaction tx, Fqn fqn, boolean create_undo_ops) throws CacheException
CacheException
java.lang.Object _remove(GlobalTransaction tx, java.lang.String fqn, java.lang.Object key, boolean create_undo_ops) throws CacheException
CacheException
java.lang.Object _remove(GlobalTransaction tx, Fqn fqn, java.lang.Object key, boolean create_undo_ops) throws CacheException
CacheException
void setNodeLockingScheme(java.lang.String nodeLockingScheme)
java.lang.String getNodeLockingScheme()
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
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
boolean isInactiveOnStartup()
activateRegion(String)
is
called to activate one or more parts of the tree.
This property is only relevant if getUseMarshalling()
is
true
.
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
.
DataNode get(Fqn fqn, Option option) throws CacheException
Option
fqn
- option
-
CacheException
java.lang.Object get(Fqn fqn, java.lang.Object key, Option option) throws CacheException
Option
fqn
- option
-
CacheException
java.lang.Object get(Fqn fqn, java.lang.Object key, boolean sendNodeEvent, Option option) throws CacheException
Option
fqn
- option
-
CacheException
void remove(Fqn fqn, Option option) throws CacheException
Option
fqn
- option
-
CacheException
java.lang.Object remove(Fqn fqn, java.lang.Object key, Option option) throws CacheException
Option
fqn
- key
- option
-
CacheException
java.util.Set getChildrenNames(Fqn fqn, Option option) throws CacheException
Option
fqn
- option
-
CacheException
void put(Fqn fqn, java.util.Map data, Option option) throws CacheException
Option
fqn
- data
- option
-
CacheException
void put(Fqn fqn, java.lang.Object key, java.lang.Object value, Option option) throws CacheException
Option
fqn
- key
- value
- option
-
CacheException
void setCacheLoaderClass(java.lang.String cache_loader_class)
setCacheLoaderConfiguration(org.w3c.dom.Element)
void setCacheLoaderConfig(java.util.Properties cache_loader_config)
setCacheLoaderConfiguration(org.w3c.dom.Element)
void setCacheLoaderShared(boolean shared)
setCacheLoaderConfiguration(org.w3c.dom.Element)
void setCacheLoaderPassivation(boolean passivate)
setCacheLoaderConfiguration(org.w3c.dom.Element)
void setCacheLoaderPreload(java.lang.String list)
setCacheLoaderConfiguration(org.w3c.dom.Element)
void setCacheLoaderAsynchronous(boolean b)
setCacheLoaderConfiguration(org.w3c.dom.Element)
void setCacheLoaderFetchPersistentState(boolean flag)
setCacheLoaderConfiguration(org.w3c.dom.Element)
void setCacheLoaderFetchTransientState(boolean flag)
setCacheLoaderConfiguration(org.w3c.dom.Element)
void setCacheLoader(CacheLoader loader)
loader
- java.lang.String getCacheLoaderClass()
boolean getCacheLoaderShared()
boolean getCacheLoaderPassivation()
boolean getCacheLoaderAsynchronous()
java.lang.String getCacheLoaderPreload()
boolean getCacheLoaderFetchPersistentState()
boolean getCacheLoaderFetchTransientState()
java.util.Properties getCacheLoaderConfig()
void setBuddyReplicationConfig(org.w3c.dom.Element config)
config
- org.w3c.dom.Element getBuddyReplicationConfig()
java.lang.String getMultiplexerService()
void setMultiplexerService(java.lang.String serviceName)
serviceName
- the multiplexer service namejava.lang.String getMultiplexerStack()
void setMultiplexerStack(java.lang.String stackName)
stackName
- the name of the multiplexer stackvoid purgeCacheLoaders() throws java.lang.Exception
CacheLoader
s
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |