org.jboss.cache.jmx
Class CacheJmxWrapper<K,V>

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.jboss.cache.jmx.CacheJmxWrapper<K,V>
All Implemented Interfaces:
MBeanRegistration, NotificationBroadcaster, NotificationEmitter, CacheJmxWrapperMBean<K,V>, CacheNotificationBroadcaster, LegacyConfiguration

Deprecated. use JmxRegistrationManager. This class will not be supported from 3.0 on.

@Deprecated
public class CacheJmxWrapper<K,V>
extends NotificationBroadcasterSupport
implements CacheJmxWrapperMBean<K,V>, MBeanRegistration, CacheNotificationBroadcaster

Wrapper class that exposes a JMX management interface

Version:
$Revision: 7168 $
Author:
Brian Stansberry

Field Summary
 
Fields inherited from interface org.jboss.cache.jmx.CacheJmxWrapperMBean
CREATED, DESTROYED, FAILED, REGISTERED, STARTED, STARTING, STOPPED, STOPPING, UNREGISTERED
 
Fields inherited from interface org.jboss.cache.jmx.CacheNotificationBroadcaster
NOTIF_CACHE_STARTED, NOTIF_CACHE_STOPPED, NOTIF_NODE_ACTIVATED, NOTIF_NODE_CREATED, NOTIF_NODE_EVICTED, NOTIF_NODE_LOADED, NOTIF_NODE_MODIFIED, NOTIF_NODE_MOVED, NOTIF_NODE_PASSIVATED, NOTIF_NODE_REMOVED, NOTIF_NODE_VISITED, NOTIF_VIEW_CHANGED
 
Constructor Summary
CacheJmxWrapper()
          Deprecated.  
CacheJmxWrapper(Cache<K,V> cache)
          Deprecated.  
 
Method Summary
 void addNotificationListener(NotificationListener notificationListener, NotificationFilter notificationFilter, Object object)
          Deprecated.  
protected  void constructCache()
          Deprecated.  
 void create()
          Deprecated.  
 void destroy()
          Deprecated.  
