org.jboss.cache.pojo.jmx
Class PojoCacheJmxWrapper

java.lang.Object
  extended by org.jboss.cache.pojo.jmx.PojoCacheJmxWrapper
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, LegacyConfiguration, PojoCacheJmxWrapperMBean

public class PojoCacheJmxWrapper
extends java.lang.Object
implements PojoCacheJmxWrapperMBean, javax.management.MBeanRegistration, javax.management.NotificationEmitter


Field Summary
 
Fields inherited from interface org.jboss.cache.pojo.jmx.PojoCacheJmxWrapperMBean
CREATED, DESTROYED, FAILED, REGISTERED, STARTED, STARTING, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
PojoCacheJmxWrapper()
          Default constructor.
PojoCacheJmxWrapper(PojoCache toWrap)
          Creates a PojoCacheJmxWrapper that wraps the given PojoCache.
 
Method Summary
 void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
           
 void create()
          Lifecycle method to start PojoCache.
 void destroy()
          Lifecycle method to destroy PojoCache.
 org.w3c.dom.Element getBuddyReplicationConfig()
          Retrieves the buddy replication configuration element
 org.w3c.dom.Element getCacheLoaderConfig()
          Retrieves the cache loader configuration element
 org.w3c.dom.Element getCacheLoaderConfiguration()
           
 java.lang.String getCacheMode()
          Returns the current caching mode.
 CacheStatus getCacheStatus()
          Gets where this object is in its lifecycle transitions.
 org.w3c.dom.Element getClusterConfig()
          Gets the JGroups protocol stack config in W3C DOM Element form.
 java.lang.String getClusterName()
          Get the name of the replication group
 java.lang.String getClusterProperties()
          Get the cluster properties (e.g.
 Configuration getConfiguration()
          Retrieves an immutable configuration.
 org.w3c.dom.Element getEvictionPolicyConfig()
           
 boolean getExposeManagementStatistics()
          Gets whether the cache should create interceptor mbeans that are used to capture and publish interceptor statistics.
 boolean getFetchInMemoryState()
          Returns whether or not any initial state transfer or subsequent partial state transfer following an activateRegion call should include in-memory state.
 long getInitialStateRetrievalTimeout()
          Deprecated. 
 java.lang.String getInternalLocation(java.lang.Object pojo)
          Obtain the internal location of this pojo stored under PojoCache.
 java.lang.String getIsolationLevel()
          Returns the transaction isolation level.
 long getLockAcquisitionTimeout()
          Default max time to wait for a lock.
 javax.management.MBeanServer getMBeanServer()
           
 org.jgroups.jmx.JChannelFactoryMBean getMultiplexerService()
           
 java.lang.String getMultiplexerStack()
          Retrieves the JGroups multiplexer stack name if defined.
 org.jgroups.ChannelFactory getMuxChannelFactory()
           
 java.lang.String getNodeLockingScheme()
           
 javax.management.MBeanNotificationInfo[] getNotificationInfo()
           
 PojoCache getPojoCache()
          Returns the PojoCache.
 boolean getRegisterInterceptors()
          Gets whether this object should register the cache's interceptors with JMX.
 boolean getRegisterPlainCache()
          Gets whether this object should register a CacheJmxWrapperMBean for the underlying Cache with JMX.
 java.lang.String getReplicationVersion()
          Gets the format version of the data transferred during an initial state transfer or a call to Region.activate().
 long getReplQueueInterval()
           
 int getReplQueueMaxElements()
           
 int getState()
          Legacy attribute to expose the cache status in terms of the JBoss AS ServiceMBean values.
 long getStateRetrievalTimeout()
          Get the max time to wait until the state is retrieved.
 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()
           
 java.lang.String getUnderlyingCacheObjectName()
          Get the MBean object name that the underlying replicated cache is using.
 boolean getUseInterceptorMbeans()
           
 boolean getUseRegionBasedMarshalling()
          Gets whether marshalling uses scoped class loaders on a per region basis.
 boolean getUseReplQueue()
           
 boolean isInactiveOnStartup()
          Gets whether the entire tree is inactive upon startup, only responding to replication messages after activateRegion is called to activate one or more parts of the tree.
 void postDeregister()
          Unregisters the CacheJmxWrapper, if getRegisterPlainCache() is true.
 void postRegister(java.lang.Boolean registrationDone)
          Registers the CacheJmxWrapperMBean, if getRegisterPlainCache() is true.
 void preDeregister()
          No-op.
 javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName objName)
          Caches the provided server and objName.
 void removeNotificationListener(javax.management.NotificationListener listener)
           
 void removeNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
           
 void setBuddyReplicationConfig(org.w3c.dom.Element config)
          Sets the buddy replication configuration element
 void setCacheLoaderConfig(org.w3c.dom.Element cache_loader_config)
           
 void setCacheLoaderConfiguration(org.w3c.dom.Element config)
           
 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 setConfiguration(Configuration config)
          Sets the configuration that the underlying cache should use.
 void setEvictionPolicyConfig(org.w3c.dom.Element config)
          Setup eviction policy configuration
 void setExposeManagementStatistics(boolean expose)
           
 void setFetchInMemoryState(boolean flag)
          Sets whether or not any initial or subsequent partial state transfer should include in-memory state.
 void setInactiveOnStartup(boolean inactiveOnStartup)
          Sets whether the entire tree is inactive upon startup, only responding to replication messages after Region.activate() is called to activate one or more parts of the tree.
 void setInitialStateRetrievalTimeout(long timeout)
          Deprecated. 
 void setIsolationLevel(java.lang.String level)
          Set the transaction isolation level.
 void setLockAcquisitionTimeout(long timeout)
          Set the max time for lock acquisition.
 void setMultiplexerService(org.jgroups.jmx.JChannelFactoryMBean muxService)
           
 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 setMuxChannelFactory(org.jgroups.ChannelFactory factory)
           
 void setNodeLockingScheme(java.lang.String nodeLockingScheme)
           
 void setPojoCache(PojoCache cache)
           
 void setRegisterInterceptors(boolean register)
          Sets whether this object should register the cache's interceptors with JMX.
 void setRegisterPlainCache(boolean registerPlainCache)
          Sets whether this object should register a CacheJmxWrapperMBean for the underlying Cache with JMX.
 void setReplicationVersion(java.lang.String version)
          Sets the format version of the data transferred during an initial state transfer or a call to Region.activate().
 void setReplQueueInterval(long interval)
           
 void setReplQueueMaxElements(int max_elements)
           
 void setStateRetrievalTimeout(long timeout)
          Set the state transfer timeout (see LegacyConfiguration.getStateRetrievalTimeout())
 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 setTransactionManager(javax.transaction.TransactionManager manager)
           
 void setTransactionManagerLookupClass(java.lang.String cl)
          Sets the class of the TransactionManagerLookup impl.
 void setUseInterceptorMbeans(boolean use)
           
 void setUseRegionBasedMarshalling(boolean isTrue)
          Sets whether marshalling uses scoped class loaders on a per region basis.
 void setUseReplQueue(boolean flag)
           
 void start()
          Lifecycle method to start PojoCache.
 void stop()
          Lifecycle method to stop PojoCache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PojoCacheJmxWrapper