static String formatHtml(String s)
          Deprecated. Formats a given String for display as an HTML snippet.
 Element getBuddyReplicationConfig()
          Deprecated. Retrieves the buddy replication configuration element
 Cache<K,V> getCache()
          Deprecated. Retrieves a reference to the underlying Cache
 Element getCacheLoaderConfig()
          Deprecated. Retrieves the cache loader configuration element
 Element getCacheLoaderConfiguration()
          Deprecated.  
 String getCacheMode()
          Deprecated. Returns the current caching mode.
 String getCacheObjectName()
          Deprecated.  
 CacheStatus getCacheStatus()
          Deprecated. Gets where this object is in its lifecycle transitions.
 Element getClusterConfig()
          Deprecated. Gets the JGroups protocol stack config in W3C DOM Element form.
 String getClusterName()
          Deprecated. Get the name of the replication group
 String getClusterProperties()
          Deprecated. Get the cluster properties (e.g. the protocol stack specification in case of JGroups)
 Configuration getConfiguration()
          Deprecated.  
 Element getEvictionPolicyConfig()
          Deprecated.  
 boolean getExposeManagementStatistics()
          Deprecated. Gets whether the cache should create interceptor mbeans that are used to capture and publish interceptor statistics.
 boolean getFetchInMemoryState()
          Deprecated. 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. 
 String getIsolationLevel()
          Deprecated. Returns the transaction isolation level.
 org.jgroups.Address getLocalAddress()
          Deprecated. Returns the local address of this cache in a cluster, or null if running in local mode.
 long getLockAcquisitionTimeout()
          Deprecated. Default max time to wait for a lock.
 MBeanServer getMBeanServer()
          Deprecated.  
 List<org.jgroups.Address> getMembers()
          Deprecated. Returns a list of members in the cluster, or null if running in local mode.
 org.jgroups.jmx.JChannelFactoryMBean getMultiplexerService()
          Deprecated.  
 String getMultiplexerStack()
          Deprecated. Retrieves the JGroups multiplexer stack name if defined.
 org.jgroups.ChannelFactory getMuxChannelFactory()
          Deprecated.  
 long getNextNotificationSequenceNumber()
          Deprecated. Gets the sequence number for the next notification.
 String getNodeLockingScheme()
          Deprecated.  
 MBeanNotificationInfo[] getNotificationInfo()
          Deprecated.  
 String getNotificationServiceName()
          Deprecated.  
 int getNumberOfAttributes()
          Deprecated.  
 int getNumberOfNodes()
          Deprecated.  
 boolean getRegisterJmxResource()
          Deprecated. Gets whether this object should register the cache's interceptors with JMX during CacheJmxWrapperMBean.create().
 String getReplicationVersion()
          Deprecated. Gets the format version of the data transferred during an initial state transfer or a call to Region.activate().
 long getReplQueueInterval()
          Deprecated.  
 int getReplQueueMaxElements()
          Deprecated.  
 int getState()
          Deprecated. Legacy attribute to expose the cache status in terms of the JBoss AS ServiceMBean values.
 long getStateRetrievalTimeout()
          Deprecated. Get the max time to wait until the state is retrieved.
 boolean getSyncCommitPhase()
          Deprecated.  
 long getSyncReplTimeout()
          Deprecated. Returns the default max timeout after which synchronous replication calls return.
 boolean getSyncRollbackPhase()
          Deprecated.  
 TransactionManager getTransactionManager()
          Deprecated.  
 String getTransactionManagerLookupClass()
          Deprecated.  
 boolean getUseInterceptorMbeans()
          Deprecated.  
 boolean getUseRegionBasedMarshalling()
          Deprecated. 
 boolean getUseReplQueue()
          Deprecated.  
 boolean isDisableStateChangeNotifications()
          Deprecated. Gets whether sending of JMX notifications for this mbean's start/stop lifecycle changes is disabled.
 boolean isInactiveOnStartup()
          Deprecated. 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.
 boolean isUseLazyDeserialization()
          Deprecated.  
 void postDeregister()
          Deprecated. Unregisters the ResourcesDMBean, if getRegisterJmxResource() is true.
 void postRegister(Boolean registrationDone)
          Deprecated. Registers the cache's MBean resources, if getRegisterJmxResource() is true.
 void preDeregister()
          Deprecated. No-op.
 ObjectName preRegister(MBeanServer server, ObjectName objName)
          Deprecated. Caches the provided server and objName.
 String printCacheDetails()
          Deprecated.  
 String printCacheDetailsAsHtml()
          Deprecated.  
 String printConfigurationAsHtmlString()
          Deprecated.  
 String printConfigurationAsString()
          Deprecated.  
 String printLockInfo()
          Deprecated.  
 String printLockInfoAsHtml()
          Deprecated.  
protected  boolean registerJmxResources()
          Deprecated.  
 void removeNotificationListener(NotificationListener notificationListener)
          Deprecated.  
 void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
          Deprecated.  
 void setBuddyReplicationConfig(Element config)
          Deprecated. Sets the buddy replication configuration element
 void setCache(Cache<K,V> cache)
          Deprecated. Allows direct injection of the underlying cache.
 void setCacheLoaderConfig(Element cacheLoaderConfig)
          Deprecated.  
 void setCacheLoaderConfiguration(Element config)
          Deprecated.  
 void setCacheMode(String mode)
          Deprecated. Sets the default caching mode)
 void setCacheObjectName(String name)
          Deprecated.  
 void setClusterConfig(Element config)
          Deprecated. Convert a list of elements to the JG property string
 void setClusterName(String name)
          Deprecated. Set the name of the replication group
 void setClusterProperties(String cluster_props)
          Deprecated. Set the cluster properties.
 void setConfiguration(Configuration config)
          Deprecated. Sets the configuration that the underlying cache should use.
 void setDisableStateChangeNotifications(boolean disableStateChangeNotifications)
          Deprecated. Hook to allow PojoCacheJmxWrapper to suppress state change notifications from this mbean in lieu of its own.
 void setEvictionPolicyConfig(Element config)
          Deprecated. Setup eviction policy configuration
 void setExposeManagementStatistics(boolean expose)
          Deprecated.  
 void setFetchInMemoryState(boolean flag)
          Deprecated. Sets whether or not any initial or subsequent partial state transfer should include in-memory state.
 void setInactiveOnStartup(boolean inactiveOnStartup)
          Deprecated. 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(String level)
          Deprecated. Set the transaction isolation level.
 void setLockAcquisitionTimeout(long timeout)
          Deprecated. Set the max time for lock acquisition.
 void setMultiplexerService(org.jgroups.jmx.JChannelFactoryMBean muxService)
          Deprecated.  
 void setMultiplexerStack(String stackName)
          Deprecated. 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)
          Deprecated.  
 void setNodeLockingScheme(String nodeLockingScheme)
          Deprecated.  
 void setNotificationServiceName(String notificationServiceName)
          Deprecated.  
 void setRegisterJmxResource(boolean register)
          Deprecated. Sets whether this object should register the cache's interceptors with JMX during CacheJmxWrapperMBean.create().
 void setReplicationVersion(String version)
          Deprecated. Sets the format version of the data transferred during an initial state transfer or a call to Region.activate().
 void setReplQueueInterval(long interval)
          Deprecated.  
 void setReplQueueMaxElements(int max_elements)
          Deprecated.  
 void setStateRetrievalTimeout(long timeout)
          Deprecated. Set the state transfer timeout (see LegacyConfiguration.getStateRetrievalTimeout())
 void setSyncCommitPhase(boolean sync_commit_phase)
          Deprecated.  
 void setSyncReplTimeout(long timeout)
          Deprecated. Sets the default maximum wait time for synchronous replication to receive all results
 void setSyncRollbackPhase(boolean sync_rollback_phase)
          Deprecated.  
 void setTransactionManager(TransactionManager manager)
          Deprecated.  
 void setTransactionManagerLookupClass(String cl)
          Deprecated. Sets the class of the TransactionManagerLookup impl.
 void setUseInterceptorMbeans(boolean use)
          Deprecated.  
 void setUseRegionBasedMarshalling(boolean isTrue)
          Deprecated. 
 void setUseReplQueue(boolean flag)
          Deprecated.  
 void start()
          Deprecated.  
 void stop()
          Deprecated.  
protected  void unregisterJmxResources()
          Deprecated.  
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
handleNotification, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.cache.jmx.CacheNotificationBroadcaster
sendNotification
 

Constructor Detail

CacheJmxWrapper

public CacheJmxWrapper()
Deprecated. 

CacheJmxWrapper

public CacheJmxWrapper(Cache<K,V> cache)
Deprecated. 
Method Detail

getCache

public Cache<K,V> getCache()
Deprecated. 
Description copied from interface: CacheJmxWrapperMBean
Retrieves a reference to the underlying Cache

Specified by:
getCache in interface CacheJmxWrapperMBean<K,V>

getConfiguration

public Configuration getConfiguration()
Deprecated. 
Specified by:
getConfiguration in interface CacheJmxWrapperMBean<K,V>
Returns:
an immutable configuration

printConfigurationAsString

public String printConfigurationAsString()
Deprecated. 
Specified by:
printConfigurationAsString in interface CacheJmxWrapperMBean<K,V>
Returns:
a string based representation of the configuration

printConfigurationAsHtmlString

public String printConfigurationAsHtmlString()
Deprecated. 
Specified by:
printConfigurationAsHtmlString in interface CacheJmxWrapperMBean<K,V>
Returns:
an HTML formatted string based representation of the configuration

printCacheDetails

public String printCacheDetails()
Deprecated. 
Specified by:
printCacheDetails in interface CacheJmxWrapperMBean<K,V>
Returns:
details of nodes in the cache

printCacheDetailsAsHtml

public String printCacheDetailsAsHtml()
Deprecated. 
Specified by:
printCacheDetailsAsHtml in interface CacheJmxWrapperMBean<K,V>
Returns:
details of nodes in the cache, formatted as HTML

getCacheStatus

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

Specified by:
getCacheStatus in interface CacheJmxWrapperMBean<K,V>
Returns:
the current status. Will not return null

getState

public int getState()
Deprecated. 
Description copied from interface: CacheJmxWrapperMBean
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 CacheJmxWrapperMBean<K,V>
Returns:
the current status, e.g. CacheJmxWrapperMBean.STARTED.