public PojoCacheJmxWrapper()
Default constructor.


PojoCacheJmxWrapper

public PojoCacheJmxWrapper(PojoCache toWrap)
Creates a PojoCacheJmxWrapper that wraps the given PojoCache.

Parameters:
toWrap - the cache
Method Detail

getPojoCache

public PojoCache getPojoCache()
Description copied from interface: PojoCacheJmxWrapperMBean
Returns the PojoCache.

Specified by:
getPojoCache in interface PojoCacheJmxWrapperMBean
Returns:
the PojoCache

getConfiguration

public Configuration getConfiguration()
Description copied from interface: PojoCacheJmxWrapperMBean
Retrieves an immutable configuration.

Specified by:
getConfiguration in interface PojoCacheJmxWrapperMBean

getInternalLocation

public java.lang.String getInternalLocation(java.lang.Object pojo)
                                     throws PojoCacheAlreadyDetachedException
Description copied from interface: PojoCacheJmxWrapperMBean
Obtain the internal location of this pojo stored under PojoCache.

Specified by:
getInternalLocation in interface PojoCacheJmxWrapperMBean
Parameters:
pojo - That is associated with this POJO. If null, it means all POJOs in this cache system.
Returns:
String that indicates the location.
Throws:
PojoCacheAlreadyDetachedException - if pojo has been detached already.

getUnderlyingCacheObjectName

public java.lang.String getUnderlyingCacheObjectName()
Description copied from interface: PojoCacheJmxWrapperMBean
Get the MBean object name that the underlying replicated cache is using.

Specified by:
getUnderlyingCacheObjectName in interface PojoCacheJmxWrapperMBean

create

public void create()
            throws PojoCacheException
Description copied from interface: PojoCacheJmxWrapperMBean
Lifecycle method to start PojoCache.

Specified by:
create in interface PojoCacheJmxWrapperMBean
Throws:
PojoCacheException

start

public void start()
           throws PojoCacheException
Description copied from interface: PojoCacheJmxWrapperMBean
Lifecycle method to start PojoCache.

Specified by:
start in interface PojoCacheJmxWrapperMBean
Throws:
PojoCacheException

stop

public void stop()
Description copied from interface: PojoCacheJmxWrapperMBean
Lifecycle method to stop PojoCache. Note that PojoCache can be stopped and started repeatedly.

Specified by:
stop in interface PojoCacheJmxWrapperMBean

destroy

public void destroy()
Description copied from interface: PojoCacheJmxWrapperMBean
Lifecycle method to destroy PojoCache.

Specified by:
destroy in interface PojoCacheJmxWrapperMBean

getCacheStatus

public CacheStatus getCacheStatus()
Description copied from interface: PojoCacheJmxWrapperMBean
Gets where this object is in its lifecycle transitions.

Specified by:
getCacheStatus in interface PojoCacheJmxWrapperMBean
Returns:
the current status. Will not return null

getState

public int getState()
Description copied from interface: PojoCacheJmxWrapperMBean
Legacy attribute to expose the cache status in terms of the JBoss AS ServiceMBean values. This interface does not extend ServiceMBean, but this attribute is retained to provide compatibility with the JBoss AS JSR-77 integration layer.

Specified by:
getState in interface PojoCacheJmxWrapperMBean
Returns:
the current status, e.g. PojoCacheJmxWrapperMBean.STARTED.

getRegisterPlainCache

public boolean getRegisterPlainCache()
Description copied from interface: PojoCacheJmxWrapperMBean
Gets whether this object should register a CacheJmxWrapperMBean for the underlying Cache with JMX.

Default is true.

Specified by:
getRegisterPlainCache in interface PojoCacheJmxWrapperMBean

setRegisterPlainCache

public void setRegisterPlainCache(boolean registerPlainCache)
Description copied from interface: PojoCacheJmxWrapperMBean
Sets whether this object should register a CacheJmxWrapperMBean for the underlying Cache with JMX.

Default is true.

If true, the CacheJmxWrapperMBean will be instantiated and registered either as part of the registration of this object, or during the call to PojoCacheJmxWrapperMBean.create().

Specified by:
setRegisterPlainCache in interface PojoCacheJmxWrapperMBean

getRegisterInterceptors

public boolean getRegisterInterceptors()
Description copied from interface: PojoCacheJmxWrapperMBean
Gets whether this object should register the cache's interceptors with JMX.

This property is only relevant if registerPlainCache is true.

Default is true.

Specified by:
getRegisterInterceptors in interface PojoCacheJmxWrapperMBean

setRegisterInterceptors

public void setRegisterInterceptors(boolean register)
Description copied from interface: PojoCacheJmxWrapperMBean
Sets whether this object should register the cache's interceptors with JMX.

This property is only relevant if registerPlainCache is true.

Default is true.

Specified by:
setRegisterInterceptors in interface PojoCacheJmxWrapperMBean

getBuddyReplicationConfig

public org.w3c.dom.Element getBuddyReplicationConfig()
Description copied from interface: LegacyConfiguration
Retrieves the buddy replication configuration element

Specified by:
getBuddyReplicationConfig in interface LegacyConfiguration
Returns:
whatever was passed to LegacyConfiguration.setBuddyReplicationConfig(Element) or null if nothing was

getCacheLoaderConfig