getLocalAddress

public org.jgroups.Address getLocalAddress()
Deprecated. 
Description copied from interface: CacheJmxWrapperMBean
Returns the local address of this cache in a cluster, or null if running in local mode.

Specified by:
getLocalAddress in interface CacheJmxWrapperMBean<K,V>
Returns:
the local address of this cache in a cluster, or null if running in local mode.

getMembers

public List<org.jgroups.Address> getMembers()
Deprecated. 
Description copied from interface: CacheJmxWrapperMBean
Returns a list of members in the cluster, or null if running in local mode.

Specified by:
getMembers in interface CacheJmxWrapperMBean<K,V>
Returns:
a List of members in the cluster, or null if running in local mode.

getNumberOfNodes

public int getNumberOfNodes()
Deprecated. 
Specified by:
getNumberOfNodes in interface CacheJmxWrapperMBean<K,V>
Returns:
number of nodes in the cache

getNumberOfAttributes

public int getNumberOfAttributes()
Deprecated. 
Specified by:
getNumberOfAttributes in interface CacheJmxWrapperMBean<K,V>
Returns:
number of attributes in the cache

printLockInfo

public String printLockInfo()
Deprecated. 
Specified by:
printLockInfo in interface CacheJmxWrapperMBean<K,V>
Returns:
information on the state of node locks

printLockInfoAsHtml

public String printLockInfoAsHtml()
Deprecated. 
Specified by:
printLockInfoAsHtml in interface CacheJmxWrapperMBean<K,V>
Returns:
information on the state of node locks, formatted as HTML

getRegisterJmxResource

public boolean getRegisterJmxResource()
Deprecated. 
Description copied from interface: CacheJmxWrapperMBean
Gets whether this object should register the cache's interceptors with JMX during CacheJmxWrapperMBean.create().

Default is true.

Specified by:
getRegisterJmxResource in interface CacheJmxWrapperMBean<K,V>

setRegisterJmxResource

public void setRegisterJmxResource(boolean register)
Deprecated. 
Description copied from interface: CacheJmxWrapperMBean
Sets whether this object should register the cache's interceptors with JMX during CacheJmxWrapperMBean.create().

Default is true.

Specified by:
setRegisterJmxResource in interface CacheJmxWrapperMBean<K,V>

getBuddyReplicationConfig

public Element getBuddyReplicationConfig()
Deprecated. 
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 Element getCacheLoaderConfig()
Deprecated. 
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 Element getCacheLoaderConfiguration()
Deprecated. 
Specified by:
getCacheLoaderConfiguration in interface LegacyConfiguration

getCacheMode

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

getClusterName

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

Specified by:
getClusterName in interface LegacyConfiguration

getClusterProperties

public String getClusterProperties()
Deprecated. 
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 Element getClusterConfig()
Deprecated. 
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 Element getEvictionPolicyConfig()
Deprecated. 
Specified by:
getEvictionPolicyConfig in interface LegacyConfiguration
Returns:
whatever was passed to LegacyConfiguration.setEvictionPolicyConfig(Element) or null if nothing was

getExposeManagementStatistics

public boolean getExposeManagementStatistics()
Deprecated. 
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()
Deprecated. 
Specified by:
getUseInterceptorMbeans in interface LegacyConfiguration

getFetchInMemoryState

public boolean getFetchInMemoryState()
Deprecated. 
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()
Deprecated. 
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 String getIsolationLevel()
Deprecated. 
Description copied from interface: LegacyConfiguration
Returns the transaction isolation level.

Specified by:
getIsolationLevel in interface LegacyConfiguration

getLockAcquisitionTimeout

public long getLockAcquisitionTimeout()
Deprecated. 
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()
Deprecated. 
Specified by:
getMultiplexerService in interface LegacyConfiguration

getMultiplexerStack

public String getMultiplexerStack()
Deprecated. 
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()
Deprecated. 
Specified by:
getMuxChannelFactory in interface LegacyConfiguration

getNodeLockingScheme

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

getReplQueueInterval

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

getReplQueueMaxElements

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

getReplicationVersion

public String getReplicationVersion()
Deprecated. 
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()
Deprecated. 
Specified by:
getSyncCommitPhase in interface LegacyConfiguration