public org.w3c.dom.Element getCacheLoaderConfig()
Description copied from interface: LegacyConfiguration
Retrieves the cache loader configuration element

Specified by:
getCacheLoaderConfig in interface LegacyConfiguration
Returns:
whatever was passed to LegacyConfiguration.setCacheLoaderConfig(Element) or null if nothing was

getCacheLoaderConfiguration

public org.w3c.dom.Element getCacheLoaderConfiguration()
Specified by:
getCacheLoaderConfiguration in interface LegacyConfiguration

getCacheMode

public java.lang.String getCacheMode()
Description copied from interface: LegacyConfiguration
Returns the current caching mode. Valid values are

getClusterName

public java.lang.String getClusterName()
Description copied from interface: LegacyConfiguration
Get the name of the replication group

Specified by:
getClusterName in interface LegacyConfiguration

getClusterProperties

public java.lang.String getClusterProperties()
Description copied from interface: LegacyConfiguration
Get the cluster properties (e.g. the protocol stack specification in case of JGroups)

Specified by:
getClusterProperties in interface LegacyConfiguration

getClusterConfig

public org.w3c.dom.Element getClusterConfig()
Description copied from interface: LegacyConfiguration
Gets the JGroups protocol stack config in W3C DOM Element form.

Specified by:
getClusterConfig in interface LegacyConfiguration
Returns:
the protocol stack, or null if it was not set via LegacyConfiguration.setClusterConfig(Element)

getEvictionPolicyConfig

public org.w3c.dom.Element getEvictionPolicyConfig()
Specified by:
getEvictionPolicyConfig in interface LegacyConfiguration
Returns:
whatever was passed to LegacyConfiguration.setEvictionPolicyConfig(Element) or null if nothing was

getExposeManagementStatistics

public boolean getExposeManagementStatistics()
Description copied from interface: LegacyConfiguration
Gets whether the cache should create interceptor mbeans that are used to capture and publish interceptor statistics.

Specified by:
getExposeManagementStatistics in interface LegacyConfiguration
Returns:
true if mbeans should be created for each interceptor

getUseInterceptorMbeans

public boolean getUseInterceptorMbeans()
Specified by:
getUseInterceptorMbeans in interface LegacyConfiguration

getFetchInMemoryState

public boolean getFetchInMemoryState()
Description copied from interface: LegacyConfiguration
Returns whether or not any initial state transfer or subsequent partial state transfer following an 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.

Specified by:
getFetchInMemoryState in interface LegacyConfiguration

getStateRetrievalTimeout

public long getStateRetrievalTimeout()
Description copied from interface: LegacyConfiguration
Get the max time to wait until the state is retrieved. This is used in a replicating cache: when a new cache joins the cluster, it needs to acquire the (replicated) state of the other members to initialize itself. If no state has been received within timeout milliseconds, the map will be empty.

Specified by:
getStateRetrievalTimeout in interface LegacyConfiguration
Returns:
long Number of milliseconds to wait for the state. 0 means to wait forever.

setInitialStateRetrievalTimeout

@Deprecated
public void setInitialStateRetrievalTimeout(long timeout)
Deprecated. 

Description copied from interface: LegacyConfiguration
Set the initial state transfer timeout (see LegacyConfiguration.getInitialStateRetrievalTimeout())

Specified by:
setInitialStateRetrievalTimeout in interface LegacyConfiguration

getIsolationLevel

public java.lang.String getIsolationLevel()
Description copied from interface: LegacyConfiguration
Returns the transaction isolation level.

Specified by:
getIsolationLevel in interface LegacyConfiguration

getLockAcquisitionTimeout

public long getLockAcquisitionTimeout()
Description copied from interface: LegacyConfiguration
Default max time to wait for a lock. If the lock cannot be acquired within this time, a LockingException will be thrown.

Specified by:
getLockAcquisitionTimeout in interface LegacyConfiguration
Returns:
long Max number of milliseconds to wait for a lock to be acquired

getMultiplexerService

public org.jgroups.jmx.JChannelFactoryMBean getMultiplexerService()
Specified by:
getMultiplexerService in interface LegacyConfiguration

getMultiplexerStack

public java.lang.String getMultiplexerStack()
Description copied from interface: LegacyConfiguration
Retrieves the JGroups multiplexer stack name if defined.

Specified by:
getMultiplexerStack in interface LegacyConfiguration
Returns:
the multiplexer stack name

getMuxChannelFactory

public org.jgroups.ChannelFactory getMuxChannelFactory()
Specified by:
getMuxChannelFactory in interface LegacyConfiguration

getNodeLockingScheme

public java.lang.String getNodeLockingScheme()
Specified by:
getNodeLockingScheme in interface LegacyConfiguration

getReplQueueInterval

public long getReplQueueInterval()
Specified by:
getReplQueueInterval in interface LegacyConfiguration

getReplQueueMaxElements

public int getReplQueueMaxElements()
Specified by:
getReplQueueMaxElements in interface LegacyConfiguration

getReplicationVersion

public java.lang.String getReplicationVersion()
Description copied from interface: LegacyConfiguration
Gets the format version of the data transferred during an initial state transfer or a call to Region.activate(). 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 Configuration.DEFAULT_REPLICATION_VERSION.

Specified by:
getReplicationVersion in interface LegacyConfiguration
Returns:
a short identifying JBossCache release; e.g. 124 for JBossCache 1.2.4

getSyncCommitPhase

public boolean getSyncCommitPhase()
Specified by:
getSyncCommitPhase in interface LegacyConfiguration

getSyncReplTimeout

public long getSyncReplTimeout()
Description copied from interface: LegacyConfiguration
Returns the default max timeout after which synchronous replication calls return.

Specified by:
getSyncReplTimeout in interface LegacyConfiguration
Returns:
long Number of milliseconds after which a sync repl call must return. 0 means to wait forever

getSyncRollbackPhase

public boolean getSyncRollbackPhase()
Specified by:
getSyncRollbackPhase in interface LegacyConfiguration

getTransactionManager

public javax.transaction.TransactionManager getTransactionManager()
Specified by:
getTransactionManager in interface LegacyConfiguration

getTransactionManagerLookupClass

public java.lang.String getTransactionManagerLookupClass()
Specified by:
getTransactionManagerLookupClass in interface LegacyConfiguration

getUseRegionBasedMarshalling

public boolean getUseRegionBasedMarshalling()
Description copied from interface: LegacyConfiguration
Gets whether marshalling uses scoped class loaders on a per region basis.

Specified by:
getUseRegionBasedMarshalling in interface LegacyConfiguration
Returns:
true if region based marshalling is used.

getUseReplQueue

public boolean getUseReplQueue()
Specified by:
getUseReplQueue in interface LegacyConfiguration

isInactiveOnStartup

public boolean isInactiveOnStartup()
Description copied from interface: LegacyConfiguration
Gets whether the entire tree is inactive upon startup, only responding to replication messages after activateRegion is called to activate one or more parts of the tree.

This property is only relevant if Configuration.isUseRegionBasedMarshalling() is true.

Specified by:
isInactiveOnStartup in interface LegacyConfiguration

setBuddyReplicationConfig

public void setBuddyReplicationConfig(org.w3c.dom.Element config)
Description copied from interface: LegacyConfiguration
Sets the buddy replication configuration element

Specified by:
setBuddyReplicationConfig in interface LegacyConfiguration

setCacheLoaderConfig

public void setCacheLoaderConfig(org.w3c.dom.Element cache_loader_config)
Specified by:
setCacheLoaderConfig in interface LegacyConfiguration

setCacheLoaderConfiguration

public void setCacheLoaderConfiguration(org.w3c.dom.Element config)
Specified by:
setCacheLoaderConfiguration in interface LegacyConfiguration

setCacheMode

public void setCacheMode(java.lang.String mode)
                  throws java.lang.Exception
Description copied from interface: LegacyConfiguration
Sets the default caching mode)

Specified by:
setCacheMode in interface LegacyConfiguration
Throws:
java.lang.Exception

setClusterConfig

public void setClusterConfig(org.w3c.dom.Element config)
Description copied from interface: LegacyConfiguration
Convert a list of elements to the JG property string

Specified by:
setClusterConfig in interface LegacyConfiguration

getInitialStateRetrievalTimeout