getSyncReplTimeout

public long getSyncReplTimeout()
Deprecated. 
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()
Deprecated. 
Specified by:
getSyncRollbackPhase in interface LegacyConfiguration

getTransactionManager

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

getTransactionManagerLookupClass

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

getUseRegionBasedMarshalling

@Deprecated
public boolean getUseRegionBasedMarshalling()
Deprecated. 

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.

isUseLazyDeserialization

public boolean isUseLazyDeserialization()
Deprecated. 

getUseReplQueue

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

isInactiveOnStartup

public boolean isInactiveOnStartup()
Deprecated. 
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(Element config)
Deprecated. 
Description copied from interface: LegacyConfiguration
Sets the buddy replication configuration element

Specified by:
setBuddyReplicationConfig in interface LegacyConfiguration

setCacheLoaderConfig

public void setCacheLoaderConfig(Element cacheLoaderConfig)
Deprecated. 
Specified by:
setCacheLoaderConfig in interface LegacyConfiguration

setCacheLoaderConfiguration

public void setCacheLoaderConfiguration(Element config)
Deprecated. 
Specified by:
setCacheLoaderConfiguration in interface LegacyConfiguration

setCacheMode

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

Specified by:
setCacheMode in interface LegacyConfiguration
Throws:
Exception

setClusterConfig

public void setClusterConfig(Element config)
Deprecated. 
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(String name)
Deprecated. 
Description copied from interface: LegacyConfiguration
Set the name of the replication group

Specified by:
setClusterName in interface LegacyConfiguration

setClusterProperties

public void setClusterProperties(String cluster_props)
Deprecated. 
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(Element config)
Deprecated. 
Description copied from interface: LegacyConfiguration
Setup eviction policy configuration

Specified by:
setEvictionPolicyConfig in interface LegacyConfiguration

setExposeManagementStatistics

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

setUseInterceptorMbeans

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

setFetchInMemoryState

public void setFetchInMemoryState(boolean flag)
Deprecated. 
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)
Deprecated. 
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)
Deprecated. 
Description copied from interface: LegacyConfiguration
Set the state transfer timeout (see LegacyConfiguration.getStateRetrievalTimeout())

Specified by:
setStateRetrievalTimeout in interface LegacyConfiguration

setIsolationLevel

public void setIsolationLevel(String level)
Deprecated. 
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)
Deprecated. 
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)
Deprecated. 
Specified by:
setMultiplexerService in interface LegacyConfiguration

setMultiplexerStack

public void setMultiplexerStack(String stackName)
Deprecated. 
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)
Deprecated. 
Specified by:
setMuxChannelFactory in interface LegacyConfiguration

setNodeLockingScheme

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

setReplQueueInterval

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

setReplQueueMaxElements

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

setReplicationVersion

public void setReplicationVersion(String version)
Deprecated. 
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)
Deprecated. 
Specified by:
setSyncCommitPhase in interface LegacyConfiguration

setSyncReplTimeout

public void setSyncReplTimeout(long timeout)
Deprecated. 
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)
Deprecated. 
Specified by:
setSyncRollbackPhase in interface LegacyConfiguration

setTransactionManager

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

setTransactionManagerLookupClass

public void setTransactionManagerLookupClass(String cl)
                                      throws Exception
Deprecated. 
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:
Exception

setUseRegionBasedMarshalling

@Deprecated
public void setUseRegionBasedMarshalling(boolean isTrue)
Deprecated. 

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)
Deprecated. 
Specified by:
setUseReplQueue in interface LegacyConfiguration

create

public void create()
            throws CacheException
Deprecated. 
Specified by:
create in interface CacheJmxWrapperMBean<K,V>
Throws:
CacheException

start

public void start()
           throws CacheException
Deprecated. 
Specified by:
start in interface CacheJmxWrapperMBean<K,V>
Throws:
CacheException

stop

public void stop()
Deprecated. 
Specified by:
stop in interface CacheJmxWrapperMBean<K,V>

destroy

public void destroy()
Deprecated. 
Specified by:
destroy in interface CacheJmxWrapperMBean<K,V>

preRegister