@Deprecated
public long getInitialStateRetrievalTimeout()
Deprecated. 

Description copied from interface: LegacyConfiguration
Get the max time to wait until the initial state is retrieved. This is used in a replicating cache: when a new cache joins the cluster, it needs to acquire the (replicated) state of the other members to initialize itself. If no state has been received within timeout milliseconds, the map will be empty.

Specified by:
getInitialStateRetrievalTimeout in interface LegacyConfiguration
Returns:
long Number of milliseconds to wait for the state. 0 means to wait forever.

setClusterName

public void setClusterName(java.lang.String name)
Description copied from interface: LegacyConfiguration
Set the name of the replication group

Specified by:
setClusterName in interface LegacyConfiguration

setClusterProperties

public void setClusterProperties(java.lang.String cluster_props)
Description copied from interface: LegacyConfiguration
Set the cluster properties. If the cache is to use the new properties, it has to be redeployed

Specified by:
setClusterProperties in interface LegacyConfiguration
Parameters:
cluster_props - The properties for the cluster (JGroups)

setEvictionPolicyConfig

public void setEvictionPolicyConfig(org.w3c.dom.Element config)
Description copied from interface: LegacyConfiguration
Setup eviction policy configuration

Specified by:
setEvictionPolicyConfig in interface LegacyConfiguration

setExposeManagementStatistics

public void setExposeManagementStatistics(boolean expose)
Specified by:
setExposeManagementStatistics in interface LegacyConfiguration

setUseInterceptorMbeans

public void setUseInterceptorMbeans(boolean use)
Specified by:
setUseInterceptorMbeans in interface LegacyConfiguration

setFetchInMemoryState

public void setFetchInMemoryState(boolean flag)
Description copied from interface: LegacyConfiguration
Sets whether or not any initial or subsequent partial state transfer should include in-memory state.

Specified by:
setFetchInMemoryState in interface LegacyConfiguration

setInactiveOnStartup

public void setInactiveOnStartup(boolean inactiveOnStartup)
Description copied from interface: LegacyConfiguration
Sets whether the entire tree is inactive upon startup, only responding to replication messages after Region.activate() is called to activate one or more parts of the tree.

This property is only relevant if Configuration.isUseRegionBasedMarshalling() is true.

Specified by:
setInactiveOnStartup in interface LegacyConfiguration

setStateRetrievalTimeout

public void setStateRetrievalTimeout(long timeout)
Description copied from interface: LegacyConfiguration
Set the state transfer timeout (see LegacyConfiguration.getStateRetrievalTimeout())

Specified by:
setStateRetrievalTimeout in interface LegacyConfiguration

setIsolationLevel

public void setIsolationLevel(java.lang.String level)
Description copied from interface: LegacyConfiguration
Set the transaction isolation level. This determines the locking strategy to be used

Specified by:
setIsolationLevel in interface LegacyConfiguration

setLockAcquisitionTimeout

public void setLockAcquisitionTimeout(long timeout)
Description copied from interface: LegacyConfiguration
Set the max time for lock acquisition. A value of 0 means to wait forever (not recomended). Note that lock acquisition timeouts may be removed in the future when we have deadlock detection.

Specified by:
setLockAcquisitionTimeout in interface LegacyConfiguration

setMultiplexerService

public void setMultiplexerService(org.jgroups.jmx.JChannelFactoryMBean muxService)
Specified by:
setMultiplexerService in interface LegacyConfiguration

setMultiplexerStack

public void setMultiplexerStack(java.lang.String stackName)
Description copied from interface: LegacyConfiguration
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.

Specified by:
setMultiplexerStack in interface LegacyConfiguration
Parameters:
stackName - the name of the multiplexer stack

setMuxChannelFactory

public void setMuxChannelFactory(org.jgroups.ChannelFactory factory)
Specified by:
setMuxChannelFactory in interface LegacyConfiguration

setNodeLockingScheme

public void setNodeLockingScheme(java.lang.String nodeLockingScheme)
Specified by:
setNodeLockingScheme in interface LegacyConfiguration

setReplQueueInterval

public void setReplQueueInterval(long interval)
Specified by:
setReplQueueInterval in interface LegacyConfiguration

setReplQueueMaxElements