public ObjectName preRegister(MBeanServer server,
                              ObjectName objName)
                       throws Exception
Deprecated. 
Caches the provided server and objName.

Specified by:
preRegister in interface MBeanRegistration
Throws:
Exception

postRegister

public void postRegister(Boolean registrationDone)
Deprecated. 
Registers the cache's MBean resources, if getRegisterJmxResource() is true.

Specified by:
postRegister in interface MBeanRegistration

preDeregister

public void preDeregister()
                   throws Exception
Deprecated. 
No-op.

Specified by:
preDeregister in interface MBeanRegistration
Throws:
Exception

postDeregister

public void postDeregister()
Deprecated. 
Unregisters the ResourcesDMBean, if getRegisterJmxResource() is true.

Specified by:
postDeregister in interface MBeanRegistration

setConfiguration

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

Parameters:
config - the configuration
Throws:
IllegalArgumentException - if config is null.

setCache

public void setCache(Cache<K,V> cache)
Deprecated. 
Allows direct injection of the underlying cache.

Parameters:
cache -

getCacheObjectName

public String getCacheObjectName()
Deprecated. 

setCacheObjectName

public void setCacheObjectName(String name)
                        throws MalformedObjectNameException
Deprecated. 
Throws:
MalformedObjectNameException

isDisableStateChangeNotifications

public boolean isDisableStateChangeNotifications()
Deprecated. 
Gets whether sending of JMX notifications for this mbean's start/stop lifecycle changes is disabled.

See Also:
setDisableStateChangeNotifications(boolean)

setDisableStateChangeNotifications

public void setDisableStateChangeNotifications(boolean disableStateChangeNotifications)
Deprecated. 
Hook to allow PojoCacheJmxWrapper to suppress state change notifications from this mbean in lieu of its own.

Parameters:
disableStateChangeNotifications -

getMBeanServer

public MBeanServer getMBeanServer()
Deprecated. 

formatHtml

public static String formatHtml(String s)
Deprecated. 
Formats a given String for display as an HTML snippet.

Parameters:
s - string to format
Returns:
formatted string

getNotificationServiceName

public String getNotificationServiceName()
Deprecated. 

setNotificationServiceName

public void setNotificationServiceName(String notificationServiceName)
Deprecated. 

getNextNotificationSequenceNumber

public long getNextNotificationSequenceNumber()
Deprecated. 
Description copied from interface: CacheNotificationBroadcaster
Gets the sequence number for the next notification.

Specified by:
getNextNotificationSequenceNumber in interface CacheNotificationBroadcaster

addNotificationListener

public void addNotificationListener(NotificationListener notificationListener,
                                    NotificationFilter notificationFilter,
                                    Object object)
                             throws IllegalArgumentException
Deprecated. 
Specified by:
addNotificationListener in interface NotificationBroadcaster
Overrides:
addNotificationListener in class NotificationBroadcasterSupport
Throws:
IllegalArgumentException

removeNotificationListener

public void removeNotificationListener(NotificationListener notificationListener)
                                throws ListenerNotFoundException
Deprecated. 
Specified by:
removeNotificationListener in interface NotificationBroadcaster
Overrides:
removeNotificationListener in class NotificationBroadcasterSupport
Throws:
ListenerNotFoundException

removeNotificationListener

public void removeNotificationListener(NotificationListener listener,
                                       NotificationFilter filter,
                                       Object handback)
                                throws ListenerNotFoundException
Deprecated. 
Specified by:
removeNotificationListener in interface NotificationEmitter
Overrides:
removeNotificationListener in class NotificationBroadcasterSupport
Throws:
ListenerNotFoundException

getNotificationInfo

public MBeanNotificationInfo[] getNotificationInfo()
Deprecated. 
Specified by:
getNotificationInfo in interface NotificationBroadcaster
Overrides:
getNotificationInfo in class NotificationBroadcasterSupport

constructCache

protected void constructCache()
                       throws ConfigurationException
Deprecated. 
Throws:
ConfigurationException

registerJmxResources

protected boolean registerJmxResources()
                                throws CacheException
Deprecated. 
Throws:
CacheException

unregisterJmxResources

protected void unregisterJmxResources()
Deprecated. 


Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.