public void setReplQueueMaxElements(int max_elements)
Specified by:
setReplQueueMaxElements in interface LegacyConfiguration

setReplicationVersion

public void setReplicationVersion(java.lang.String version)
Description copied from interface: LegacyConfiguration
Sets the format version of the data transferred during an initial state transfer or a call to Region.activate(). 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.

Specified by:
setReplicationVersion in interface LegacyConfiguration
Parameters:
version - a short identifying JBossCache release; e.g. 124 for JBossCache 1.2.4

setSyncCommitPhase

public void setSyncCommitPhase(boolean sync_commit_phase)
Specified by:
setSyncCommitPhase in interface LegacyConfiguration

setSyncReplTimeout

public void setSyncReplTimeout(long timeout)
Description copied from interface: LegacyConfiguration
Sets the default maximum wait time for synchronous replication to receive all results

Specified by:
setSyncReplTimeout in interface LegacyConfiguration

setSyncRollbackPhase

public void setSyncRollbackPhase(boolean sync_rollback_phase)
Specified by:
setSyncRollbackPhase in interface LegacyConfiguration

setTransactionManager

public void setTransactionManager(javax.transaction.TransactionManager manager)
Specified by:
setTransactionManager in interface LegacyConfiguration

setTransactionManagerLookupClass

public void setTransactionManagerLookupClass(java.lang.String cl)
                                      throws java.lang.Exception
Description copied from interface: LegacyConfiguration
Sets the class of the TransactionManagerLookup impl. This will attempt to create an instance, and will throw an exception if this fails.

Specified by:
setTransactionManagerLookupClass in interface LegacyConfiguration
Throws:
java.lang.Exception

setUseRegionBasedMarshalling

public void setUseRegionBasedMarshalling(boolean isTrue)
Description copied from interface: LegacyConfiguration
Sets whether marshalling uses scoped class loaders on a per region basis.

This property must be set to true before any call to Region.registerContextClassLoader(ClassLoader).

Specified by:
setUseRegionBasedMarshalling in interface LegacyConfiguration

setUseReplQueue

public void setUseReplQueue(boolean flag)
Specified by:
setUseReplQueue in interface LegacyConfiguration

preRegister

public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
                                               javax.management.ObjectName objName)
                                        throws java.lang.Exception
Caches the provided server and objName.

Specified by:
preRegister in interface javax.management.MBeanRegistration
Throws:
java.lang.Exception

postRegister

public void postRegister(java.lang.Boolean registrationDone)
Registers the CacheJmxWrapperMBean, if getRegisterPlainCache() is true.

Specified by:
postRegister in interface javax.management.MBeanRegistration

preDeregister

public void preDeregister()
                   throws java.lang.Exception
No-op.

Specified by:
preDeregister in interface javax.management.MBeanRegistration
Throws:
java.lang.Exception

postDeregister

public void postDeregister()
Unregisters the CacheJmxWrapper, if getRegisterPlainCache() is true.

Specified by:
postDeregister in interface javax.management.MBeanRegistration

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener,
                                       javax.management.NotificationFilter filter,
                                       java.lang.Object handback)
                                throws javax.management.ListenerNotFoundException
Specified by:
removeNotificationListener in interface javax.management.NotificationEmitter
Throws:
javax.management.ListenerNotFoundException

addNotificationListener

public void addNotificationListener(javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter,
                                    java.lang.Object handback)
                             throws java.lang.IllegalArgumentException
Specified by:
addNotificationListener in interface javax.management.NotificationBroadcaster
Throws:
java.lang.IllegalArgumentException

getNotificationInfo

public javax.management.MBeanNotificationInfo[] getNotificationInfo()
Specified by:
getNotificationInfo in interface javax.management.NotificationBroadcaster

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener)
                                throws javax.management.ListenerNotFoundException
Specified by:
removeNotificationListener in interface javax.management.NotificationBroadcaster
Throws:
javax.management.ListenerNotFoundException

getMBeanServer

public javax.management.MBeanServer getMBeanServer()

setConfiguration

public void setConfiguration(Configuration config)
Sets the configuration that the underlying cache should use.

Parameters:
config - the configuration

setPojoCache

public void setPojoCache(PojoCache cache)